// Generated by the protocol buffer compiler. DO NOT EDIT! // source: notify_message.proto #include "notify_message.pb.h" #include #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) namespace message { class Notify_request_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Notify_request_msg_default_instance_; class Notify_response_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Notify_response_msg_default_instance_; class Notify_status_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Notify_status_msg_default_instance_; } // namespace message namespace protobuf_notify_5fmessage_2eproto { void InitDefaultsNotify_request_msgImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_message_5fbase_2eproto::InitDefaultsBase_info(); protobuf_message_5fbase_2eproto::InitDefaultsId_struct(); protobuf_message_5fbase_2eproto::InitDefaultsCar_info(); { void* ptr = &::message::_Notify_request_msg_default_instance_; new (ptr) ::message::Notify_request_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Notify_request_msg::InitAsDefaultInstance(); } void InitDefaultsNotify_request_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNotify_request_msgImpl); } void InitDefaultsNotify_response_msgImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_message_5fbase_2eproto::InitDefaultsBase_info(); protobuf_message_5fbase_2eproto::InitDefaultsId_struct(); protobuf_message_5fbase_2eproto::InitDefaultsError_manager(); { void* ptr = &::message::_Notify_response_msg_default_instance_; new (ptr) ::message::Notify_response_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Notify_response_msg::InitAsDefaultInstance(); } void InitDefaultsNotify_response_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNotify_response_msgImpl); } void InitDefaultsNotify_status_msgImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_message_5fbase_2eproto::InitDefaultsBase_info(); protobuf_message_5fbase_2eproto::InitDefaultsId_struct(); protobuf_message_5fbase_2eproto::InitDefaultsError_manager(); protobuf_singlechip_5fmsg_2eproto::InitDefaultsSinglechip_data(); { void* ptr = &::message::_Notify_status_msg_default_instance_; new (ptr) ::message::Notify_status_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Notify_status_msg::InitAsDefaultInstance(); } void InitDefaultsNotify_status_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNotify_status_msgImpl); } ::google::protobuf::Metadata file_level_metadata[3]; const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_request_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_request_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_request_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_request_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_request_msg, id_struct_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_request_msg, car_info_), 1, 0, 2, 3, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_response_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_response_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_response_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_response_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_response_msg, id_struct_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_response_msg, code_), 1, 0, 2, 3, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_status_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_status_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_status_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_status_msg, id_struct_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_status_msg, error_manager_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_status_msg, singlechipdata_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Notify_status_msg, singlechip_validity_), 0, 1, 2, 3, 4, }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, 9, sizeof(::message::Notify_request_msg)}, { 13, 22, sizeof(::message::Notify_response_msg)}, { 26, 36, sizeof(::message::Notify_status_msg)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::message::_Notify_request_msg_default_instance_), reinterpret_cast(&::message::_Notify_response_msg_default_instance_), reinterpret_cast(&::message::_Notify_status_msg_default_instance_), }; void protobuf_AssignDescriptors() { AddDescriptors(); ::google::protobuf::MessageFactory* factory = NULL; AssignDescriptors( "notify_message.proto", schemas, file_default_instances, TableStruct::offsets, factory, file_level_metadata, NULL, NULL); } void protobuf_AssignDescriptorsOnce() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&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, 3); } void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n\024notify_message.proto\022\007message\032\022message" "_base.proto\032\024singlechip_msg.proto\"\234\001\n\022No" "tify_request_msg\022%\n\tbase_info\030\001 \002(\0132\022.me" "ssage.Base_info\022\023\n\013command_key\030\002 \002(\t\022%\n\t" "id_struct\030\003 \002(\0132\022.message.Id_struct\022#\n\010c" "ar_info\030\004 \002(\0132\021.message.Car_info\"\236\001\n\023Not" "ify_response_msg\022%\n\tbase_info\030\001 \002(\0132\022.me" "ssage.Base_info\022\023\n\013command_key\030\002 \002(\t\022%\n\t" "id_struct\030\003 \002(\0132\022.message.Id_struct\022$\n\004c" "ode\030\004 \002(\0132\026.message.Error_manager\"\337\001\n\021No" "tify_status_msg\022%\n\tbase_info\030\001 \002(\0132\022.mes" "sage.Base_info\022%\n\tid_struct\030\002 \002(\0132\022.mess" "age.Id_struct\022-\n\rerror_manager\030\003 \002(\0132\026.m" "essage.Error_manager\0220\n\016singlechipData\030\004" " \001(\0132\030.message.Singlechip_data\022\033\n\023single" "chip_validity\030\005 \001(\010" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( descriptor, 619); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "notify_message.proto", &protobuf_RegisterTypes); ::protobuf_message_5fbase_2eproto::AddDescriptors(); ::protobuf_singlechip_5fmsg_2eproto::AddDescriptors(); } void AddDescriptors() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); } // Force AddDescriptors() to be called at dynamic initialization time. struct StaticDescriptorInitializer { StaticDescriptorInitializer() { AddDescriptors(); } } static_descriptor_initializer; } // namespace protobuf_notify_5fmessage_2eproto namespace message { // =================================================================== void Notify_request_msg::InitAsDefaultInstance() { ::message::_Notify_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); ::message::_Notify_request_msg_default_instance_._instance.get_mutable()->id_struct_ = const_cast< ::message::Id_struct*>( ::message::Id_struct::internal_default_instance()); ::message::_Notify_request_msg_default_instance_._instance.get_mutable()->car_info_ = const_cast< ::message::Car_info*>( ::message::Car_info::internal_default_instance()); } void Notify_request_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Notify_request_msg::clear_id_struct() { if (id_struct_ != NULL) id_struct_->Clear(); clear_has_id_struct(); } void Notify_request_msg::clear_car_info() { if (car_info_ != NULL) car_info_->Clear(); clear_has_car_info(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Notify_request_msg::kBaseInfoFieldNumber; const int Notify_request_msg::kCommandKeyFieldNumber; const int Notify_request_msg::kIdStructFieldNumber; const int Notify_request_msg::kCarInfoFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Notify_request_msg::Notify_request_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_notify_5fmessage_2eproto::InitDefaultsNotify_request_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Notify_request_msg) } Notify_request_msg::Notify_request_msg(const Notify_request_msg& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_command_key()) { command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (from.has_base_info()) { base_info_ = new ::message::Base_info(*from.base_info_); } else { base_info_ = NULL; } if (from.has_id_struct()) { id_struct_ = new ::message::Id_struct(*from.id_struct_); } else { id_struct_ = NULL; } if (from.has_car_info()) { car_info_ = new ::message::Car_info(*from.car_info_); } else { car_info_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Notify_request_msg) } void Notify_request_msg::SharedCtor() { _cached_size_ = 0; command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&base_info_, 0, static_cast( reinterpret_cast(&car_info_) - reinterpret_cast(&base_info_)) + sizeof(car_info_)); } Notify_request_msg::~Notify_request_msg() { // @@protoc_insertion_point(destructor:message.Notify_request_msg) SharedDtor(); } void Notify_request_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete id_struct_; if (this != internal_default_instance()) delete car_info_; } void Notify_request_msg::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Notify_request_msg::descriptor() { ::protobuf_notify_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_notify_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Notify_request_msg& Notify_request_msg::default_instance() { ::protobuf_notify_5fmessage_2eproto::InitDefaultsNotify_request_msg(); return *internal_default_instance(); } Notify_request_msg* Notify_request_msg::New(::google::protobuf::Arena* arena) const { Notify_request_msg* n = new Notify_request_msg; if (arena != NULL) { arena->Own(n); } return n; } void Notify_request_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Notify_request_msg) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 15u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*command_key_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(id_struct_ != NULL); id_struct_->Clear(); } if (cached_has_bits & 0x00000008u) { GOOGLE_DCHECK(car_info_ != NULL); car_info_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Notify_request_msg::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:message.Notify_request_msg) 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)) { // required .message.Base_info base_info = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_base_info())); } else { goto handle_unusual; } break; } // required string command_key = 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_command_key())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::PARSE, "message.Notify_request_msg.command_key"); } else { goto handle_unusual; } break; } // required .message.Id_struct id_struct = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_id_struct())); } else { goto handle_unusual; } break; } // required .message.Car_info car_info = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_car_info())); } 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:message.Notify_request_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Notify_request_msg) return false; #undef DO_ } void Notify_request_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Notify_request_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Notify_request_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), output); } // required .message.Id_struct id_struct = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->id_struct_, output); } // required .message.Car_info car_info = 4; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, *this->car_info_, output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Notify_request_msg) } ::google::protobuf::uint8* Notify_request_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Notify_request_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Notify_request_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), target); } // required .message.Id_struct id_struct = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, *this->id_struct_, deterministic, target); } // required .message.Car_info car_info = 4; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, *this->car_info_, deterministic, target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:message.Notify_request_msg) return target; } size_t Notify_request_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Notify_request_msg) size_t total_size = 0; if (has_command_key()) { // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); } if (has_base_info()) { // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } if (has_id_struct()) { // required .message.Id_struct id_struct = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->id_struct_); } if (has_car_info()) { // required .message.Car_info car_info = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->car_info_); } return total_size; } size_t Notify_request_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Notify_request_msg) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present. // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); // required .message.Id_struct id_struct = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->id_struct_); // required .message.Car_info car_info = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->car_info_); } else { total_size += RequiredFieldsByteSizeFallback(); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Notify_request_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Notify_request_msg) GOOGLE_DCHECK_NE(&from, this); const Notify_request_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Notify_request_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Notify_request_msg) MergeFrom(*source); } } void Notify_request_msg::MergeFrom(const Notify_request_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Notify_request_msg) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 15u) { if (cached_has_bits & 0x00000001u) { set_has_command_key(); command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (cached_has_bits & 0x00000002u) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000004u) { mutable_id_struct()->::message::Id_struct::MergeFrom(from.id_struct()); } if (cached_has_bits & 0x00000008u) { mutable_car_info()->::message::Car_info::MergeFrom(from.car_info()); } } } void Notify_request_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Notify_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Notify_request_msg::CopyFrom(const Notify_request_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Notify_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Notify_request_msg::IsInitialized() const { if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } return true; } void Notify_request_msg::Swap(Notify_request_msg* other) { if (other == this) return; InternalSwap(other); } void Notify_request_msg::InternalSwap(Notify_request_msg* other) { using std::swap; command_key_.Swap(&other->command_key_); swap(base_info_, other->base_info_); swap(id_struct_, other->id_struct_); swap(car_info_, other->car_info_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Notify_request_msg::GetMetadata() const { protobuf_notify_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_notify_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Notify_response_msg::InitAsDefaultInstance() { ::message::_Notify_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); ::message::_Notify_response_msg_default_instance_._instance.get_mutable()->id_struct_ = const_cast< ::message::Id_struct*>( ::message::Id_struct::internal_default_instance()); ::message::_Notify_response_msg_default_instance_._instance.get_mutable()->code_ = const_cast< ::message::Error_manager*>( ::message::Error_manager::internal_default_instance()); } void Notify_response_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Notify_response_msg::clear_id_struct() { if (id_struct_ != NULL) id_struct_->Clear(); clear_has_id_struct(); } void Notify_response_msg::clear_code() { if (code_ != NULL) code_->Clear(); clear_has_code(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Notify_response_msg::kBaseInfoFieldNumber; const int Notify_response_msg::kCommandKeyFieldNumber; const int Notify_response_msg::kIdStructFieldNumber; const int Notify_response_msg::kCodeFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Notify_response_msg::Notify_response_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_notify_5fmessage_2eproto::InitDefaultsNotify_response_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Notify_response_msg) } Notify_response_msg::Notify_response_msg(const Notify_response_msg& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_command_key()) { command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (from.has_base_info()) { base_info_ = new ::message::Base_info(*from.base_info_); } else { base_info_ = NULL; } if (from.has_id_struct()) { id_struct_ = new ::message::Id_struct(*from.id_struct_); } else { id_struct_ = NULL; } if (from.has_code()) { code_ = new ::message::Error_manager(*from.code_); } else { code_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Notify_response_msg) } void Notify_response_msg::SharedCtor() { _cached_size_ = 0; command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&base_info_, 0, static_cast( reinterpret_cast(&code_) - reinterpret_cast(&base_info_)) + sizeof(code_)); } Notify_response_msg::~Notify_response_msg() { // @@protoc_insertion_point(destructor:message.Notify_response_msg) SharedDtor(); } void Notify_response_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete id_struct_; if (this != internal_default_instance()) delete code_; } void Notify_response_msg::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Notify_response_msg::descriptor() { ::protobuf_notify_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_notify_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Notify_response_msg& Notify_response_msg::default_instance() { ::protobuf_notify_5fmessage_2eproto::InitDefaultsNotify_response_msg(); return *internal_default_instance(); } Notify_response_msg* Notify_response_msg::New(::google::protobuf::Arena* arena) const { Notify_response_msg* n = new Notify_response_msg; if (arena != NULL) { arena->Own(n); } return n; } void Notify_response_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Notify_response_msg) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 15u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*command_key_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(id_struct_ != NULL); id_struct_->Clear(); } if (cached_has_bits & 0x00000008u) { GOOGLE_DCHECK(code_ != NULL); code_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Notify_response_msg::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:message.Notify_response_msg) 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)) { // required .message.Base_info base_info = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_base_info())); } else { goto handle_unusual; } break; } // required string command_key = 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_command_key())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::PARSE, "message.Notify_response_msg.command_key"); } else { goto handle_unusual; } break; } // required .message.Id_struct id_struct = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_id_struct())); } else { goto handle_unusual; } break; } // required .message.Error_manager code = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_code())); } 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:message.Notify_response_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Notify_response_msg) return false; #undef DO_ } void Notify_response_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Notify_response_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Notify_response_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), output); } // required .message.Id_struct id_struct = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->id_struct_, output); } // required .message.Error_manager code = 4; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, *this->code_, output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Notify_response_msg) } ::google::protobuf::uint8* Notify_response_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Notify_response_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Notify_response_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), target); } // required .message.Id_struct id_struct = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, *this->id_struct_, deterministic, target); } // required .message.Error_manager code = 4; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, *this->code_, deterministic, target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:message.Notify_response_msg) return target; } size_t Notify_response_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Notify_response_msg) size_t total_size = 0; if (has_command_key()) { // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); } if (has_base_info()) { // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } if (has_id_struct()) { // required .message.Id_struct id_struct = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->id_struct_); } if (has_code()) { // required .message.Error_manager code = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->code_); } return total_size; } size_t Notify_response_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Notify_response_msg) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present. // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); // required .message.Id_struct id_struct = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->id_struct_); // required .message.Error_manager code = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->code_); } else { total_size += RequiredFieldsByteSizeFallback(); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Notify_response_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Notify_response_msg) GOOGLE_DCHECK_NE(&from, this); const Notify_response_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Notify_response_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Notify_response_msg) MergeFrom(*source); } } void Notify_response_msg::MergeFrom(const Notify_response_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Notify_response_msg) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 15u) { if (cached_has_bits & 0x00000001u) { set_has_command_key(); command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (cached_has_bits & 0x00000002u) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000004u) { mutable_id_struct()->::message::Id_struct::MergeFrom(from.id_struct()); } if (cached_has_bits & 0x00000008u) { mutable_code()->::message::Error_manager::MergeFrom(from.code()); } } } void Notify_response_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Notify_response_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Notify_response_msg::CopyFrom(const Notify_response_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Notify_response_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Notify_response_msg::IsInitialized() const { if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } if (has_code()) { if (!this->code_->IsInitialized()) return false; } return true; } void Notify_response_msg::Swap(Notify_response_msg* other) { if (other == this) return; InternalSwap(other); } void Notify_response_msg::InternalSwap(Notify_response_msg* other) { using std::swap; command_key_.Swap(&other->command_key_); swap(base_info_, other->base_info_); swap(id_struct_, other->id_struct_); swap(code_, other->code_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Notify_response_msg::GetMetadata() const { protobuf_notify_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_notify_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Notify_status_msg::InitAsDefaultInstance() { ::message::_Notify_status_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); ::message::_Notify_status_msg_default_instance_._instance.get_mutable()->id_struct_ = const_cast< ::message::Id_struct*>( ::message::Id_struct::internal_default_instance()); ::message::_Notify_status_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>( ::message::Error_manager::internal_default_instance()); ::message::_Notify_status_msg_default_instance_._instance.get_mutable()->singlechipdata_ = const_cast< ::message::Singlechip_data*>( ::message::Singlechip_data::internal_default_instance()); } void Notify_status_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Notify_status_msg::clear_id_struct() { if (id_struct_ != NULL) id_struct_->Clear(); clear_has_id_struct(); } void Notify_status_msg::clear_error_manager() { if (error_manager_ != NULL) error_manager_->Clear(); clear_has_error_manager(); } void Notify_status_msg::clear_singlechipdata() { if (singlechipdata_ != NULL) singlechipdata_->Clear(); clear_has_singlechipdata(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Notify_status_msg::kBaseInfoFieldNumber; const int Notify_status_msg::kIdStructFieldNumber; const int Notify_status_msg::kErrorManagerFieldNumber; const int Notify_status_msg::kSinglechipDataFieldNumber; const int Notify_status_msg::kSinglechipValidityFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Notify_status_msg::Notify_status_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_notify_5fmessage_2eproto::InitDefaultsNotify_status_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Notify_status_msg) } Notify_status_msg::Notify_status_msg(const Notify_status_msg& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_base_info()) { base_info_ = new ::message::Base_info(*from.base_info_); } else { base_info_ = NULL; } if (from.has_id_struct()) { id_struct_ = new ::message::Id_struct(*from.id_struct_); } else { id_struct_ = NULL; } if (from.has_error_manager()) { error_manager_ = new ::message::Error_manager(*from.error_manager_); } else { error_manager_ = NULL; } if (from.has_singlechipdata()) { singlechipdata_ = new ::message::Singlechip_data(*from.singlechipdata_); } else { singlechipdata_ = NULL; } singlechip_validity_ = from.singlechip_validity_; // @@protoc_insertion_point(copy_constructor:message.Notify_status_msg) } void Notify_status_msg::SharedCtor() { _cached_size_ = 0; ::memset(&base_info_, 0, static_cast( reinterpret_cast(&singlechip_validity_) - reinterpret_cast(&base_info_)) + sizeof(singlechip_validity_)); } Notify_status_msg::~Notify_status_msg() { // @@protoc_insertion_point(destructor:message.Notify_status_msg) SharedDtor(); } void Notify_status_msg::SharedDtor() { if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete id_struct_; if (this != internal_default_instance()) delete error_manager_; if (this != internal_default_instance()) delete singlechipdata_; } void Notify_status_msg::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Notify_status_msg::descriptor() { ::protobuf_notify_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_notify_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Notify_status_msg& Notify_status_msg::default_instance() { ::protobuf_notify_5fmessage_2eproto::InitDefaultsNotify_status_msg(); return *internal_default_instance(); } Notify_status_msg* Notify_status_msg::New(::google::protobuf::Arena* arena) const { Notify_status_msg* n = new Notify_status_msg; if (arena != NULL) { arena->Own(n); } return n; } void Notify_status_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Notify_status_msg) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 15u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(id_struct_ != NULL); id_struct_->Clear(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(error_manager_ != NULL); error_manager_->Clear(); } if (cached_has_bits & 0x00000008u) { GOOGLE_DCHECK(singlechipdata_ != NULL); singlechipdata_->Clear(); } } singlechip_validity_ = false; _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Notify_status_msg::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:message.Notify_status_msg) 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)) { // required .message.Base_info base_info = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_base_info())); } else { goto handle_unusual; } break; } // required .message.Id_struct id_struct = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_id_struct())); } else { goto handle_unusual; } break; } // required .message.Error_manager error_manager = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_error_manager())); } else { goto handle_unusual; } break; } // optional .message.Singlechip_data singlechipData = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_singlechipdata())); } else { goto handle_unusual; } break; } // optional bool singlechip_validity = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { set_has_singlechip_validity(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &singlechip_validity_))); } 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:message.Notify_status_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Notify_status_msg) return false; #undef DO_ } void Notify_status_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Notify_status_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required .message.Id_struct id_struct = 2; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, *this->id_struct_, output); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->error_manager_, output); } // optional .message.Singlechip_data singlechipData = 4; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, *this->singlechipdata_, output); } // optional bool singlechip_validity = 5; if (cached_has_bits & 0x00000010u) { ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->singlechip_validity(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Notify_status_msg) } ::google::protobuf::uint8* Notify_status_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Notify_status_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required .message.Id_struct id_struct = 2; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, *this->id_struct_, deterministic, target); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, *this->error_manager_, deterministic, target); } // optional .message.Singlechip_data singlechipData = 4; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, *this->singlechipdata_, deterministic, target); } // optional bool singlechip_validity = 5; if (cached_has_bits & 0x00000010u) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->singlechip_validity(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:message.Notify_status_msg) return target; } size_t Notify_status_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Notify_status_msg) size_t total_size = 0; if (has_base_info()) { // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } if (has_id_struct()) { // required .message.Id_struct id_struct = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->id_struct_); } if (has_error_manager()) { // required .message.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } return total_size; } size_t Notify_status_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Notify_status_msg) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); // required .message.Id_struct id_struct = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->id_struct_); // required .message.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } else { total_size += RequiredFieldsByteSizeFallback(); } if (_has_bits_[0 / 32] & 24u) { // optional .message.Singlechip_data singlechipData = 4; if (has_singlechipdata()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->singlechipdata_); } // optional bool singlechip_validity = 5; if (has_singlechip_validity()) { total_size += 1 + 1; } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Notify_status_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Notify_status_msg) GOOGLE_DCHECK_NE(&from, this); const Notify_status_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Notify_status_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Notify_status_msg) MergeFrom(*source); } } void Notify_status_msg::MergeFrom(const Notify_status_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Notify_status_msg) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 31u) { if (cached_has_bits & 0x00000001u) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000002u) { mutable_id_struct()->::message::Id_struct::MergeFrom(from.id_struct()); } if (cached_has_bits & 0x00000004u) { mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager()); } if (cached_has_bits & 0x00000008u) { mutable_singlechipdata()->::message::Singlechip_data::MergeFrom(from.singlechipdata()); } if (cached_has_bits & 0x00000010u) { singlechip_validity_ = from.singlechip_validity_; } _has_bits_[0] |= cached_has_bits; } } void Notify_status_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Notify_status_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Notify_status_msg::CopyFrom(const Notify_status_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Notify_status_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Notify_status_msg::IsInitialized() const { if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } if (has_error_manager()) { if (!this->error_manager_->IsInitialized()) return false; } return true; } void Notify_status_msg::Swap(Notify_status_msg* other) { if (other == this) return; InternalSwap(other); } void Notify_status_msg::InternalSwap(Notify_status_msg* other) { using std::swap; swap(base_info_, other->base_info_); swap(id_struct_, other->id_struct_); swap(error_manager_, other->error_manager_); swap(singlechipdata_, other->singlechipdata_); swap(singlechip_validity_, other->singlechip_validity_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Notify_status_msg::GetMetadata() const { protobuf_notify_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_notify_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // @@protoc_insertion_point(namespace_scope) } // namespace message // @@protoc_insertion_point(global_scope)