// 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 #include #include #include #include #include #include #include #include // @@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( &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( &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( &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)