// Generated by the protocol buffer compiler. DO NOT EDIT! // source: client2world_bind_phone.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "client2world_bind_phone.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_bind_phone_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* packetc2w_req_bind_phone_reflection_ = NULL; const ::google::protobuf::Descriptor* packetw2c_req_bind_phone_result_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* packetw2c_req_bind_phone_result_reflection_ = NULL; const ::google::protobuf::Descriptor* packetc2w_req_verify_code_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* packetc2w_req_verify_code_reflection_ = NULL; const ::google::protobuf::Descriptor* packetw2c_req_verify_code_result_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* packetw2c_req_verify_code_result_reflection_ = NULL; const ::google::protobuf::Descriptor* packetc2w_req_verify_id_card_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* packetc2w_req_verify_id_card_reflection_ = NULL; const ::google::protobuf::Descriptor* packetw2c_req_verify_id_card_result_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* packetw2c_req_verify_id_card_result_reflection_ = NULL; } // namespace void protobuf_AssignDesc_client2world_5fbind_5fphone_2eproto() { protobuf_AddDesc_client2world_5fbind_5fphone_2eproto(); const ::google::protobuf::FileDescriptor* file = ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( "client2world_bind_phone.proto"); GOOGLE_CHECK(file != NULL); packetc2w_req_bind_phone_descriptor_ = file->message_type(0); static const int packetc2w_req_bind_phone_offsets_[6] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_bind_phone, packet_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_bind_phone, phone_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_bind_phone, bindtype_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_bind_phone, newpwd_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_bind_phone, name_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_bind_phone, qq_), }; packetc2w_req_bind_phone_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( packetc2w_req_bind_phone_descriptor_, packetc2w_req_bind_phone::default_instance_, packetc2w_req_bind_phone_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_bind_phone, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_bind_phone, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(packetc2w_req_bind_phone)); packetw2c_req_bind_phone_result_descriptor_ = file->message_type(1); static const int packetw2c_req_bind_phone_result_offsets_[3] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_bind_phone_result, packet_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_bind_phone_result, result_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_bind_phone_result, bindtype_), }; packetw2c_req_bind_phone_result_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( packetw2c_req_bind_phone_result_descriptor_, packetw2c_req_bind_phone_result::default_instance_, packetw2c_req_bind_phone_result_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_bind_phone_result, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_bind_phone_result, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(packetw2c_req_bind_phone_result)); packetc2w_req_verify_code_descriptor_ = file->message_type(2); static const int packetc2w_req_verify_code_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_verify_code, packet_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_verify_code, code_), }; packetc2w_req_verify_code_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( packetc2w_req_verify_code_descriptor_, packetc2w_req_verify_code::default_instance_, packetc2w_req_verify_code_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_verify_code, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_verify_code, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(packetc2w_req_verify_code)); packetw2c_req_verify_code_result_descriptor_ = file->message_type(3); static const int packetw2c_req_verify_code_result_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_verify_code_result, packet_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_verify_code_result, result_), }; packetw2c_req_verify_code_result_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( packetw2c_req_verify_code_result_descriptor_, packetw2c_req_verify_code_result::default_instance_, packetw2c_req_verify_code_result_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_verify_code_result, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_verify_code_result, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(packetw2c_req_verify_code_result)); packetc2w_req_verify_id_card_descriptor_ = file->message_type(4); static const int packetc2w_req_verify_id_card_offsets_[3] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_verify_id_card, packet_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_verify_id_card, name_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_verify_id_card, idnumber_), }; packetc2w_req_verify_id_card_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( packetc2w_req_verify_id_card_descriptor_, packetc2w_req_verify_id_card::default_instance_, packetc2w_req_verify_id_card_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_verify_id_card, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_verify_id_card, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(packetc2w_req_verify_id_card)); packetw2c_req_verify_id_card_result_descriptor_ = file->message_type(5); static const int packetw2c_req_verify_id_card_result_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_verify_id_card_result, packet_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_verify_id_card_result, result_), }; packetw2c_req_verify_id_card_result_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( packetw2c_req_verify_id_card_result_descriptor_, packetw2c_req_verify_id_card_result::default_instance_, packetw2c_req_verify_id_card_result_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_verify_id_card_result, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_verify_id_card_result, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(packetw2c_req_verify_id_card_result)); } namespace { GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); inline void protobuf_AssignDescriptorsOnce() { ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, &protobuf_AssignDesc_client2world_5fbind_5fphone_2eproto); } void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( packetc2w_req_bind_phone_descriptor_, &packetc2w_req_bind_phone::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( packetw2c_req_bind_phone_result_descriptor_, &packetw2c_req_bind_phone_result::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( packetc2w_req_verify_code_descriptor_, &packetc2w_req_verify_code::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( packetw2c_req_verify_code_result_descriptor_, &packetw2c_req_verify_code_result::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( packetc2w_req_verify_id_card_descriptor_, &packetc2w_req_verify_id_card::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( packetw2c_req_verify_id_card_result_descriptor_, &packetw2c_req_verify_id_card_result::default_instance()); } } // namespace void protobuf_ShutdownFile_client2world_5fbind_5fphone_2eproto() { delete packetc2w_req_bind_phone::default_instance_; delete packetc2w_req_bind_phone_reflection_; delete packetw2c_req_bind_phone_result::default_instance_; delete packetw2c_req_bind_phone_result_reflection_; delete packetc2w_req_verify_code::default_instance_; delete packetc2w_req_verify_code_reflection_; delete packetw2c_req_verify_code_result::default_instance_; delete packetw2c_req_verify_code_result_reflection_; delete packetc2w_req_verify_id_card::default_instance_; delete packetc2w_req_verify_id_card_reflection_; delete packetw2c_req_verify_id_card_result::default_instance_; delete packetw2c_req_verify_id_card_result_reflection_; } void protobuf_AddDesc_client2world_5fbind_5fphone_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\035client2world_bind_phone.proto\022\026client2" "world_protocols\032\033client2world_msg_type.p" "roto\032\022msg_type_def.proto\032\022msg_info_def.p" "roto\"\275\001\n\030packetc2w_req_bind_phone\022V\n\tpac" "ket_id\030\001 \001(\0162).client2world_protocols.e_" "server_msg_type:\030e_mst_c2w_req_bind_phon" "e\022\r\n\005phone\030\002 \001(\t\022\020\n\010bindType\030\003 \001(\005\022\016\n\006ne" "wPwd\030\004 \001(\t\022\014\n\004name\030\005 \001(\t\022\n\n\002QQ\030\006 \001(\t\"\242\001\n" "\037packetw2c_req_bind_phone_result\022]\n\tpack" "et_id\030\001 \001(\0162).client2world_protocols.e_s" "erver_msg_type:\037e_mst_w2c_req_bind_phone" "_result\022\016\n\006result\030\002 \001(\005\022\020\n\010bindType\030\003 \001(" "\005\"\202\001\n\031packetc2w_req_verify_code\022W\n\tpacke" "t_id\030\001 \001(\0162).client2world_protocols.e_se" "rver_msg_type:\031e_mst_c2w_req_verify_code" "\022\014\n\004code\030\002 \001(\t\"\222\001\n packetw2c_req_verify_" "code_result\022^\n\tpacket_id\030\001 \001(\0162).client2" "world_protocols.e_server_msg_type: e_mst" "_w2c_req_verify_code_result\022\016\n\006result\030\002 " "\001(\005\"\232\001\n\034packetc2w_req_verify_id_card\022Z\n\t" "packet_id\030\001 \001(\0162).client2world_protocols" ".e_server_msg_type:\034e_mst_c2w_req_verify" "_id_card\022\014\n\004name\030\002 \001(\t\022\020\n\010idnumber\030\003 \001(\t" "\"\230\001\n#packetw2c_req_verify_id_card_result" "\022a\n\tpacket_id\030\001 \001(\0162).client2world_proto" "cols.e_server_msg_type:#e_mst_w2c_req_ve" "rify_id_card_result\022\016\n\006result\030\002 \001(\005", 1075); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "client2world_bind_phone.proto", &protobuf_RegisterTypes); packetc2w_req_bind_phone::default_instance_ = new packetc2w_req_bind_phone(); packetw2c_req_bind_phone_result::default_instance_ = new packetw2c_req_bind_phone_result(); packetc2w_req_verify_code::default_instance_ = new packetc2w_req_verify_code(); packetw2c_req_verify_code_result::default_instance_ = new packetw2c_req_verify_code_result(); packetc2w_req_verify_id_card::default_instance_ = new packetc2w_req_verify_id_card(); packetw2c_req_verify_id_card_result::default_instance_ = new packetw2c_req_verify_id_card_result(); packetc2w_req_bind_phone::default_instance_->InitAsDefaultInstance(); packetw2c_req_bind_phone_result::default_instance_->InitAsDefaultInstance(); packetc2w_req_verify_code::default_instance_->InitAsDefaultInstance(); packetw2c_req_verify_code_result::default_instance_->InitAsDefaultInstance(); packetc2w_req_verify_id_card::default_instance_->InitAsDefaultInstance(); packetw2c_req_verify_id_card_result::default_instance_->InitAsDefaultInstance(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_client2world_5fbind_5fphone_2eproto); } // Force AddDescriptors() to be called at static initialization time. struct StaticDescriptorInitializer_client2world_5fbind_5fphone_2eproto { StaticDescriptorInitializer_client2world_5fbind_5fphone_2eproto() { protobuf_AddDesc_client2world_5fbind_5fphone_2eproto(); } } static_descriptor_initializer_client2world_5fbind_5fphone_2eproto_; // =================================================================== #ifndef _MSC_VER const int packetc2w_req_bind_phone::kPacketIdFieldNumber; const int packetc2w_req_bind_phone::kPhoneFieldNumber; const int packetc2w_req_bind_phone::kBindTypeFieldNumber; const int packetc2w_req_bind_phone::kNewPwdFieldNumber; const int packetc2w_req_bind_phone::kNameFieldNumber; const int packetc2w_req_bind_phone::kQQFieldNumber; #endif // !_MSC_VER packetc2w_req_bind_phone::packetc2w_req_bind_phone() : ::google::protobuf::Message() { SharedCtor(); } void packetc2w_req_bind_phone::InitAsDefaultInstance() { } packetc2w_req_bind_phone::packetc2w_req_bind_phone(const packetc2w_req_bind_phone& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } void packetc2w_req_bind_phone::SharedCtor() { _cached_size_ = 0; packet_id_ = 5039; phone_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); bindtype_ = 0; newpwd_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); qq_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); ::memset(_has_bits_, 0, sizeof(_has_bits_)); } packetc2w_req_bind_phone::~packetc2w_req_bind_phone() { SharedDtor(); } void packetc2w_req_bind_phone::SharedDtor() { if (phone_ != &::google::protobuf::internal::kEmptyString) { delete phone_; } if (newpwd_ != &::google::protobuf::internal::kEmptyString) { delete newpwd_; } if (name_ != &::google::protobuf::internal::kEmptyString) { delete name_; } if (qq_ != &::google::protobuf::internal::kEmptyString) { delete qq_; } if (this != default_instance_) { } } void packetc2w_req_bind_phone::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* packetc2w_req_bind_phone::descriptor() { protobuf_AssignDescriptorsOnce(); return packetc2w_req_bind_phone_descriptor_; } const packetc2w_req_bind_phone& packetc2w_req_bind_phone::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fbind_5fphone_2eproto(); return *default_instance_; } packetc2w_req_bind_phone* packetc2w_req_bind_phone::default_instance_ = NULL; packetc2w_req_bind_phone* packetc2w_req_bind_phone::New() const { return new packetc2w_req_bind_phone; } void packetc2w_req_bind_phone::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { packet_id_ = 5039; if (has_phone()) { if (phone_ != &::google::protobuf::internal::kEmptyString) { phone_->clear(); } } bindtype_ = 0; if (has_newpwd()) { if (newpwd_ != &::google::protobuf::internal::kEmptyString) { newpwd_->clear(); } } if (has_name()) { if (name_ != &::google::protobuf::internal::kEmptyString) { name_->clear(); } } if (has_qq()) { if (qq_ != &::google::protobuf::internal::kEmptyString) { qq_->clear(); } } } ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool packetc2w_req_bind_phone::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_bind_phone]; 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_phone; break; } // optional string phone = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { parse_phone: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_phone())); ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->phone().data(), this->phone().length(), ::google::protobuf::internal::WireFormat::PARSE); } else { goto handle_uninterpreted; } if (input->ExpectTag(24)) goto parse_bindType; break; } // optional int32 bindType = 3; case 3: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { parse_bindType: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &bindtype_))); set_has_bindtype(); } else { goto handle_uninterpreted; } if (input->ExpectTag(34)) goto parse_newPwd; break; } // optional string newPwd = 4; case 4: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { parse_newPwd: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_newpwd())); ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->newpwd().data(), this->newpwd().length(), ::google::protobuf::internal::WireFormat::PARSE); } else { goto handle_uninterpreted; } if (input->ExpectTag(42)) goto parse_name; break; } // optional string name = 5; case 5: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { parse_name: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormat::PARSE); } else { goto handle_uninterpreted; } if (input->ExpectTag(50)) goto parse_QQ; break; } // optional string QQ = 6; case 6: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { parse_QQ: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_qq())); ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->qq().data(), this->qq().length(), ::google::protobuf::internal::WireFormat::PARSE); } 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_bind_phone::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_bind_phone]; if (has_packet_id()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->packet_id(), output); } // optional string phone = 2; if (has_phone()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->phone().data(), this->phone().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); ::google::protobuf::internal::WireFormatLite::WriteString( 2, this->phone(), output); } // optional int32 bindType = 3; if (has_bindtype()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->bindtype(), output); } // optional string newPwd = 4; if (has_newpwd()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->newpwd().data(), this->newpwd().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); ::google::protobuf::internal::WireFormatLite::WriteString( 4, this->newpwd(), output); } // optional string name = 5; if (has_name()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); ::google::protobuf::internal::WireFormatLite::WriteString( 5, this->name(), output); } // optional string QQ = 6; if (has_qq()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->qq().data(), this->qq().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); ::google::protobuf::internal::WireFormatLite::WriteString( 6, this->qq(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } } ::google::protobuf::uint8* packetc2w_req_bind_phone::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_bind_phone]; if (has_packet_id()) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->packet_id(), target); } // optional string phone = 2; if (has_phone()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->phone().data(), this->phone().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->phone(), target); } // optional int32 bindType = 3; if (has_bindtype()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->bindtype(), target); } // optional string newPwd = 4; if (has_newpwd()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->newpwd().data(), this->newpwd().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 4, this->newpwd(), target); } // optional string name = 5; if (has_name()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 5, this->name(), target); } // optional string QQ = 6; if (has_qq()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->qq().data(), this->qq().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 6, this->qq(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } return target; } int packetc2w_req_bind_phone::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_bind_phone]; if (has_packet_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id()); } // optional string phone = 2; if (has_phone()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->phone()); } // optional int32 bindType = 3; if (has_bindtype()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->bindtype()); } // optional string newPwd = 4; if (has_newpwd()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->newpwd()); } // optional string name = 5; if (has_name()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->name()); } // optional string QQ = 6; if (has_qq()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->qq()); } } 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_bind_phone::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const packetc2w_req_bind_phone* 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_bind_phone::MergeFrom(const packetc2w_req_bind_phone& 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_phone()) { set_phone(from.phone()); } if (from.has_bindtype()) { set_bindtype(from.bindtype()); } if (from.has_newpwd()) { set_newpwd(from.newpwd()); } if (from.has_name()) { set_name(from.name()); } if (from.has_qq()) { set_qq(from.qq()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void packetc2w_req_bind_phone::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void packetc2w_req_bind_phone::CopyFrom(const packetc2w_req_bind_phone& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool packetc2w_req_bind_phone::IsInitialized() const { return true; } void packetc2w_req_bind_phone::Swap(packetc2w_req_bind_phone* other) { if (other != this) { std::swap(packet_id_, other->packet_id_); std::swap(phone_, other->phone_); std::swap(bindtype_, other->bindtype_); std::swap(newpwd_, other->newpwd_); std::swap(name_, other->name_); std::swap(qq_, other->qq_); 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_bind_phone::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = packetc2w_req_bind_phone_descriptor_; metadata.reflection = packetc2w_req_bind_phone_reflection_; return metadata; } // =================================================================== #ifndef _MSC_VER const int packetw2c_req_bind_phone_result::kPacketIdFieldNumber; const int packetw2c_req_bind_phone_result::kResultFieldNumber; const int packetw2c_req_bind_phone_result::kBindTypeFieldNumber; #endif // !_MSC_VER packetw2c_req_bind_phone_result::packetw2c_req_bind_phone_result() : ::google::protobuf::Message() { SharedCtor(); } void packetw2c_req_bind_phone_result::InitAsDefaultInstance() { } packetw2c_req_bind_phone_result::packetw2c_req_bind_phone_result(const packetw2c_req_bind_phone_result& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } void packetw2c_req_bind_phone_result::SharedCtor() { _cached_size_ = 0; packet_id_ = 7542; result_ = 0; bindtype_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } packetw2c_req_bind_phone_result::~packetw2c_req_bind_phone_result() { SharedDtor(); } void packetw2c_req_bind_phone_result::SharedDtor() { if (this != default_instance_) { } } void packetw2c_req_bind_phone_result::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* packetw2c_req_bind_phone_result::descriptor() { protobuf_AssignDescriptorsOnce(); return packetw2c_req_bind_phone_result_descriptor_; } const packetw2c_req_bind_phone_result& packetw2c_req_bind_phone_result::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fbind_5fphone_2eproto(); return *default_instance_; } packetw2c_req_bind_phone_result* packetw2c_req_bind_phone_result::default_instance_ = NULL; packetw2c_req_bind_phone_result* packetw2c_req_bind_phone_result::New() const { return new packetw2c_req_bind_phone_result; } void packetw2c_req_bind_phone_result::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { packet_id_ = 7542; result_ = 0; bindtype_ = 0; } ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool packetw2c_req_bind_phone_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_bind_phone_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(16)) goto parse_result; break; } // optional int32 result = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { parse_result: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &result_))); set_has_result(); } else { goto handle_uninterpreted; } if (input->ExpectTag(24)) goto parse_bindType; break; } // optional int32 bindType = 3; case 3: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { parse_bindType: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &bindtype_))); set_has_bindtype(); } 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_bind_phone_result::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_bind_phone_result]; if (has_packet_id()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->packet_id(), output); } // optional int32 result = 2; if (has_result()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->result(), output); } // optional int32 bindType = 3; if (has_bindtype()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->bindtype(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } } ::google::protobuf::uint8* packetw2c_req_bind_phone_result::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_bind_phone_result]; if (has_packet_id()) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->packet_id(), target); } // optional int32 result = 2; if (has_result()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->result(), target); } // optional int32 bindType = 3; if (has_bindtype()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->bindtype(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } return target; } int packetw2c_req_bind_phone_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_bind_phone_result]; if (has_packet_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id()); } // optional int32 result = 2; if (has_result()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->result()); } // optional int32 bindType = 3; if (has_bindtype()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->bindtype()); } } 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_bind_phone_result::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const packetw2c_req_bind_phone_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_bind_phone_result::MergeFrom(const packetw2c_req_bind_phone_result& 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_result()) { set_result(from.result()); } if (from.has_bindtype()) { set_bindtype(from.bindtype()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void packetw2c_req_bind_phone_result::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void packetw2c_req_bind_phone_result::CopyFrom(const packetw2c_req_bind_phone_result& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool packetw2c_req_bind_phone_result::IsInitialized() const { return true; } void packetw2c_req_bind_phone_result::Swap(packetw2c_req_bind_phone_result* other) { if (other != this) { std::swap(packet_id_, other->packet_id_); std::swap(result_, other->result_); std::swap(bindtype_, other->bindtype_); 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_bind_phone_result::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = packetw2c_req_bind_phone_result_descriptor_; metadata.reflection = packetw2c_req_bind_phone_result_reflection_; return metadata; } // =================================================================== #ifndef _MSC_VER const int packetc2w_req_verify_code::kPacketIdFieldNumber; const int packetc2w_req_verify_code::kCodeFieldNumber; #endif // !_MSC_VER packetc2w_req_verify_code::packetc2w_req_verify_code() : ::google::protobuf::Message() { SharedCtor(); } void packetc2w_req_verify_code::InitAsDefaultInstance() { } packetc2w_req_verify_code::packetc2w_req_verify_code(const packetc2w_req_verify_code& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } void packetc2w_req_verify_code::SharedCtor() { _cached_size_ = 0; packet_id_ = 5040; code_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); ::memset(_has_bits_, 0, sizeof(_has_bits_)); } packetc2w_req_verify_code::~packetc2w_req_verify_code() { SharedDtor(); } void packetc2w_req_verify_code::SharedDtor() { if (code_ != &::google::protobuf::internal::kEmptyString) { delete code_; } if (this != default_instance_) { } } void packetc2w_req_verify_code::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* packetc2w_req_verify_code::descriptor() { protobuf_AssignDescriptorsOnce(); return packetc2w_req_verify_code_descriptor_; } const packetc2w_req_verify_code& packetc2w_req_verify_code::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fbind_5fphone_2eproto(); return *default_instance_; } packetc2w_req_verify_code* packetc2w_req_verify_code::default_instance_ = NULL; packetc2w_req_verify_code* packetc2w_req_verify_code::New() const { return new packetc2w_req_verify_code; } void packetc2w_req_verify_code::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { packet_id_ = 5040; if (has_code()) { if (code_ != &::google::protobuf::internal::kEmptyString) { code_->clear(); } } } ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool packetc2w_req_verify_code::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_verify_code]; 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_code; break; } // optional string code = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { parse_code: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_code())); ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->code().data(), this->code().length(), ::google::protobuf::internal::WireFormat::PARSE); } 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_verify_code::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_verify_code]; if (has_packet_id()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->packet_id(), output); } // optional string code = 2; if (has_code()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->code().data(), this->code().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); ::google::protobuf::internal::WireFormatLite::WriteString( 2, this->code(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } } ::google::protobuf::uint8* packetc2w_req_verify_code::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_verify_code]; if (has_packet_id()) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->packet_id(), target); } // optional string code = 2; if (has_code()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->code().data(), this->code().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->code(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } return target; } int packetc2w_req_verify_code::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_verify_code]; if (has_packet_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id()); } // optional string code = 2; if (has_code()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->code()); } } 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_verify_code::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const packetc2w_req_verify_code* 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_verify_code::MergeFrom(const packetc2w_req_verify_code& 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_code()) { set_code(from.code()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void packetc2w_req_verify_code::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void packetc2w_req_verify_code::CopyFrom(const packetc2w_req_verify_code& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool packetc2w_req_verify_code::IsInitialized() const { return true; } void packetc2w_req_verify_code::Swap(packetc2w_req_verify_code* other) { if (other != this) { std::swap(packet_id_, other->packet_id_); std::swap(code_, other->code_); 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_verify_code::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = packetc2w_req_verify_code_descriptor_; metadata.reflection = packetc2w_req_verify_code_reflection_; return metadata; } // =================================================================== #ifndef _MSC_VER const int packetw2c_req_verify_code_result::kPacketIdFieldNumber; const int packetw2c_req_verify_code_result::kResultFieldNumber; #endif // !_MSC_VER packetw2c_req_verify_code_result::packetw2c_req_verify_code_result() : ::google::protobuf::Message() { SharedCtor(); } void packetw2c_req_verify_code_result::InitAsDefaultInstance() { } packetw2c_req_verify_code_result::packetw2c_req_verify_code_result(const packetw2c_req_verify_code_result& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } void packetw2c_req_verify_code_result::SharedCtor() { _cached_size_ = 0; packet_id_ = 7543; result_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } packetw2c_req_verify_code_result::~packetw2c_req_verify_code_result() { SharedDtor(); } void packetw2c_req_verify_code_result::SharedDtor() { if (this != default_instance_) { } } void packetw2c_req_verify_code_result::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* packetw2c_req_verify_code_result::descriptor() { protobuf_AssignDescriptorsOnce(); return packetw2c_req_verify_code_result_descriptor_; } const packetw2c_req_verify_code_result& packetw2c_req_verify_code_result::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fbind_5fphone_2eproto(); return *default_instance_; } packetw2c_req_verify_code_result* packetw2c_req_verify_code_result::default_instance_ = NULL; packetw2c_req_verify_code_result* packetw2c_req_verify_code_result::New() const { return new packetw2c_req_verify_code_result; } void packetw2c_req_verify_code_result::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { packet_id_ = 7543; result_ = 0; } ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool packetw2c_req_verify_code_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_verify_code_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(16)) goto parse_result; break; } // optional int32 result = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { parse_result: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &result_))); set_has_result(); } 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_verify_code_result::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_verify_code_result]; if (has_packet_id()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->packet_id(), output); } // optional int32 result = 2; if (has_result()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->result(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } } ::google::protobuf::uint8* packetw2c_req_verify_code_result::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_verify_code_result]; if (has_packet_id()) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->packet_id(), target); } // optional int32 result = 2; if (has_result()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->result(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } return target; } int packetw2c_req_verify_code_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_verify_code_result]; if (has_packet_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id()); } // optional int32 result = 2; if (has_result()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->result()); } } 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_verify_code_result::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const packetw2c_req_verify_code_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_verify_code_result::MergeFrom(const packetw2c_req_verify_code_result& 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_result()) { set_result(from.result()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void packetw2c_req_verify_code_result::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void packetw2c_req_verify_code_result::CopyFrom(const packetw2c_req_verify_code_result& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool packetw2c_req_verify_code_result::IsInitialized() const { return true; } void packetw2c_req_verify_code_result::Swap(packetw2c_req_verify_code_result* other) { if (other != this) { std::swap(packet_id_, other->packet_id_); std::swap(result_, other->result_); 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_verify_code_result::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = packetw2c_req_verify_code_result_descriptor_; metadata.reflection = packetw2c_req_verify_code_result_reflection_; return metadata; } // =================================================================== #ifndef _MSC_VER const int packetc2w_req_verify_id_card::kPacketIdFieldNumber; const int packetc2w_req_verify_id_card::kNameFieldNumber; const int packetc2w_req_verify_id_card::kIdnumberFieldNumber; #endif // !_MSC_VER packetc2w_req_verify_id_card::packetc2w_req_verify_id_card() : ::google::protobuf::Message() { SharedCtor(); } void packetc2w_req_verify_id_card::InitAsDefaultInstance() { } packetc2w_req_verify_id_card::packetc2w_req_verify_id_card(const packetc2w_req_verify_id_card& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } void packetc2w_req_verify_id_card::SharedCtor() { _cached_size_ = 0; packet_id_ = 5061; name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); idnumber_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); ::memset(_has_bits_, 0, sizeof(_has_bits_)); } packetc2w_req_verify_id_card::~packetc2w_req_verify_id_card() { SharedDtor(); } void packetc2w_req_verify_id_card::SharedDtor() { if (name_ != &::google::protobuf::internal::kEmptyString) { delete name_; } if (idnumber_ != &::google::protobuf::internal::kEmptyString) { delete idnumber_; } if (this != default_instance_) { } } void packetc2w_req_verify_id_card::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* packetc2w_req_verify_id_card::descriptor() { protobuf_AssignDescriptorsOnce(); return packetc2w_req_verify_id_card_descriptor_; } const packetc2w_req_verify_id_card& packetc2w_req_verify_id_card::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fbind_5fphone_2eproto(); return *default_instance_; } packetc2w_req_verify_id_card* packetc2w_req_verify_id_card::default_instance_ = NULL; packetc2w_req_verify_id_card* packetc2w_req_verify_id_card::New() const { return new packetc2w_req_verify_id_card; } void packetc2w_req_verify_id_card::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { packet_id_ = 5061; if (has_name()) { if (name_ != &::google::protobuf::internal::kEmptyString) { name_->clear(); } } if (has_idnumber()) { if (idnumber_ != &::google::protobuf::internal::kEmptyString) { idnumber_->clear(); } } } ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool packetc2w_req_verify_id_card::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_verify_id_card]; 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_name; break; } // optional string name = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { parse_name: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormat::PARSE); } else { goto handle_uninterpreted; } if (input->ExpectTag(26)) goto parse_idnumber; break; } // optional string idnumber = 3; case 3: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { parse_idnumber: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_idnumber())); ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->idnumber().data(), this->idnumber().length(), ::google::protobuf::internal::WireFormat::PARSE); } 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_verify_id_card::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_verify_id_card]; if (has_packet_id()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->packet_id(), output); } // optional string name = 2; if (has_name()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); ::google::protobuf::internal::WireFormatLite::WriteString( 2, this->name(), output); } // optional string idnumber = 3; if (has_idnumber()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->idnumber().data(), this->idnumber().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); ::google::protobuf::internal::WireFormatLite::WriteString( 3, this->idnumber(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } } ::google::protobuf::uint8* packetc2w_req_verify_id_card::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_verify_id_card]; if (has_packet_id()) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->packet_id(), target); } // optional string name = 2; if (has_name()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->name(), target); } // optional string idnumber = 3; if (has_idnumber()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->idnumber().data(), this->idnumber().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3, this->idnumber(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } return target; } int packetc2w_req_verify_id_card::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_verify_id_card]; if (has_packet_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id()); } // optional string name = 2; if (has_name()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->name()); } // optional string idnumber = 3; if (has_idnumber()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->idnumber()); } } 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_verify_id_card::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const packetc2w_req_verify_id_card* 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_verify_id_card::MergeFrom(const packetc2w_req_verify_id_card& 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_name()) { set_name(from.name()); } if (from.has_idnumber()) { set_idnumber(from.idnumber()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void packetc2w_req_verify_id_card::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void packetc2w_req_verify_id_card::CopyFrom(const packetc2w_req_verify_id_card& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool packetc2w_req_verify_id_card::IsInitialized() const { return true; } void packetc2w_req_verify_id_card::Swap(packetc2w_req_verify_id_card* other) { if (other != this) { std::swap(packet_id_, other->packet_id_); std::swap(name_, other->name_); std::swap(idnumber_, other->idnumber_); 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_verify_id_card::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = packetc2w_req_verify_id_card_descriptor_; metadata.reflection = packetc2w_req_verify_id_card_reflection_; return metadata; } // =================================================================== #ifndef _MSC_VER const int packetw2c_req_verify_id_card_result::kPacketIdFieldNumber; const int packetw2c_req_verify_id_card_result::kResultFieldNumber; #endif // !_MSC_VER packetw2c_req_verify_id_card_result::packetw2c_req_verify_id_card_result() : ::google::protobuf::Message() { SharedCtor(); } void packetw2c_req_verify_id_card_result::InitAsDefaultInstance() { } packetw2c_req_verify_id_card_result::packetw2c_req_verify_id_card_result(const packetw2c_req_verify_id_card_result& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } void packetw2c_req_verify_id_card_result::SharedCtor() { _cached_size_ = 0; packet_id_ = 7565; result_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } packetw2c_req_verify_id_card_result::~packetw2c_req_verify_id_card_result() { SharedDtor(); } void packetw2c_req_verify_id_card_result::SharedDtor() { if (this != default_instance_) { } } void packetw2c_req_verify_id_card_result::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* packetw2c_req_verify_id_card_result::descriptor() { protobuf_AssignDescriptorsOnce(); return packetw2c_req_verify_id_card_result_descriptor_; } const packetw2c_req_verify_id_card_result& packetw2c_req_verify_id_card_result::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fbind_5fphone_2eproto(); return *default_instance_; } packetw2c_req_verify_id_card_result* packetw2c_req_verify_id_card_result::default_instance_ = NULL; packetw2c_req_verify_id_card_result* packetw2c_req_verify_id_card_result::New() const { return new packetw2c_req_verify_id_card_result; } void packetw2c_req_verify_id_card_result::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { packet_id_ = 7565; result_ = 0; } ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool packetw2c_req_verify_id_card_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_verify_id_card_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(16)) goto parse_result; break; } // optional int32 result = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { parse_result: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &result_))); set_has_result(); } 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_verify_id_card_result::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_verify_id_card_result]; if (has_packet_id()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->packet_id(), output); } // optional int32 result = 2; if (has_result()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->result(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } } ::google::protobuf::uint8* packetw2c_req_verify_id_card_result::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_verify_id_card_result]; if (has_packet_id()) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->packet_id(), target); } // optional int32 result = 2; if (has_result()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->result(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } return target; } int packetw2c_req_verify_id_card_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_verify_id_card_result]; if (has_packet_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id()); } // optional int32 result = 2; if (has_result()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->result()); } } 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_verify_id_card_result::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const packetw2c_req_verify_id_card_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_verify_id_card_result::MergeFrom(const packetw2c_req_verify_id_card_result& 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_result()) { set_result(from.result()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void packetw2c_req_verify_id_card_result::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void packetw2c_req_verify_id_card_result::CopyFrom(const packetw2c_req_verify_id_card_result& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool packetw2c_req_verify_id_card_result::IsInitialized() const { return true; } void packetw2c_req_verify_id_card_result::Swap(packetw2c_req_verify_id_card_result* other) { if (other != this) { std::swap(packet_id_, other->packet_id_); std::swap(result_, other->result_); 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_verify_id_card_result::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = packetw2c_req_verify_id_card_result_descriptor_; metadata.reflection = packetw2c_req_verify_id_card_result_reflection_; return metadata; } // @@protoc_insertion_point(namespace_scope) } // namespace client2world_protocols // @@protoc_insertion_point(global_scope)