// 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 Car_infoDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Car_info_default_instance_; class Parkspace_infoDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_info_default_instance_; 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_; } // namespace message namespace protobuf_parkspace_5fallocation_5fmessage_2eproto { void InitDefaultsCar_infoImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS { void* ptr = &::message::_Car_info_default_instance_; new (ptr) ::message::Car_info(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Car_info::InitAsDefaultInstance(); } void InitDefaultsCar_info() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCar_infoImpl); } void InitDefaultsParkspace_infoImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsCar_info(); { void* ptr = &::message::_Parkspace_info_default_instance_; new (ptr) ::message::Parkspace_info(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_info::InitAsDefaultInstance(); } void InitDefaultsParkspace_info() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_infoImpl); } 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_parkspace_5fallocation_5fmessage_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_parkspace_5fallocation_5fmessage_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_parkspace_5fallocation_5fmessage_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_parkspace_5fallocation_5fmessage_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_parkspace_5fallocation_5fmessage_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_parkspace_5fallocation_5fmessage_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_parkspace_5fallocation_5fmessage_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_parkspace_5fallocation_5fmessage_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_parkspace_5fallocation_5fmessage_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_parkspace_5fallocation_5fmessage_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(); protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_info(); { 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); } ::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::Car_info, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, car_length_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, car_width_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, car_height_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Car_info, license_), 1, 2, 3, 0, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkspace_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, index_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, direction_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, floor_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, length_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, width_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, height_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkspace_status_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, car_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, entry_time_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, leave_time_), 3, 4, 5, 6, 7, 8, 9, 10, 2, 0, 1, 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_id_), 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_), 0, 2, 1, 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_id_), 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_), 0, 3, 1, 2, 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_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, car_info_), 0, 2, 1, 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_id_), 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_), 0, 3, 1, 2, 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_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_request_msg, release_space_info_), 0, 2, 1, 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_id_), 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_), 0, 3, 1, 2, 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_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_force_update_request_msg, update_space_info_), 0, 2, 1, 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_id_), 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_), 0, 3, 1, 2, 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_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_request_msg, confirm_space_info_), 0, 2, 1, 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_id_), 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_), 0, 3, 1, 2, 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, parkspace_info_), 0, 1, ~0u, }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, 9, sizeof(::message::Car_info)}, { 13, 29, sizeof(::message::Parkspace_info)}, { 40, 49, sizeof(::message::Parkspace_allocation_request_msg)}, { 53, 62, sizeof(::message::Parkspace_allocation_response_msg)}, { 66, 74, sizeof(::message::Parkspace_search_request_msg)}, { 77, 86, sizeof(::message::Parkspace_search_response_msg)}, { 90, 98, sizeof(::message::Parkspace_release_request_msg)}, { 101, 110, sizeof(::message::Parkspace_release_response_msg)}, { 114, 122, sizeof(::message::Parkspace_force_update_request_msg)}, { 125, 134, sizeof(::message::Parkspace_force_update_response_msg)}, { 138, 146, sizeof(::message::Parkspace_confirm_alloc_request_msg)}, { 149, 158, sizeof(::message::Parkspace_confirm_alloc_response_msg)}, { 162, 170, sizeof(::message::Parkspace_allocation_status_msg)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::message::_Car_info_default_instance_), reinterpret_cast(&::message::_Parkspace_info_default_instance_), 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_), }; 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\"V\n\010Car_info\022\022\n" "\ncar_length\030\001 \001(\002\022\021\n\tcar_width\030\002 \002(\002\022\022\n\n" "car_height\030\003 \002(\002\022\017\n\007license\030\004 \002(\t\"\234\002\n\016Pa" "rkspace_info\022\024\n\014parkspace_id\030\001 \002(\005\022\r\n\005in" "dex\030\002 \002(\005\022%\n\tdirection\030\003 \002(\0162\022.message.D" "irection\022\r\n\005floor\030\004 \002(\005\022\016\n\006length\030\005 \001(\002\022" "\r\n\005width\030\006 \002(\002\022\016\n\006height\030\007 \002(\002\0223\n\020parksp" "ace_status\030\010 \002(\0162\031.message.Parkspace_sta" "tus\022#\n\010car_info\030\t \001(\0132\021.message.Car_info" "\022\022\n\nentry_time\030\n \001(\t\022\022\n\nleave_time\030\013 \001(\t" "\"\227\001\n Parkspace_allocation_request_msg\022%\n" "\tbase_info\030\001 \002(\0132\022.message.Base_info\022\022\n\n" "command_id\030\002 \002(\005\022#\n\010car_info\030\003 \002(\0132\021.mes" "sage.Car_info\022\023\n\013terminal_id\030\004 \002(\005\"\304\001\n!P" "arkspace_allocation_response_msg\022%\n\tbase" "_info\030\001 \002(\0132\022.message.Base_info\022\022\n\ncomma" "nd_id\030\002 \002(\005\022-\n\rerror_manager\030\003 \002(\0132\026.mes" "sage.Error_manager\0225\n\024allocated_space_in" "fo\030\004 \002(\0132\027.message.Parkspace_info\"~\n\034Par" "kspace_search_request_msg\022%\n\tbase_info\030\001" " \002(\0132\022.message.Base_info\022\022\n\ncommand_id\030\002" " \002(\005\022#\n\010car_info\030\003 \002(\0132\021.message.Car_inf" "o\"\270\001\n\035Parkspace_search_response_msg\022%\n\tb" "ase_info\030\001 \002(\0132\022.message.Base_info\022\022\n\nco" "mmand_id\030\002 \002(\005\022-\n\rerror_manager\030\003 \002(\0132\026." "message.Error_manager\022-\n\014car_position\030\004 " "\001(\0132\027.message.Parkspace_info\"\217\001\n\035Parkspa" "ce_release_request_msg\022%\n\tbase_info\030\001 \002(" "\0132\022.message.Base_info\022\022\n\ncommand_id\030\002 \002(" "\005\0223\n\022release_space_info\030\003 \002(\0132\027.message." "Parkspace_info\"\277\001\n\036Parkspace_release_res" "ponse_msg\022%\n\tbase_info\030\001 \002(\0132\022.message.B" "ase_info\022\022\n\ncommand_id\030\002 \002(\005\022-\n\rerror_ma" "nager\030\003 \002(\0132\026.message.Error_manager\0223\n\022r" "elease_space_info\030\004 \002(\0132\027.message.Parksp" "ace_info\"\223\001\n\"Parkspace_force_update_requ" "est_msg\022%\n\tbase_info\030\001 \002(\0132\022.message.Bas" "e_info\022\022\n\ncommand_id\030\002 \002(\005\0222\n\021update_spa" "ce_info\030\003 \002(\0132\027.message.Parkspace_info\"\303" "\001\n#Parkspace_force_update_response_msg\022%" "\n\tbase_info\030\001 \002(\0132\022.message.Base_info\022\022\n" "\ncommand_id\030\002 \002(\005\022-\n\rerror_manager\030\003 \002(\013" "2\026.message.Error_manager\0222\n\021update_space" "_info\030\004 \002(\0132\027.message.Parkspace_info\"\225\001\n" "#Parkspace_confirm_alloc_request_msg\022%\n\t" "base_info\030\001 \002(\0132\022.message.Base_info\022\022\n\nc" "ommand_id\030\002 \002(\005\0223\n\022confirm_space_info\030\003 " "\002(\0132\027.message.Parkspace_info\"\313\001\n$Parkspa" "ce_confirm_alloc_response_msg\022%\n\tbase_in" "fo\030\001 \002(\0132\022.message.Base_info\022\022\n\ncommand_" "id\030\002 \002(\005\022-\n\rerror_manager\030\003 \002(\0132\026.messag" "e.Error_manager\0229\n\030confirm_alloc_space_i" "nfo\030\004 \002(\0132\027.message.Parkspace_info\"\250\001\n\037P" "arkspace_allocation_status_msg\022%\n\tbase_i" "nfo\030\001 \002(\0132\022.message.Base_info\022-\n\rerror_m" "anager\030\002 \002(\0132\026.message.Error_manager\022/\n\016" "parkspace_info\030\003 \003(\0132\027.message.Parkspace" "_info*\207\001\n\020Parkspace_status\022\024\n\020eParkspace" "_empty\020\000\022\027\n\023eParkspace_occupied\020\001\022\027\n\023ePa" "rkspace_reserved\020\002\022\025\n\021eParkspace_locked\020" "\003\022\024\n\020eParkspace_error\020\004*\225\001\n\016Vehicle_stat" "us\022\021\n\reVehicle_idle\020\000\022\026\n\022eVehicle_in_gar" "age\020\001\022\024\n\020eVehicle_parking\020\002\022\025\n\021eVehicle_" "fetching\020\003\022\025\n\021eVehicle_reserved\020\004\022\024\n\020eVe" "hicle_unknown\020\005*(\n\tDirection\022\014\n\010eForward" "\020\000\022\r\n\teBackward\020\001" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( descriptor, 2657); ::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* Parkspace_status_descriptor() { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_enum_descriptors[0]; } bool Parkspace_status_IsValid(int value) { switch (value) { case 0: case 1: case 2: case 3: case 4: return true; default: return false; } } const ::google::protobuf::EnumDescriptor* Vehicle_status_descriptor() { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_enum_descriptors[1]; } 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* Direction_descriptor() { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_enum_descriptors[2]; } bool Direction_IsValid(int value) { switch (value) { case 0: case 1: return true; default: return false; } } // =================================================================== void Car_info::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Car_info::kCarLengthFieldNumber; const int Car_info::kCarWidthFieldNumber; const int Car_info::kCarHeightFieldNumber; const int Car_info::kLicenseFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Car_info::Car_info() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsCar_info(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Car_info) } Car_info::Car_info(const Car_info& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_license()) { license_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.license_); } ::memcpy(&car_length_, &from.car_length_, static_cast(reinterpret_cast(&car_height_) - reinterpret_cast(&car_length_)) + sizeof(car_height_)); // @@protoc_insertion_point(copy_constructor:message.Car_info) } void Car_info::SharedCtor() { _cached_size_ = 0; license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&car_length_, 0, static_cast( reinterpret_cast(&car_height_) - reinterpret_cast(&car_length_)) + sizeof(car_height_)); } Car_info::~Car_info() { // @@protoc_insertion_point(destructor:message.Car_info) SharedDtor(); } void Car_info::SharedDtor() { license_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void Car_info::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Car_info::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Car_info& Car_info::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsCar_info(); return *internal_default_instance(); } Car_info* Car_info::New(::google::protobuf::Arena* arena) const { Car_info* n = new Car_info; if (arena != NULL) { arena->Own(n); } return n; } void Car_info::Clear() { // @@protoc_insertion_point(message_clear_start:message.Car_info) ::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(!license_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*license_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 14u) { ::memset(&car_length_, 0, static_cast( reinterpret_cast(&car_height_) - reinterpret_cast(&car_length_)) + sizeof(car_height_)); } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Car_info::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.Car_info) 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)) { // optional float car_length = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) { set_has_car_length(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, &car_length_))); } else { goto handle_unusual; } break; } // required float car_width = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) { set_has_car_width(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, &car_width_))); } else { goto handle_unusual; } break; } // required float car_height = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) { set_has_car_height(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, &car_height_))); } else { goto handle_unusual; } break; } // required string license = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_license())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->license().data(), static_cast(this->license().length()), ::google::protobuf::internal::WireFormat::PARSE, "message.Car_info.license"); } 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.Car_info) return true; failure: // @@protoc_insertion_point(parse_failure:message.Car_info) return false; #undef DO_ } void Car_info::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Car_info) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional float car_length = 1; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->car_length(), output); } // required float car_width = 2; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->car_width(), output); } // required float car_height = 3; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->car_height(), output); } // required string license = 4; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->license().data(), static_cast(this->license().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Car_info.license"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 4, this->license(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Car_info) } ::google::protobuf::uint8* Car_info::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Car_info) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional float car_length = 1; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->car_length(), target); } // required float car_width = 2; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->car_width(), target); } // required float car_height = 3; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->car_height(), target); } // required string license = 4; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->license().data(), static_cast(this->license().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Car_info.license"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 4, this->license(), 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.Car_info) return target; } size_t Car_info::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Car_info) size_t total_size = 0; if (has_license()) { // required string license = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->license()); } if (has_car_width()) { // required float car_width = 2; total_size += 1 + 4; } if (has_car_height()) { // required float car_height = 3; total_size += 1 + 4; } return total_size; } size_t Car_info::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Car_info) 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] & 0x0000000d) ^ 0x0000000d) == 0) { // All required fields are present. // required string license = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->license()); // required float car_width = 2; total_size += 1 + 4; // required float car_height = 3; total_size += 1 + 4; } else { total_size += RequiredFieldsByteSizeFallback(); } // optional float car_length = 1; if (has_car_length()) { total_size += 1 + 4; } 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 Car_info::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Car_info) GOOGLE_DCHECK_NE(&from, this); const Car_info* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Car_info) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Car_info) MergeFrom(*source); } } void Car_info::MergeFrom(const Car_info& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Car_info) 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_license(); license_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.license_); } if (cached_has_bits & 0x00000002u) { car_length_ = from.car_length_; } if (cached_has_bits & 0x00000004u) { car_width_ = from.car_width_; } if (cached_has_bits & 0x00000008u) { car_height_ = from.car_height_; } _has_bits_[0] |= cached_has_bits; } } void Car_info::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Car_info) if (&from == this) return; Clear(); MergeFrom(from); } void Car_info::CopyFrom(const Car_info& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Car_info) if (&from == this) return; Clear(); MergeFrom(from); } bool Car_info::IsInitialized() const { if ((_has_bits_[0] & 0x0000000d) != 0x0000000d) return false; return true; } void Car_info::Swap(Car_info* other) { if (other == this) return; InternalSwap(other); } void Car_info::InternalSwap(Car_info* other) { using std::swap; license_.Swap(&other->license_); swap(car_length_, other->car_length_); swap(car_width_, other->car_width_); swap(car_height_, other->car_height_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Car_info::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Parkspace_info::InitAsDefaultInstance() { ::message::_Parkspace_info_default_instance_._instance.get_mutable()->car_info_ = const_cast< ::message::Car_info*>( ::message::Car_info::internal_default_instance()); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_info::kParkspaceIdFieldNumber; const int Parkspace_info::kIndexFieldNumber; const int Parkspace_info::kDirectionFieldNumber; const int Parkspace_info::kFloorFieldNumber; const int Parkspace_info::kLengthFieldNumber; const int Parkspace_info::kWidthFieldNumber; const int Parkspace_info::kHeightFieldNumber; const int Parkspace_info::kParkspaceStatusFieldNumber; const int Parkspace_info::kCarInfoFieldNumber; const int Parkspace_info::kEntryTimeFieldNumber; const int Parkspace_info::kLeaveTimeFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_info::Parkspace_info() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_info(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_info) } Parkspace_info::Parkspace_info(const Parkspace_info& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); entry_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_entry_time()) { entry_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.entry_time_); } leave_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_leave_time()) { leave_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.leave_time_); } if (from.has_car_info()) { car_info_ = new ::message::Car_info(*from.car_info_); } else { car_info_ = NULL; } ::memcpy(&parkspace_id_, &from.parkspace_id_, static_cast(reinterpret_cast(&parkspace_status_) - reinterpret_cast(&parkspace_id_)) + sizeof(parkspace_status_)); // @@protoc_insertion_point(copy_constructor:message.Parkspace_info) } void Parkspace_info::SharedCtor() { _cached_size_ = 0; entry_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); leave_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&car_info_, 0, static_cast( reinterpret_cast(&parkspace_status_) - reinterpret_cast(&car_info_)) + sizeof(parkspace_status_)); } Parkspace_info::~Parkspace_info() { // @@protoc_insertion_point(destructor:message.Parkspace_info) SharedDtor(); } void Parkspace_info::SharedDtor() { entry_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); leave_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete car_info_; } void Parkspace_info::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Parkspace_info::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Parkspace_info& Parkspace_info::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_info(); return *internal_default_instance(); } Parkspace_info* Parkspace_info::New(::google::protobuf::Arena* arena) const { Parkspace_info* n = new Parkspace_info; if (arena != NULL) { arena->Own(n); } return n; } void Parkspace_info::Clear() { // @@protoc_insertion_point(message_clear_start:message.Parkspace_info) ::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(!entry_time_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*entry_time_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(!leave_time_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*leave_time_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(car_info_ != NULL); car_info_->Clear(); } } if (cached_has_bits & 248u) { ::memset(&parkspace_id_, 0, static_cast( reinterpret_cast(&length_) - reinterpret_cast(&parkspace_id_)) + sizeof(length_)); } if (cached_has_bits & 1792u) { ::memset(&width_, 0, static_cast( reinterpret_cast(&parkspace_status_) - reinterpret_cast(&width_)) + sizeof(parkspace_status_)); } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_info::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_info) 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 int32 parkspace_id = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { set_has_parkspace_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &parkspace_id_))); } else { goto handle_unusual; } break; } // required int32 index = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_index(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &index_))); } else { goto handle_unusual; } break; } // required .message.Direction direction = 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::Direction_IsValid(value)) { set_direction(static_cast< ::message::Direction >(value)); } else { mutable_unknown_fields()->AddVarint( 3, static_cast< ::google::protobuf::uint64>(value)); } } else { goto handle_unusual; } break; } // required int32 floor = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { set_has_floor(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &floor_))); } else { goto handle_unusual; } break; } // optional float length = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) { set_has_length(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, &length_))); } else { goto handle_unusual; } break; } // required float width = 6; case 6: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) { set_has_width(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, &width_))); } else { goto handle_unusual; } break; } // required float height = 7; case 7: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) { set_has_height(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, &height_))); } else { goto handle_unusual; } break; } // required .message.Parkspace_status parkspace_status = 8; case 8: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); if (::message::Parkspace_status_IsValid(value)) { set_parkspace_status(static_cast< ::message::Parkspace_status >(value)); } else { mutable_unknown_fields()->AddVarint( 8, static_cast< ::google::protobuf::uint64>(value)); } } else { goto handle_unusual; } break; } // optional .message.Car_info car_info = 9; case 9: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_car_info())); } else { goto handle_unusual; } break; } // optional string entry_time = 10; case 10: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_entry_time())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->entry_time().data(), static_cast(this->entry_time().length()), ::google::protobuf::internal::WireFormat::PARSE, "message.Parkspace_info.entry_time"); } else { goto handle_unusual; } break; } // optional string leave_time = 11; case 11: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_leave_time())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->leave_time().data(), static_cast(this->leave_time().length()), ::google::protobuf::internal::WireFormat::PARSE, "message.Parkspace_info.leave_time"); } 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_info) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_info) return false; #undef DO_ } void Parkspace_info::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_info) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int32 parkspace_id = 1; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->parkspace_id(), output); } // required int32 index = 2; if (cached_has_bits & 0x00000010u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->index(), output); } // required .message.Direction direction = 3; if (cached_has_bits & 0x00000020u) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 3, this->direction(), output); } // required int32 floor = 4; if (cached_has_bits & 0x00000040u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->floor(), output); } // optional float length = 5; if (cached_has_bits & 0x00000080u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->length(), output); } // required float width = 6; if (cached_has_bits & 0x00000100u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->width(), output); } // required float height = 7; if (cached_has_bits & 0x00000200u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->height(), output); } // required .message.Parkspace_status parkspace_status = 8; if (cached_has_bits & 0x00000400u) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 8, this->parkspace_status(), output); } // optional .message.Car_info car_info = 9; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 9, *this->car_info_, output); } // optional string entry_time = 10; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->entry_time().data(), static_cast(this->entry_time().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_info.entry_time"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 10, this->entry_time(), output); } // optional string leave_time = 11; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->leave_time().data(), static_cast(this->leave_time().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_info.leave_time"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 11, this->leave_time(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_info) } ::google::protobuf::uint8* Parkspace_info::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_info) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int32 parkspace_id = 1; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->parkspace_id(), target); } // required int32 index = 2; if (cached_has_bits & 0x00000010u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->index(), target); } // required .message.Direction direction = 3; if (cached_has_bits & 0x00000020u) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 3, this->direction(), target); } // required int32 floor = 4; if (cached_has_bits & 0x00000040u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->floor(), target); } // optional float length = 5; if (cached_has_bits & 0x00000080u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->length(), target); } // required float width = 6; if (cached_has_bits & 0x00000100u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->width(), target); } // required float height = 7; if (cached_has_bits & 0x00000200u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->height(), target); } // required .message.Parkspace_status parkspace_status = 8; if (cached_has_bits & 0x00000400u) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 8, this->parkspace_status(), target); } // optional .message.Car_info car_info = 9; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 9, *this->car_info_, deterministic, target); } // optional string entry_time = 10; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->entry_time().data(), static_cast(this->entry_time().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_info.entry_time"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 10, this->entry_time(), target); } // optional string leave_time = 11; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->leave_time().data(), static_cast(this->leave_time().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_info.leave_time"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 11, this->leave_time(), 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_info) return target; } size_t Parkspace_info::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_info) size_t total_size = 0; if (has_parkspace_id()) { // required int32 parkspace_id = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->parkspace_id()); } if (has_index()) { // required int32 index = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->index()); } if (has_direction()) { // required .message.Direction direction = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->direction()); } if (has_floor()) { // required int32 floor = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->floor()); } if (has_width()) { // required float width = 6; total_size += 1 + 4; } if (has_height()) { // required float height = 7; total_size += 1 + 4; } if (has_parkspace_status()) { // required .message.Parkspace_status parkspace_status = 8; total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkspace_status()); } return total_size; } size_t Parkspace_info::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_info) 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] & 0x00000778) ^ 0x00000778) == 0) { // All required fields are present. // required int32 parkspace_id = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->parkspace_id()); // required int32 index = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->index()); // required .message.Direction direction = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->direction()); // required int32 floor = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->floor()); // required float width = 6; total_size += 1 + 4; // required float height = 7; total_size += 1 + 4; // required .message.Parkspace_status parkspace_status = 8; total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkspace_status()); } else { total_size += RequiredFieldsByteSizeFallback(); } if (_has_bits_[0 / 32] & 7u) { // optional string entry_time = 10; if (has_entry_time()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->entry_time()); } // optional string leave_time = 11; if (has_leave_time()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->leave_time()); } // optional .message.Car_info car_info = 9; if (has_car_info()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->car_info_); } } // optional float length = 5; if (has_length()) { total_size += 1 + 4; } 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_info::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_info) GOOGLE_DCHECK_NE(&from, this); const Parkspace_info* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_info) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_info) MergeFrom(*source); } } void Parkspace_info::MergeFrom(const Parkspace_info& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_info) 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 & 255u) { if (cached_has_bits & 0x00000001u) { set_has_entry_time(); entry_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.entry_time_); } if (cached_has_bits & 0x00000002u) { set_has_leave_time(); leave_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.leave_time_); } if (cached_has_bits & 0x00000004u) { mutable_car_info()->::message::Car_info::MergeFrom(from.car_info()); } if (cached_has_bits & 0x00000008u) { parkspace_id_ = from.parkspace_id_; } if (cached_has_bits & 0x00000010u) { index_ = from.index_; } if (cached_has_bits & 0x00000020u) { direction_ = from.direction_; } if (cached_has_bits & 0x00000040u) { floor_ = from.floor_; } if (cached_has_bits & 0x00000080u) { length_ = from.length_; } _has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 1792u) { if (cached_has_bits & 0x00000100u) { width_ = from.width_; } if (cached_has_bits & 0x00000200u) { height_ = from.height_; } if (cached_has_bits & 0x00000400u) { parkspace_status_ = from.parkspace_status_; } _has_bits_[0] |= cached_has_bits; } } void Parkspace_info::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_info) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_info::CopyFrom(const Parkspace_info& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_info) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_info::IsInitialized() const { if ((_has_bits_[0] & 0x00000778) != 0x00000778) return false; if (has_car_info()) { if (!this->car_info_->IsInitialized()) return false; } return true; } void Parkspace_info::Swap(Parkspace_info* other) { if (other == this) return; InternalSwap(other); } void Parkspace_info::InternalSwap(Parkspace_info* other) { using std::swap; entry_time_.Swap(&other->entry_time_); leave_time_.Swap(&other->leave_time_); swap(car_info_, other->car_info_); swap(parkspace_id_, other->parkspace_id_); swap(index_, other->index_); swap(direction_, other->direction_); swap(floor_, other->floor_); swap(length_, other->length_); swap(width_, other->width_); swap(height_, other->height_); swap(parkspace_status_, other->parkspace_status_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_info::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== 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(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_allocation_request_msg::kBaseInfoFieldNumber; const int Parkspace_allocation_request_msg::kCommandIdFieldNumber; 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_); 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; } ::memcpy(&command_id_, &from.command_id_, static_cast(reinterpret_cast(&terminal_id_) - reinterpret_cast(&command_id_)) + sizeof(terminal_id_)); // @@protoc_insertion_point(copy_constructor:message.Parkspace_allocation_request_msg) } void Parkspace_allocation_request_msg::SharedCtor() { _cached_size_ = 0; ::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() { 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 & 3u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(car_info_ != NULL); car_info_->Clear(); } } if (cached_has_bits & 12u) { ::memset(&command_id_, 0, static_cast( reinterpret_cast(&terminal_id_) - reinterpret_cast(&command_id_)) + sizeof(terminal_id_)); } _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 int32 command_id = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_command_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &command_id_))); } 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 & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required int32 command_id = 2; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output); } // required .message.Car_info car_info = 3; if (cached_has_bits & 0x00000002u) { ::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 & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required int32 command_id = 2; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target); } // required .message.Car_info car_info = 3; if (cached_has_bits & 0x00000002u) { 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_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_command_id()) { // required int32 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_id()); } 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 .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 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_id()); // 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) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000002u) { mutable_car_info()->::message::Car_info::MergeFrom(from.car_info()); } if (cached_has_bits & 0x00000004u) { command_id_ = from.command_id_; } 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; } if (has_car_info()) { if (!this->car_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; swap(base_info_, other->base_info_); swap(car_info_, other->car_info_); swap(command_id_, other->command_id_); 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(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_allocation_response_msg::kBaseInfoFieldNumber; const int Parkspace_allocation_response_msg::kCommandIdFieldNumber; 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_); 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; } command_id_ = from.command_id_; // @@protoc_insertion_point(copy_constructor:message.Parkspace_allocation_response_msg) } void Parkspace_allocation_response_msg::SharedCtor() { _cached_size_ = 0; ::memset(&base_info_, 0, static_cast( reinterpret_cast(&command_id_) - reinterpret_cast(&base_info_)) + sizeof(command_id_)); } Parkspace_allocation_response_msg::~Parkspace_allocation_response_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_allocation_response_msg) SharedDtor(); } void Parkspace_allocation_response_msg::SharedDtor() { 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 & 7u) { 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 & 0x00000004u) { GOOGLE_DCHECK(allocated_space_info_ != NULL); allocated_space_info_->Clear(); } } command_id_ = 0; _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 int32 command_id = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_command_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &command_id_))); } 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 & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required int32 command_id = 2; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->error_manager_, output); } // required .message.Parkspace_info allocated_space_info = 4; if (cached_has_bits & 0x00000004u) { ::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 & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required int32 command_id = 2; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, *this->error_manager_, deterministic, target); } // required .message.Parkspace_info allocated_space_info = 4; if (cached_has_bits & 0x00000004u) { 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_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_); } if (has_command_id()) { // required int32 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_id()); } 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 .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_); // required int32 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_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_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) { 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) { mutable_allocated_space_info()->::message::Parkspace_info::MergeFrom(from.allocated_space_info()); } if (cached_has_bits & 0x00000008u) { command_id_ = from.command_id_; } _has_bits_[0] |= cached_has_bits; } } 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; } if (has_allocated_space_info()) { if (!this->allocated_space_info_->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; swap(base_info_, other->base_info_); swap(error_manager_, other->error_manager_); swap(allocated_space_info_, other->allocated_space_info_); swap(command_id_, other->command_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_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(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_search_request_msg::kBaseInfoFieldNumber; const int Parkspace_search_request_msg::kCommandIdFieldNumber; 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_); 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; } command_id_ = from.command_id_; // @@protoc_insertion_point(copy_constructor:message.Parkspace_search_request_msg) } void Parkspace_search_request_msg::SharedCtor() { _cached_size_ = 0; ::memset(&base_info_, 0, static_cast( reinterpret_cast(&command_id_) - reinterpret_cast(&base_info_)) + sizeof(command_id_)); } Parkspace_search_request_msg::~Parkspace_search_request_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_search_request_msg) SharedDtor(); } void Parkspace_search_request_msg::SharedDtor() { 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 & 3u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(car_info_ != NULL); car_info_->Clear(); } } command_id_ = 0; _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 int32 command_id = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_command_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &command_id_))); } 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 & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required int32 command_id = 2; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output); } // required .message.Car_info car_info = 3; if (cached_has_bits & 0x00000002u) { ::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 & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required int32 command_id = 2; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target); } // required .message.Car_info car_info = 3; if (cached_has_bits & 0x00000002u) { 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_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_command_id()) { // required int32 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_id()); } 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 .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 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_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_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) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000002u) { mutable_car_info()->::message::Car_info::MergeFrom(from.car_info()); } if (cached_has_bits & 0x00000004u) { command_id_ = from.command_id_; } _has_bits_[0] |= cached_has_bits; } } 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; } if (has_car_info()) { if (!this->car_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; swap(base_info_, other->base_info_); swap(car_info_, other->car_info_); swap(command_id_, other->command_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_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(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_search_response_msg::kBaseInfoFieldNumber; const int Parkspace_search_response_msg::kCommandIdFieldNumber; 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_); 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; } command_id_ = from.command_id_; // @@protoc_insertion_point(copy_constructor:message.Parkspace_search_response_msg) } void Parkspace_search_response_msg::SharedCtor() { _cached_size_ = 0; ::memset(&base_info_, 0, static_cast( reinterpret_cast(&command_id_) - reinterpret_cast(&base_info_)) + sizeof(command_id_)); } Parkspace_search_response_msg::~Parkspace_search_response_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_search_response_msg) SharedDtor(); } void Parkspace_search_response_msg::SharedDtor() { 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 & 7u) { 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 & 0x00000004u) { GOOGLE_DCHECK(car_position_ != NULL); car_position_->Clear(); } } command_id_ = 0; _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 int32 command_id = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_command_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &command_id_))); } 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 & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required int32 command_id = 2; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->error_manager_, output); } // optional .message.Parkspace_info car_position = 4; if (cached_has_bits & 0x00000004u) { ::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 & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required int32 command_id = 2; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, *this->error_manager_, deterministic, target); } // optional .message.Parkspace_info car_position = 4; if (cached_has_bits & 0x00000004u) { 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_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_command_id()) { // required int32 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_id()); } 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] & 0x0000000b) ^ 0x0000000b) == 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 = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); // required int32 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_id()); } 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) { 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) { mutable_car_position()->::message::Parkspace_info::MergeFrom(from.car_position()); } if (cached_has_bits & 0x00000008u) { command_id_ = from.command_id_; } _has_bits_[0] |= cached_has_bits; } } 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] & 0x0000000b) != 0x0000000b) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } if (has_error_manager()) { if (!this->error_manager_->IsInitialized()) return false; } if (has_car_position()) { if (!this->car_position_->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; swap(base_info_, other->base_info_); swap(error_manager_, other->error_manager_); swap(car_position_, other->car_position_); swap(command_id_, other->command_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_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(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_release_request_msg::kBaseInfoFieldNumber; const int Parkspace_release_request_msg::kCommandIdFieldNumber; 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_); 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; } command_id_ = from.command_id_; // @@protoc_insertion_point(copy_constructor:message.Parkspace_release_request_msg) } void Parkspace_release_request_msg::SharedCtor() { _cached_size_ = 0; ::memset(&base_info_, 0, static_cast( reinterpret_cast(&command_id_) - reinterpret_cast(&base_info_)) + sizeof(command_id_)); } Parkspace_release_request_msg::~Parkspace_release_request_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_release_request_msg) SharedDtor(); } void Parkspace_release_request_msg::SharedDtor() { 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 & 3u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(release_space_info_ != NULL); release_space_info_->Clear(); } } command_id_ = 0; _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 int32 command_id = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_command_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &command_id_))); } 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 & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required int32 command_id = 2; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output); } // required .message.Parkspace_info release_space_info = 3; if (cached_has_bits & 0x00000002u) { ::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 & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required int32 command_id = 2; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target); } // required .message.Parkspace_info release_space_info = 3; if (cached_has_bits & 0x00000002u) { 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_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_); } if (has_command_id()) { // required int32 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_id()); } 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 .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_); // required int32 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_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_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) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000002u) { mutable_release_space_info()->::message::Parkspace_info::MergeFrom(from.release_space_info()); } if (cached_has_bits & 0x00000004u) { command_id_ = from.command_id_; } _has_bits_[0] |= cached_has_bits; } } 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; } if (has_release_space_info()) { if (!this->release_space_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; swap(base_info_, other->base_info_); swap(release_space_info_, other->release_space_info_); swap(command_id_, other->command_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_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(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_release_response_msg::kBaseInfoFieldNumber; const int Parkspace_release_response_msg::kCommandIdFieldNumber; 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_); 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; } command_id_ = from.command_id_; // @@protoc_insertion_point(copy_constructor:message.Parkspace_release_response_msg) } void Parkspace_release_response_msg::SharedCtor() { _cached_size_ = 0; ::memset(&base_info_, 0, static_cast( reinterpret_cast(&command_id_) - reinterpret_cast(&base_info_)) + sizeof(command_id_)); } Parkspace_release_response_msg::~Parkspace_release_response_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_release_response_msg) SharedDtor(); } void Parkspace_release_response_msg::SharedDtor() { 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 & 7u) { 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 & 0x00000004u) { GOOGLE_DCHECK(release_space_info_ != NULL); release_space_info_->Clear(); } } command_id_ = 0; _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 int32 command_id = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_command_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &command_id_))); } 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 & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required int32 command_id = 2; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->error_manager_, output); } // required .message.Parkspace_info release_space_info = 4; if (cached_has_bits & 0x00000004u) { ::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 & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required int32 command_id = 2; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, *this->error_manager_, deterministic, target); } // required .message.Parkspace_info release_space_info = 4; if (cached_has_bits & 0x00000004u) { 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_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_); } if (has_command_id()) { // required int32 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_id()); } 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 .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_); // required int32 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_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_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) { 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) { mutable_release_space_info()->::message::Parkspace_info::MergeFrom(from.release_space_info()); } if (cached_has_bits & 0x00000008u) { command_id_ = from.command_id_; } _has_bits_[0] |= cached_has_bits; } } 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; } if (has_release_space_info()) { if (!this->release_space_info_->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; swap(base_info_, other->base_info_); swap(error_manager_, other->error_manager_); swap(release_space_info_, other->release_space_info_); swap(command_id_, other->command_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_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(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_force_update_request_msg::kBaseInfoFieldNumber; const int Parkspace_force_update_request_msg::kCommandIdFieldNumber; 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_); 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; } command_id_ = from.command_id_; // @@protoc_insertion_point(copy_constructor:message.Parkspace_force_update_request_msg) } void Parkspace_force_update_request_msg::SharedCtor() { _cached_size_ = 0; ::memset(&base_info_, 0, static_cast( reinterpret_cast(&command_id_) - reinterpret_cast(&base_info_)) + sizeof(command_id_)); } 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() { 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 & 3u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(update_space_info_ != NULL); update_space_info_->Clear(); } } command_id_ = 0; _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 int32 command_id = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_command_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &command_id_))); } 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 & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required int32 command_id = 2; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output); } // required .message.Parkspace_info update_space_info = 3; if (cached_has_bits & 0x00000002u) { ::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 & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required int32 command_id = 2; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target); } // required .message.Parkspace_info update_space_info = 3; if (cached_has_bits & 0x00000002u) { 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_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_); } if (has_command_id()) { // required int32 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_id()); } 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 .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_); // required int32 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_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_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) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000002u) { mutable_update_space_info()->::message::Parkspace_info::MergeFrom(from.update_space_info()); } if (cached_has_bits & 0x00000004u) { command_id_ = from.command_id_; } _has_bits_[0] |= cached_has_bits; } } 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; } if (has_update_space_info()) { if (!this->update_space_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; swap(base_info_, other->base_info_); swap(update_space_info_, other->update_space_info_); swap(command_id_, other->command_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_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(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_force_update_response_msg::kBaseInfoFieldNumber; const int Parkspace_force_update_response_msg::kCommandIdFieldNumber; 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_); 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; } command_id_ = from.command_id_; // @@protoc_insertion_point(copy_constructor:message.Parkspace_force_update_response_msg) } void Parkspace_force_update_response_msg::SharedCtor() { _cached_size_ = 0; ::memset(&base_info_, 0, static_cast( reinterpret_cast(&command_id_) - reinterpret_cast(&base_info_)) + sizeof(command_id_)); } 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() { 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 & 7u) { 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 & 0x00000004u) { GOOGLE_DCHECK(update_space_info_ != NULL); update_space_info_->Clear(); } } command_id_ = 0; _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 int32 command_id = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_command_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &command_id_))); } 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 & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required int32 command_id = 2; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->error_manager_, output); } // required .message.Parkspace_info update_space_info = 4; if (cached_has_bits & 0x00000004u) { ::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 & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required int32 command_id = 2; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, *this->error_manager_, deterministic, target); } // required .message.Parkspace_info update_space_info = 4; if (cached_has_bits & 0x00000004u) { 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_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_); } if (has_command_id()) { // required int32 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_id()); } 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 .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_); // required int32 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_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_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) { 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) { mutable_update_space_info()->::message::Parkspace_info::MergeFrom(from.update_space_info()); } if (cached_has_bits & 0x00000008u) { command_id_ = from.command_id_; } _has_bits_[0] |= cached_has_bits; } } 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; } if (has_update_space_info()) { if (!this->update_space_info_->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; swap(base_info_, other->base_info_); swap(error_manager_, other->error_manager_); swap(update_space_info_, other->update_space_info_); swap(command_id_, other->command_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_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(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_confirm_alloc_request_msg::kBaseInfoFieldNumber; const int Parkspace_confirm_alloc_request_msg::kCommandIdFieldNumber; 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_); 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; } command_id_ = from.command_id_; // @@protoc_insertion_point(copy_constructor:message.Parkspace_confirm_alloc_request_msg) } void Parkspace_confirm_alloc_request_msg::SharedCtor() { _cached_size_ = 0; ::memset(&base_info_, 0, static_cast( reinterpret_cast(&command_id_) - reinterpret_cast(&base_info_)) + sizeof(command_id_)); } 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() { 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 & 3u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(confirm_space_info_ != NULL); confirm_space_info_->Clear(); } } command_id_ = 0; _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 int32 command_id = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_command_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &command_id_))); } 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 & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required int32 command_id = 2; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output); } // required .message.Parkspace_info confirm_space_info = 3; if (cached_has_bits & 0x00000002u) { ::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 & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required int32 command_id = 2; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target); } // required .message.Parkspace_info confirm_space_info = 3; if (cached_has_bits & 0x00000002u) { 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_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_); } if (has_command_id()) { // required int32 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_id()); } 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 .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_); // required int32 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_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_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) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000002u) { mutable_confirm_space_info()->::message::Parkspace_info::MergeFrom(from.confirm_space_info()); } if (cached_has_bits & 0x00000004u) { command_id_ = from.command_id_; } _has_bits_[0] |= cached_has_bits; } } 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; } if (has_confirm_space_info()) { if (!this->confirm_space_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; swap(base_info_, other->base_info_); swap(confirm_space_info_, other->confirm_space_info_); swap(command_id_, other->command_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_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(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_confirm_alloc_response_msg::kBaseInfoFieldNumber; const int Parkspace_confirm_alloc_response_msg::kCommandIdFieldNumber; 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_); 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; } command_id_ = from.command_id_; // @@protoc_insertion_point(copy_constructor:message.Parkspace_confirm_alloc_response_msg) } void Parkspace_confirm_alloc_response_msg::SharedCtor() { _cached_size_ = 0; ::memset(&base_info_, 0, static_cast( reinterpret_cast(&command_id_) - reinterpret_cast(&base_info_)) + sizeof(command_id_)); } 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() { 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 & 7u) { 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 & 0x00000004u) { GOOGLE_DCHECK(confirm_alloc_space_info_ != NULL); confirm_alloc_space_info_->Clear(); } } command_id_ = 0; _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 int32 command_id = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_command_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &command_id_))); } 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 & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required int32 command_id = 2; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->error_manager_, output); } // required .message.Parkspace_info confirm_alloc_space_info = 4; if (cached_has_bits & 0x00000004u) { ::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 & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required int32 command_id = 2; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000002u) { 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 & 0x00000004u) { 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_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_); } if (has_command_id()) { // required int32 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_id()); } 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 .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_); // required int32 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_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_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) { 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) { mutable_confirm_alloc_space_info()->::message::Parkspace_info::MergeFrom(from.confirm_alloc_space_info()); } if (cached_has_bits & 0x00000008u) { command_id_ = from.command_id_; } _has_bits_[0] |= cached_has_bits; } } 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; } if (has_confirm_alloc_space_info()) { if (!this->confirm_alloc_space_info_->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; swap(base_info_, other->base_info_); swap(error_manager_, other->error_manager_); swap(confirm_alloc_space_info_, other->confirm_alloc_space_info_); swap(command_id_, other->command_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_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::kParkspaceInfoFieldNumber; #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), 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_status_msg) } void Parkspace_allocation_status_msg::SharedCtor() { _cached_size_ = 0; ::memset(&base_info_, 0, static_cast( reinterpret_cast(&error_manager_) - reinterpret_cast(&base_info_)) + sizeof(error_manager_)); } 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; 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_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; } // 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_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); } // 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_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); } // 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_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_); } 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] & 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_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; 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_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] & 0x00000003) != 0x00000003) return false; if (!::google::protobuf::internal::AllAreInitialized(this->parkspace_info())) 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; 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_status_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)