// Generated by the protocol buffer compiler. DO NOT EDIT! // source: parkspace_allocation_message.proto #include "parkspace_allocation_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 Parkspace_allocation_request_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_allocation_request_msg_default_instance_; class Parkspace_allocation_response_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_allocation_response_msg_default_instance_; class Parkspace_search_request_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_search_request_msg_default_instance_; class Parkspace_search_response_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_search_response_msg_default_instance_; class Parkspace_release_request_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_release_request_msg_default_instance_; class Parkspace_release_response_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_release_response_msg_default_instance_; class Parkspace_force_update_request_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_force_update_request_msg_default_instance_; class Parkspace_force_update_response_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_force_update_response_msg_default_instance_; class Parkspace_confirm_alloc_request_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_confirm_alloc_request_msg_default_instance_; class Parkspace_confirm_alloc_response_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_confirm_alloc_response_msg_default_instance_; class Parkspace_allocation_status_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_allocation_status_msg_default_instance_; class Parkspace_refresh_request_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_refresh_request_msg_default_instance_; class Parkspace_allocation_data_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_allocation_data_msg_default_instance_; } // namespace message namespace protobuf_parkspace_5fallocation_5fmessage_2eproto { void InitDefaultsParkspace_allocation_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::InitDefaultsCar_info(); { void* ptr = &::message::_Parkspace_allocation_request_msg_default_instance_; new (ptr) ::message::Parkspace_allocation_request_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_allocation_request_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_allocation_request_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_allocation_request_msgImpl); } void InitDefaultsParkspace_allocation_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::InitDefaultsError_manager(); protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info(); { void* ptr = &::message::_Parkspace_allocation_response_msg_default_instance_; new (ptr) ::message::Parkspace_allocation_response_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_allocation_response_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_allocation_response_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_allocation_response_msgImpl); } void InitDefaultsParkspace_search_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::InitDefaultsCar_info(); { void* ptr = &::message::_Parkspace_search_request_msg_default_instance_; new (ptr) ::message::Parkspace_search_request_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_search_request_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_search_request_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_search_request_msgImpl); } void InitDefaultsParkspace_search_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::InitDefaultsError_manager(); protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info(); { void* ptr = &::message::_Parkspace_search_response_msg_default_instance_; new (ptr) ::message::Parkspace_search_response_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_search_response_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_search_response_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_search_response_msgImpl); } void InitDefaultsParkspace_release_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::InitDefaultsParkspace_info(); { void* ptr = &::message::_Parkspace_release_request_msg_default_instance_; new (ptr) ::message::Parkspace_release_request_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_release_request_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_release_request_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_release_request_msgImpl); } void InitDefaultsParkspace_release_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::InitDefaultsError_manager(); protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info(); { void* ptr = &::message::_Parkspace_release_response_msg_default_instance_; new (ptr) ::message::Parkspace_release_response_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_release_response_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_release_response_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_release_response_msgImpl); } void InitDefaultsParkspace_force_update_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::InitDefaultsParkspace_info(); { void* ptr = &::message::_Parkspace_force_update_request_msg_default_instance_; new (ptr) ::message::Parkspace_force_update_request_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_force_update_request_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_force_update_request_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_force_update_request_msgImpl); } void InitDefaultsParkspace_force_update_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::InitDefaultsError_manager(); protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info(); { void* ptr = &::message::_Parkspace_force_update_response_msg_default_instance_; new (ptr) ::message::Parkspace_force_update_response_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_force_update_response_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_force_update_response_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_force_update_response_msgImpl); } void InitDefaultsParkspace_confirm_alloc_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::InitDefaultsParkspace_info(); { void* ptr = &::message::_Parkspace_confirm_alloc_request_msg_default_instance_; new (ptr) ::message::Parkspace_confirm_alloc_request_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_confirm_alloc_request_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_confirm_alloc_request_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_confirm_alloc_request_msgImpl); } void InitDefaultsParkspace_confirm_alloc_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::InitDefaultsError_manager(); protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info(); { void* ptr = &::message::_Parkspace_confirm_alloc_response_msg_default_instance_; new (ptr) ::message::Parkspace_confirm_alloc_response_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_confirm_alloc_response_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_confirm_alloc_response_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_confirm_alloc_response_msgImpl); } void InitDefaultsParkspace_allocation_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::InitDefaultsError_manager(); { void* ptr = &::message::_Parkspace_allocation_status_msg_default_instance_; new (ptr) ::message::Parkspace_allocation_status_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_allocation_status_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_allocation_status_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_allocation_status_msgImpl); } void InitDefaultsParkspace_refresh_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(); { void* ptr = &::message::_Parkspace_refresh_request_msg_default_instance_; new (ptr) ::message::Parkspace_refresh_request_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_refresh_request_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_refresh_request_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_refresh_request_msgImpl); } void InitDefaultsParkspace_allocation_data_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::InitDefaultsError_manager(); protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info(); { void* ptr = &::message::_Parkspace_allocation_data_msg_default_instance_; new (ptr) ::message::Parkspace_allocation_data_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_allocation_data_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_allocation_data_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_allocation_data_msgImpl); } ::google::protobuf::Metadata file_level_metadata[13]; const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[3]; const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, car_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, terminal_id_), 1, 0, 2, 3, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, error_manager_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, allocated_space_info_), 1, 0, 2, 3, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, car_info_), 1, 0, 2, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, error_manager_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, car_position_), 1, 0, 2, 3, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_request_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_request_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_request_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_request_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_request_msg, release_space_info_), 1, 0, 2, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, error_manager_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, release_space_info_), 1, 0, 2, 3, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_force_update_request_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_force_update_request_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_force_update_request_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_force_update_request_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_force_update_request_msg, update_space_info_), 1, 0, 2, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_force_update_response_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_force_update_response_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_force_update_response_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_force_update_response_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_force_update_response_msg, error_manager_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_force_update_response_msg, update_space_info_), 1, 0, 2, 3, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_request_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_request_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_request_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_request_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_request_msg, confirm_space_info_), 1, 0, 2, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_response_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_response_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_response_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_response_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_response_msg, error_manager_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_response_msg, confirm_alloc_space_info_), 1, 0, 2, 3, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, error_manager_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, database_controller_status_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, parkspace_manager_satus_), 0, 1, 2, 3, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_refresh_request_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_refresh_request_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_refresh_request_msg, base_info_), 0, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_data_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_data_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_data_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_data_msg, error_manager_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_data_msg, parkspace_info_), 0, 1, ~0u, }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, 9, sizeof(::message::Parkspace_allocation_request_msg)}, { 13, 22, sizeof(::message::Parkspace_allocation_response_msg)}, { 26, 34, sizeof(::message::Parkspace_search_request_msg)}, { 37, 46, sizeof(::message::Parkspace_search_response_msg)}, { 50, 58, sizeof(::message::Parkspace_release_request_msg)}, { 61, 70, sizeof(::message::Parkspace_release_response_msg)}, { 74, 82, sizeof(::message::Parkspace_force_update_request_msg)}, { 85, 94, sizeof(::message::Parkspace_force_update_response_msg)}, { 98, 106, sizeof(::message::Parkspace_confirm_alloc_request_msg)}, { 109, 118, sizeof(::message::Parkspace_confirm_alloc_response_msg)}, { 122, 131, sizeof(::message::Parkspace_allocation_status_msg)}, { 135, 141, sizeof(::message::Parkspace_refresh_request_msg)}, { 142, 150, sizeof(::message::Parkspace_allocation_data_msg)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::message::_Parkspace_allocation_request_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_allocation_response_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_search_request_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_search_response_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_release_request_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_release_response_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_force_update_request_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_force_update_response_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_confirm_alloc_request_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_confirm_alloc_response_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_allocation_status_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_refresh_request_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_allocation_data_msg_default_instance_), }; void protobuf_AssignDescriptors() { AddDescriptors(); ::google::protobuf::MessageFactory* factory = NULL; AssignDescriptors( "parkspace_allocation_message.proto", schemas, file_default_instances, TableStruct::offsets, factory, file_level_metadata, file_level_enum_descriptors, 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, 13); } void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n\"parkspace_allocation_message.proto\022\007me" "ssage\032\022message_base.proto\"\230\001\n Parkspace_" "allocation_request_msg\022%\n\tbase_info\030\001 \002(" "\0132\022.message.Base_info\022\023\n\013command_key\030\002 \002" "(\t\022#\n\010car_info\030\003 \002(\0132\021.message.Car_info\022" "\023\n\013terminal_id\030\004 \002(\005\"\305\001\n!Parkspace_alloc" "ation_response_msg\022%\n\tbase_info\030\001 \002(\0132\022." "message.Base_info\022\023\n\013command_key\030\002 \002(\t\022-" "\n\rerror_manager\030\003 \002(\0132\026.message.Error_ma" "nager\0225\n\024allocated_space_info\030\004 \002(\0132\027.me" "ssage.Parkspace_info\"\177\n\034Parkspace_search" "_request_msg\022%\n\tbase_info\030\001 \002(\0132\022.messag" "e.Base_info\022\023\n\013command_key\030\002 \002(\t\022#\n\010car_" "info\030\003 \002(\0132\021.message.Car_info\"\271\001\n\035Parksp" "ace_search_response_msg\022%\n\tbase_info\030\001 \002" "(\0132\022.message.Base_info\022\023\n\013command_key\030\002 " "\002(\t\022-\n\rerror_manager\030\003 \002(\0132\026.message.Err" "or_manager\022-\n\014car_position\030\004 \001(\0132\027.messa" "ge.Parkspace_info\"\220\001\n\035Parkspace_release_" "request_msg\022%\n\tbase_info\030\001 \002(\0132\022.message" ".Base_info\022\023\n\013command_key\030\002 \002(\t\0223\n\022relea" "se_space_info\030\003 \002(\0132\027.message.Parkspace_" "info\"\300\001\n\036Parkspace_release_response_msg\022" "%\n\tbase_info\030\001 \002(\0132\022.message.Base_info\022\023" "\n\013command_key\030\002 \002(\t\022-\n\rerror_manager\030\003 \002" "(\0132\026.message.Error_manager\0223\n\022release_sp" "ace_info\030\004 \002(\0132\027.message.Parkspace_info\"" "\224\001\n\"Parkspace_force_update_request_msg\022%" "\n\tbase_info\030\001 \002(\0132\022.message.Base_info\022\023\n" "\013command_key\030\002 \002(\t\0222\n\021update_space_info\030" "\003 \002(\0132\027.message.Parkspace_info\"\304\001\n#Parks" "pace_force_update_response_msg\022%\n\tbase_i" "nfo\030\001 \002(\0132\022.message.Base_info\022\023\n\013command" "_key\030\002 \002(\t\022-\n\rerror_manager\030\003 \002(\0132\026.mess" "age.Error_manager\0222\n\021update_space_info\030\004" " \002(\0132\027.message.Parkspace_info\"\226\001\n#Parksp" "ace_confirm_alloc_request_msg\022%\n\tbase_in" "fo\030\001 \002(\0132\022.message.Base_info\022\023\n\013command_" "key\030\002 \002(\t\0223\n\022confirm_space_info\030\003 \002(\0132\027." "message.Parkspace_info\"\314\001\n$Parkspace_con" "firm_alloc_response_msg\022%\n\tbase_info\030\001 \002" "(\0132\022.message.Base_info\022\023\n\013command_key\030\002 " "\002(\t\022-\n\rerror_manager\030\003 \002(\0132\026.message.Err" "or_manager\0229\n\030confirm_alloc_space_info\030\004" " \002(\0132\027.message.Parkspace_info\"\203\002\n\037Parksp" "ace_allocation_status_msg\022%\n\tbase_info\030\001" " \002(\0132\022.message.Base_info\022-\n\rerror_manage" "r\030\002 \002(\0132\026.message.Error_manager\022G\n\032datab" "ase_controller_status\030\003 \002(\0162#.message.Da" "tabase_controller_status\022A\n\027parkspace_ma" "nager_satus\030\004 \002(\0162 .message.Parkspace_ma" "nager_satus\"F\n\035Parkspace_refresh_request" "_msg\022%\n\tbase_info\030\001 \002(\0132\022.message.Base_i" "nfo\"\246\001\n\035Parkspace_allocation_data_msg\022%\n" "\tbase_info\030\001 \002(\0132\022.message.Base_info\022-\n\r" "error_manager\030\002 \002(\0132\026.message.Error_mana" "ger\022/\n\016parkspace_info\030\003 \003(\0132\027.message.Pa" "rkspace_info*\225\001\n\016Vehicle_status\022\021\n\reVehi" "cle_idle\020\000\022\026\n\022eVehicle_in_garage\020\001\022\024\n\020eV" "ehicle_parking\020\002\022\025\n\021eVehicle_fetching\020\003\022" "\025\n\021eVehicle_reserved\020\004\022\024\n\020eVehicle_unkno" "wn\020\005*W\n\032Database_controller_status\022\r\n\tE_" "UNKNOWN\020\000\022\013\n\007E_READY\020\001\022\020\n\014E_DISCONNECT\020\002" "\022\013\n\007E_FAULT\020\003*v\n\027Parkspace_manager_satus" "\022\036\n\032eParkspace_manager_unknown\020\000\022\035\n\031ePar" "kspace_manager_normal\020\001\022\034\n\030eParkspace_ma" "nager_fault\020\002" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( descriptor, 2653); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "parkspace_allocation_message.proto", &protobuf_RegisterTypes); ::protobuf_message_5fbase_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_parkspace_5fallocation_5fmessage_2eproto namespace message { const ::google::protobuf::EnumDescriptor* Vehicle_status_descriptor() { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_enum_descriptors[0]; } bool Vehicle_status_IsValid(int value) { switch (value) { case 0: case 1: case 2: case 3: case 4: case 5: return true; default: return false; } } const ::google::protobuf::EnumDescriptor* Database_controller_status_descriptor() { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_enum_descriptors[1]; } bool Database_controller_status_IsValid(int value) { switch (value) { case 0: case 1: case 2: case 3: return true; default: return false; } } const ::google::protobuf::EnumDescriptor* Parkspace_manager_satus_descriptor() { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_enum_descriptors[2]; } bool Parkspace_manager_satus_IsValid(int value) { switch (value) { case 0: case 1: case 2: return true; default: return false; } } // =================================================================== void Parkspace_allocation_request_msg::InitAsDefaultInstance() { ::message::_Parkspace_allocation_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); ::message::_Parkspace_allocation_request_msg_default_instance_._instance.get_mutable()->car_info_ = const_cast< ::message::Car_info*>( ::message::Car_info::internal_default_instance()); } void Parkspace_allocation_request_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_allocation_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 Parkspace_allocation_request_msg::kBaseInfoFieldNumber; const int Parkspace_allocation_request_msg::kCommandKeyFieldNumber; const int Parkspace_allocation_request_msg::kCarInfoFieldNumber; const int Parkspace_allocation_request_msg::kTerminalIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_allocation_request_msg::Parkspace_allocation_request_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_request_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_allocation_request_msg) } Parkspace_allocation_request_msg::Parkspace_allocation_request_msg(const Parkspace_allocation_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_car_info()) { car_info_ = new ::message::Car_info(*from.car_info_); } else { car_info_ = NULL; } terminal_id_ = from.terminal_id_; // @@protoc_insertion_point(copy_constructor:message.Parkspace_allocation_request_msg) } void Parkspace_allocation_request_msg::SharedCtor() { _cached_size_ = 0; command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&base_info_, 0, static_cast( reinterpret_cast(&terminal_id_) - reinterpret_cast(&base_info_)) + sizeof(terminal_id_)); } Parkspace_allocation_request_msg::~Parkspace_allocation_request_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_allocation_request_msg) SharedDtor(); } void Parkspace_allocation_request_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete car_info_; } void Parkspace_allocation_request_msg::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Parkspace_allocation_request_msg::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Parkspace_allocation_request_msg& Parkspace_allocation_request_msg::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_request_msg(); return *internal_default_instance(); } Parkspace_allocation_request_msg* Parkspace_allocation_request_msg::New(::google::protobuf::Arena* arena) const { Parkspace_allocation_request_msg* n = new Parkspace_allocation_request_msg; if (arena != NULL) { arena->Own(n); } return n; } void Parkspace_allocation_request_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Parkspace_allocation_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 & 7u) { 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(car_info_ != NULL); car_info_->Clear(); } } terminal_id_ = 0; _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_allocation_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.Parkspace_allocation_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.Parkspace_allocation_request_msg.command_key"); } else { goto handle_unusual; } break; } // required .message.Car_info car_info = 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_car_info())); } else { goto handle_unusual; } break; } // required int32 terminal_id = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { set_has_terminal_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &terminal_id_))); } 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.Parkspace_allocation_request_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_allocation_request_msg) return false; #undef DO_ } void Parkspace_allocation_request_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_allocation_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.Parkspace_allocation_request_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), output); } // required .message.Car_info car_info = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->car_info_, output); } // required int32 terminal_id = 4; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->terminal_id(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_allocation_request_msg) } ::google::protobuf::uint8* Parkspace_allocation_request_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_allocation_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.Parkspace_allocation_request_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), target); } // required .message.Car_info car_info = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, *this->car_info_, deterministic, target); } // required int32 terminal_id = 4; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->terminal_id(), 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.Parkspace_allocation_request_msg) return target; } size_t Parkspace_allocation_request_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_allocation_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_car_info()) { // required .message.Car_info car_info = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->car_info_); } if (has_terminal_id()) { // required int32 terminal_id = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->terminal_id()); } return total_size; } size_t Parkspace_allocation_request_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_allocation_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.Car_info car_info = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->car_info_); // required int32 terminal_id = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->terminal_id()); } 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 Parkspace_allocation_request_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_allocation_request_msg) GOOGLE_DCHECK_NE(&from, this); const Parkspace_allocation_request_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_allocation_request_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_allocation_request_msg) MergeFrom(*source); } } void Parkspace_allocation_request_msg::MergeFrom(const Parkspace_allocation_request_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_allocation_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_car_info()->::message::Car_info::MergeFrom(from.car_info()); } if (cached_has_bits & 0x00000008u) { terminal_id_ = from.terminal_id_; } _has_bits_[0] |= cached_has_bits; } } void Parkspace_allocation_request_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_allocation_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_allocation_request_msg::CopyFrom(const Parkspace_allocation_request_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_allocation_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_allocation_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 Parkspace_allocation_request_msg::Swap(Parkspace_allocation_request_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_allocation_request_msg::InternalSwap(Parkspace_allocation_request_msg* other) { using std::swap; command_key_.Swap(&other->command_key_); swap(base_info_, other->base_info_); swap(car_info_, other->car_info_); swap(terminal_id_, other->terminal_id_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_allocation_request_msg::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Parkspace_allocation_response_msg::InitAsDefaultInstance() { ::message::_Parkspace_allocation_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); ::message::_Parkspace_allocation_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>( ::message::Error_manager::internal_default_instance()); ::message::_Parkspace_allocation_response_msg_default_instance_._instance.get_mutable()->allocated_space_info_ = const_cast< ::message::Parkspace_info*>( ::message::Parkspace_info::internal_default_instance()); } void Parkspace_allocation_response_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_allocation_response_msg::clear_error_manager() { if (error_manager_ != NULL) error_manager_->Clear(); clear_has_error_manager(); } void Parkspace_allocation_response_msg::clear_allocated_space_info() { if (allocated_space_info_ != NULL) allocated_space_info_->Clear(); clear_has_allocated_space_info(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_allocation_response_msg::kBaseInfoFieldNumber; const int Parkspace_allocation_response_msg::kCommandKeyFieldNumber; const int Parkspace_allocation_response_msg::kErrorManagerFieldNumber; const int Parkspace_allocation_response_msg::kAllocatedSpaceInfoFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_allocation_response_msg::Parkspace_allocation_response_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_response_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_allocation_response_msg) } Parkspace_allocation_response_msg::Parkspace_allocation_response_msg(const Parkspace_allocation_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_error_manager()) { error_manager_ = new ::message::Error_manager(*from.error_manager_); } else { error_manager_ = NULL; } if (from.has_allocated_space_info()) { allocated_space_info_ = new ::message::Parkspace_info(*from.allocated_space_info_); } else { allocated_space_info_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Parkspace_allocation_response_msg) } void Parkspace_allocation_response_msg::SharedCtor() { _cached_size_ = 0; command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&base_info_, 0, static_cast( reinterpret_cast(&allocated_space_info_) - reinterpret_cast(&base_info_)) + sizeof(allocated_space_info_)); } Parkspace_allocation_response_msg::~Parkspace_allocation_response_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_allocation_response_msg) SharedDtor(); } void Parkspace_allocation_response_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete error_manager_; if (this != internal_default_instance()) delete allocated_space_info_; } void Parkspace_allocation_response_msg::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Parkspace_allocation_response_msg::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Parkspace_allocation_response_msg& Parkspace_allocation_response_msg::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_response_msg(); return *internal_default_instance(); } Parkspace_allocation_response_msg* Parkspace_allocation_response_msg::New(::google::protobuf::Arena* arena) const { Parkspace_allocation_response_msg* n = new Parkspace_allocation_response_msg; if (arena != NULL) { arena->Own(n); } return n; } void Parkspace_allocation_response_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Parkspace_allocation_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(error_manager_ != NULL); error_manager_->Clear(); } if (cached_has_bits & 0x00000008u) { GOOGLE_DCHECK(allocated_space_info_ != NULL); allocated_space_info_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_allocation_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.Parkspace_allocation_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.Parkspace_allocation_response_msg.command_key"); } 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; } // required .message.Parkspace_info allocated_space_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_allocated_space_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.Parkspace_allocation_response_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_allocation_response_msg) return false; #undef DO_ } void Parkspace_allocation_response_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_allocation_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.Parkspace_allocation_response_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), output); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->error_manager_, output); } // required .message.Parkspace_info allocated_space_info = 4; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, *this->allocated_space_info_, output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_allocation_response_msg) } ::google::protobuf::uint8* Parkspace_allocation_response_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_allocation_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.Parkspace_allocation_response_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), 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); } // required .message.Parkspace_info allocated_space_info = 4; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, *this->allocated_space_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.Parkspace_allocation_response_msg) return target; } size_t Parkspace_allocation_response_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_allocation_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_error_manager()) { // required .message.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } if (has_allocated_space_info()) { // required .message.Parkspace_info allocated_space_info = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->allocated_space_info_); } return total_size; } size_t Parkspace_allocation_response_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_allocation_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.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); // required .message.Parkspace_info allocated_space_info = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->allocated_space_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 Parkspace_allocation_response_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_allocation_response_msg) GOOGLE_DCHECK_NE(&from, this); const Parkspace_allocation_response_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_allocation_response_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_allocation_response_msg) MergeFrom(*source); } } void Parkspace_allocation_response_msg::MergeFrom(const Parkspace_allocation_response_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_allocation_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_error_manager()->::message::Error_manager::MergeFrom(from.error_manager()); } if (cached_has_bits & 0x00000008u) { mutable_allocated_space_info()->::message::Parkspace_info::MergeFrom(from.allocated_space_info()); } } } void Parkspace_allocation_response_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_allocation_response_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_allocation_response_msg::CopyFrom(const Parkspace_allocation_response_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_allocation_response_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_allocation_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_error_manager()) { if (!this->error_manager_->IsInitialized()) return false; } return true; } void Parkspace_allocation_response_msg::Swap(Parkspace_allocation_response_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_allocation_response_msg::InternalSwap(Parkspace_allocation_response_msg* other) { using std::swap; command_key_.Swap(&other->command_key_); swap(base_info_, other->base_info_); swap(error_manager_, other->error_manager_); swap(allocated_space_info_, other->allocated_space_info_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_allocation_response_msg::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Parkspace_search_request_msg::InitAsDefaultInstance() { ::message::_Parkspace_search_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); ::message::_Parkspace_search_request_msg_default_instance_._instance.get_mutable()->car_info_ = const_cast< ::message::Car_info*>( ::message::Car_info::internal_default_instance()); } void Parkspace_search_request_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_search_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 Parkspace_search_request_msg::kBaseInfoFieldNumber; const int Parkspace_search_request_msg::kCommandKeyFieldNumber; const int Parkspace_search_request_msg::kCarInfoFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_search_request_msg::Parkspace_search_request_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_search_request_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_search_request_msg) } Parkspace_search_request_msg::Parkspace_search_request_msg(const Parkspace_search_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_car_info()) { car_info_ = new ::message::Car_info(*from.car_info_); } else { car_info_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Parkspace_search_request_msg) } void Parkspace_search_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_)); } Parkspace_search_request_msg::~Parkspace_search_request_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_search_request_msg) SharedDtor(); } void Parkspace_search_request_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete car_info_; } void Parkspace_search_request_msg::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Parkspace_search_request_msg::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Parkspace_search_request_msg& Parkspace_search_request_msg::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_search_request_msg(); return *internal_default_instance(); } Parkspace_search_request_msg* Parkspace_search_request_msg::New(::google::protobuf::Arena* arena) const { Parkspace_search_request_msg* n = new Parkspace_search_request_msg; if (arena != NULL) { arena->Own(n); } return n; } void Parkspace_search_request_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Parkspace_search_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 & 7u) { 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(car_info_ != NULL); car_info_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_search_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.Parkspace_search_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.Parkspace_search_request_msg.command_key"); } else { goto handle_unusual; } break; } // required .message.Car_info car_info = 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_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.Parkspace_search_request_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_search_request_msg) return false; #undef DO_ } void Parkspace_search_request_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_search_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.Parkspace_search_request_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), output); } // required .message.Car_info car_info = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *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.Parkspace_search_request_msg) } ::google::protobuf::uint8* Parkspace_search_request_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_search_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.Parkspace_search_request_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), target); } // required .message.Car_info car_info = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, *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.Parkspace_search_request_msg) return target; } size_t Parkspace_search_request_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_search_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_car_info()) { // required .message.Car_info car_info = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->car_info_); } return total_size; } size_t Parkspace_search_request_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_search_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] & 0x00000007) ^ 0x00000007) == 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.Car_info car_info = 3; 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 Parkspace_search_request_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_search_request_msg) GOOGLE_DCHECK_NE(&from, this); const Parkspace_search_request_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_search_request_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_search_request_msg) MergeFrom(*source); } } void Parkspace_search_request_msg::MergeFrom(const Parkspace_search_request_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_search_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 & 7u) { 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_car_info()->::message::Car_info::MergeFrom(from.car_info()); } } } void Parkspace_search_request_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_search_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_search_request_msg::CopyFrom(const Parkspace_search_request_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_search_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_search_request_msg::IsInitialized() const { if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } return true; } void Parkspace_search_request_msg::Swap(Parkspace_search_request_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_search_request_msg::InternalSwap(Parkspace_search_request_msg* other) { using std::swap; command_key_.Swap(&other->command_key_); swap(base_info_, other->base_info_); 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 Parkspace_search_request_msg::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Parkspace_search_response_msg::InitAsDefaultInstance() { ::message::_Parkspace_search_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); ::message::_Parkspace_search_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>( ::message::Error_manager::internal_default_instance()); ::message::_Parkspace_search_response_msg_default_instance_._instance.get_mutable()->car_position_ = const_cast< ::message::Parkspace_info*>( ::message::Parkspace_info::internal_default_instance()); } void Parkspace_search_response_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_search_response_msg::clear_error_manager() { if (error_manager_ != NULL) error_manager_->Clear(); clear_has_error_manager(); } void Parkspace_search_response_msg::clear_car_position() { if (car_position_ != NULL) car_position_->Clear(); clear_has_car_position(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_search_response_msg::kBaseInfoFieldNumber; const int Parkspace_search_response_msg::kCommandKeyFieldNumber; const int Parkspace_search_response_msg::kErrorManagerFieldNumber; const int Parkspace_search_response_msg::kCarPositionFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_search_response_msg::Parkspace_search_response_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_search_response_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_search_response_msg) } Parkspace_search_response_msg::Parkspace_search_response_msg(const Parkspace_search_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_error_manager()) { error_manager_ = new ::message::Error_manager(*from.error_manager_); } else { error_manager_ = NULL; } if (from.has_car_position()) { car_position_ = new ::message::Parkspace_info(*from.car_position_); } else { car_position_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Parkspace_search_response_msg) } void Parkspace_search_response_msg::SharedCtor() { _cached_size_ = 0; command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&base_info_, 0, static_cast( reinterpret_cast(&car_position_) - reinterpret_cast(&base_info_)) + sizeof(car_position_)); } Parkspace_search_response_msg::~Parkspace_search_response_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_search_response_msg) SharedDtor(); } void Parkspace_search_response_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete error_manager_; if (this != internal_default_instance()) delete car_position_; } void Parkspace_search_response_msg::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Parkspace_search_response_msg::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Parkspace_search_response_msg& Parkspace_search_response_msg::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_search_response_msg(); return *internal_default_instance(); } Parkspace_search_response_msg* Parkspace_search_response_msg::New(::google::protobuf::Arena* arena) const { Parkspace_search_response_msg* n = new Parkspace_search_response_msg; if (arena != NULL) { arena->Own(n); } return n; } void Parkspace_search_response_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Parkspace_search_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(error_manager_ != NULL); error_manager_->Clear(); } if (cached_has_bits & 0x00000008u) { GOOGLE_DCHECK(car_position_ != NULL); car_position_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_search_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.Parkspace_search_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.Parkspace_search_response_msg.command_key"); } 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.Parkspace_info car_position = 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_position())); } 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.Parkspace_search_response_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_search_response_msg) return false; #undef DO_ } void Parkspace_search_response_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_search_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.Parkspace_search_response_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), 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.Parkspace_info car_position = 4; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, *this->car_position_, output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_search_response_msg) } ::google::protobuf::uint8* Parkspace_search_response_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_search_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.Parkspace_search_response_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), 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.Parkspace_info car_position = 4; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, *this->car_position_, 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.Parkspace_search_response_msg) return target; } size_t Parkspace_search_response_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_search_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_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 Parkspace_search_response_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_search_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] & 0x00000007) ^ 0x00000007) == 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.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } else { total_size += RequiredFieldsByteSizeFallback(); } // optional .message.Parkspace_info car_position = 4; if (has_car_position()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->car_position_); } 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 Parkspace_search_response_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_search_response_msg) GOOGLE_DCHECK_NE(&from, this); const Parkspace_search_response_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_search_response_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_search_response_msg) MergeFrom(*source); } } void Parkspace_search_response_msg::MergeFrom(const Parkspace_search_response_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_search_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_error_manager()->::message::Error_manager::MergeFrom(from.error_manager()); } if (cached_has_bits & 0x00000008u) { mutable_car_position()->::message::Parkspace_info::MergeFrom(from.car_position()); } } } void Parkspace_search_response_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_search_response_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_search_response_msg::CopyFrom(const Parkspace_search_response_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_search_response_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_search_response_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 Parkspace_search_response_msg::Swap(Parkspace_search_response_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_search_response_msg::InternalSwap(Parkspace_search_response_msg* other) { using std::swap; command_key_.Swap(&other->command_key_); swap(base_info_, other->base_info_); swap(error_manager_, other->error_manager_); swap(car_position_, other->car_position_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_search_response_msg::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Parkspace_release_request_msg::InitAsDefaultInstance() { ::message::_Parkspace_release_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); ::message::_Parkspace_release_request_msg_default_instance_._instance.get_mutable()->release_space_info_ = const_cast< ::message::Parkspace_info*>( ::message::Parkspace_info::internal_default_instance()); } void Parkspace_release_request_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_release_request_msg::clear_release_space_info() { if (release_space_info_ != NULL) release_space_info_->Clear(); clear_has_release_space_info(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_release_request_msg::kBaseInfoFieldNumber; const int Parkspace_release_request_msg::kCommandKeyFieldNumber; const int Parkspace_release_request_msg::kReleaseSpaceInfoFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_release_request_msg::Parkspace_release_request_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_release_request_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_release_request_msg) } Parkspace_release_request_msg::Parkspace_release_request_msg(const Parkspace_release_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_release_space_info()) { release_space_info_ = new ::message::Parkspace_info(*from.release_space_info_); } else { release_space_info_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Parkspace_release_request_msg) } void Parkspace_release_request_msg::SharedCtor() { _cached_size_ = 0; command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&base_info_, 0, static_cast( reinterpret_cast(&release_space_info_) - reinterpret_cast(&base_info_)) + sizeof(release_space_info_)); } Parkspace_release_request_msg::~Parkspace_release_request_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_release_request_msg) SharedDtor(); } void Parkspace_release_request_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete release_space_info_; } void Parkspace_release_request_msg::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Parkspace_release_request_msg::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Parkspace_release_request_msg& Parkspace_release_request_msg::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_release_request_msg(); return *internal_default_instance(); } Parkspace_release_request_msg* Parkspace_release_request_msg::New(::google::protobuf::Arena* arena) const { Parkspace_release_request_msg* n = new Parkspace_release_request_msg; if (arena != NULL) { arena->Own(n); } return n; } void Parkspace_release_request_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Parkspace_release_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 & 7u) { 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(release_space_info_ != NULL); release_space_info_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_release_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.Parkspace_release_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.Parkspace_release_request_msg.command_key"); } else { goto handle_unusual; } break; } // required .message.Parkspace_info release_space_info = 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_release_space_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.Parkspace_release_request_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_release_request_msg) return false; #undef DO_ } void Parkspace_release_request_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_release_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.Parkspace_release_request_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), output); } // required .message.Parkspace_info release_space_info = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->release_space_info_, output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_release_request_msg) } ::google::protobuf::uint8* Parkspace_release_request_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_release_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.Parkspace_release_request_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), target); } // required .message.Parkspace_info release_space_info = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, *this->release_space_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.Parkspace_release_request_msg) return target; } size_t Parkspace_release_request_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_release_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_release_space_info()) { // required .message.Parkspace_info release_space_info = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->release_space_info_); } return total_size; } size_t Parkspace_release_request_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_release_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] & 0x00000007) ^ 0x00000007) == 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.Parkspace_info release_space_info = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->release_space_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 Parkspace_release_request_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_release_request_msg) GOOGLE_DCHECK_NE(&from, this); const Parkspace_release_request_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_release_request_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_release_request_msg) MergeFrom(*source); } } void Parkspace_release_request_msg::MergeFrom(const Parkspace_release_request_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_release_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 & 7u) { 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_release_space_info()->::message::Parkspace_info::MergeFrom(from.release_space_info()); } } } void Parkspace_release_request_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_release_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_release_request_msg::CopyFrom(const Parkspace_release_request_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_release_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_release_request_msg::IsInitialized() const { if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } return true; } void Parkspace_release_request_msg::Swap(Parkspace_release_request_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_release_request_msg::InternalSwap(Parkspace_release_request_msg* other) { using std::swap; command_key_.Swap(&other->command_key_); swap(base_info_, other->base_info_); swap(release_space_info_, other->release_space_info_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_release_request_msg::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Parkspace_release_response_msg::InitAsDefaultInstance() { ::message::_Parkspace_release_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); ::message::_Parkspace_release_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>( ::message::Error_manager::internal_default_instance()); ::message::_Parkspace_release_response_msg_default_instance_._instance.get_mutable()->release_space_info_ = const_cast< ::message::Parkspace_info*>( ::message::Parkspace_info::internal_default_instance()); } void Parkspace_release_response_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_release_response_msg::clear_error_manager() { if (error_manager_ != NULL) error_manager_->Clear(); clear_has_error_manager(); } void Parkspace_release_response_msg::clear_release_space_info() { if (release_space_info_ != NULL) release_space_info_->Clear(); clear_has_release_space_info(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_release_response_msg::kBaseInfoFieldNumber; const int Parkspace_release_response_msg::kCommandKeyFieldNumber; const int Parkspace_release_response_msg::kErrorManagerFieldNumber; const int Parkspace_release_response_msg::kReleaseSpaceInfoFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_release_response_msg::Parkspace_release_response_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_release_response_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_release_response_msg) } Parkspace_release_response_msg::Parkspace_release_response_msg(const Parkspace_release_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_error_manager()) { error_manager_ = new ::message::Error_manager(*from.error_manager_); } else { error_manager_ = NULL; } if (from.has_release_space_info()) { release_space_info_ = new ::message::Parkspace_info(*from.release_space_info_); } else { release_space_info_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Parkspace_release_response_msg) } void Parkspace_release_response_msg::SharedCtor() { _cached_size_ = 0; command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&base_info_, 0, static_cast( reinterpret_cast(&release_space_info_) - reinterpret_cast(&base_info_)) + sizeof(release_space_info_)); } Parkspace_release_response_msg::~Parkspace_release_response_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_release_response_msg) SharedDtor(); } void Parkspace_release_response_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete error_manager_; if (this != internal_default_instance()) delete release_space_info_; } void Parkspace_release_response_msg::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Parkspace_release_response_msg::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Parkspace_release_response_msg& Parkspace_release_response_msg::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_release_response_msg(); return *internal_default_instance(); } Parkspace_release_response_msg* Parkspace_release_response_msg::New(::google::protobuf::Arena* arena) const { Parkspace_release_response_msg* n = new Parkspace_release_response_msg; if (arena != NULL) { arena->Own(n); } return n; } void Parkspace_release_response_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Parkspace_release_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(error_manager_ != NULL); error_manager_->Clear(); } if (cached_has_bits & 0x00000008u) { GOOGLE_DCHECK(release_space_info_ != NULL); release_space_info_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_release_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.Parkspace_release_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.Parkspace_release_response_msg.command_key"); } 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; } // required .message.Parkspace_info release_space_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_release_space_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.Parkspace_release_response_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_release_response_msg) return false; #undef DO_ } void Parkspace_release_response_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_release_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.Parkspace_release_response_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), output); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->error_manager_, output); } // required .message.Parkspace_info release_space_info = 4; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, *this->release_space_info_, output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_release_response_msg) } ::google::protobuf::uint8* Parkspace_release_response_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_release_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.Parkspace_release_response_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), 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); } // required .message.Parkspace_info release_space_info = 4; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, *this->release_space_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.Parkspace_release_response_msg) return target; } size_t Parkspace_release_response_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_release_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_error_manager()) { // required .message.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } if (has_release_space_info()) { // required .message.Parkspace_info release_space_info = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->release_space_info_); } return total_size; } size_t Parkspace_release_response_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_release_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.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); // required .message.Parkspace_info release_space_info = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->release_space_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 Parkspace_release_response_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_release_response_msg) GOOGLE_DCHECK_NE(&from, this); const Parkspace_release_response_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_release_response_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_release_response_msg) MergeFrom(*source); } } void Parkspace_release_response_msg::MergeFrom(const Parkspace_release_response_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_release_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_error_manager()->::message::Error_manager::MergeFrom(from.error_manager()); } if (cached_has_bits & 0x00000008u) { mutable_release_space_info()->::message::Parkspace_info::MergeFrom(from.release_space_info()); } } } void Parkspace_release_response_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_release_response_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_release_response_msg::CopyFrom(const Parkspace_release_response_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_release_response_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_release_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_error_manager()) { if (!this->error_manager_->IsInitialized()) return false; } return true; } void Parkspace_release_response_msg::Swap(Parkspace_release_response_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_release_response_msg::InternalSwap(Parkspace_release_response_msg* other) { using std::swap; command_key_.Swap(&other->command_key_); swap(base_info_, other->base_info_); swap(error_manager_, other->error_manager_); swap(release_space_info_, other->release_space_info_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_release_response_msg::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Parkspace_force_update_request_msg::InitAsDefaultInstance() { ::message::_Parkspace_force_update_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); ::message::_Parkspace_force_update_request_msg_default_instance_._instance.get_mutable()->update_space_info_ = const_cast< ::message::Parkspace_info*>( ::message::Parkspace_info::internal_default_instance()); } void Parkspace_force_update_request_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_force_update_request_msg::clear_update_space_info() { if (update_space_info_ != NULL) update_space_info_->Clear(); clear_has_update_space_info(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_force_update_request_msg::kBaseInfoFieldNumber; const int Parkspace_force_update_request_msg::kCommandKeyFieldNumber; const int Parkspace_force_update_request_msg::kUpdateSpaceInfoFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_force_update_request_msg::Parkspace_force_update_request_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_force_update_request_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_force_update_request_msg) } Parkspace_force_update_request_msg::Parkspace_force_update_request_msg(const Parkspace_force_update_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_update_space_info()) { update_space_info_ = new ::message::Parkspace_info(*from.update_space_info_); } else { update_space_info_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Parkspace_force_update_request_msg) } void Parkspace_force_update_request_msg::SharedCtor() { _cached_size_ = 0; command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&base_info_, 0, static_cast( reinterpret_cast(&update_space_info_) - reinterpret_cast(&base_info_)) + sizeof(update_space_info_)); } Parkspace_force_update_request_msg::~Parkspace_force_update_request_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_force_update_request_msg) SharedDtor(); } void Parkspace_force_update_request_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete update_space_info_; } void Parkspace_force_update_request_msg::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Parkspace_force_update_request_msg::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Parkspace_force_update_request_msg& Parkspace_force_update_request_msg::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_force_update_request_msg(); return *internal_default_instance(); } Parkspace_force_update_request_msg* Parkspace_force_update_request_msg::New(::google::protobuf::Arena* arena) const { Parkspace_force_update_request_msg* n = new Parkspace_force_update_request_msg; if (arena != NULL) { arena->Own(n); } return n; } void Parkspace_force_update_request_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Parkspace_force_update_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 & 7u) { 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(update_space_info_ != NULL); update_space_info_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_force_update_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.Parkspace_force_update_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.Parkspace_force_update_request_msg.command_key"); } else { goto handle_unusual; } break; } // required .message.Parkspace_info update_space_info = 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_update_space_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.Parkspace_force_update_request_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_force_update_request_msg) return false; #undef DO_ } void Parkspace_force_update_request_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_force_update_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.Parkspace_force_update_request_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), output); } // required .message.Parkspace_info update_space_info = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->update_space_info_, output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_force_update_request_msg) } ::google::protobuf::uint8* Parkspace_force_update_request_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_force_update_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.Parkspace_force_update_request_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), target); } // required .message.Parkspace_info update_space_info = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, *this->update_space_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.Parkspace_force_update_request_msg) return target; } size_t Parkspace_force_update_request_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_force_update_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_update_space_info()) { // required .message.Parkspace_info update_space_info = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->update_space_info_); } return total_size; } size_t Parkspace_force_update_request_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_force_update_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] & 0x00000007) ^ 0x00000007) == 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.Parkspace_info update_space_info = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->update_space_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 Parkspace_force_update_request_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_force_update_request_msg) GOOGLE_DCHECK_NE(&from, this); const Parkspace_force_update_request_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_force_update_request_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_force_update_request_msg) MergeFrom(*source); } } void Parkspace_force_update_request_msg::MergeFrom(const Parkspace_force_update_request_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_force_update_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 & 7u) { 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_update_space_info()->::message::Parkspace_info::MergeFrom(from.update_space_info()); } } } void Parkspace_force_update_request_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_force_update_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_force_update_request_msg::CopyFrom(const Parkspace_force_update_request_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_force_update_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_force_update_request_msg::IsInitialized() const { if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } return true; } void Parkspace_force_update_request_msg::Swap(Parkspace_force_update_request_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_force_update_request_msg::InternalSwap(Parkspace_force_update_request_msg* other) { using std::swap; command_key_.Swap(&other->command_key_); swap(base_info_, other->base_info_); swap(update_space_info_, other->update_space_info_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_force_update_request_msg::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Parkspace_force_update_response_msg::InitAsDefaultInstance() { ::message::_Parkspace_force_update_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); ::message::_Parkspace_force_update_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>( ::message::Error_manager::internal_default_instance()); ::message::_Parkspace_force_update_response_msg_default_instance_._instance.get_mutable()->update_space_info_ = const_cast< ::message::Parkspace_info*>( ::message::Parkspace_info::internal_default_instance()); } void Parkspace_force_update_response_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_force_update_response_msg::clear_error_manager() { if (error_manager_ != NULL) error_manager_->Clear(); clear_has_error_manager(); } void Parkspace_force_update_response_msg::clear_update_space_info() { if (update_space_info_ != NULL) update_space_info_->Clear(); clear_has_update_space_info(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_force_update_response_msg::kBaseInfoFieldNumber; const int Parkspace_force_update_response_msg::kCommandKeyFieldNumber; const int Parkspace_force_update_response_msg::kErrorManagerFieldNumber; const int Parkspace_force_update_response_msg::kUpdateSpaceInfoFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_force_update_response_msg::Parkspace_force_update_response_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_force_update_response_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_force_update_response_msg) } Parkspace_force_update_response_msg::Parkspace_force_update_response_msg(const Parkspace_force_update_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_error_manager()) { error_manager_ = new ::message::Error_manager(*from.error_manager_); } else { error_manager_ = NULL; } if (from.has_update_space_info()) { update_space_info_ = new ::message::Parkspace_info(*from.update_space_info_); } else { update_space_info_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Parkspace_force_update_response_msg) } void Parkspace_force_update_response_msg::SharedCtor() { _cached_size_ = 0; command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&base_info_, 0, static_cast( reinterpret_cast(&update_space_info_) - reinterpret_cast(&base_info_)) + sizeof(update_space_info_)); } Parkspace_force_update_response_msg::~Parkspace_force_update_response_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_force_update_response_msg) SharedDtor(); } void Parkspace_force_update_response_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete error_manager_; if (this != internal_default_instance()) delete update_space_info_; } void Parkspace_force_update_response_msg::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Parkspace_force_update_response_msg::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Parkspace_force_update_response_msg& Parkspace_force_update_response_msg::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_force_update_response_msg(); return *internal_default_instance(); } Parkspace_force_update_response_msg* Parkspace_force_update_response_msg::New(::google::protobuf::Arena* arena) const { Parkspace_force_update_response_msg* n = new Parkspace_force_update_response_msg; if (arena != NULL) { arena->Own(n); } return n; } void Parkspace_force_update_response_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Parkspace_force_update_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(error_manager_ != NULL); error_manager_->Clear(); } if (cached_has_bits & 0x00000008u) { GOOGLE_DCHECK(update_space_info_ != NULL); update_space_info_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_force_update_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.Parkspace_force_update_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.Parkspace_force_update_response_msg.command_key"); } 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; } // required .message.Parkspace_info update_space_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_update_space_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.Parkspace_force_update_response_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_force_update_response_msg) return false; #undef DO_ } void Parkspace_force_update_response_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_force_update_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.Parkspace_force_update_response_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), output); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->error_manager_, output); } // required .message.Parkspace_info update_space_info = 4; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, *this->update_space_info_, output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_force_update_response_msg) } ::google::protobuf::uint8* Parkspace_force_update_response_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_force_update_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.Parkspace_force_update_response_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), 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); } // required .message.Parkspace_info update_space_info = 4; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, *this->update_space_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.Parkspace_force_update_response_msg) return target; } size_t Parkspace_force_update_response_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_force_update_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_error_manager()) { // required .message.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } if (has_update_space_info()) { // required .message.Parkspace_info update_space_info = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->update_space_info_); } return total_size; } size_t Parkspace_force_update_response_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_force_update_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.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); // required .message.Parkspace_info update_space_info = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->update_space_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 Parkspace_force_update_response_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_force_update_response_msg) GOOGLE_DCHECK_NE(&from, this); const Parkspace_force_update_response_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_force_update_response_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_force_update_response_msg) MergeFrom(*source); } } void Parkspace_force_update_response_msg::MergeFrom(const Parkspace_force_update_response_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_force_update_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_error_manager()->::message::Error_manager::MergeFrom(from.error_manager()); } if (cached_has_bits & 0x00000008u) { mutable_update_space_info()->::message::Parkspace_info::MergeFrom(from.update_space_info()); } } } void Parkspace_force_update_response_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_force_update_response_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_force_update_response_msg::CopyFrom(const Parkspace_force_update_response_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_force_update_response_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_force_update_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_error_manager()) { if (!this->error_manager_->IsInitialized()) return false; } return true; } void Parkspace_force_update_response_msg::Swap(Parkspace_force_update_response_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_force_update_response_msg::InternalSwap(Parkspace_force_update_response_msg* other) { using std::swap; command_key_.Swap(&other->command_key_); swap(base_info_, other->base_info_); swap(error_manager_, other->error_manager_); swap(update_space_info_, other->update_space_info_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_force_update_response_msg::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Parkspace_confirm_alloc_request_msg::InitAsDefaultInstance() { ::message::_Parkspace_confirm_alloc_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); ::message::_Parkspace_confirm_alloc_request_msg_default_instance_._instance.get_mutable()->confirm_space_info_ = const_cast< ::message::Parkspace_info*>( ::message::Parkspace_info::internal_default_instance()); } void Parkspace_confirm_alloc_request_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_confirm_alloc_request_msg::clear_confirm_space_info() { if (confirm_space_info_ != NULL) confirm_space_info_->Clear(); clear_has_confirm_space_info(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_confirm_alloc_request_msg::kBaseInfoFieldNumber; const int Parkspace_confirm_alloc_request_msg::kCommandKeyFieldNumber; const int Parkspace_confirm_alloc_request_msg::kConfirmSpaceInfoFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_confirm_alloc_request_msg::Parkspace_confirm_alloc_request_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_confirm_alloc_request_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_confirm_alloc_request_msg) } Parkspace_confirm_alloc_request_msg::Parkspace_confirm_alloc_request_msg(const Parkspace_confirm_alloc_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_confirm_space_info()) { confirm_space_info_ = new ::message::Parkspace_info(*from.confirm_space_info_); } else { confirm_space_info_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Parkspace_confirm_alloc_request_msg) } void Parkspace_confirm_alloc_request_msg::SharedCtor() { _cached_size_ = 0; command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&base_info_, 0, static_cast( reinterpret_cast(&confirm_space_info_) - reinterpret_cast(&base_info_)) + sizeof(confirm_space_info_)); } Parkspace_confirm_alloc_request_msg::~Parkspace_confirm_alloc_request_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_confirm_alloc_request_msg) SharedDtor(); } void Parkspace_confirm_alloc_request_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete confirm_space_info_; } void Parkspace_confirm_alloc_request_msg::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Parkspace_confirm_alloc_request_msg::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Parkspace_confirm_alloc_request_msg& Parkspace_confirm_alloc_request_msg::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_confirm_alloc_request_msg(); return *internal_default_instance(); } Parkspace_confirm_alloc_request_msg* Parkspace_confirm_alloc_request_msg::New(::google::protobuf::Arena* arena) const { Parkspace_confirm_alloc_request_msg* n = new Parkspace_confirm_alloc_request_msg; if (arena != NULL) { arena->Own(n); } return n; } void Parkspace_confirm_alloc_request_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Parkspace_confirm_alloc_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 & 7u) { 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(confirm_space_info_ != NULL); confirm_space_info_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_confirm_alloc_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.Parkspace_confirm_alloc_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.Parkspace_confirm_alloc_request_msg.command_key"); } else { goto handle_unusual; } break; } // required .message.Parkspace_info confirm_space_info = 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_confirm_space_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.Parkspace_confirm_alloc_request_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_confirm_alloc_request_msg) return false; #undef DO_ } void Parkspace_confirm_alloc_request_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_confirm_alloc_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.Parkspace_confirm_alloc_request_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), output); } // required .message.Parkspace_info confirm_space_info = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->confirm_space_info_, output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_confirm_alloc_request_msg) } ::google::protobuf::uint8* Parkspace_confirm_alloc_request_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_confirm_alloc_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.Parkspace_confirm_alloc_request_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), target); } // required .message.Parkspace_info confirm_space_info = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, *this->confirm_space_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.Parkspace_confirm_alloc_request_msg) return target; } size_t Parkspace_confirm_alloc_request_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_confirm_alloc_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_confirm_space_info()) { // required .message.Parkspace_info confirm_space_info = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->confirm_space_info_); } return total_size; } size_t Parkspace_confirm_alloc_request_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_confirm_alloc_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] & 0x00000007) ^ 0x00000007) == 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.Parkspace_info confirm_space_info = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->confirm_space_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 Parkspace_confirm_alloc_request_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_confirm_alloc_request_msg) GOOGLE_DCHECK_NE(&from, this); const Parkspace_confirm_alloc_request_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_confirm_alloc_request_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_confirm_alloc_request_msg) MergeFrom(*source); } } void Parkspace_confirm_alloc_request_msg::MergeFrom(const Parkspace_confirm_alloc_request_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_confirm_alloc_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 & 7u) { 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_confirm_space_info()->::message::Parkspace_info::MergeFrom(from.confirm_space_info()); } } } void Parkspace_confirm_alloc_request_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_confirm_alloc_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_confirm_alloc_request_msg::CopyFrom(const Parkspace_confirm_alloc_request_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_confirm_alloc_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_confirm_alloc_request_msg::IsInitialized() const { if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } return true; } void Parkspace_confirm_alloc_request_msg::Swap(Parkspace_confirm_alloc_request_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_confirm_alloc_request_msg::InternalSwap(Parkspace_confirm_alloc_request_msg* other) { using std::swap; command_key_.Swap(&other->command_key_); swap(base_info_, other->base_info_); swap(confirm_space_info_, other->confirm_space_info_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_confirm_alloc_request_msg::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Parkspace_confirm_alloc_response_msg::InitAsDefaultInstance() { ::message::_Parkspace_confirm_alloc_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); ::message::_Parkspace_confirm_alloc_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>( ::message::Error_manager::internal_default_instance()); ::message::_Parkspace_confirm_alloc_response_msg_default_instance_._instance.get_mutable()->confirm_alloc_space_info_ = const_cast< ::message::Parkspace_info*>( ::message::Parkspace_info::internal_default_instance()); } void Parkspace_confirm_alloc_response_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_confirm_alloc_response_msg::clear_error_manager() { if (error_manager_ != NULL) error_manager_->Clear(); clear_has_error_manager(); } void Parkspace_confirm_alloc_response_msg::clear_confirm_alloc_space_info() { if (confirm_alloc_space_info_ != NULL) confirm_alloc_space_info_->Clear(); clear_has_confirm_alloc_space_info(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_confirm_alloc_response_msg::kBaseInfoFieldNumber; const int Parkspace_confirm_alloc_response_msg::kCommandKeyFieldNumber; const int Parkspace_confirm_alloc_response_msg::kErrorManagerFieldNumber; const int Parkspace_confirm_alloc_response_msg::kConfirmAllocSpaceInfoFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_confirm_alloc_response_msg::Parkspace_confirm_alloc_response_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_confirm_alloc_response_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_confirm_alloc_response_msg) } Parkspace_confirm_alloc_response_msg::Parkspace_confirm_alloc_response_msg(const Parkspace_confirm_alloc_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_error_manager()) { error_manager_ = new ::message::Error_manager(*from.error_manager_); } else { error_manager_ = NULL; } if (from.has_confirm_alloc_space_info()) { confirm_alloc_space_info_ = new ::message::Parkspace_info(*from.confirm_alloc_space_info_); } else { confirm_alloc_space_info_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Parkspace_confirm_alloc_response_msg) } void Parkspace_confirm_alloc_response_msg::SharedCtor() { _cached_size_ = 0; command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&base_info_, 0, static_cast( reinterpret_cast(&confirm_alloc_space_info_) - reinterpret_cast(&base_info_)) + sizeof(confirm_alloc_space_info_)); } Parkspace_confirm_alloc_response_msg::~Parkspace_confirm_alloc_response_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_confirm_alloc_response_msg) SharedDtor(); } void Parkspace_confirm_alloc_response_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete error_manager_; if (this != internal_default_instance()) delete confirm_alloc_space_info_; } void Parkspace_confirm_alloc_response_msg::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Parkspace_confirm_alloc_response_msg::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Parkspace_confirm_alloc_response_msg& Parkspace_confirm_alloc_response_msg::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_confirm_alloc_response_msg(); return *internal_default_instance(); } Parkspace_confirm_alloc_response_msg* Parkspace_confirm_alloc_response_msg::New(::google::protobuf::Arena* arena) const { Parkspace_confirm_alloc_response_msg* n = new Parkspace_confirm_alloc_response_msg; if (arena != NULL) { arena->Own(n); } return n; } void Parkspace_confirm_alloc_response_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Parkspace_confirm_alloc_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(error_manager_ != NULL); error_manager_->Clear(); } if (cached_has_bits & 0x00000008u) { GOOGLE_DCHECK(confirm_alloc_space_info_ != NULL); confirm_alloc_space_info_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_confirm_alloc_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.Parkspace_confirm_alloc_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.Parkspace_confirm_alloc_response_msg.command_key"); } 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; } // required .message.Parkspace_info confirm_alloc_space_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_confirm_alloc_space_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.Parkspace_confirm_alloc_response_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_confirm_alloc_response_msg) return false; #undef DO_ } void Parkspace_confirm_alloc_response_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_confirm_alloc_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.Parkspace_confirm_alloc_response_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), output); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->error_manager_, output); } // required .message.Parkspace_info confirm_alloc_space_info = 4; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, *this->confirm_alloc_space_info_, output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_confirm_alloc_response_msg) } ::google::protobuf::uint8* Parkspace_confirm_alloc_response_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_confirm_alloc_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.Parkspace_confirm_alloc_response_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), 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); } // required .message.Parkspace_info confirm_alloc_space_info = 4; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, *this->confirm_alloc_space_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.Parkspace_confirm_alloc_response_msg) return target; } size_t Parkspace_confirm_alloc_response_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_confirm_alloc_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_error_manager()) { // required .message.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } if (has_confirm_alloc_space_info()) { // required .message.Parkspace_info confirm_alloc_space_info = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->confirm_alloc_space_info_); } return total_size; } size_t Parkspace_confirm_alloc_response_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_confirm_alloc_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.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); // required .message.Parkspace_info confirm_alloc_space_info = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->confirm_alloc_space_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 Parkspace_confirm_alloc_response_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_confirm_alloc_response_msg) GOOGLE_DCHECK_NE(&from, this); const Parkspace_confirm_alloc_response_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_confirm_alloc_response_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_confirm_alloc_response_msg) MergeFrom(*source); } } void Parkspace_confirm_alloc_response_msg::MergeFrom(const Parkspace_confirm_alloc_response_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_confirm_alloc_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_error_manager()->::message::Error_manager::MergeFrom(from.error_manager()); } if (cached_has_bits & 0x00000008u) { mutable_confirm_alloc_space_info()->::message::Parkspace_info::MergeFrom(from.confirm_alloc_space_info()); } } } void Parkspace_confirm_alloc_response_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_confirm_alloc_response_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_confirm_alloc_response_msg::CopyFrom(const Parkspace_confirm_alloc_response_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_confirm_alloc_response_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_confirm_alloc_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_error_manager()) { if (!this->error_manager_->IsInitialized()) return false; } return true; } void Parkspace_confirm_alloc_response_msg::Swap(Parkspace_confirm_alloc_response_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_confirm_alloc_response_msg::InternalSwap(Parkspace_confirm_alloc_response_msg* other) { using std::swap; command_key_.Swap(&other->command_key_); swap(base_info_, other->base_info_); swap(error_manager_, other->error_manager_); swap(confirm_alloc_space_info_, other->confirm_alloc_space_info_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_confirm_alloc_response_msg::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Parkspace_allocation_status_msg::InitAsDefaultInstance() { ::message::_Parkspace_allocation_status_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); ::message::_Parkspace_allocation_status_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>( ::message::Error_manager::internal_default_instance()); } void Parkspace_allocation_status_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_allocation_status_msg::clear_error_manager() { if (error_manager_ != NULL) error_manager_->Clear(); clear_has_error_manager(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_allocation_status_msg::kBaseInfoFieldNumber; const int Parkspace_allocation_status_msg::kErrorManagerFieldNumber; const int Parkspace_allocation_status_msg::kDatabaseControllerStatusFieldNumber; const int Parkspace_allocation_status_msg::kParkspaceManagerSatusFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_allocation_status_msg::Parkspace_allocation_status_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_status_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_allocation_status_msg) } Parkspace_allocation_status_msg::Parkspace_allocation_status_msg(const Parkspace_allocation_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_error_manager()) { error_manager_ = new ::message::Error_manager(*from.error_manager_); } else { error_manager_ = NULL; } ::memcpy(&database_controller_status_, &from.database_controller_status_, static_cast(reinterpret_cast(&parkspace_manager_satus_) - reinterpret_cast(&database_controller_status_)) + sizeof(parkspace_manager_satus_)); // @@protoc_insertion_point(copy_constructor:message.Parkspace_allocation_status_msg) } void Parkspace_allocation_status_msg::SharedCtor() { _cached_size_ = 0; ::memset(&base_info_, 0, static_cast( reinterpret_cast(&parkspace_manager_satus_) - reinterpret_cast(&base_info_)) + sizeof(parkspace_manager_satus_)); } Parkspace_allocation_status_msg::~Parkspace_allocation_status_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_allocation_status_msg) SharedDtor(); } void Parkspace_allocation_status_msg::SharedDtor() { if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete error_manager_; } void Parkspace_allocation_status_msg::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Parkspace_allocation_status_msg::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Parkspace_allocation_status_msg& Parkspace_allocation_status_msg::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_status_msg(); return *internal_default_instance(); } Parkspace_allocation_status_msg* Parkspace_allocation_status_msg::New(::google::protobuf::Arena* arena) const { Parkspace_allocation_status_msg* n = new Parkspace_allocation_status_msg; if (arena != NULL) { arena->Own(n); } return n; } void Parkspace_allocation_status_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Parkspace_allocation_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 & 3u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(error_manager_ != NULL); error_manager_->Clear(); } } if (cached_has_bits & 12u) { ::memset(&database_controller_status_, 0, static_cast( reinterpret_cast(&parkspace_manager_satus_) - reinterpret_cast(&database_controller_status_)) + sizeof(parkspace_manager_satus_)); } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_allocation_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.Parkspace_allocation_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.Error_manager error_manager = 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_error_manager())); } else { goto handle_unusual; } break; } // required .message.Database_controller_status database_controller_status = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); if (::message::Database_controller_status_IsValid(value)) { set_database_controller_status(static_cast< ::message::Database_controller_status >(value)); } else { mutable_unknown_fields()->AddVarint( 3, static_cast< ::google::protobuf::uint64>(value)); } } else { goto handle_unusual; } break; } // required .message.Parkspace_manager_satus parkspace_manager_satus = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); if (::message::Parkspace_manager_satus_IsValid(value)) { set_parkspace_manager_satus(static_cast< ::message::Parkspace_manager_satus >(value)); } else { mutable_unknown_fields()->AddVarint( 4, static_cast< ::google::protobuf::uint64>(value)); } } 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.Parkspace_allocation_status_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_allocation_status_msg) return false; #undef DO_ } void Parkspace_allocation_status_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_allocation_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.Error_manager error_manager = 2; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, *this->error_manager_, output); } // required .message.Database_controller_status database_controller_status = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 3, this->database_controller_status(), output); } // required .message.Parkspace_manager_satus parkspace_manager_satus = 4; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 4, this->parkspace_manager_satus(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_allocation_status_msg) } ::google::protobuf::uint8* Parkspace_allocation_status_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_allocation_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.Error_manager error_manager = 2; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, *this->error_manager_, deterministic, target); } // required .message.Database_controller_status database_controller_status = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 3, this->database_controller_status(), target); } // required .message.Parkspace_manager_satus parkspace_manager_satus = 4; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 4, this->parkspace_manager_satus(), 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.Parkspace_allocation_status_msg) return target; } size_t Parkspace_allocation_status_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_allocation_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_error_manager()) { // required .message.Error_manager error_manager = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } if (has_database_controller_status()) { // required .message.Database_controller_status database_controller_status = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->database_controller_status()); } if (has_parkspace_manager_satus()) { // required .message.Parkspace_manager_satus parkspace_manager_satus = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkspace_manager_satus()); } return total_size; } size_t Parkspace_allocation_status_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_allocation_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] & 0x0000000f) ^ 0x0000000f) == 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.Error_manager error_manager = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); // required .message.Database_controller_status database_controller_status = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->database_controller_status()); // required .message.Parkspace_manager_satus parkspace_manager_satus = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkspace_manager_satus()); } 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 Parkspace_allocation_status_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_allocation_status_msg) GOOGLE_DCHECK_NE(&from, this); const Parkspace_allocation_status_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_allocation_status_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_allocation_status_msg) MergeFrom(*source); } } void Parkspace_allocation_status_msg::MergeFrom(const Parkspace_allocation_status_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_allocation_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 & 15u) { if (cached_has_bits & 0x00000001u) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000002u) { mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager()); } if (cached_has_bits & 0x00000004u) { database_controller_status_ = from.database_controller_status_; } if (cached_has_bits & 0x00000008u) { parkspace_manager_satus_ = from.parkspace_manager_satus_; } _has_bits_[0] |= cached_has_bits; } } void Parkspace_allocation_status_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_allocation_status_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_allocation_status_msg::CopyFrom(const Parkspace_allocation_status_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_allocation_status_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_allocation_status_msg::IsInitialized() const { if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) 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 Parkspace_allocation_status_msg::Swap(Parkspace_allocation_status_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_allocation_status_msg::InternalSwap(Parkspace_allocation_status_msg* other) { using std::swap; swap(base_info_, other->base_info_); swap(error_manager_, other->error_manager_); swap(database_controller_status_, other->database_controller_status_); swap(parkspace_manager_satus_, other->parkspace_manager_satus_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_allocation_status_msg::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Parkspace_refresh_request_msg::InitAsDefaultInstance() { ::message::_Parkspace_refresh_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); } void Parkspace_refresh_request_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_refresh_request_msg::kBaseInfoFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_refresh_request_msg::Parkspace_refresh_request_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_refresh_request_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_refresh_request_msg) } Parkspace_refresh_request_msg::Parkspace_refresh_request_msg(const Parkspace_refresh_request_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; } // @@protoc_insertion_point(copy_constructor:message.Parkspace_refresh_request_msg) } void Parkspace_refresh_request_msg::SharedCtor() { _cached_size_ = 0; base_info_ = NULL; } Parkspace_refresh_request_msg::~Parkspace_refresh_request_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_refresh_request_msg) SharedDtor(); } void Parkspace_refresh_request_msg::SharedDtor() { if (this != internal_default_instance()) delete base_info_; } void Parkspace_refresh_request_msg::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Parkspace_refresh_request_msg::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Parkspace_refresh_request_msg& Parkspace_refresh_request_msg::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_refresh_request_msg(); return *internal_default_instance(); } Parkspace_refresh_request_msg* Parkspace_refresh_request_msg::New(::google::protobuf::Arena* arena) const { Parkspace_refresh_request_msg* n = new Parkspace_refresh_request_msg; if (arena != NULL) { arena->Own(n); } return n; } void Parkspace_refresh_request_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Parkspace_refresh_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 & 0x00000001u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_refresh_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.Parkspace_refresh_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; } 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.Parkspace_refresh_request_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_refresh_request_msg) return false; #undef DO_ } void Parkspace_refresh_request_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_refresh_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 & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_refresh_request_msg) } ::google::protobuf::uint8* Parkspace_refresh_request_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_refresh_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 & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_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.Parkspace_refresh_request_msg) return target; } size_t Parkspace_refresh_request_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_refresh_request_msg) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // required .message.Base_info base_info = 1; if (has_base_info()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } 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 Parkspace_refresh_request_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_refresh_request_msg) GOOGLE_DCHECK_NE(&from, this); const Parkspace_refresh_request_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_refresh_request_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_refresh_request_msg) MergeFrom(*source); } } void Parkspace_refresh_request_msg::MergeFrom(const Parkspace_refresh_request_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_refresh_request_msg) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.has_base_info()) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } } void Parkspace_refresh_request_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_refresh_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_refresh_request_msg::CopyFrom(const Parkspace_refresh_request_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_refresh_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_refresh_request_msg::IsInitialized() const { if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } return true; } void Parkspace_refresh_request_msg::Swap(Parkspace_refresh_request_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_refresh_request_msg::InternalSwap(Parkspace_refresh_request_msg* other) { using std::swap; swap(base_info_, other->base_info_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_refresh_request_msg::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Parkspace_allocation_data_msg::InitAsDefaultInstance() { ::message::_Parkspace_allocation_data_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); ::message::_Parkspace_allocation_data_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>( ::message::Error_manager::internal_default_instance()); } void Parkspace_allocation_data_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_allocation_data_msg::clear_error_manager() { if (error_manager_ != NULL) error_manager_->Clear(); clear_has_error_manager(); } void Parkspace_allocation_data_msg::clear_parkspace_info() { parkspace_info_.Clear(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_allocation_data_msg::kBaseInfoFieldNumber; const int Parkspace_allocation_data_msg::kErrorManagerFieldNumber; const int Parkspace_allocation_data_msg::kParkspaceInfoFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_allocation_data_msg::Parkspace_allocation_data_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_data_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_allocation_data_msg) } Parkspace_allocation_data_msg::Parkspace_allocation_data_msg(const Parkspace_allocation_data_msg& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0), parkspace_info_(from.parkspace_info_) { _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_error_manager()) { error_manager_ = new ::message::Error_manager(*from.error_manager_); } else { error_manager_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Parkspace_allocation_data_msg) } void Parkspace_allocation_data_msg::SharedCtor() { _cached_size_ = 0; ::memset(&base_info_, 0, static_cast( reinterpret_cast(&error_manager_) - reinterpret_cast(&base_info_)) + sizeof(error_manager_)); } Parkspace_allocation_data_msg::~Parkspace_allocation_data_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_allocation_data_msg) SharedDtor(); } void Parkspace_allocation_data_msg::SharedDtor() { if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete error_manager_; } void Parkspace_allocation_data_msg::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Parkspace_allocation_data_msg::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Parkspace_allocation_data_msg& Parkspace_allocation_data_msg::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_data_msg(); return *internal_default_instance(); } Parkspace_allocation_data_msg* Parkspace_allocation_data_msg::New(::google::protobuf::Arena* arena) const { Parkspace_allocation_data_msg* n = new Parkspace_allocation_data_msg; if (arena != NULL) { arena->Own(n); } return n; } void Parkspace_allocation_data_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Parkspace_allocation_data_msg) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; parkspace_info_.Clear(); cached_has_bits = _has_bits_[0]; if (cached_has_bits & 3u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(error_manager_ != NULL); error_manager_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_allocation_data_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.Parkspace_allocation_data_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.Error_manager error_manager = 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_error_manager())); } else { goto handle_unusual; } break; } // repeated .message.Parkspace_info parkspace_info = 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, add_parkspace_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.Parkspace_allocation_data_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_allocation_data_msg) return false; #undef DO_ } void Parkspace_allocation_data_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_allocation_data_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.Error_manager error_manager = 2; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, *this->error_manager_, output); } // repeated .message.Parkspace_info parkspace_info = 3; for (unsigned int i = 0, n = static_cast(this->parkspace_info_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, this->parkspace_info(static_cast(i)), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_allocation_data_msg) } ::google::protobuf::uint8* Parkspace_allocation_data_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_allocation_data_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.Error_manager error_manager = 2; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, *this->error_manager_, deterministic, target); } // repeated .message.Parkspace_info parkspace_info = 3; for (unsigned int i = 0, n = static_cast(this->parkspace_info_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, this->parkspace_info(static_cast(i)), 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.Parkspace_allocation_data_msg) return target; } size_t Parkspace_allocation_data_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_allocation_data_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_error_manager()) { // required .message.Error_manager error_manager = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } return total_size; } size_t Parkspace_allocation_data_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_allocation_data_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] & 0x00000003) ^ 0x00000003) == 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.Error_manager error_manager = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } else { total_size += RequiredFieldsByteSizeFallback(); } // repeated .message.Parkspace_info parkspace_info = 3; { unsigned int count = static_cast(this->parkspace_info_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->parkspace_info(static_cast(i))); } } 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 Parkspace_allocation_data_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_allocation_data_msg) GOOGLE_DCHECK_NE(&from, this); const Parkspace_allocation_data_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_allocation_data_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_allocation_data_msg) MergeFrom(*source); } } void Parkspace_allocation_data_msg::MergeFrom(const Parkspace_allocation_data_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_allocation_data_msg) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; parkspace_info_.MergeFrom(from.parkspace_info_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 3u) { if (cached_has_bits & 0x00000001u) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000002u) { mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager()); } } } void Parkspace_allocation_data_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_allocation_data_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_allocation_data_msg::CopyFrom(const Parkspace_allocation_data_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_allocation_data_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_allocation_data_msg::IsInitialized() const { if ((_has_bits_[0] & 0x00000003) != 0x00000003) 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 Parkspace_allocation_data_msg::Swap(Parkspace_allocation_data_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_allocation_data_msg::InternalSwap(Parkspace_allocation_data_msg* other) { using std::swap; parkspace_info_.InternalSwap(&other->parkspace_info_); swap(base_info_, other->base_info_); swap(error_manager_, other->error_manager_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_allocation_data_msg::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // @@protoc_insertion_point(namespace_scope) } // namespace message // @@protoc_insertion_point(global_scope)