client2world_notice.pb.cc 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: client2world_notice.proto
  3. #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
  4. #include "client2world_notice.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_req_notice_descriptor_ = NULL;
  18. const ::google::protobuf::internal::GeneratedMessageReflection*
  19. packetc2w_req_notice_reflection_ = NULL;
  20. const ::google::protobuf::Descriptor* NoticeInfo_descriptor_ = NULL;
  21. const ::google::protobuf::internal::GeneratedMessageReflection*
  22. NoticeInfo_reflection_ = NULL;
  23. const ::google::protobuf::Descriptor* packetw2c_req_notice_result_descriptor_ = NULL;
  24. const ::google::protobuf::internal::GeneratedMessageReflection*
  25. packetw2c_req_notice_result_reflection_ = NULL;
  26. } // namespace
  27. void protobuf_AssignDesc_client2world_5fnotice_2eproto() {
  28. protobuf_AddDesc_client2world_5fnotice_2eproto();
  29. const ::google::protobuf::FileDescriptor* file =
  30. ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
  31. "client2world_notice.proto");
  32. GOOGLE_CHECK(file != NULL);
  33. packetc2w_req_notice_descriptor_ = file->message_type(0);
  34. static const int packetc2w_req_notice_offsets_[2] = {
  35. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_notice, packet_id_),
  36. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_notice, lasttime_),
  37. };
  38. packetc2w_req_notice_reflection_ =
  39. new ::google::protobuf::internal::GeneratedMessageReflection(
  40. packetc2w_req_notice_descriptor_,
  41. packetc2w_req_notice::default_instance_,
  42. packetc2w_req_notice_offsets_,
  43. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_notice, _has_bits_[0]),
  44. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_notice, _unknown_fields_),
  45. -1,
  46. ::google::protobuf::DescriptorPool::generated_pool(),
  47. ::google::protobuf::MessageFactory::generated_factory(),
  48. sizeof(packetc2w_req_notice));
  49. NoticeInfo_descriptor_ = file->message_type(1);
  50. static const int NoticeInfo_offsets_[6] = {
  51. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NoticeInfo, gentime_),
  52. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NoticeInfo, deadtime_),
  53. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NoticeInfo, type_),
  54. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NoticeInfo, title_),
  55. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NoticeInfo, content_),
  56. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NoticeInfo, order_),
  57. };
  58. NoticeInfo_reflection_ =
  59. new ::google::protobuf::internal::GeneratedMessageReflection(
  60. NoticeInfo_descriptor_,
  61. NoticeInfo::default_instance_,
  62. NoticeInfo_offsets_,
  63. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NoticeInfo, _has_bits_[0]),
  64. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NoticeInfo, _unknown_fields_),
  65. -1,
  66. ::google::protobuf::DescriptorPool::generated_pool(),
  67. ::google::protobuf::MessageFactory::generated_factory(),
  68. sizeof(NoticeInfo));
  69. packetw2c_req_notice_result_descriptor_ = file->message_type(2);
  70. static const int packetw2c_req_notice_result_offsets_[3] = {
  71. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_notice_result, packet_id_),
  72. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_notice_result, infolist_),
  73. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_notice_result, lasttime_),
  74. };
  75. packetw2c_req_notice_result_reflection_ =
  76. new ::google::protobuf::internal::GeneratedMessageReflection(
  77. packetw2c_req_notice_result_descriptor_,
  78. packetw2c_req_notice_result::default_instance_,
  79. packetw2c_req_notice_result_offsets_,
  80. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_notice_result, _has_bits_[0]),
  81. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_notice_result, _unknown_fields_),
  82. -1,
  83. ::google::protobuf::DescriptorPool::generated_pool(),
  84. ::google::protobuf::MessageFactory::generated_factory(),
  85. sizeof(packetw2c_req_notice_result));
  86. }
  87. namespace {
  88. GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
  89. inline void protobuf_AssignDescriptorsOnce() {
  90. ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
  91. &protobuf_AssignDesc_client2world_5fnotice_2eproto);
  92. }
  93. void protobuf_RegisterTypes(const ::std::string&) {
  94. protobuf_AssignDescriptorsOnce();
  95. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  96. packetc2w_req_notice_descriptor_, &packetc2w_req_notice::default_instance());
  97. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  98. NoticeInfo_descriptor_, &NoticeInfo::default_instance());
  99. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  100. packetw2c_req_notice_result_descriptor_, &packetw2c_req_notice_result::default_instance());
  101. }
  102. } // namespace
  103. void protobuf_ShutdownFile_client2world_5fnotice_2eproto() {
  104. delete packetc2w_req_notice::default_instance_;
  105. delete packetc2w_req_notice_reflection_;
  106. delete NoticeInfo::default_instance_;
  107. delete NoticeInfo_reflection_;
  108. delete packetw2c_req_notice_result::default_instance_;
  109. delete packetw2c_req_notice_result_reflection_;
  110. }
  111. void protobuf_AddDesc_client2world_5fnotice_2eproto() {
  112. static bool already_here = false;
  113. if (already_here) return;
  114. already_here = true;
  115. GOOGLE_PROTOBUF_VERIFY_VERSION;
  116. ::client2world_protocols::protobuf_AddDesc_client2world_5fmsg_5ftype_2eproto();
  117. ::msg_type_def::protobuf_AddDesc_msg_5ftype_5fdef_2eproto();
  118. ::msg_info_def::protobuf_AddDesc_msg_5finfo_5fdef_2eproto();
  119. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  120. "\n\031client2world_notice.proto\022\026client2worl"
  121. "d_protocols\032\033client2world_msg_type.proto"
  122. "\032\022msg_type_def.proto\032\022msg_info_def.proto"
  123. "\"|\n\024packetc2w_req_notice\022R\n\tpacket_id\030\001 "
  124. "\001(\0162).client2world_protocols.e_server_ms"
  125. "g_type:\024e_mst_c2w_req_notice\022\020\n\010lastTime"
  126. "\030\002 \001(\005\"l\n\nNoticeInfo\022\017\n\007genTime\030\001 \001(\005\022\020\n"
  127. "\010deadTime\030\002 \001(\005\022\014\n\004type\030\003 \001(\005\022\r\n\005title\030\004"
  128. " \001(\t\022\017\n\007content\030\005 \001(\t\022\r\n\005order\030\006 \001(\005\"\300\001\n"
  129. "\033packetw2c_req_notice_result\022Y\n\tpacket_i"
  130. "d\030\001 \001(\0162).client2world_protocols.e_serve"
  131. "r_msg_type:\033e_mst_w2c_req_notice_result\022"
  132. "4\n\010infoList\030\002 \003(\0132\".client2world_protoco"
  133. "ls.NoticeInfo\022\020\n\010lastTime\030\003 \001(\005", 551);
  134. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  135. "client2world_notice.proto", &protobuf_RegisterTypes);
  136. packetc2w_req_notice::default_instance_ = new packetc2w_req_notice();
  137. NoticeInfo::default_instance_ = new NoticeInfo();
  138. packetw2c_req_notice_result::default_instance_ = new packetw2c_req_notice_result();
  139. packetc2w_req_notice::default_instance_->InitAsDefaultInstance();
  140. NoticeInfo::default_instance_->InitAsDefaultInstance();
  141. packetw2c_req_notice_result::default_instance_->InitAsDefaultInstance();
  142. ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_client2world_5fnotice_2eproto);
  143. }
  144. // Force AddDescriptors() to be called at static initialization time.
  145. struct StaticDescriptorInitializer_client2world_5fnotice_2eproto {
  146. StaticDescriptorInitializer_client2world_5fnotice_2eproto() {
  147. protobuf_AddDesc_client2world_5fnotice_2eproto();
  148. }
  149. } static_descriptor_initializer_client2world_5fnotice_2eproto_;
  150. // ===================================================================
  151. #ifndef _MSC_VER
  152. const int packetc2w_req_notice::kPacketIdFieldNumber;
  153. const int packetc2w_req_notice::kLastTimeFieldNumber;
  154. #endif // !_MSC_VER
  155. packetc2w_req_notice::packetc2w_req_notice()
  156. : ::google::protobuf::Message() {
  157. SharedCtor();
  158. }
  159. void packetc2w_req_notice::InitAsDefaultInstance() {
  160. }
  161. packetc2w_req_notice::packetc2w_req_notice(const packetc2w_req_notice& from)
  162. : ::google::protobuf::Message() {
  163. SharedCtor();
  164. MergeFrom(from);
  165. }
  166. void packetc2w_req_notice::SharedCtor() {
  167. _cached_size_ = 0;
  168. packet_id_ = 5038;
  169. lasttime_ = 0;
  170. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  171. }
  172. packetc2w_req_notice::~packetc2w_req_notice() {
  173. SharedDtor();
  174. }
  175. void packetc2w_req_notice::SharedDtor() {
  176. if (this != default_instance_) {
  177. }
  178. }
  179. void packetc2w_req_notice::SetCachedSize(int size) const {
  180. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  181. _cached_size_ = size;
  182. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  183. }
  184. const ::google::protobuf::Descriptor* packetc2w_req_notice::descriptor() {
  185. protobuf_AssignDescriptorsOnce();
  186. return packetc2w_req_notice_descriptor_;
  187. }
  188. const packetc2w_req_notice& packetc2w_req_notice::default_instance() {
  189. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fnotice_2eproto();
  190. return *default_instance_;
  191. }
  192. packetc2w_req_notice* packetc2w_req_notice::default_instance_ = NULL;
  193. packetc2w_req_notice* packetc2w_req_notice::New() const {
  194. return new packetc2w_req_notice;
  195. }
  196. void packetc2w_req_notice::Clear() {
  197. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  198. packet_id_ = 5038;
  199. lasttime_ = 0;
  200. }
  201. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  202. mutable_unknown_fields()->Clear();
  203. }
  204. bool packetc2w_req_notice::MergePartialFromCodedStream(
  205. ::google::protobuf::io::CodedInputStream* input) {
  206. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  207. ::google::protobuf::uint32 tag;
  208. while ((tag = input->ReadTag()) != 0) {
  209. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  210. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_notice];
  211. case 1: {
  212. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  213. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  214. int value;
  215. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  216. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  217. input, &value)));
  218. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  219. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  220. } else {
  221. mutable_unknown_fields()->AddVarint(1, value);
  222. }
  223. } else {
  224. goto handle_uninterpreted;
  225. }
  226. if (input->ExpectTag(16)) goto parse_lastTime;
  227. break;
  228. }
  229. // optional int32 lastTime = 2;
  230. case 2: {
  231. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  232. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  233. parse_lastTime:
  234. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  235. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  236. input, &lasttime_)));
  237. set_has_lasttime();
  238. } else {
  239. goto handle_uninterpreted;
  240. }
  241. if (input->ExpectAtEnd()) return true;
  242. break;
  243. }
  244. default: {
  245. handle_uninterpreted:
  246. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  247. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  248. return true;
  249. }
  250. DO_(::google::protobuf::internal::WireFormat::SkipField(
  251. input, tag, mutable_unknown_fields()));
  252. break;
  253. }
  254. }
  255. }
  256. return true;
  257. #undef DO_
  258. }
  259. void packetc2w_req_notice::SerializeWithCachedSizes(
  260. ::google::protobuf::io::CodedOutputStream* output) const {
  261. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_notice];
  262. if (has_packet_id()) {
  263. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  264. 1, this->packet_id(), output);
  265. }
  266. // optional int32 lastTime = 2;
  267. if (has_lasttime()) {
  268. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->lasttime(), output);
  269. }
  270. if (!unknown_fields().empty()) {
  271. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  272. unknown_fields(), output);
  273. }
  274. }
  275. ::google::protobuf::uint8* packetc2w_req_notice::SerializeWithCachedSizesToArray(
  276. ::google::protobuf::uint8* target) const {
  277. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_notice];
  278. if (has_packet_id()) {
  279. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  280. 1, this->packet_id(), target);
  281. }
  282. // optional int32 lastTime = 2;
  283. if (has_lasttime()) {
  284. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->lasttime(), target);
  285. }
  286. if (!unknown_fields().empty()) {
  287. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  288. unknown_fields(), target);
  289. }
  290. return target;
  291. }
  292. int packetc2w_req_notice::ByteSize() const {
  293. int total_size = 0;
  294. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  295. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_notice];
  296. if (has_packet_id()) {
  297. total_size += 1 +
  298. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  299. }
  300. // optional int32 lastTime = 2;
  301. if (has_lasttime()) {
  302. total_size += 1 +
  303. ::google::protobuf::internal::WireFormatLite::Int32Size(
  304. this->lasttime());
  305. }
  306. }
  307. if (!unknown_fields().empty()) {
  308. total_size +=
  309. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  310. unknown_fields());
  311. }
  312. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  313. _cached_size_ = total_size;
  314. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  315. return total_size;
  316. }
  317. void packetc2w_req_notice::MergeFrom(const ::google::protobuf::Message& from) {
  318. GOOGLE_CHECK_NE(&from, this);
  319. const packetc2w_req_notice* source =
  320. ::google::protobuf::internal::dynamic_cast_if_available<const packetc2w_req_notice*>(
  321. &from);
  322. if (source == NULL) {
  323. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  324. } else {
  325. MergeFrom(*source);
  326. }
  327. }
  328. void packetc2w_req_notice::MergeFrom(const packetc2w_req_notice& from) {
  329. GOOGLE_CHECK_NE(&from, this);
  330. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  331. if (from.has_packet_id()) {
  332. set_packet_id(from.packet_id());
  333. }
  334. if (from.has_lasttime()) {
  335. set_lasttime(from.lasttime());
  336. }
  337. }
  338. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  339. }
  340. void packetc2w_req_notice::CopyFrom(const ::google::protobuf::Message& from) {
  341. if (&from == this) return;
  342. Clear();
  343. MergeFrom(from);
  344. }
  345. void packetc2w_req_notice::CopyFrom(const packetc2w_req_notice& from) {
  346. if (&from == this) return;
  347. Clear();
  348. MergeFrom(from);
  349. }
  350. bool packetc2w_req_notice::IsInitialized() const {
  351. return true;
  352. }
  353. void packetc2w_req_notice::Swap(packetc2w_req_notice* other) {
  354. if (other != this) {
  355. std::swap(packet_id_, other->packet_id_);
  356. std::swap(lasttime_, other->lasttime_);
  357. std::swap(_has_bits_[0], other->_has_bits_[0]);
  358. _unknown_fields_.Swap(&other->_unknown_fields_);
  359. std::swap(_cached_size_, other->_cached_size_);
  360. }
  361. }
  362. ::google::protobuf::Metadata packetc2w_req_notice::GetMetadata() const {
  363. protobuf_AssignDescriptorsOnce();
  364. ::google::protobuf::Metadata metadata;
  365. metadata.descriptor = packetc2w_req_notice_descriptor_;
  366. metadata.reflection = packetc2w_req_notice_reflection_;
  367. return metadata;
  368. }
  369. // ===================================================================
  370. #ifndef _MSC_VER
  371. const int NoticeInfo::kGenTimeFieldNumber;
  372. const int NoticeInfo::kDeadTimeFieldNumber;
  373. const int NoticeInfo::kTypeFieldNumber;
  374. const int NoticeInfo::kTitleFieldNumber;
  375. const int NoticeInfo::kContentFieldNumber;
  376. const int NoticeInfo::kOrderFieldNumber;
  377. #endif // !_MSC_VER
  378. NoticeInfo::NoticeInfo()
  379. : ::google::protobuf::Message() {
  380. SharedCtor();
  381. }
  382. void NoticeInfo::InitAsDefaultInstance() {
  383. }
  384. NoticeInfo::NoticeInfo(const NoticeInfo& from)
  385. : ::google::protobuf::Message() {
  386. SharedCtor();
  387. MergeFrom(from);
  388. }
  389. void NoticeInfo::SharedCtor() {
  390. _cached_size_ = 0;
  391. gentime_ = 0;
  392. deadtime_ = 0;
  393. type_ = 0;
  394. title_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  395. content_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  396. order_ = 0;
  397. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  398. }
  399. NoticeInfo::~NoticeInfo() {
  400. SharedDtor();
  401. }
  402. void NoticeInfo::SharedDtor() {
  403. if (title_ != &::google::protobuf::internal::kEmptyString) {
  404. delete title_;
  405. }
  406. if (content_ != &::google::protobuf::internal::kEmptyString) {
  407. delete content_;
  408. }
  409. if (this != default_instance_) {
  410. }
  411. }
  412. void NoticeInfo::SetCachedSize(int size) const {
  413. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  414. _cached_size_ = size;
  415. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  416. }
  417. const ::google::protobuf::Descriptor* NoticeInfo::descriptor() {
  418. protobuf_AssignDescriptorsOnce();
  419. return NoticeInfo_descriptor_;
  420. }
  421. const NoticeInfo& NoticeInfo::default_instance() {
  422. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fnotice_2eproto();
  423. return *default_instance_;
  424. }
  425. NoticeInfo* NoticeInfo::default_instance_ = NULL;
  426. NoticeInfo* NoticeInfo::New() const {
  427. return new NoticeInfo;
  428. }
  429. void NoticeInfo::Clear() {
  430. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  431. gentime_ = 0;
  432. deadtime_ = 0;
  433. type_ = 0;
  434. if (has_title()) {
  435. if (title_ != &::google::protobuf::internal::kEmptyString) {
  436. title_->clear();
  437. }
  438. }
  439. if (has_content()) {
  440. if (content_ != &::google::protobuf::internal::kEmptyString) {
  441. content_->clear();
  442. }
  443. }
  444. order_ = 0;
  445. }
  446. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  447. mutable_unknown_fields()->Clear();
  448. }
  449. bool NoticeInfo::MergePartialFromCodedStream(
  450. ::google::protobuf::io::CodedInputStream* input) {
  451. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  452. ::google::protobuf::uint32 tag;
  453. while ((tag = input->ReadTag()) != 0) {
  454. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  455. // optional int32 genTime = 1;
  456. case 1: {
  457. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  458. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  459. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  460. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  461. input, &gentime_)));
  462. set_has_gentime();
  463. } else {
  464. goto handle_uninterpreted;
  465. }
  466. if (input->ExpectTag(16)) goto parse_deadTime;
  467. break;
  468. }
  469. // optional int32 deadTime = 2;
  470. case 2: {
  471. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  472. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  473. parse_deadTime:
  474. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  475. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  476. input, &deadtime_)));
  477. set_has_deadtime();
  478. } else {
  479. goto handle_uninterpreted;
  480. }
  481. if (input->ExpectTag(24)) goto parse_type;
  482. break;
  483. }
  484. // optional int32 type = 3;
  485. case 3: {
  486. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  487. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  488. parse_type:
  489. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  490. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  491. input, &type_)));
  492. set_has_type();
  493. } else {
  494. goto handle_uninterpreted;
  495. }
  496. if (input->ExpectTag(34)) goto parse_title;
  497. break;
  498. }
  499. // optional string title = 4;
  500. case 4: {
  501. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  502. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  503. parse_title:
  504. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  505. input, this->mutable_title()));
  506. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  507. this->title().data(), this->title().length(),
  508. ::google::protobuf::internal::WireFormat::PARSE);
  509. } else {
  510. goto handle_uninterpreted;
  511. }
  512. if (input->ExpectTag(42)) goto parse_content;
  513. break;
  514. }
  515. // optional string content = 5;
  516. case 5: {
  517. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  518. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  519. parse_content:
  520. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  521. input, this->mutable_content()));
  522. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  523. this->content().data(), this->content().length(),
  524. ::google::protobuf::internal::WireFormat::PARSE);
  525. } else {
  526. goto handle_uninterpreted;
  527. }
  528. if (input->ExpectTag(48)) goto parse_order;
  529. break;
  530. }
  531. // optional int32 order = 6;
  532. case 6: {
  533. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  534. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  535. parse_order:
  536. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  537. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  538. input, &order_)));
  539. set_has_order();
  540. } else {
  541. goto handle_uninterpreted;
  542. }
  543. if (input->ExpectAtEnd()) return true;
  544. break;
  545. }
  546. default: {
  547. handle_uninterpreted:
  548. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  549. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  550. return true;
  551. }
  552. DO_(::google::protobuf::internal::WireFormat::SkipField(
  553. input, tag, mutable_unknown_fields()));
  554. break;
  555. }
  556. }
  557. }
  558. return true;
  559. #undef DO_
  560. }
  561. void NoticeInfo::SerializeWithCachedSizes(
  562. ::google::protobuf::io::CodedOutputStream* output) const {
  563. // optional int32 genTime = 1;
  564. if (has_gentime()) {
  565. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->gentime(), output);
  566. }
  567. // optional int32 deadTime = 2;
  568. if (has_deadtime()) {
  569. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->deadtime(), output);
  570. }
  571. // optional int32 type = 3;
  572. if (has_type()) {
  573. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->type(), output);
  574. }
  575. // optional string title = 4;
  576. if (has_title()) {
  577. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  578. this->title().data(), this->title().length(),
  579. ::google::protobuf::internal::WireFormat::SERIALIZE);
  580. ::google::protobuf::internal::WireFormatLite::WriteString(
  581. 4, this->title(), output);
  582. }
  583. // optional string content = 5;
  584. if (has_content()) {
  585. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  586. this->content().data(), this->content().length(),
  587. ::google::protobuf::internal::WireFormat::SERIALIZE);
  588. ::google::protobuf::internal::WireFormatLite::WriteString(
  589. 5, this->content(), output);
  590. }
  591. // optional int32 order = 6;
  592. if (has_order()) {
  593. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->order(), output);
  594. }
  595. if (!unknown_fields().empty()) {
  596. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  597. unknown_fields(), output);
  598. }
  599. }
  600. ::google::protobuf::uint8* NoticeInfo::SerializeWithCachedSizesToArray(
  601. ::google::protobuf::uint8* target) const {
  602. // optional int32 genTime = 1;
  603. if (has_gentime()) {
  604. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->gentime(), target);
  605. }
  606. // optional int32 deadTime = 2;
  607. if (has_deadtime()) {
  608. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->deadtime(), target);
  609. }
  610. // optional int32 type = 3;
  611. if (has_type()) {
  612. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->type(), target);
  613. }
  614. // optional string title = 4;
  615. if (has_title()) {
  616. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  617. this->title().data(), this->title().length(),
  618. ::google::protobuf::internal::WireFormat::SERIALIZE);
  619. target =
  620. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  621. 4, this->title(), target);
  622. }
  623. // optional string content = 5;
  624. if (has_content()) {
  625. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  626. this->content().data(), this->content().length(),
  627. ::google::protobuf::internal::WireFormat::SERIALIZE);
  628. target =
  629. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  630. 5, this->content(), target);
  631. }
  632. // optional int32 order = 6;
  633. if (has_order()) {
  634. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->order(), target);
  635. }
  636. if (!unknown_fields().empty()) {
  637. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  638. unknown_fields(), target);
  639. }
  640. return target;
  641. }
  642. int NoticeInfo::ByteSize() const {
  643. int total_size = 0;
  644. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  645. // optional int32 genTime = 1;
  646. if (has_gentime()) {
  647. total_size += 1 +
  648. ::google::protobuf::internal::WireFormatLite::Int32Size(
  649. this->gentime());
  650. }
  651. // optional int32 deadTime = 2;
  652. if (has_deadtime()) {
  653. total_size += 1 +
  654. ::google::protobuf::internal::WireFormatLite::Int32Size(
  655. this->deadtime());
  656. }
  657. // optional int32 type = 3;
  658. if (has_type()) {
  659. total_size += 1 +
  660. ::google::protobuf::internal::WireFormatLite::Int32Size(
  661. this->type());
  662. }
  663. // optional string title = 4;
  664. if (has_title()) {
  665. total_size += 1 +
  666. ::google::protobuf::internal::WireFormatLite::StringSize(
  667. this->title());
  668. }
  669. // optional string content = 5;
  670. if (has_content()) {
  671. total_size += 1 +
  672. ::google::protobuf::internal::WireFormatLite::StringSize(
  673. this->content());
  674. }
  675. // optional int32 order = 6;
  676. if (has_order()) {
  677. total_size += 1 +
  678. ::google::protobuf::internal::WireFormatLite::Int32Size(
  679. this->order());
  680. }
  681. }
  682. if (!unknown_fields().empty()) {
  683. total_size +=
  684. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  685. unknown_fields());
  686. }
  687. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  688. _cached_size_ = total_size;
  689. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  690. return total_size;
  691. }
  692. void NoticeInfo::MergeFrom(const ::google::protobuf::Message& from) {
  693. GOOGLE_CHECK_NE(&from, this);
  694. const NoticeInfo* source =
  695. ::google::protobuf::internal::dynamic_cast_if_available<const NoticeInfo*>(
  696. &from);
  697. if (source == NULL) {
  698. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  699. } else {
  700. MergeFrom(*source);
  701. }
  702. }
  703. void NoticeInfo::MergeFrom(const NoticeInfo& from) {
  704. GOOGLE_CHECK_NE(&from, this);
  705. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  706. if (from.has_gentime()) {
  707. set_gentime(from.gentime());
  708. }
  709. if (from.has_deadtime()) {
  710. set_deadtime(from.deadtime());
  711. }
  712. if (from.has_type()) {
  713. set_type(from.type());
  714. }
  715. if (from.has_title()) {
  716. set_title(from.title());
  717. }
  718. if (from.has_content()) {
  719. set_content(from.content());
  720. }
  721. if (from.has_order()) {
  722. set_order(from.order());
  723. }
  724. }
  725. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  726. }
  727. void NoticeInfo::CopyFrom(const ::google::protobuf::Message& from) {
  728. if (&from == this) return;
  729. Clear();
  730. MergeFrom(from);
  731. }
  732. void NoticeInfo::CopyFrom(const NoticeInfo& from) {
  733. if (&from == this) return;
  734. Clear();
  735. MergeFrom(from);
  736. }
  737. bool NoticeInfo::IsInitialized() const {
  738. return true;
  739. }
  740. void NoticeInfo::Swap(NoticeInfo* other) {
  741. if (other != this) {
  742. std::swap(gentime_, other->gentime_);
  743. std::swap(deadtime_, other->deadtime_);
  744. std::swap(type_, other->type_);
  745. std::swap(title_, other->title_);
  746. std::swap(content_, other->content_);
  747. std::swap(order_, other->order_);
  748. std::swap(_has_bits_[0], other->_has_bits_[0]);
  749. _unknown_fields_.Swap(&other->_unknown_fields_);
  750. std::swap(_cached_size_, other->_cached_size_);
  751. }
  752. }
  753. ::google::protobuf::Metadata NoticeInfo::GetMetadata() const {
  754. protobuf_AssignDescriptorsOnce();
  755. ::google::protobuf::Metadata metadata;
  756. metadata.descriptor = NoticeInfo_descriptor_;
  757. metadata.reflection = NoticeInfo_reflection_;
  758. return metadata;
  759. }
  760. // ===================================================================
  761. #ifndef _MSC_VER
  762. const int packetw2c_req_notice_result::kPacketIdFieldNumber;
  763. const int packetw2c_req_notice_result::kInfoListFieldNumber;
  764. const int packetw2c_req_notice_result::kLastTimeFieldNumber;
  765. #endif // !_MSC_VER
  766. packetw2c_req_notice_result::packetw2c_req_notice_result()
  767. : ::google::protobuf::Message() {
  768. SharedCtor();
  769. }
  770. void packetw2c_req_notice_result::InitAsDefaultInstance() {
  771. }
  772. packetw2c_req_notice_result::packetw2c_req_notice_result(const packetw2c_req_notice_result& from)
  773. : ::google::protobuf::Message() {
  774. SharedCtor();
  775. MergeFrom(from);
  776. }
  777. void packetw2c_req_notice_result::SharedCtor() {
  778. _cached_size_ = 0;
  779. packet_id_ = 7540;
  780. lasttime_ = 0;
  781. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  782. }
  783. packetw2c_req_notice_result::~packetw2c_req_notice_result() {
  784. SharedDtor();
  785. }
  786. void packetw2c_req_notice_result::SharedDtor() {
  787. if (this != default_instance_) {
  788. }
  789. }
  790. void packetw2c_req_notice_result::SetCachedSize(int size) const {
  791. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  792. _cached_size_ = size;
  793. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  794. }
  795. const ::google::protobuf::Descriptor* packetw2c_req_notice_result::descriptor() {
  796. protobuf_AssignDescriptorsOnce();
  797. return packetw2c_req_notice_result_descriptor_;
  798. }
  799. const packetw2c_req_notice_result& packetw2c_req_notice_result::default_instance() {
  800. if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fnotice_2eproto();
  801. return *default_instance_;
  802. }
  803. packetw2c_req_notice_result* packetw2c_req_notice_result::default_instance_ = NULL;
  804. packetw2c_req_notice_result* packetw2c_req_notice_result::New() const {
  805. return new packetw2c_req_notice_result;
  806. }
  807. void packetw2c_req_notice_result::Clear() {
  808. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  809. packet_id_ = 7540;
  810. lasttime_ = 0;
  811. }
  812. infolist_.Clear();
  813. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  814. mutable_unknown_fields()->Clear();
  815. }
  816. bool packetw2c_req_notice_result::MergePartialFromCodedStream(
  817. ::google::protobuf::io::CodedInputStream* input) {
  818. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  819. ::google::protobuf::uint32 tag;
  820. while ((tag = input->ReadTag()) != 0) {
  821. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  822. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_notice_result];
  823. case 1: {
  824. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  825. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  826. int value;
  827. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  828. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  829. input, &value)));
  830. if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
  831. set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
  832. } else {
  833. mutable_unknown_fields()->AddVarint(1, value);
  834. }
  835. } else {
  836. goto handle_uninterpreted;
  837. }
  838. if (input->ExpectTag(18)) goto parse_infoList;
  839. break;
  840. }
  841. // repeated .client2world_protocols.NoticeInfo infoList = 2;
  842. case 2: {
  843. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  844. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  845. parse_infoList:
  846. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  847. input, add_infolist()));
  848. } else {
  849. goto handle_uninterpreted;
  850. }
  851. if (input->ExpectTag(18)) goto parse_infoList;
  852. if (input->ExpectTag(24)) goto parse_lastTime;
  853. break;
  854. }
  855. // optional int32 lastTime = 3;
  856. case 3: {
  857. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  858. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  859. parse_lastTime:
  860. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  861. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  862. input, &lasttime_)));
  863. set_has_lasttime();
  864. } else {
  865. goto handle_uninterpreted;
  866. }
  867. if (input->ExpectAtEnd()) return true;
  868. break;
  869. }
  870. default: {
  871. handle_uninterpreted:
  872. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  873. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  874. return true;
  875. }
  876. DO_(::google::protobuf::internal::WireFormat::SkipField(
  877. input, tag, mutable_unknown_fields()));
  878. break;
  879. }
  880. }
  881. }
  882. return true;
  883. #undef DO_
  884. }
  885. void packetw2c_req_notice_result::SerializeWithCachedSizes(
  886. ::google::protobuf::io::CodedOutputStream* output) const {
  887. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_notice_result];
  888. if (has_packet_id()) {
  889. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  890. 1, this->packet_id(), output);
  891. }
  892. // repeated .client2world_protocols.NoticeInfo infoList = 2;
  893. for (int i = 0; i < this->infolist_size(); i++) {
  894. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  895. 2, this->infolist(i), output);
  896. }
  897. // optional int32 lastTime = 3;
  898. if (has_lasttime()) {
  899. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->lasttime(), output);
  900. }
  901. if (!unknown_fields().empty()) {
  902. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  903. unknown_fields(), output);
  904. }
  905. }
  906. ::google::protobuf::uint8* packetw2c_req_notice_result::SerializeWithCachedSizesToArray(
  907. ::google::protobuf::uint8* target) const {
  908. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_notice_result];
  909. if (has_packet_id()) {
  910. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  911. 1, this->packet_id(), target);
  912. }
  913. // repeated .client2world_protocols.NoticeInfo infoList = 2;
  914. for (int i = 0; i < this->infolist_size(); i++) {
  915. target = ::google::protobuf::internal::WireFormatLite::
  916. WriteMessageNoVirtualToArray(
  917. 2, this->infolist(i), target);
  918. }
  919. // optional int32 lastTime = 3;
  920. if (has_lasttime()) {
  921. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->lasttime(), target);
  922. }
  923. if (!unknown_fields().empty()) {
  924. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  925. unknown_fields(), target);
  926. }
  927. return target;
  928. }
  929. int packetw2c_req_notice_result::ByteSize() const {
  930. int total_size = 0;
  931. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  932. // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_notice_result];
  933. if (has_packet_id()) {
  934. total_size += 1 +
  935. ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
  936. }
  937. // optional int32 lastTime = 3;
  938. if (has_lasttime()) {
  939. total_size += 1 +
  940. ::google::protobuf::internal::WireFormatLite::Int32Size(
  941. this->lasttime());
  942. }
  943. }
  944. // repeated .client2world_protocols.NoticeInfo infoList = 2;
  945. total_size += 1 * this->infolist_size();
  946. for (int i = 0; i < this->infolist_size(); i++) {
  947. total_size +=
  948. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  949. this->infolist(i));
  950. }
  951. if (!unknown_fields().empty()) {
  952. total_size +=
  953. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  954. unknown_fields());
  955. }
  956. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  957. _cached_size_ = total_size;
  958. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  959. return total_size;
  960. }
  961. void packetw2c_req_notice_result::MergeFrom(const ::google::protobuf::Message& from) {
  962. GOOGLE_CHECK_NE(&from, this);
  963. const packetw2c_req_notice_result* source =
  964. ::google::protobuf::internal::dynamic_cast_if_available<const packetw2c_req_notice_result*>(
  965. &from);
  966. if (source == NULL) {
  967. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  968. } else {
  969. MergeFrom(*source);
  970. }
  971. }
  972. void packetw2c_req_notice_result::MergeFrom(const packetw2c_req_notice_result& from) {
  973. GOOGLE_CHECK_NE(&from, this);
  974. infolist_.MergeFrom(from.infolist_);
  975. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  976. if (from.has_packet_id()) {
  977. set_packet_id(from.packet_id());
  978. }
  979. if (from.has_lasttime()) {
  980. set_lasttime(from.lasttime());
  981. }
  982. }
  983. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  984. }
  985. void packetw2c_req_notice_result::CopyFrom(const ::google::protobuf::Message& from) {
  986. if (&from == this) return;
  987. Clear();
  988. MergeFrom(from);
  989. }
  990. void packetw2c_req_notice_result::CopyFrom(const packetw2c_req_notice_result& from) {
  991. if (&from == this) return;
  992. Clear();
  993. MergeFrom(from);
  994. }
  995. bool packetw2c_req_notice_result::IsInitialized() const {
  996. return true;
  997. }
  998. void packetw2c_req_notice_result::Swap(packetw2c_req_notice_result* other) {
  999. if (other != this) {
  1000. std::swap(packet_id_, other->packet_id_);
  1001. infolist_.Swap(&other->infolist_);
  1002. std::swap(lasttime_, other->lasttime_);
  1003. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1004. _unknown_fields_.Swap(&other->_unknown_fields_);
  1005. std::swap(_cached_size_, other->_cached_size_);
  1006. }
  1007. }
  1008. ::google::protobuf::Metadata packetw2c_req_notice_result::GetMetadata() const {
  1009. protobuf_AssignDescriptorsOnce();
  1010. ::google::protobuf::Metadata metadata;
  1011. metadata.descriptor = packetw2c_req_notice_result_descriptor_;
  1012. metadata.reflection = packetw2c_req_notice_result_reflection_;
  1013. return metadata;
  1014. }
  1015. // @@protoc_insertion_point(namespace_scope)
  1016. } // namespace client2world_protocols
  1017. // @@protoc_insertion_point(global_scope)