// Generated by the protocol buffer compiler. DO NOT EDIT! // source: msg.proto #include "msg.pb.h" #include #include #include #include #include #include #include #include #include // This is a temporary google only hack #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS #include "third_party/protobuf/version.h" #endif // @@protoc_insertion_point(includes) class msg_loginDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _msg_login_default_instance_; class msg_registerDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _msg_register_default_instance_; namespace protobuf_msg_2eproto { static void InitDefaultsmsg_login() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::_msg_login_default_instance_; new (ptr) ::msg_login(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::msg_login::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<0> scc_info_msg_login = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsmsg_login}, {}}; static void InitDefaultsmsg_register() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::_msg_register_default_instance_; new (ptr) ::msg_register(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::msg_register::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<0> scc_info_msg_register = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsmsg_register}, {}}; void InitDefaults() { ::google::protobuf::internal::InitSCC(&scc_info_msg_login.base); ::google::protobuf::internal::InitSCC(&scc_info_msg_register.base); } ::google::protobuf::Metadata file_level_metadata[2]; const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::msg_login, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::msg_login, phone_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::msg_login, passwrod_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::msg_login, system_), ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::msg_register, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::msg_register, phone_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::msg_register, name_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::msg_register, gender_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::msg_register, passwrod_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::msg_register, vcode_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::msg_login)}, { 8, -1, sizeof(::msg_register)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::_msg_login_default_instance_), reinterpret_cast(&::_msg_register_default_instance_), }; void protobuf_AssignDescriptors() { AddDescriptors(); AssignDescriptors( "msg.proto", schemas, file_default_instances, TableStruct::offsets, file_level_metadata, NULL, NULL); } void protobuf_AssignDescriptorsOnce() { static ::google::protobuf::internal::once_flag once; ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); } void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2); } void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n\tmsg.proto\"<\n\tmsg_login\022\r\n\005phone\030\001 \001(\t\022" "\020\n\010passwrod\030\002 \001(\t\022\016\n\006system\030\003 \001(\t\"\\\n\014msg" "_register\022\r\n\005phone\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\016" "\n\006gender\030\003 \001(\010\022\020\n\010passwrod\030\004 \001(\t\022\r\n\005vcod" "e\030\005 \001(\tb\006proto3" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( descriptor, 175); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "msg.proto", &protobuf_RegisterTypes); } void AddDescriptors() { static ::google::protobuf::internal::once_flag once; ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); } // Force AddDescriptors() to be called at dynamic initialization time. struct StaticDescriptorInitializer { StaticDescriptorInitializer() { AddDescriptors(); } } static_descriptor_initializer; } // namespace protobuf_msg_2eproto // =================================================================== void msg_login::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int msg_login::kPhoneFieldNumber; const int msg_login::kPasswrodFieldNumber; const int msg_login::kSystemFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 msg_login::msg_login() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_msg_2eproto::scc_info_msg_login.base); SharedCtor(); // @@protoc_insertion_point(constructor:msg_login) } msg_login::msg_login(const msg_login& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); phone_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.phone().size() > 0) { phone_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.phone_); } passwrod_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.passwrod().size() > 0) { passwrod_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.passwrod_); } system_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.system().size() > 0) { system_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.system_); } // @@protoc_insertion_point(copy_constructor:msg_login) } void msg_login::SharedCtor() { phone_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); passwrod_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); system_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } msg_login::~msg_login() { // @@protoc_insertion_point(destructor:msg_login) SharedDtor(); } void msg_login::SharedDtor() { phone_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); passwrod_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); system_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void msg_login::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* msg_login::descriptor() { ::protobuf_msg_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_msg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const msg_login& msg_login::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_msg_2eproto::scc_info_msg_login.base); return *internal_default_instance(); } void msg_login::Clear() { // @@protoc_insertion_point(message_clear_start:msg_login) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; phone_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); passwrod_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); system_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _internal_metadata_.Clear(); } bool msg_login::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:msg_login) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string phone = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_phone())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->phone().data(), static_cast(this->phone().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "msg_login.phone")); } else { goto handle_unusual; } break; } // string passwrod = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_passwrod())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->passwrod().data(), static_cast(this->passwrod().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "msg_login.passwrod")); } else { goto handle_unusual; } break; } // string system = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_system())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->system().data(), static_cast(this->system().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "msg_login.system")); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:msg_login) return true; failure: // @@protoc_insertion_point(parse_failure:msg_login) return false; #undef DO_ } void msg_login::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:msg_login) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string phone = 1; if (this->phone().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->phone().data(), static_cast(this->phone().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "msg_login.phone"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->phone(), output); } // string passwrod = 2; if (this->passwrod().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->passwrod().data(), static_cast(this->passwrod().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "msg_login.passwrod"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->passwrod(), output); } // string system = 3; if (this->system().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->system().data(), static_cast(this->system().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "msg_login.system"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 3, this->system(), output); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); } // @@protoc_insertion_point(serialize_end:msg_login) } ::google::protobuf::uint8* msg_login::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:msg_login) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string phone = 1; if (this->phone().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->phone().data(), static_cast(this->phone().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "msg_login.phone"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->phone(), target); } // string passwrod = 2; if (this->passwrod().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->passwrod().data(), static_cast(this->passwrod().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "msg_login.passwrod"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->passwrod(), target); } // string system = 3; if (this->system().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->system().data(), static_cast(this->system().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "msg_login.system"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3, this->system(), target); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); } // @@protoc_insertion_point(serialize_to_array_end:msg_login) return target; } size_t msg_login::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:msg_login) size_t total_size = 0; if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } // string phone = 1; if (this->phone().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->phone()); } // string passwrod = 2; if (this->passwrod().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->passwrod()); } // string system = 3; if (this->system().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->system()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void msg_login::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:msg_login) GOOGLE_DCHECK_NE(&from, this); const msg_login* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:msg_login) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:msg_login) MergeFrom(*source); } } void msg_login::MergeFrom(const msg_login& from) { // @@protoc_insertion_point(class_specific_merge_from_start:msg_login) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.phone().size() > 0) { phone_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.phone_); } if (from.passwrod().size() > 0) { passwrod_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.passwrod_); } if (from.system().size() > 0) { system_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.system_); } } void msg_login::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:msg_login) if (&from == this) return; Clear(); MergeFrom(from); } void msg_login::CopyFrom(const msg_login& from) { // @@protoc_insertion_point(class_specific_copy_from_start:msg_login) if (&from == this) return; Clear(); MergeFrom(from); } bool msg_login::IsInitialized() const { return true; } void msg_login::Swap(msg_login* other) { if (other == this) return; InternalSwap(other); } void msg_login::InternalSwap(msg_login* other) { using std::swap; phone_.Swap(&other->phone_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); passwrod_.Swap(&other->passwrod_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); system_.Swap(&other->system_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata msg_login::GetMetadata() const { protobuf_msg_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_msg_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void msg_register::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int msg_register::kPhoneFieldNumber; const int msg_register::kNameFieldNumber; const int msg_register::kGenderFieldNumber; const int msg_register::kPasswrodFieldNumber; const int msg_register::kVcodeFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 msg_register::msg_register() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_msg_2eproto::scc_info_msg_register.base); SharedCtor(); // @@protoc_insertion_point(constructor:msg_register) } msg_register::msg_register(const msg_register& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); phone_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.phone().size() > 0) { phone_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.phone_); } name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.name().size() > 0) { name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); } passwrod_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.passwrod().size() > 0) { passwrod_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.passwrod_); } vcode_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.vcode().size() > 0) { vcode_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.vcode_); } gender_ = from.gender_; // @@protoc_insertion_point(copy_constructor:msg_register) } void msg_register::SharedCtor() { phone_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); passwrod_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); vcode_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); gender_ = false; } msg_register::~msg_register() { // @@protoc_insertion_point(destructor:msg_register) SharedDtor(); } void msg_register::SharedDtor() { phone_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); passwrod_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); vcode_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void msg_register::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* msg_register::descriptor() { ::protobuf_msg_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_msg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const msg_register& msg_register::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_msg_2eproto::scc_info_msg_register.base); return *internal_default_instance(); } void msg_register::Clear() { // @@protoc_insertion_point(message_clear_start:msg_register) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; phone_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); passwrod_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); vcode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); gender_ = false; _internal_metadata_.Clear(); } bool msg_register::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:msg_register) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string phone = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_phone())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->phone().data(), static_cast(this->phone().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "msg_register.phone")); } else { goto handle_unusual; } break; } // string name = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "msg_register.name")); } else { goto handle_unusual; } break; } // bool gender = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &gender_))); } else { goto handle_unusual; } break; } // string passwrod = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_passwrod())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->passwrod().data(), static_cast(this->passwrod().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "msg_register.passwrod")); } else { goto handle_unusual; } break; } // string vcode = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_vcode())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->vcode().data(), static_cast(this->vcode().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "msg_register.vcode")); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:msg_register) return true; failure: // @@protoc_insertion_point(parse_failure:msg_register) return false; #undef DO_ } void msg_register::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:msg_register) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string phone = 1; if (this->phone().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->phone().data(), static_cast(this->phone().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "msg_register.phone"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->phone(), output); } // string name = 2; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "msg_register.name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->name(), output); } // bool gender = 3; if (this->gender() != 0) { ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->gender(), output); } // string passwrod = 4; if (this->passwrod().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->passwrod().data(), static_cast(this->passwrod().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "msg_register.passwrod"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 4, this->passwrod(), output); } // string vcode = 5; if (this->vcode().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->vcode().data(), static_cast(this->vcode().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "msg_register.vcode"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 5, this->vcode(), output); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); } // @@protoc_insertion_point(serialize_end:msg_register) } ::google::protobuf::uint8* msg_register::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:msg_register) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string phone = 1; if (this->phone().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->phone().data(), static_cast(this->phone().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "msg_register.phone"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->phone(), target); } // string name = 2; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "msg_register.name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->name(), target); } // bool gender = 3; if (this->gender() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->gender(), target); } // string passwrod = 4; if (this->passwrod().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->passwrod().data(), static_cast(this->passwrod().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "msg_register.passwrod"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 4, this->passwrod(), target); } // string vcode = 5; if (this->vcode().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->vcode().data(), static_cast(this->vcode().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "msg_register.vcode"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 5, this->vcode(), target); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); } // @@protoc_insertion_point(serialize_to_array_end:msg_register) return target; } size_t msg_register::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:msg_register) size_t total_size = 0; if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } // string phone = 1; if (this->phone().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->phone()); } // string name = 2; if (this->name().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->name()); } // string passwrod = 4; if (this->passwrod().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->passwrod()); } // string vcode = 5; if (this->vcode().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->vcode()); } // bool gender = 3; if (this->gender() != 0) { total_size += 1 + 1; } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void msg_register::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:msg_register) GOOGLE_DCHECK_NE(&from, this); const msg_register* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:msg_register) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:msg_register) MergeFrom(*source); } } void msg_register::MergeFrom(const msg_register& from) { // @@protoc_insertion_point(class_specific_merge_from_start:msg_register) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.phone().size() > 0) { phone_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.phone_); } if (from.name().size() > 0) { name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); } if (from.passwrod().size() > 0) { passwrod_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.passwrod_); } if (from.vcode().size() > 0) { vcode_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.vcode_); } if (from.gender() != 0) { set_gender(from.gender()); } } void msg_register::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:msg_register) if (&from == this) return; Clear(); MergeFrom(from); } void msg_register::CopyFrom(const msg_register& from) { // @@protoc_insertion_point(class_specific_copy_from_start:msg_register) if (&from == this) return; Clear(); MergeFrom(from); } bool msg_register::IsInitialized() const { return true; } void msg_register::Swap(msg_register* other) { if (other == this) return; InternalSwap(other); } void msg_register::InternalSwap(msg_register* other) { using std::swap; phone_.Swap(&other->phone_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); passwrod_.Swap(&other->passwrod_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); vcode_.Swap(&other->vcode_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(gender_, other->gender_); _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata msg_register::GetMetadata() const { protobuf_msg_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_msg_2eproto::file_level_metadata[kIndexInFileMessages]; } // @@protoc_insertion_point(namespace_scope) namespace google { namespace protobuf { template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::msg_login* Arena::CreateMaybeMessage< ::msg_login >(Arena* arena) { return Arena::CreateInternal< ::msg_login >(arena); } template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::msg_register* Arena::CreateMaybeMessage< ::msg_register >(Arena* arena) { return Arena::CreateInternal< ::msg_register >(arena); } } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope)