1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: client2world_notice.proto
- #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
- #include "client2world_notice.pb.h"
- #include <algorithm>
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/stubs/once.h>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/wire_format_lite_inl.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // @@protoc_insertion_point(includes)
- namespace client2world_protocols {
- namespace {
- const ::google::protobuf::Descriptor* packetc2w_req_notice_descriptor_ = NULL;
- const ::google::protobuf::internal::GeneratedMessageReflection*
- packetc2w_req_notice_reflection_ = NULL;
- const ::google::protobuf::Descriptor* NoticeInfo_descriptor_ = NULL;
- const ::google::protobuf::internal::GeneratedMessageReflection*
- NoticeInfo_reflection_ = NULL;
- const ::google::protobuf::Descriptor* packetw2c_req_notice_result_descriptor_ = NULL;
- const ::google::protobuf::internal::GeneratedMessageReflection*
- packetw2c_req_notice_result_reflection_ = NULL;
- } // namespace
- void protobuf_AssignDesc_client2world_5fnotice_2eproto() {
- protobuf_AddDesc_client2world_5fnotice_2eproto();
- const ::google::protobuf::FileDescriptor* file =
- ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
- "client2world_notice.proto");
- GOOGLE_CHECK(file != NULL);
- packetc2w_req_notice_descriptor_ = file->message_type(0);
- static const int packetc2w_req_notice_offsets_[2] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_notice, packet_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_notice, lasttime_),
- };
- packetc2w_req_notice_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- packetc2w_req_notice_descriptor_,
- packetc2w_req_notice::default_instance_,
- packetc2w_req_notice_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_notice, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_notice, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(packetc2w_req_notice));
- NoticeInfo_descriptor_ = file->message_type(1);
- static const int NoticeInfo_offsets_[6] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NoticeInfo, gentime_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NoticeInfo, deadtime_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NoticeInfo, type_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NoticeInfo, title_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NoticeInfo, content_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NoticeInfo, order_),
- };
- NoticeInfo_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- NoticeInfo_descriptor_,
- NoticeInfo::default_instance_,
- NoticeInfo_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NoticeInfo, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NoticeInfo, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(NoticeInfo));
- packetw2c_req_notice_result_descriptor_ = file->message_type(2);
- static const int packetw2c_req_notice_result_offsets_[3] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_notice_result, packet_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_notice_result, infolist_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_notice_result, lasttime_),
- };
- packetw2c_req_notice_result_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- packetw2c_req_notice_result_descriptor_,
- packetw2c_req_notice_result::default_instance_,
- packetw2c_req_notice_result_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_notice_result, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_notice_result, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(packetw2c_req_notice_result));
- }
- namespace {
- GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
- inline void protobuf_AssignDescriptorsOnce() {
- ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
- &protobuf_AssignDesc_client2world_5fnotice_2eproto);
- }
- void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- packetc2w_req_notice_descriptor_, &packetc2w_req_notice::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- NoticeInfo_descriptor_, &NoticeInfo::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- packetw2c_req_notice_result_descriptor_, &packetw2c_req_notice_result::default_instance());
- }
- } // namespace
- void protobuf_ShutdownFile_client2world_5fnotice_2eproto() {
- delete packetc2w_req_notice::default_instance_;
- delete packetc2w_req_notice_reflection_;
- delete NoticeInfo::default_instance_;
- delete NoticeInfo_reflection_;
- delete packetw2c_req_notice_result::default_instance_;
- delete packetw2c_req_notice_result_reflection_;
- }
- void protobuf_AddDesc_client2world_5fnotice_2eproto() {
- static bool already_here = false;
- if (already_here) return;
- already_here = true;
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- ::client2world_protocols::protobuf_AddDesc_client2world_5fmsg_5ftype_2eproto();
- ::msg_type_def::protobuf_AddDesc_msg_5ftype_5fdef_2eproto();
- ::msg_info_def::protobuf_AddDesc_msg_5finfo_5fdef_2eproto();
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- "\n\031client2world_notice.proto\022\026client2worl"
- "d_protocols\032\033client2world_msg_type.proto"
- "\032\022msg_type_def.proto\032\022msg_info_def.proto"
- "\"|\n\024packetc2w_req_notice\022R\n\tpacket_id\030\001 "
- "\001(\0162).client2world_protocols.e_server_ms"
- "g_type:\024e_mst_c2w_req_notice\022\020\n\010lastTime"
- "\030\002 \001(\005\"l\n\nNoticeInfo\022\017\n\007genTime\030\001 \001(\005\022\020\n"
- "\010deadTime\030\002 \001(\005\022\014\n\004type\030\003 \001(\005\022\r\n\005title\030\004"
- " \001(\t\022\017\n\007content\030\005 \001(\t\022\r\n\005order\030\006 \001(\005\"\300\001\n"
- "\033packetw2c_req_notice_result\022Y\n\tpacket_i"
- "d\030\001 \001(\0162).client2world_protocols.e_serve"
- "r_msg_type:\033e_mst_w2c_req_notice_result\022"
- "4\n\010infoList\030\002 \003(\0132\".client2world_protoco"
- "ls.NoticeInfo\022\020\n\010lastTime\030\003 \001(\005", 551);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "client2world_notice.proto", &protobuf_RegisterTypes);
- packetc2w_req_notice::default_instance_ = new packetc2w_req_notice();
- NoticeInfo::default_instance_ = new NoticeInfo();
- packetw2c_req_notice_result::default_instance_ = new packetw2c_req_notice_result();
- packetc2w_req_notice::default_instance_->InitAsDefaultInstance();
- NoticeInfo::default_instance_->InitAsDefaultInstance();
- packetw2c_req_notice_result::default_instance_->InitAsDefaultInstance();
- ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_client2world_5fnotice_2eproto);
- }
- // Force AddDescriptors() to be called at static initialization time.
- struct StaticDescriptorInitializer_client2world_5fnotice_2eproto {
- StaticDescriptorInitializer_client2world_5fnotice_2eproto() {
- protobuf_AddDesc_client2world_5fnotice_2eproto();
- }
- } static_descriptor_initializer_client2world_5fnotice_2eproto_;
- // ===================================================================
- #ifndef _MSC_VER
- const int packetc2w_req_notice::kPacketIdFieldNumber;
- const int packetc2w_req_notice::kLastTimeFieldNumber;
- #endif // !_MSC_VER
- packetc2w_req_notice::packetc2w_req_notice()
- : ::google::protobuf::Message() {
- SharedCtor();
- }
- void packetc2w_req_notice::InitAsDefaultInstance() {
- }
- packetc2w_req_notice::packetc2w_req_notice(const packetc2w_req_notice& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
- }
- void packetc2w_req_notice::SharedCtor() {
- _cached_size_ = 0;
- packet_id_ = 5038;
- lasttime_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- }
- packetc2w_req_notice::~packetc2w_req_notice() {
- SharedDtor();
- }
- void packetc2w_req_notice::SharedDtor() {
- if (this != default_instance_) {
- }
- }
- void packetc2w_req_notice::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* packetc2w_req_notice::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return packetc2w_req_notice_descriptor_;
- }
- const packetc2w_req_notice& packetc2w_req_notice::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fnotice_2eproto();
- return *default_instance_;
- }
- packetc2w_req_notice* packetc2w_req_notice::default_instance_ = NULL;
- packetc2w_req_notice* packetc2w_req_notice::New() const {
- return new packetc2w_req_notice;
- }
- void packetc2w_req_notice::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- packet_id_ = 5038;
- lasttime_ = 0;
- }
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
- }
- bool packetc2w_req_notice::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
- ::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_notice];
- case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- int value;
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
- input, &value)));
- if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
- set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
- } else {
- mutable_unknown_fields()->AddVarint(1, value);
- }
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(16)) goto parse_lastTime;
- break;
- }
- // optional int32 lastTime = 2;
- case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_lastTime:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &lasttime_)));
- set_has_lasttime();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectAtEnd()) return true;
- break;
- }
- default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
- break;
- }
- }
- }
- return true;
- #undef DO_
- }
- void packetc2w_req_notice::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_notice];
- if (has_packet_id()) {
- ::google::protobuf::internal::WireFormatLite::WriteEnum(
- 1, this->packet_id(), output);
- }
- // optional int32 lastTime = 2;
- if (has_lasttime()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->lasttime(), output);
- }
- if (!unknown_fields().empty()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
- }
- }
- ::google::protobuf::uint8* packetc2w_req_notice::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
- // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_notice];
- if (has_packet_id()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 1, this->packet_id(), target);
- }
- // optional int32 lastTime = 2;
- if (has_lasttime()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->lasttime(), target);
- }
- if (!unknown_fields().empty()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
- }
- return target;
- }
- int packetc2w_req_notice::ByteSize() const {
- int total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_notice];
- if (has_packet_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
- }
- // optional int32 lastTime = 2;
- if (has_lasttime()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->lasttime());
- }
- }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void packetc2w_req_notice::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
- const packetc2w_req_notice* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const packetc2w_req_notice*>(
- &from);
- if (source == NULL) {
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- MergeFrom(*source);
- }
- }
- void packetc2w_req_notice::MergeFrom(const packetc2w_req_notice& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_packet_id()) {
- set_packet_id(from.packet_id());
- }
- if (from.has_lasttime()) {
- set_lasttime(from.lasttime());
- }
- }
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
- }
- void packetc2w_req_notice::CopyFrom(const ::google::protobuf::Message& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void packetc2w_req_notice::CopyFrom(const packetc2w_req_notice& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool packetc2w_req_notice::IsInitialized() const {
- return true;
- }
- void packetc2w_req_notice::Swap(packetc2w_req_notice* other) {
- if (other != this) {
- std::swap(packet_id_, other->packet_id_);
- std::swap(lasttime_, other->lasttime_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
- }
- ::google::protobuf::Metadata packetc2w_req_notice::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = packetc2w_req_notice_descriptor_;
- metadata.reflection = packetc2w_req_notice_reflection_;
- return metadata;
- }
- // ===================================================================
- #ifndef _MSC_VER
- const int NoticeInfo::kGenTimeFieldNumber;
- const int NoticeInfo::kDeadTimeFieldNumber;
- const int NoticeInfo::kTypeFieldNumber;
- const int NoticeInfo::kTitleFieldNumber;
- const int NoticeInfo::kContentFieldNumber;
- const int NoticeInfo::kOrderFieldNumber;
- #endif // !_MSC_VER
- NoticeInfo::NoticeInfo()
- : ::google::protobuf::Message() {
- SharedCtor();
- }
- void NoticeInfo::InitAsDefaultInstance() {
- }
- NoticeInfo::NoticeInfo(const NoticeInfo& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
- }
- void NoticeInfo::SharedCtor() {
- _cached_size_ = 0;
- gentime_ = 0;
- deadtime_ = 0;
- type_ = 0;
- title_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- content_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- order_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- }
- NoticeInfo::~NoticeInfo() {
- SharedDtor();
- }
- void NoticeInfo::SharedDtor() {
- if (title_ != &::google::protobuf::internal::kEmptyString) {
- delete title_;
- }
- if (content_ != &::google::protobuf::internal::kEmptyString) {
- delete content_;
- }
- if (this != default_instance_) {
- }
- }
- void NoticeInfo::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* NoticeInfo::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return NoticeInfo_descriptor_;
- }
- const NoticeInfo& NoticeInfo::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fnotice_2eproto();
- return *default_instance_;
- }
- NoticeInfo* NoticeInfo::default_instance_ = NULL;
- NoticeInfo* NoticeInfo::New() const {
- return new NoticeInfo;
- }
- void NoticeInfo::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- gentime_ = 0;
- deadtime_ = 0;
- type_ = 0;
- if (has_title()) {
- if (title_ != &::google::protobuf::internal::kEmptyString) {
- title_->clear();
- }
- }
- if (has_content()) {
- if (content_ != &::google::protobuf::internal::kEmptyString) {
- content_->clear();
- }
- }
- order_ = 0;
- }
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
- }
- bool NoticeInfo::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
- ::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional int32 genTime = 1;
- case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &gentime_)));
- set_has_gentime();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(16)) goto parse_deadTime;
- break;
- }
- // optional int32 deadTime = 2;
- case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_deadTime:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &deadtime_)));
- set_has_deadtime();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(24)) goto parse_type;
- break;
- }
- // optional int32 type = 3;
- case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_type:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &type_)));
- set_has_type();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(34)) goto parse_title;
- break;
- }
- // optional string title = 4;
- case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_title:
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_title()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->title().data(), this->title().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(42)) goto parse_content;
- break;
- }
- // optional string content = 5;
- case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_content:
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_content()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->content().data(), this->content().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(48)) goto parse_order;
- break;
- }
- // optional int32 order = 6;
- case 6: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_order:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &order_)));
- set_has_order();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectAtEnd()) return true;
- break;
- }
- default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
- break;
- }
- }
- }
- return true;
- #undef DO_
- }
- void NoticeInfo::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // optional int32 genTime = 1;
- if (has_gentime()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->gentime(), output);
- }
- // optional int32 deadTime = 2;
- if (has_deadtime()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->deadtime(), output);
- }
- // optional int32 type = 3;
- if (has_type()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->type(), output);
- }
- // optional string title = 4;
- if (has_title()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->title().data(), this->title().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
- 4, this->title(), output);
- }
- // optional string content = 5;
- if (has_content()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->content().data(), this->content().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
- 5, this->content(), output);
- }
- // optional int32 order = 6;
- if (has_order()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->order(), output);
- }
- if (!unknown_fields().empty()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
- }
- }
- ::google::protobuf::uint8* NoticeInfo::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
- // optional int32 genTime = 1;
- if (has_gentime()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->gentime(), target);
- }
- // optional int32 deadTime = 2;
- if (has_deadtime()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->deadtime(), target);
- }
- // optional int32 type = 3;
- if (has_type()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->type(), target);
- }
- // optional string title = 4;
- if (has_title()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->title().data(), this->title().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 4, this->title(), target);
- }
- // optional string content = 5;
- if (has_content()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->content().data(), this->content().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 5, this->content(), target);
- }
- // optional int32 order = 6;
- if (has_order()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->order(), target);
- }
- if (!unknown_fields().empty()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
- }
- return target;
- }
- int NoticeInfo::ByteSize() const {
- int total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional int32 genTime = 1;
- if (has_gentime()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->gentime());
- }
- // optional int32 deadTime = 2;
- if (has_deadtime()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->deadtime());
- }
- // optional int32 type = 3;
- if (has_type()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->type());
- }
- // optional string title = 4;
- if (has_title()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->title());
- }
- // optional string content = 5;
- if (has_content()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->content());
- }
- // optional int32 order = 6;
- if (has_order()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->order());
- }
- }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void NoticeInfo::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
- const NoticeInfo* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const NoticeInfo*>(
- &from);
- if (source == NULL) {
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- MergeFrom(*source);
- }
- }
- void NoticeInfo::MergeFrom(const NoticeInfo& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_gentime()) {
- set_gentime(from.gentime());
- }
- if (from.has_deadtime()) {
- set_deadtime(from.deadtime());
- }
- if (from.has_type()) {
- set_type(from.type());
- }
- if (from.has_title()) {
- set_title(from.title());
- }
- if (from.has_content()) {
- set_content(from.content());
- }
- if (from.has_order()) {
- set_order(from.order());
- }
- }
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
- }
- void NoticeInfo::CopyFrom(const ::google::protobuf::Message& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void NoticeInfo::CopyFrom(const NoticeInfo& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool NoticeInfo::IsInitialized() const {
- return true;
- }
- void NoticeInfo::Swap(NoticeInfo* other) {
- if (other != this) {
- std::swap(gentime_, other->gentime_);
- std::swap(deadtime_, other->deadtime_);
- std::swap(type_, other->type_);
- std::swap(title_, other->title_);
- std::swap(content_, other->content_);
- std::swap(order_, other->order_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
- }
- ::google::protobuf::Metadata NoticeInfo::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = NoticeInfo_descriptor_;
- metadata.reflection = NoticeInfo_reflection_;
- return metadata;
- }
- // ===================================================================
- #ifndef _MSC_VER
- const int packetw2c_req_notice_result::kPacketIdFieldNumber;
- const int packetw2c_req_notice_result::kInfoListFieldNumber;
- const int packetw2c_req_notice_result::kLastTimeFieldNumber;
- #endif // !_MSC_VER
- packetw2c_req_notice_result::packetw2c_req_notice_result()
- : ::google::protobuf::Message() {
- SharedCtor();
- }
- void packetw2c_req_notice_result::InitAsDefaultInstance() {
- }
- packetw2c_req_notice_result::packetw2c_req_notice_result(const packetw2c_req_notice_result& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
- }
- void packetw2c_req_notice_result::SharedCtor() {
- _cached_size_ = 0;
- packet_id_ = 7540;
- lasttime_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- }
- packetw2c_req_notice_result::~packetw2c_req_notice_result() {
- SharedDtor();
- }
- void packetw2c_req_notice_result::SharedDtor() {
- if (this != default_instance_) {
- }
- }
- void packetw2c_req_notice_result::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* packetw2c_req_notice_result::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return packetw2c_req_notice_result_descriptor_;
- }
- const packetw2c_req_notice_result& packetw2c_req_notice_result::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fnotice_2eproto();
- return *default_instance_;
- }
- packetw2c_req_notice_result* packetw2c_req_notice_result::default_instance_ = NULL;
- packetw2c_req_notice_result* packetw2c_req_notice_result::New() const {
- return new packetw2c_req_notice_result;
- }
- void packetw2c_req_notice_result::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- packet_id_ = 7540;
- lasttime_ = 0;
- }
- infolist_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
- }
- bool packetw2c_req_notice_result::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
- ::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_notice_result];
- case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- int value;
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
- input, &value)));
- if (::client2world_protocols::e_server_msg_type_IsValid(value)) {
- set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value));
- } else {
- mutable_unknown_fields()->AddVarint(1, value);
- }
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(18)) goto parse_infoList;
- break;
- }
- // repeated .client2world_protocols.NoticeInfo infoList = 2;
- case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_infoList:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, add_infolist()));
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(18)) goto parse_infoList;
- if (input->ExpectTag(24)) goto parse_lastTime;
- break;
- }
- // optional int32 lastTime = 3;
- case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_lastTime:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &lasttime_)));
- set_has_lasttime();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectAtEnd()) return true;
- break;
- }
- default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
- break;
- }
- }
- }
- return true;
- #undef DO_
- }
- void packetw2c_req_notice_result::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_notice_result];
- if (has_packet_id()) {
- ::google::protobuf::internal::WireFormatLite::WriteEnum(
- 1, this->packet_id(), output);
- }
- // repeated .client2world_protocols.NoticeInfo infoList = 2;
- for (int i = 0; i < this->infolist_size(); i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->infolist(i), output);
- }
- // optional int32 lastTime = 3;
- if (has_lasttime()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->lasttime(), output);
- }
- if (!unknown_fields().empty()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
- }
- }
- ::google::protobuf::uint8* packetw2c_req_notice_result::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
- // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_notice_result];
- if (has_packet_id()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 1, this->packet_id(), target);
- }
- // repeated .client2world_protocols.NoticeInfo infoList = 2;
- for (int i = 0; i < this->infolist_size(); i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 2, this->infolist(i), target);
- }
- // optional int32 lastTime = 3;
- if (has_lasttime()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->lasttime(), target);
- }
- if (!unknown_fields().empty()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
- }
- return target;
- }
- int packetw2c_req_notice_result::ByteSize() const {
- int total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_notice_result];
- if (has_packet_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
- }
- // optional int32 lastTime = 3;
- if (has_lasttime()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->lasttime());
- }
- }
- // repeated .client2world_protocols.NoticeInfo infoList = 2;
- total_size += 1 * this->infolist_size();
- for (int i = 0; i < this->infolist_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->infolist(i));
- }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void packetw2c_req_notice_result::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
- const packetw2c_req_notice_result* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const packetw2c_req_notice_result*>(
- &from);
- if (source == NULL) {
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- MergeFrom(*source);
- }
- }
- void packetw2c_req_notice_result::MergeFrom(const packetw2c_req_notice_result& from) {
- GOOGLE_CHECK_NE(&from, this);
- infolist_.MergeFrom(from.infolist_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_packet_id()) {
- set_packet_id(from.packet_id());
- }
- if (from.has_lasttime()) {
- set_lasttime(from.lasttime());
- }
- }
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
- }
- void packetw2c_req_notice_result::CopyFrom(const ::google::protobuf::Message& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void packetw2c_req_notice_result::CopyFrom(const packetw2c_req_notice_result& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool packetw2c_req_notice_result::IsInitialized() const {
- return true;
- }
- void packetw2c_req_notice_result::Swap(packetw2c_req_notice_result* other) {
- if (other != this) {
- std::swap(packet_id_, other->packet_id_);
- infolist_.Swap(&other->infolist_);
- std::swap(lasttime_, other->lasttime_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
- }
- ::google::protobuf::Metadata packetw2c_req_notice_result::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = packetw2c_req_notice_result_descriptor_;
- metadata.reflection = packetw2c_req_notice_result_reflection_;
- return metadata;
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace client2world_protocols
- // @@protoc_insertion_point(global_scope)
|