// Generated by the protocol buffer compiler. DO NOT EDIT! // source: parkspace_allocation_message.proto #include "parkspace_allocation_message.pb.h" #include #include #include #include #include #include #include #include #include #include // This is a temporary google only hack #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS #include "third_party/protobuf/version.h" #endif // @@protoc_insertion_point(includes) namespace message { class Parkspace_allocation_request_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_allocation_request_msg_default_instance_; class Parkspace_allocation_response_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_allocation_response_msg_default_instance_; class Parkspace_search_request_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_search_request_msg_default_instance_; class Parkspace_search_response_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_search_response_msg_default_instance_; class Parkspace_manual_search_request_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_manual_search_request_msg_default_instance_; class Parkspace_manual_search_response_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_manual_search_response_msg_default_instance_; class Parkspace_release_request_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_release_request_msg_default_instance_; class Parkspace_release_response_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_release_response_msg_default_instance_; class Parkspace_force_update_request_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_force_update_request_msg_default_instance_; class Parkspace_force_update_response_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_force_update_response_msg_default_instance_; class Parkspace_confirm_alloc_request_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_confirm_alloc_request_msg_default_instance_; class Parkspace_confirm_alloc_response_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_confirm_alloc_response_msg_default_instance_; class Parkspace_allocation_status_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_allocation_status_msg_default_instance_; class Parkspace_refresh_request_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_refresh_request_msg_default_instance_; class Parkspace_allocation_data_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_allocation_data_msg_default_instance_; } // namespace message namespace protobuf_parkspace_5fallocation_5fmessage_2eproto { void InitDefaultsParkspace_allocation_request_msgImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_message_5fbase_2eproto::InitDefaultsBase_info(); protobuf_message_5fbase_2eproto::InitDefaultsCar_info(); protobuf_message_5fbase_2eproto::InitDefaultsId_struct(); { void* ptr = &::message::_Parkspace_allocation_request_msg_default_instance_; new (ptr) ::message::Parkspace_allocation_request_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_allocation_request_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_allocation_request_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_allocation_request_msgImpl); } void InitDefaultsParkspace_allocation_response_msgImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_message_5fbase_2eproto::InitDefaultsBase_info(); protobuf_message_5fbase_2eproto::InitDefaultsError_manager(); protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info(); { void* ptr = &::message::_Parkspace_allocation_response_msg_default_instance_; new (ptr) ::message::Parkspace_allocation_response_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_allocation_response_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_allocation_response_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_allocation_response_msgImpl); } void InitDefaultsParkspace_search_request_msgImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_message_5fbase_2eproto::InitDefaultsBase_info(); protobuf_message_5fbase_2eproto::InitDefaultsCar_info(); { void* ptr = &::message::_Parkspace_search_request_msg_default_instance_; new (ptr) ::message::Parkspace_search_request_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_search_request_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_search_request_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_search_request_msgImpl); } void InitDefaultsParkspace_search_response_msgImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_message_5fbase_2eproto::InitDefaultsBase_info(); protobuf_message_5fbase_2eproto::InitDefaultsError_manager(); protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info(); { void* ptr = &::message::_Parkspace_search_response_msg_default_instance_; new (ptr) ::message::Parkspace_search_response_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_search_response_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_search_response_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_search_response_msgImpl); } void InitDefaultsParkspace_manual_search_request_msgImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_message_5fbase_2eproto::InitDefaultsBase_info(); protobuf_message_5fbase_2eproto::InitDefaultsCar_info(); { void* ptr = &::message::_Parkspace_manual_search_request_msg_default_instance_; new (ptr) ::message::Parkspace_manual_search_request_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_manual_search_request_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_manual_search_request_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_manual_search_request_msgImpl); } void InitDefaultsParkspace_manual_search_response_msgImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_message_5fbase_2eproto::InitDefaultsBase_info(); protobuf_message_5fbase_2eproto::InitDefaultsError_manager(); protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info(); { void* ptr = &::message::_Parkspace_manual_search_response_msg_default_instance_; new (ptr) ::message::Parkspace_manual_search_response_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_manual_search_response_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_manual_search_response_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_manual_search_response_msgImpl); } void InitDefaultsParkspace_release_request_msgImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_message_5fbase_2eproto::InitDefaultsBase_info(); protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info(); { void* ptr = &::message::_Parkspace_release_request_msg_default_instance_; new (ptr) ::message::Parkspace_release_request_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_release_request_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_release_request_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_release_request_msgImpl); } void InitDefaultsParkspace_release_response_msgImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_message_5fbase_2eproto::InitDefaultsBase_info(); protobuf_message_5fbase_2eproto::InitDefaultsError_manager(); protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info(); { void* ptr = &::message::_Parkspace_release_response_msg_default_instance_; new (ptr) ::message::Parkspace_release_response_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_release_response_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_release_response_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_release_response_msgImpl); } void InitDefaultsParkspace_force_update_request_msgImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_message_5fbase_2eproto::InitDefaultsBase_info(); protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info(); { void* ptr = &::message::_Parkspace_force_update_request_msg_default_instance_; new (ptr) ::message::Parkspace_force_update_request_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_force_update_request_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_force_update_request_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_force_update_request_msgImpl); } void InitDefaultsParkspace_force_update_response_msgImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_message_5fbase_2eproto::InitDefaultsBase_info(); protobuf_message_5fbase_2eproto::InitDefaultsError_manager(); protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info(); { void* ptr = &::message::_Parkspace_force_update_response_msg_default_instance_; new (ptr) ::message::Parkspace_force_update_response_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_force_update_response_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_force_update_response_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_force_update_response_msgImpl); } void InitDefaultsParkspace_confirm_alloc_request_msgImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_message_5fbase_2eproto::InitDefaultsBase_info(); protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info(); { void* ptr = &::message::_Parkspace_confirm_alloc_request_msg_default_instance_; new (ptr) ::message::Parkspace_confirm_alloc_request_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_confirm_alloc_request_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_confirm_alloc_request_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_confirm_alloc_request_msgImpl); } void InitDefaultsParkspace_confirm_alloc_response_msgImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_message_5fbase_2eproto::InitDefaultsBase_info(); protobuf_message_5fbase_2eproto::InitDefaultsError_manager(); protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info(); { void* ptr = &::message::_Parkspace_confirm_alloc_response_msg_default_instance_; new (ptr) ::message::Parkspace_confirm_alloc_response_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_confirm_alloc_response_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_confirm_alloc_response_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_confirm_alloc_response_msgImpl); } void InitDefaultsParkspace_allocation_status_msgImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_message_5fbase_2eproto::InitDefaultsBase_info(); protobuf_message_5fbase_2eproto::InitDefaultsError_manager(); { void* ptr = &::message::_Parkspace_allocation_status_msg_default_instance_; new (ptr) ::message::Parkspace_allocation_status_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_allocation_status_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_allocation_status_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_allocation_status_msgImpl); } void InitDefaultsParkspace_refresh_request_msgImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_message_5fbase_2eproto::InitDefaultsBase_info(); { void* ptr = &::message::_Parkspace_refresh_request_msg_default_instance_; new (ptr) ::message::Parkspace_refresh_request_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_refresh_request_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_refresh_request_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_refresh_request_msgImpl); } void InitDefaultsParkspace_allocation_data_msgImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_message_5fbase_2eproto::InitDefaultsBase_info(); protobuf_message_5fbase_2eproto::InitDefaultsError_manager(); protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info(); { void* ptr = &::message::_Parkspace_allocation_data_msg_default_instance_; new (ptr) ::message::Parkspace_allocation_data_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_allocation_data_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_allocation_data_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_allocation_data_msgImpl); } ::google::protobuf::Metadata file_level_metadata[15]; const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[3]; const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, car_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, id_struct_), 1, 0, 2, 3, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, error_manager_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, allocated_parkspace_info_ex_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, car_type_), 1, 0, 2, ~0u, 3, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, car_info_), 1, 0, 2, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, error_manager_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, query_parkspace_info_ex_), 1, 0, 2, ~0u, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_manual_search_request_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_manual_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_manual_search_request_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_manual_search_request_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_manual_search_request_msg, car_info_), 1, 0, 2, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_manual_search_response_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_manual_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_manual_search_response_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_manual_search_response_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_manual_search_response_msg, error_manager_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_manual_search_response_msg, query_parkspace_info_ex_), 1, 0, 2, ~0u, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_request_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_request_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_request_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_request_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_request_msg, release_parkspace_info_ex_), 1, 0, ~0u, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, error_manager_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_release_response_msg, release_parkspace_info_ex_), 1, 0, 2, ~0u, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_force_update_request_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_force_update_request_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_force_update_request_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_force_update_request_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_force_update_request_msg, manual_parkspace_info_ex_), 1, 0, ~0u, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_force_update_response_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_force_update_response_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_force_update_response_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_force_update_response_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_force_update_response_msg, error_manager_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_force_update_response_msg, manual_parkspace_info_ex_), 1, 0, 2, ~0u, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_request_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_request_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_request_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_request_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_request_msg, confirm_parkspace_info_ex_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_request_msg, car_type_), 1, 0, ~0u, 2, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_response_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_response_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_response_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_response_msg, command_key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_response_msg, error_manager_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_response_msg, confirm_parkspace_info_ex_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_confirm_alloc_response_msg, car_type_), 1, 0, 2, ~0u, 3, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, error_manager_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, database_controller_status_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, parkspace_manager_satus_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, unit_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, small_parkspace_remaining_number_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, medium_parkspace_remaining_number_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, large_parkspace_remaining_number_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_status_msg, total_parkspace_remaining_number_), 0, 1, 2, 3, 4, 5, 6, 7, 8, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_refresh_request_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_refresh_request_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_refresh_request_msg, base_info_), 0, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_data_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_data_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_data_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_data_msg, error_manager_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_data_msg, parkspace_info_ex_), 0, 1, ~0u, }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, 9, sizeof(::message::Parkspace_allocation_request_msg)}, { 13, 23, sizeof(::message::Parkspace_allocation_response_msg)}, { 28, 36, sizeof(::message::Parkspace_search_request_msg)}, { 39, 48, sizeof(::message::Parkspace_search_response_msg)}, { 52, 60, sizeof(::message::Parkspace_manual_search_request_msg)}, { 63, 72, sizeof(::message::Parkspace_manual_search_response_msg)}, { 76, 84, sizeof(::message::Parkspace_release_request_msg)}, { 87, 96, sizeof(::message::Parkspace_release_response_msg)}, { 100, 108, sizeof(::message::Parkspace_force_update_request_msg)}, { 111, 120, sizeof(::message::Parkspace_force_update_response_msg)}, { 124, 133, sizeof(::message::Parkspace_confirm_alloc_request_msg)}, { 137, 147, sizeof(::message::Parkspace_confirm_alloc_response_msg)}, { 152, 166, sizeof(::message::Parkspace_allocation_status_msg)}, { 175, 181, sizeof(::message::Parkspace_refresh_request_msg)}, { 182, 190, sizeof(::message::Parkspace_allocation_data_msg)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::message::_Parkspace_allocation_request_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_allocation_response_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_search_request_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_search_response_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_manual_search_request_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_manual_search_response_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_release_request_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_release_response_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_force_update_request_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_force_update_response_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_confirm_alloc_request_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_confirm_alloc_response_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_allocation_status_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_refresh_request_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_allocation_data_msg_default_instance_), }; void protobuf_AssignDescriptors() { AddDescriptors(); ::google::protobuf::MessageFactory* factory = NULL; AssignDescriptors( "parkspace_allocation_message.proto", schemas, file_default_instances, TableStruct::offsets, factory, file_level_metadata, file_level_enum_descriptors, NULL); } void protobuf_AssignDescriptorsOnce() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 15); } 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\"\252\001\n Parkspace_" "allocation_request_msg\022%\n\tbase_info\030\001 \002(" "\0132\022.message.Base_info\022\023\n\013command_key\030\002 \002" "(\t\022#\n\010car_info\030\003 \002(\0132\021.message.Car_info\022" "%\n\tid_struct\030\004 \002(\0132\022.message.Id_struct\"\361" "\001\n!Parkspace_allocation_response_msg\022%\n\t" "base_info\030\001 \002(\0132\022.message.Base_info\022\023\n\013c" "ommand_key\030\002 \002(\t\022-\n\rerror_manager\030\003 \002(\0132" "\026.message.Error_manager\022<\n\033allocated_par" "kspace_info_ex\030\004 \003(\0132\027.message.Parkspace" "_info\022#\n\010car_type\030\005 \001(\0162\021.message.Car_ty" "pe\"\177\n\034Parkspace_search_request_msg\022%\n\tba" "se_info\030\001 \002(\0132\022.message.Base_info\022\023\n\013com" "mand_key\030\002 \002(\t\022#\n\010car_info\030\003 \002(\0132\021.messa" "ge.Car_info\"\304\001\n\035Parkspace_search_respons" "e_msg\022%\n\tbase_info\030\001 \002(\0132\022.message.Base_" "info\022\023\n\013command_key\030\002 \002(\t\022-\n\rerror_manag" "er\030\003 \002(\0132\026.message.Error_manager\0228\n\027quer" "y_parkspace_info_ex\030\004 \003(\0132\027.message.Park" "space_info\"\206\001\n#Parkspace_manual_search_r" "equest_msg\022%\n\tbase_info\030\001 \002(\0132\022.message." "Base_info\022\023\n\013command_key\030\002 \002(\t\022#\n\010car_in" "fo\030\003 \002(\0132\021.message.Car_info\"\313\001\n$Parkspac" "e_manual_search_response_msg\022%\n\tbase_inf" "o\030\001 \002(\0132\022.message.Base_info\022\023\n\013command_k" "ey\030\002 \002(\t\022-\n\rerror_manager\030\003 \002(\0132\026.messag" "e.Error_manager\0228\n\027query_parkspace_info_" "ex\030\004 \003(\0132\027.message.Parkspace_info\"\227\001\n\035Pa" "rkspace_release_request_msg\022%\n\tbase_info" "\030\001 \002(\0132\022.message.Base_info\022\023\n\013command_ke" "y\030\002 \002(\t\022:\n\031release_parkspace_info_ex\030\003 \003" "(\0132\027.message.Parkspace_info\"\307\001\n\036Parkspac" "e_release_response_msg\022%\n\tbase_info\030\001 \002(" "\0132\022.message.Base_info\022\023\n\013command_key\030\002 \002" "(\t\022-\n\rerror_manager\030\003 \002(\0132\026.message.Erro" "r_manager\022:\n\031release_parkspace_info_ex\030\004" " \003(\0132\027.message.Parkspace_info\"\233\001\n\"Parksp" "ace_force_update_request_msg\022%\n\tbase_inf" "o\030\001 \002(\0132\022.message.Base_info\022\023\n\013command_k" "ey\030\002 \002(\t\0229\n\030manual_parkspace_info_ex\030\003 \003" "(\0132\027.message.Parkspace_info\"\313\001\n#Parkspac" "e_force_update_response_msg\022%\n\tbase_info" "\030\001 \002(\0132\022.message.Base_info\022\023\n\013command_ke" "y\030\002 \002(\t\022-\n\rerror_manager\030\003 \002(\0132\026.message" ".Error_manager\0229\n\030manual_parkspace_info_" "ex\030\004 \003(\0132\027.message.Parkspace_info\"\302\001\n#Pa" "rkspace_confirm_alloc_request_msg\022%\n\tbas" "e_info\030\001 \002(\0132\022.message.Base_info\022\023\n\013comm" "and_key\030\002 \002(\t\022:\n\031confirm_parkspace_info_" "ex\030\003 \003(\0132\027.message.Parkspace_info\022#\n\010car" "_type\030\004 \001(\0162\021.message.Car_type\"\362\001\n$Parks" "pace_confirm_alloc_response_msg\022%\n\tbase_" "info\030\001 \002(\0132\022.message.Base_info\022\023\n\013comman" "d_key\030\002 \002(\t\022-\n\rerror_manager\030\003 \002(\0132\026.mes" "sage.Error_manager\022:\n\031confirm_parkspace_" "info_ex\030\004 \003(\0132\027.message.Parkspace_info\022#" "\n\010car_type\030\005 \001(\0162\021.message.Car_type\"\275\003\n\037" "Parkspace_allocation_status_msg\022%\n\tbase_" "info\030\001 \002(\0132\022.message.Base_info\022-\n\rerror_" "manager\030\002 \002(\0132\026.message.Error_manager\022G\n" "\032database_controller_status\030\003 \002(\0162#.mess" "age.Database_controller_status\022A\n\027parksp" "ace_manager_satus\030\004 \002(\0162 .message.Parksp" "ace_manager_satus\022\017\n\007unit_id\030\005 \002(\005\022(\n sm" "all_parkspace_remaining_number\030\006 \002(\005\022)\n!" "medium_parkspace_remaining_number\030\007 \002(\005\022" "(\n large_parkspace_remaining_number\030\010 \002(" "\005\022(\n total_parkspace_remaining_number\030\t " "\002(\005\"F\n\035Parkspace_refresh_request_msg\022%\n\t" "base_info\030\001 \002(\0132\022.message.Base_info\"\251\001\n\035" "Parkspace_allocation_data_msg\022%\n\tbase_in" "fo\030\001 \002(\0132\022.message.Base_info\022-\n\rerror_ma" "nager\030\002 \002(\0132\026.message.Error_manager\0222\n\021p" "arkspace_info_ex\030\003 \003(\0132\027.message.Parkspa" "ce_info*\225\001\n\016Vehicle_status\022\024\n\020eVehicle_u" "nknown\020\000\022\021\n\reVehicle_idle\020\001\022\026\n\022eVehicle_" "in_garage\020\002\022\024\n\020eVehicle_parking\020\003\022\025\n\021eVe" "hicle_fetching\020\004\022\025\n\021eVehicle_reserved\020\005*" "W\n\032Database_controller_status\022\r\n\tE_UNKNO" "WN\020\000\022\013\n\007E_READY\020\001\022\020\n\014E_DISCONNECT\020\002\022\013\n\007E" "_FAULT\020\003*v\n\027Parkspace_manager_satus\022\036\n\032e" "Parkspace_manager_unknown\020\000\022\035\n\031eParkspac" "e_manager_normal\020\001\022\034\n\030eParkspace_manager" "_fault\020\002" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( descriptor, 3368); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "parkspace_allocation_message.proto", &protobuf_RegisterTypes); ::protobuf_message_5fbase_2eproto::AddDescriptors(); } void AddDescriptors() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); } // Force AddDescriptors() to be called at dynamic initialization time. struct StaticDescriptorInitializer { StaticDescriptorInitializer() { AddDescriptors(); } } static_descriptor_initializer; } // namespace protobuf_parkspace_5fallocation_5fmessage_2eproto namespace message { const ::google::protobuf::EnumDescriptor* Vehicle_status_descriptor() { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_enum_descriptors[0]; } bool Vehicle_status_IsValid(int value) { switch (value) { case 0: case 1: case 2: case 3: case 4: case 5: return true; default: return false; } } const ::google::protobuf::EnumDescriptor* Database_controller_status_descriptor() { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_enum_descriptors[1]; } bool Database_controller_status_IsValid(int value) { switch (value) { case 0: case 1: case 2: case 3: return true; default: return false; } } const ::google::protobuf::EnumDescriptor* Parkspace_manager_satus_descriptor() { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_enum_descriptors[2]; } bool Parkspace_manager_satus_IsValid(int value) { switch (value) { case 0: case 1: case 2: return true; default: return false; } } // =================================================================== void Parkspace_allocation_request_msg::InitAsDefaultInstance() { ::message::_Parkspace_allocation_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); ::message::_Parkspace_allocation_request_msg_default_instance_._instance.get_mutable()->car_info_ = const_cast< ::message::Car_info*>( ::message::Car_info::internal_default_instance()); ::message::_Parkspace_allocation_request_msg_default_instance_._instance.get_mutable()->id_struct_ = const_cast< ::message::Id_struct*>( ::message::Id_struct::internal_default_instance()); } void Parkspace_allocation_request_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_allocation_request_msg::clear_car_info() { if (car_info_ != NULL) car_info_->Clear(); clear_has_car_info(); } void Parkspace_allocation_request_msg::clear_id_struct() { if (id_struct_ != NULL) id_struct_->Clear(); clear_has_id_struct(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_allocation_request_msg::kBaseInfoFieldNumber; const int Parkspace_allocation_request_msg::kCommandKeyFieldNumber; const int Parkspace_allocation_request_msg::kCarInfoFieldNumber; const int Parkspace_allocation_request_msg::kIdStructFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_allocation_request_msg::Parkspace_allocation_request_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_request_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_allocation_request_msg) } Parkspace_allocation_request_msg::Parkspace_allocation_request_msg(const Parkspace_allocation_request_msg& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_command_key()) { command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (from.has_base_info()) { base_info_ = new ::message::Base_info(*from.base_info_); } else { base_info_ = NULL; } if (from.has_car_info()) { car_info_ = new ::message::Car_info(*from.car_info_); } else { car_info_ = NULL; } if (from.has_id_struct()) { id_struct_ = new ::message::Id_struct(*from.id_struct_); } else { id_struct_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Parkspace_allocation_request_msg) } void Parkspace_allocation_request_msg::SharedCtor() { _cached_size_ = 0; command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&base_info_, 0, static_cast( reinterpret_cast(&id_struct_) - reinterpret_cast(&base_info_)) + sizeof(id_struct_)); } Parkspace_allocation_request_msg::~Parkspace_allocation_request_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_allocation_request_msg) SharedDtor(); } void Parkspace_allocation_request_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete car_info_; if (this != internal_default_instance()) delete id_struct_; } 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 & 15u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*command_key_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(car_info_ != NULL); car_info_->Clear(); } if (cached_has_bits & 0x00000008u) { GOOGLE_DCHECK(id_struct_ != NULL); id_struct_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_allocation_request_msg::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:message.Parkspace_allocation_request_msg) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required .message.Base_info base_info = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_base_info())); } else { goto handle_unusual; } break; } // required string command_key = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_command_key())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::PARSE, "message.Parkspace_allocation_request_msg.command_key"); } else { goto handle_unusual; } break; } // required .message.Car_info car_info = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_car_info())); } else { goto handle_unusual; } break; } // required .message.Id_struct id_struct = 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_id_struct())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:message.Parkspace_allocation_request_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_allocation_request_msg) return false; #undef DO_ } void Parkspace_allocation_request_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_allocation_request_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_allocation_request_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), output); } // required .message.Car_info car_info = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->car_info_, output); } // required .message.Id_struct id_struct = 4; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, *this->id_struct_, output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_allocation_request_msg) } ::google::protobuf::uint8* Parkspace_allocation_request_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_allocation_request_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_allocation_request_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), target); } // required .message.Car_info car_info = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, *this->car_info_, deterministic, target); } // required .message.Id_struct id_struct = 4; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, *this->id_struct_, 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_request_msg) return target; } size_t Parkspace_allocation_request_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_allocation_request_msg) size_t total_size = 0; if (has_command_key()) { // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); } if (has_base_info()) { // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } if (has_car_info()) { // required .message.Car_info car_info = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->car_info_); } if (has_id_struct()) { // required .message.Id_struct id_struct = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->id_struct_); } return total_size; } size_t Parkspace_allocation_request_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_allocation_request_msg) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present. // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); // required .message.Car_info car_info = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->car_info_); // required .message.Id_struct id_struct = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->id_struct_); } else { total_size += RequiredFieldsByteSizeFallback(); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Parkspace_allocation_request_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_allocation_request_msg) GOOGLE_DCHECK_NE(&from, this); const Parkspace_allocation_request_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_allocation_request_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_allocation_request_msg) MergeFrom(*source); } } void Parkspace_allocation_request_msg::MergeFrom(const Parkspace_allocation_request_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_allocation_request_msg) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 15u) { if (cached_has_bits & 0x00000001u) { set_has_command_key(); command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (cached_has_bits & 0x00000002u) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000004u) { mutable_car_info()->::message::Car_info::MergeFrom(from.car_info()); } if (cached_has_bits & 0x00000008u) { mutable_id_struct()->::message::Id_struct::MergeFrom(from.id_struct()); } } } void Parkspace_allocation_request_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_allocation_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_allocation_request_msg::CopyFrom(const Parkspace_allocation_request_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_allocation_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_allocation_request_msg::IsInitialized() const { if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } return true; } void Parkspace_allocation_request_msg::Swap(Parkspace_allocation_request_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_allocation_request_msg::InternalSwap(Parkspace_allocation_request_msg* other) { using std::swap; command_key_.Swap(&other->command_key_); swap(base_info_, other->base_info_); swap(car_info_, other->car_info_); swap(id_struct_, other->id_struct_); 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()); } void Parkspace_allocation_response_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_allocation_response_msg::clear_error_manager() { if (error_manager_ != NULL) error_manager_->Clear(); clear_has_error_manager(); } void Parkspace_allocation_response_msg::clear_allocated_parkspace_info_ex() { allocated_parkspace_info_ex_.Clear(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_allocation_response_msg::kBaseInfoFieldNumber; const int Parkspace_allocation_response_msg::kCommandKeyFieldNumber; const int Parkspace_allocation_response_msg::kErrorManagerFieldNumber; const int Parkspace_allocation_response_msg::kAllocatedParkspaceInfoExFieldNumber; const int Parkspace_allocation_response_msg::kCarTypeFieldNumber; #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), allocated_parkspace_info_ex_(from.allocated_parkspace_info_ex_) { _internal_metadata_.MergeFrom(from._internal_metadata_); command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_command_key()) { command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (from.has_base_info()) { base_info_ = new ::message::Base_info(*from.base_info_); } else { base_info_ = NULL; } if (from.has_error_manager()) { error_manager_ = new ::message::Error_manager(*from.error_manager_); } else { error_manager_ = NULL; } car_type_ = from.car_type_; // @@protoc_insertion_point(copy_constructor:message.Parkspace_allocation_response_msg) } void Parkspace_allocation_response_msg::SharedCtor() { _cached_size_ = 0; command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&base_info_, 0, static_cast( reinterpret_cast(&car_type_) - reinterpret_cast(&base_info_)) + sizeof(car_type_)); } Parkspace_allocation_response_msg::~Parkspace_allocation_response_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_allocation_response_msg) SharedDtor(); } void Parkspace_allocation_response_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete error_manager_; } 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; allocated_parkspace_info_ex_.Clear(); cached_has_bits = _has_bits_[0]; if (cached_has_bits & 7u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*command_key_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(error_manager_ != NULL); error_manager_->Clear(); } } car_type_ = 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 string command_key = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_command_key())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::PARSE, "message.Parkspace_allocation_response_msg.command_key"); } else { goto handle_unusual; } break; } // required .message.Error_manager error_manager = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_error_manager())); } else { goto handle_unusual; } break; } // repeated .message.Parkspace_info allocated_parkspace_info_ex = 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, add_allocated_parkspace_info_ex())); } else { goto handle_unusual; } break; } // optional .message.Car_type car_type = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); if (::message::Car_type_IsValid(value)) { set_car_type(static_cast< ::message::Car_type >(value)); } else { mutable_unknown_fields()->AddVarint( 5, static_cast< ::google::protobuf::uint64>(value)); } } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:message.Parkspace_allocation_response_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_allocation_response_msg) return false; #undef DO_ } void Parkspace_allocation_response_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_allocation_response_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_allocation_response_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), output); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->error_manager_, output); } // repeated .message.Parkspace_info allocated_parkspace_info_ex = 4; for (unsigned int i = 0, n = static_cast(this->allocated_parkspace_info_ex_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, this->allocated_parkspace_info_ex(static_cast(i)), output); } // optional .message.Car_type car_type = 5; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 5, this->car_type(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_allocation_response_msg) } ::google::protobuf::uint8* Parkspace_allocation_response_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_allocation_response_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_allocation_response_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), target); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, *this->error_manager_, deterministic, target); } // repeated .message.Parkspace_info allocated_parkspace_info_ex = 4; for (unsigned int i = 0, n = static_cast(this->allocated_parkspace_info_ex_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, this->allocated_parkspace_info_ex(static_cast(i)), deterministic, target); } // optional .message.Car_type car_type = 5; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 5, this->car_type(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_allocation_response_msg) return target; } size_t Parkspace_allocation_response_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_allocation_response_msg) size_t total_size = 0; if (has_command_key()) { // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); } if (has_base_info()) { // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } if (has_error_manager()) { // required .message.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } 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] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); // required .message.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } else { total_size += RequiredFieldsByteSizeFallback(); } // repeated .message.Parkspace_info allocated_parkspace_info_ex = 4; { unsigned int count = static_cast(this->allocated_parkspace_info_ex_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->allocated_parkspace_info_ex(static_cast(i))); } } // optional .message.Car_type car_type = 5; if (has_car_type()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->car_type()); } 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; allocated_parkspace_info_ex_.MergeFrom(from.allocated_parkspace_info_ex_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 15u) { if (cached_has_bits & 0x00000001u) { set_has_command_key(); command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (cached_has_bits & 0x00000002u) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000004u) { mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager()); } if (cached_has_bits & 0x00000008u) { car_type_ = from.car_type_; } _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] & 0x00000007) != 0x00000007) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } if (has_error_manager()) { if (!this->error_manager_->IsInitialized()) return false; } return true; } void Parkspace_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; allocated_parkspace_info_ex_.InternalSwap(&other->allocated_parkspace_info_ex_); command_key_.Swap(&other->command_key_); swap(base_info_, other->base_info_); swap(error_manager_, other->error_manager_); swap(car_type_, other->car_type_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_allocation_response_msg::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Parkspace_search_request_msg::InitAsDefaultInstance() { ::message::_Parkspace_search_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); ::message::_Parkspace_search_request_msg_default_instance_._instance.get_mutable()->car_info_ = const_cast< ::message::Car_info*>( ::message::Car_info::internal_default_instance()); } void Parkspace_search_request_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_search_request_msg::clear_car_info() { if (car_info_ != NULL) car_info_->Clear(); clear_has_car_info(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_search_request_msg::kBaseInfoFieldNumber; const int Parkspace_search_request_msg::kCommandKeyFieldNumber; const int Parkspace_search_request_msg::kCarInfoFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_search_request_msg::Parkspace_search_request_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_search_request_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_search_request_msg) } Parkspace_search_request_msg::Parkspace_search_request_msg(const Parkspace_search_request_msg& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_command_key()) { command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (from.has_base_info()) { base_info_ = new ::message::Base_info(*from.base_info_); } else { base_info_ = NULL; } if (from.has_car_info()) { car_info_ = new ::message::Car_info(*from.car_info_); } else { car_info_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Parkspace_search_request_msg) } void Parkspace_search_request_msg::SharedCtor() { _cached_size_ = 0; command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&base_info_, 0, static_cast( reinterpret_cast(&car_info_) - reinterpret_cast(&base_info_)) + sizeof(car_info_)); } Parkspace_search_request_msg::~Parkspace_search_request_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_search_request_msg) SharedDtor(); } void Parkspace_search_request_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete car_info_; } void Parkspace_search_request_msg::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Parkspace_search_request_msg::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Parkspace_search_request_msg& Parkspace_search_request_msg::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_search_request_msg(); return *internal_default_instance(); } Parkspace_search_request_msg* Parkspace_search_request_msg::New(::google::protobuf::Arena* arena) const { Parkspace_search_request_msg* n = new Parkspace_search_request_msg; if (arena != NULL) { arena->Own(n); } return n; } void Parkspace_search_request_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Parkspace_search_request_msg) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 7u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*command_key_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(car_info_ != NULL); car_info_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_search_request_msg::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:message.Parkspace_search_request_msg) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required .message.Base_info base_info = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_base_info())); } else { goto handle_unusual; } break; } // required string command_key = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_command_key())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::PARSE, "message.Parkspace_search_request_msg.command_key"); } else { goto handle_unusual; } break; } // required .message.Car_info car_info = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_car_info())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:message.Parkspace_search_request_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_search_request_msg) return false; #undef DO_ } void Parkspace_search_request_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_search_request_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_search_request_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), output); } // required .message.Car_info car_info = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->car_info_, output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_search_request_msg) } ::google::protobuf::uint8* Parkspace_search_request_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_search_request_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_search_request_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), target); } // required .message.Car_info car_info = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, *this->car_info_, deterministic, target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_search_request_msg) return target; } size_t Parkspace_search_request_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_search_request_msg) size_t total_size = 0; if (has_command_key()) { // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); } if (has_base_info()) { // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } if (has_car_info()) { // required .message.Car_info car_info = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->car_info_); } return total_size; } size_t Parkspace_search_request_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_search_request_msg) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); // required .message.Car_info car_info = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->car_info_); } else { total_size += RequiredFieldsByteSizeFallback(); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Parkspace_search_request_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_search_request_msg) GOOGLE_DCHECK_NE(&from, this); const Parkspace_search_request_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_search_request_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_search_request_msg) MergeFrom(*source); } } void Parkspace_search_request_msg::MergeFrom(const Parkspace_search_request_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_search_request_msg) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 7u) { if (cached_has_bits & 0x00000001u) { set_has_command_key(); command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (cached_has_bits & 0x00000002u) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000004u) { mutable_car_info()->::message::Car_info::MergeFrom(from.car_info()); } } } void Parkspace_search_request_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_search_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_search_request_msg::CopyFrom(const Parkspace_search_request_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_search_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_search_request_msg::IsInitialized() const { if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } return true; } void Parkspace_search_request_msg::Swap(Parkspace_search_request_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_search_request_msg::InternalSwap(Parkspace_search_request_msg* other) { using std::swap; command_key_.Swap(&other->command_key_); swap(base_info_, other->base_info_); swap(car_info_, other->car_info_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_search_request_msg::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Parkspace_search_response_msg::InitAsDefaultInstance() { ::message::_Parkspace_search_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); ::message::_Parkspace_search_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>( ::message::Error_manager::internal_default_instance()); } void Parkspace_search_response_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_search_response_msg::clear_error_manager() { if (error_manager_ != NULL) error_manager_->Clear(); clear_has_error_manager(); } void Parkspace_search_response_msg::clear_query_parkspace_info_ex() { query_parkspace_info_ex_.Clear(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_search_response_msg::kBaseInfoFieldNumber; const int Parkspace_search_response_msg::kCommandKeyFieldNumber; const int Parkspace_search_response_msg::kErrorManagerFieldNumber; const int Parkspace_search_response_msg::kQueryParkspaceInfoExFieldNumber; #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), query_parkspace_info_ex_(from.query_parkspace_info_ex_) { _internal_metadata_.MergeFrom(from._internal_metadata_); command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_command_key()) { command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (from.has_base_info()) { base_info_ = new ::message::Base_info(*from.base_info_); } else { base_info_ = NULL; } if (from.has_error_manager()) { error_manager_ = new ::message::Error_manager(*from.error_manager_); } else { error_manager_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Parkspace_search_response_msg) } void Parkspace_search_response_msg::SharedCtor() { _cached_size_ = 0; command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&base_info_, 0, static_cast( reinterpret_cast(&error_manager_) - reinterpret_cast(&base_info_)) + sizeof(error_manager_)); } Parkspace_search_response_msg::~Parkspace_search_response_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_search_response_msg) SharedDtor(); } void Parkspace_search_response_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete error_manager_; } 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; query_parkspace_info_ex_.Clear(); cached_has_bits = _has_bits_[0]; if (cached_has_bits & 7u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*command_key_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(error_manager_ != NULL); error_manager_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_search_response_msg::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:message.Parkspace_search_response_msg) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required .message.Base_info base_info = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_base_info())); } else { goto handle_unusual; } break; } // required string command_key = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_command_key())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::PARSE, "message.Parkspace_search_response_msg.command_key"); } else { goto handle_unusual; } break; } // required .message.Error_manager error_manager = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_error_manager())); } else { goto handle_unusual; } break; } // repeated .message.Parkspace_info query_parkspace_info_ex = 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, add_query_parkspace_info_ex())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:message.Parkspace_search_response_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_search_response_msg) return false; #undef DO_ } void Parkspace_search_response_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_search_response_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_search_response_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), output); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->error_manager_, output); } // repeated .message.Parkspace_info query_parkspace_info_ex = 4; for (unsigned int i = 0, n = static_cast(this->query_parkspace_info_ex_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, this->query_parkspace_info_ex(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_search_response_msg) } ::google::protobuf::uint8* Parkspace_search_response_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_search_response_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_search_response_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), target); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, *this->error_manager_, deterministic, target); } // repeated .message.Parkspace_info query_parkspace_info_ex = 4; for (unsigned int i = 0, n = static_cast(this->query_parkspace_info_ex_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, this->query_parkspace_info_ex(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_search_response_msg) return target; } size_t Parkspace_search_response_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_search_response_msg) size_t total_size = 0; if (has_command_key()) { // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); } if (has_base_info()) { // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } if (has_error_manager()) { // required .message.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } return total_size; } size_t Parkspace_search_response_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_search_response_msg) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); // required .message.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } else { total_size += RequiredFieldsByteSizeFallback(); } // repeated .message.Parkspace_info query_parkspace_info_ex = 4; { unsigned int count = static_cast(this->query_parkspace_info_ex_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->query_parkspace_info_ex(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_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; query_parkspace_info_ex_.MergeFrom(from.query_parkspace_info_ex_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 7u) { if (cached_has_bits & 0x00000001u) { set_has_command_key(); command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (cached_has_bits & 0x00000002u) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000004u) { mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager()); } } } void Parkspace_search_response_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_search_response_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_search_response_msg::CopyFrom(const Parkspace_search_response_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_search_response_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_search_response_msg::IsInitialized() const { if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } if (has_error_manager()) { if (!this->error_manager_->IsInitialized()) return false; } return true; } void Parkspace_search_response_msg::Swap(Parkspace_search_response_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_search_response_msg::InternalSwap(Parkspace_search_response_msg* other) { using std::swap; query_parkspace_info_ex_.InternalSwap(&other->query_parkspace_info_ex_); command_key_.Swap(&other->command_key_); 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_search_response_msg::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Parkspace_manual_search_request_msg::InitAsDefaultInstance() { ::message::_Parkspace_manual_search_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); ::message::_Parkspace_manual_search_request_msg_default_instance_._instance.get_mutable()->car_info_ = const_cast< ::message::Car_info*>( ::message::Car_info::internal_default_instance()); } void Parkspace_manual_search_request_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_manual_search_request_msg::clear_car_info() { if (car_info_ != NULL) car_info_->Clear(); clear_has_car_info(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_manual_search_request_msg::kBaseInfoFieldNumber; const int Parkspace_manual_search_request_msg::kCommandKeyFieldNumber; const int Parkspace_manual_search_request_msg::kCarInfoFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_manual_search_request_msg::Parkspace_manual_search_request_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_manual_search_request_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_manual_search_request_msg) } Parkspace_manual_search_request_msg::Parkspace_manual_search_request_msg(const Parkspace_manual_search_request_msg& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_command_key()) { command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (from.has_base_info()) { base_info_ = new ::message::Base_info(*from.base_info_); } else { base_info_ = NULL; } if (from.has_car_info()) { car_info_ = new ::message::Car_info(*from.car_info_); } else { car_info_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Parkspace_manual_search_request_msg) } void Parkspace_manual_search_request_msg::SharedCtor() { _cached_size_ = 0; command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&base_info_, 0, static_cast( reinterpret_cast(&car_info_) - reinterpret_cast(&base_info_)) + sizeof(car_info_)); } Parkspace_manual_search_request_msg::~Parkspace_manual_search_request_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_manual_search_request_msg) SharedDtor(); } void Parkspace_manual_search_request_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete car_info_; } void Parkspace_manual_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_manual_search_request_msg::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Parkspace_manual_search_request_msg& Parkspace_manual_search_request_msg::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_manual_search_request_msg(); return *internal_default_instance(); } Parkspace_manual_search_request_msg* Parkspace_manual_search_request_msg::New(::google::protobuf::Arena* arena) const { Parkspace_manual_search_request_msg* n = new Parkspace_manual_search_request_msg; if (arena != NULL) { arena->Own(n); } return n; } void Parkspace_manual_search_request_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Parkspace_manual_search_request_msg) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 7u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*command_key_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(car_info_ != NULL); car_info_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_manual_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_manual_search_request_msg) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required .message.Base_info base_info = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_base_info())); } else { goto handle_unusual; } break; } // required string command_key = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_command_key())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::PARSE, "message.Parkspace_manual_search_request_msg.command_key"); } else { goto handle_unusual; } break; } // required .message.Car_info car_info = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_car_info())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:message.Parkspace_manual_search_request_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_manual_search_request_msg) return false; #undef DO_ } void Parkspace_manual_search_request_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_manual_search_request_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_manual_search_request_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), output); } // required .message.Car_info car_info = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->car_info_, output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_manual_search_request_msg) } ::google::protobuf::uint8* Parkspace_manual_search_request_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_manual_search_request_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_manual_search_request_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), target); } // required .message.Car_info car_info = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, *this->car_info_, deterministic, target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_manual_search_request_msg) return target; } size_t Parkspace_manual_search_request_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_manual_search_request_msg) size_t total_size = 0; if (has_command_key()) { // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); } if (has_base_info()) { // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } if (has_car_info()) { // required .message.Car_info car_info = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->car_info_); } return total_size; } size_t Parkspace_manual_search_request_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_manual_search_request_msg) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); // required .message.Car_info car_info = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->car_info_); } else { total_size += RequiredFieldsByteSizeFallback(); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Parkspace_manual_search_request_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_manual_search_request_msg) GOOGLE_DCHECK_NE(&from, this); const Parkspace_manual_search_request_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_manual_search_request_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_manual_search_request_msg) MergeFrom(*source); } } void Parkspace_manual_search_request_msg::MergeFrom(const Parkspace_manual_search_request_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_manual_search_request_msg) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 7u) { if (cached_has_bits & 0x00000001u) { set_has_command_key(); command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (cached_has_bits & 0x00000002u) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000004u) { mutable_car_info()->::message::Car_info::MergeFrom(from.car_info()); } } } void Parkspace_manual_search_request_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_manual_search_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_manual_search_request_msg::CopyFrom(const Parkspace_manual_search_request_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_manual_search_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_manual_search_request_msg::IsInitialized() const { if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } return true; } void Parkspace_manual_search_request_msg::Swap(Parkspace_manual_search_request_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_manual_search_request_msg::InternalSwap(Parkspace_manual_search_request_msg* other) { using std::swap; command_key_.Swap(&other->command_key_); swap(base_info_, other->base_info_); swap(car_info_, other->car_info_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_manual_search_request_msg::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Parkspace_manual_search_response_msg::InitAsDefaultInstance() { ::message::_Parkspace_manual_search_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); ::message::_Parkspace_manual_search_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>( ::message::Error_manager::internal_default_instance()); } void Parkspace_manual_search_response_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_manual_search_response_msg::clear_error_manager() { if (error_manager_ != NULL) error_manager_->Clear(); clear_has_error_manager(); } void Parkspace_manual_search_response_msg::clear_query_parkspace_info_ex() { query_parkspace_info_ex_.Clear(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_manual_search_response_msg::kBaseInfoFieldNumber; const int Parkspace_manual_search_response_msg::kCommandKeyFieldNumber; const int Parkspace_manual_search_response_msg::kErrorManagerFieldNumber; const int Parkspace_manual_search_response_msg::kQueryParkspaceInfoExFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_manual_search_response_msg::Parkspace_manual_search_response_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_manual_search_response_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_manual_search_response_msg) } Parkspace_manual_search_response_msg::Parkspace_manual_search_response_msg(const Parkspace_manual_search_response_msg& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0), query_parkspace_info_ex_(from.query_parkspace_info_ex_) { _internal_metadata_.MergeFrom(from._internal_metadata_); command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_command_key()) { command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (from.has_base_info()) { base_info_ = new ::message::Base_info(*from.base_info_); } else { base_info_ = NULL; } if (from.has_error_manager()) { error_manager_ = new ::message::Error_manager(*from.error_manager_); } else { error_manager_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Parkspace_manual_search_response_msg) } void Parkspace_manual_search_response_msg::SharedCtor() { _cached_size_ = 0; command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&base_info_, 0, static_cast( reinterpret_cast(&error_manager_) - reinterpret_cast(&base_info_)) + sizeof(error_manager_)); } Parkspace_manual_search_response_msg::~Parkspace_manual_search_response_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_manual_search_response_msg) SharedDtor(); } void Parkspace_manual_search_response_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete error_manager_; } void Parkspace_manual_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_manual_search_response_msg::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Parkspace_manual_search_response_msg& Parkspace_manual_search_response_msg::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_manual_search_response_msg(); return *internal_default_instance(); } Parkspace_manual_search_response_msg* Parkspace_manual_search_response_msg::New(::google::protobuf::Arena* arena) const { Parkspace_manual_search_response_msg* n = new Parkspace_manual_search_response_msg; if (arena != NULL) { arena->Own(n); } return n; } void Parkspace_manual_search_response_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Parkspace_manual_search_response_msg) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; query_parkspace_info_ex_.Clear(); cached_has_bits = _has_bits_[0]; if (cached_has_bits & 7u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*command_key_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(error_manager_ != NULL); error_manager_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_manual_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_manual_search_response_msg) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required .message.Base_info base_info = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_base_info())); } else { goto handle_unusual; } break; } // required string command_key = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_command_key())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::PARSE, "message.Parkspace_manual_search_response_msg.command_key"); } else { goto handle_unusual; } break; } // required .message.Error_manager error_manager = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_error_manager())); } else { goto handle_unusual; } break; } // repeated .message.Parkspace_info query_parkspace_info_ex = 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, add_query_parkspace_info_ex())); } 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_manual_search_response_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_manual_search_response_msg) return false; #undef DO_ } void Parkspace_manual_search_response_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_manual_search_response_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_manual_search_response_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), output); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->error_manager_, output); } // repeated .message.Parkspace_info query_parkspace_info_ex = 4; for (unsigned int i = 0, n = static_cast(this->query_parkspace_info_ex_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, this->query_parkspace_info_ex(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_manual_search_response_msg) } ::google::protobuf::uint8* Parkspace_manual_search_response_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_manual_search_response_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_manual_search_response_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), target); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, *this->error_manager_, deterministic, target); } // repeated .message.Parkspace_info query_parkspace_info_ex = 4; for (unsigned int i = 0, n = static_cast(this->query_parkspace_info_ex_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, this->query_parkspace_info_ex(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_manual_search_response_msg) return target; } size_t Parkspace_manual_search_response_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_manual_search_response_msg) size_t total_size = 0; if (has_command_key()) { // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); } if (has_base_info()) { // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } if (has_error_manager()) { // required .message.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } return total_size; } size_t Parkspace_manual_search_response_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_manual_search_response_msg) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); // required .message.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } else { total_size += RequiredFieldsByteSizeFallback(); } // repeated .message.Parkspace_info query_parkspace_info_ex = 4; { unsigned int count = static_cast(this->query_parkspace_info_ex_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->query_parkspace_info_ex(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_manual_search_response_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_manual_search_response_msg) GOOGLE_DCHECK_NE(&from, this); const Parkspace_manual_search_response_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_manual_search_response_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_manual_search_response_msg) MergeFrom(*source); } } void Parkspace_manual_search_response_msg::MergeFrom(const Parkspace_manual_search_response_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_manual_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; query_parkspace_info_ex_.MergeFrom(from.query_parkspace_info_ex_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 7u) { if (cached_has_bits & 0x00000001u) { set_has_command_key(); command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (cached_has_bits & 0x00000002u) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000004u) { mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager()); } } } void Parkspace_manual_search_response_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_manual_search_response_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_manual_search_response_msg::CopyFrom(const Parkspace_manual_search_response_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_manual_search_response_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_manual_search_response_msg::IsInitialized() const { if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } if (has_error_manager()) { if (!this->error_manager_->IsInitialized()) return false; } return true; } void Parkspace_manual_search_response_msg::Swap(Parkspace_manual_search_response_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_manual_search_response_msg::InternalSwap(Parkspace_manual_search_response_msg* other) { using std::swap; query_parkspace_info_ex_.InternalSwap(&other->query_parkspace_info_ex_); command_key_.Swap(&other->command_key_); 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_manual_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()); } void Parkspace_release_request_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_release_request_msg::clear_release_parkspace_info_ex() { release_parkspace_info_ex_.Clear(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_release_request_msg::kBaseInfoFieldNumber; const int Parkspace_release_request_msg::kCommandKeyFieldNumber; const int Parkspace_release_request_msg::kReleaseParkspaceInfoExFieldNumber; #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), release_parkspace_info_ex_(from.release_parkspace_info_ex_) { _internal_metadata_.MergeFrom(from._internal_metadata_); command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_command_key()) { command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (from.has_base_info()) { base_info_ = new ::message::Base_info(*from.base_info_); } else { base_info_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Parkspace_release_request_msg) } void Parkspace_release_request_msg::SharedCtor() { _cached_size_ = 0; command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); base_info_ = NULL; } Parkspace_release_request_msg::~Parkspace_release_request_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_release_request_msg) SharedDtor(); } void Parkspace_release_request_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; } 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; release_parkspace_info_ex_.Clear(); cached_has_bits = _has_bits_[0]; if (cached_has_bits & 3u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*command_key_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_release_request_msg::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:message.Parkspace_release_request_msg) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required .message.Base_info base_info = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_base_info())); } else { goto handle_unusual; } break; } // required string command_key = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_command_key())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::PARSE, "message.Parkspace_release_request_msg.command_key"); } else { goto handle_unusual; } break; } // repeated .message.Parkspace_info release_parkspace_info_ex = 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_release_parkspace_info_ex())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:message.Parkspace_release_request_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_release_request_msg) return false; #undef DO_ } void Parkspace_release_request_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_release_request_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_release_request_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), output); } // repeated .message.Parkspace_info release_parkspace_info_ex = 3; for (unsigned int i = 0, n = static_cast(this->release_parkspace_info_ex_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, this->release_parkspace_info_ex(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_release_request_msg) } ::google::protobuf::uint8* Parkspace_release_request_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_release_request_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_release_request_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), target); } // repeated .message.Parkspace_info release_parkspace_info_ex = 3; for (unsigned int i = 0, n = static_cast(this->release_parkspace_info_ex_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, this->release_parkspace_info_ex(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_release_request_msg) return target; } size_t Parkspace_release_request_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_release_request_msg) size_t total_size = 0; if (has_command_key()) { // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); } if (has_base_info()) { // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } 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] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } else { total_size += RequiredFieldsByteSizeFallback(); } // repeated .message.Parkspace_info release_parkspace_info_ex = 3; { unsigned int count = static_cast(this->release_parkspace_info_ex_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->release_parkspace_info_ex(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_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; release_parkspace_info_ex_.MergeFrom(from.release_parkspace_info_ex_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 3u) { if (cached_has_bits & 0x00000001u) { set_has_command_key(); command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (cached_has_bits & 0x00000002u) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } } } 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] & 0x00000003) != 0x00000003) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } return true; } void Parkspace_release_request_msg::Swap(Parkspace_release_request_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_release_request_msg::InternalSwap(Parkspace_release_request_msg* other) { using std::swap; release_parkspace_info_ex_.InternalSwap(&other->release_parkspace_info_ex_); command_key_.Swap(&other->command_key_); swap(base_info_, other->base_info_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_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()); } void Parkspace_release_response_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_release_response_msg::clear_error_manager() { if (error_manager_ != NULL) error_manager_->Clear(); clear_has_error_manager(); } void Parkspace_release_response_msg::clear_release_parkspace_info_ex() { release_parkspace_info_ex_.Clear(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_release_response_msg::kBaseInfoFieldNumber; const int Parkspace_release_response_msg::kCommandKeyFieldNumber; const int Parkspace_release_response_msg::kErrorManagerFieldNumber; const int Parkspace_release_response_msg::kReleaseParkspaceInfoExFieldNumber; #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), release_parkspace_info_ex_(from.release_parkspace_info_ex_) { _internal_metadata_.MergeFrom(from._internal_metadata_); command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_command_key()) { command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (from.has_base_info()) { base_info_ = new ::message::Base_info(*from.base_info_); } else { base_info_ = NULL; } if (from.has_error_manager()) { error_manager_ = new ::message::Error_manager(*from.error_manager_); } else { error_manager_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Parkspace_release_response_msg) } void Parkspace_release_response_msg::SharedCtor() { _cached_size_ = 0; command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&base_info_, 0, static_cast( reinterpret_cast(&error_manager_) - reinterpret_cast(&base_info_)) + sizeof(error_manager_)); } Parkspace_release_response_msg::~Parkspace_release_response_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_release_response_msg) SharedDtor(); } void Parkspace_release_response_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete error_manager_; } 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; release_parkspace_info_ex_.Clear(); cached_has_bits = _has_bits_[0]; if (cached_has_bits & 7u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*command_key_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(error_manager_ != NULL); error_manager_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_release_response_msg::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:message.Parkspace_release_response_msg) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required .message.Base_info base_info = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_base_info())); } else { goto handle_unusual; } break; } // required string command_key = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_command_key())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::PARSE, "message.Parkspace_release_response_msg.command_key"); } else { goto handle_unusual; } break; } // required .message.Error_manager error_manager = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_error_manager())); } else { goto handle_unusual; } break; } // repeated .message.Parkspace_info release_parkspace_info_ex = 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, add_release_parkspace_info_ex())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:message.Parkspace_release_response_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_release_response_msg) return false; #undef DO_ } void Parkspace_release_response_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_release_response_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_release_response_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), output); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->error_manager_, output); } // repeated .message.Parkspace_info release_parkspace_info_ex = 4; for (unsigned int i = 0, n = static_cast(this->release_parkspace_info_ex_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, this->release_parkspace_info_ex(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_release_response_msg) } ::google::protobuf::uint8* Parkspace_release_response_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_release_response_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_release_response_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), target); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, *this->error_manager_, deterministic, target); } // repeated .message.Parkspace_info release_parkspace_info_ex = 4; for (unsigned int i = 0, n = static_cast(this->release_parkspace_info_ex_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, this->release_parkspace_info_ex(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_release_response_msg) return target; } size_t Parkspace_release_response_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_release_response_msg) size_t total_size = 0; if (has_command_key()) { // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); } if (has_base_info()) { // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } if (has_error_manager()) { // required .message.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } 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] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); // required .message.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } else { total_size += RequiredFieldsByteSizeFallback(); } // repeated .message.Parkspace_info release_parkspace_info_ex = 4; { unsigned int count = static_cast(this->release_parkspace_info_ex_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->release_parkspace_info_ex(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_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; release_parkspace_info_ex_.MergeFrom(from.release_parkspace_info_ex_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 7u) { if (cached_has_bits & 0x00000001u) { set_has_command_key(); command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (cached_has_bits & 0x00000002u) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000004u) { mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager()); } } } 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] & 0x00000007) != 0x00000007) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } if (has_error_manager()) { if (!this->error_manager_->IsInitialized()) return false; } return true; } void Parkspace_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; release_parkspace_info_ex_.InternalSwap(&other->release_parkspace_info_ex_); command_key_.Swap(&other->command_key_); 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_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()); } void Parkspace_force_update_request_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_force_update_request_msg::clear_manual_parkspace_info_ex() { manual_parkspace_info_ex_.Clear(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_force_update_request_msg::kBaseInfoFieldNumber; const int Parkspace_force_update_request_msg::kCommandKeyFieldNumber; const int Parkspace_force_update_request_msg::kManualParkspaceInfoExFieldNumber; #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), manual_parkspace_info_ex_(from.manual_parkspace_info_ex_) { _internal_metadata_.MergeFrom(from._internal_metadata_); command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_command_key()) { command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (from.has_base_info()) { base_info_ = new ::message::Base_info(*from.base_info_); } else { base_info_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Parkspace_force_update_request_msg) } void Parkspace_force_update_request_msg::SharedCtor() { _cached_size_ = 0; command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); base_info_ = NULL; } Parkspace_force_update_request_msg::~Parkspace_force_update_request_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_force_update_request_msg) SharedDtor(); } void Parkspace_force_update_request_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; } 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; manual_parkspace_info_ex_.Clear(); cached_has_bits = _has_bits_[0]; if (cached_has_bits & 3u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*command_key_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_force_update_request_msg::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:message.Parkspace_force_update_request_msg) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required .message.Base_info base_info = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_base_info())); } else { goto handle_unusual; } break; } // required string command_key = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_command_key())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::PARSE, "message.Parkspace_force_update_request_msg.command_key"); } else { goto handle_unusual; } break; } // repeated .message.Parkspace_info manual_parkspace_info_ex = 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_manual_parkspace_info_ex())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:message.Parkspace_force_update_request_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_force_update_request_msg) return false; #undef DO_ } void Parkspace_force_update_request_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_force_update_request_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_force_update_request_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), output); } // repeated .message.Parkspace_info manual_parkspace_info_ex = 3; for (unsigned int i = 0, n = static_cast(this->manual_parkspace_info_ex_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, this->manual_parkspace_info_ex(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_force_update_request_msg) } ::google::protobuf::uint8* Parkspace_force_update_request_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_force_update_request_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_force_update_request_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), target); } // repeated .message.Parkspace_info manual_parkspace_info_ex = 3; for (unsigned int i = 0, n = static_cast(this->manual_parkspace_info_ex_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, this->manual_parkspace_info_ex(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_force_update_request_msg) return target; } size_t Parkspace_force_update_request_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_force_update_request_msg) size_t total_size = 0; if (has_command_key()) { // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); } if (has_base_info()) { // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } 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] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } else { total_size += RequiredFieldsByteSizeFallback(); } // repeated .message.Parkspace_info manual_parkspace_info_ex = 3; { unsigned int count = static_cast(this->manual_parkspace_info_ex_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->manual_parkspace_info_ex(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_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; manual_parkspace_info_ex_.MergeFrom(from.manual_parkspace_info_ex_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 3u) { if (cached_has_bits & 0x00000001u) { set_has_command_key(); command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (cached_has_bits & 0x00000002u) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } } } 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] & 0x00000003) != 0x00000003) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } return true; } void Parkspace_force_update_request_msg::Swap(Parkspace_force_update_request_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_force_update_request_msg::InternalSwap(Parkspace_force_update_request_msg* other) { using std::swap; manual_parkspace_info_ex_.InternalSwap(&other->manual_parkspace_info_ex_); command_key_.Swap(&other->command_key_); swap(base_info_, other->base_info_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_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()); } void Parkspace_force_update_response_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_force_update_response_msg::clear_error_manager() { if (error_manager_ != NULL) error_manager_->Clear(); clear_has_error_manager(); } void Parkspace_force_update_response_msg::clear_manual_parkspace_info_ex() { manual_parkspace_info_ex_.Clear(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_force_update_response_msg::kBaseInfoFieldNumber; const int Parkspace_force_update_response_msg::kCommandKeyFieldNumber; const int Parkspace_force_update_response_msg::kErrorManagerFieldNumber; const int Parkspace_force_update_response_msg::kManualParkspaceInfoExFieldNumber; #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), manual_parkspace_info_ex_(from.manual_parkspace_info_ex_) { _internal_metadata_.MergeFrom(from._internal_metadata_); command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_command_key()) { command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (from.has_base_info()) { base_info_ = new ::message::Base_info(*from.base_info_); } else { base_info_ = NULL; } if (from.has_error_manager()) { error_manager_ = new ::message::Error_manager(*from.error_manager_); } else { error_manager_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Parkspace_force_update_response_msg) } void Parkspace_force_update_response_msg::SharedCtor() { _cached_size_ = 0; command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&base_info_, 0, static_cast( reinterpret_cast(&error_manager_) - reinterpret_cast(&base_info_)) + sizeof(error_manager_)); } Parkspace_force_update_response_msg::~Parkspace_force_update_response_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_force_update_response_msg) SharedDtor(); } void Parkspace_force_update_response_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete error_manager_; } 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; manual_parkspace_info_ex_.Clear(); cached_has_bits = _has_bits_[0]; if (cached_has_bits & 7u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*command_key_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(error_manager_ != NULL); error_manager_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_force_update_response_msg::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:message.Parkspace_force_update_response_msg) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required .message.Base_info base_info = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_base_info())); } else { goto handle_unusual; } break; } // required string command_key = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_command_key())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::PARSE, "message.Parkspace_force_update_response_msg.command_key"); } else { goto handle_unusual; } break; } // required .message.Error_manager error_manager = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_error_manager())); } else { goto handle_unusual; } break; } // repeated .message.Parkspace_info manual_parkspace_info_ex = 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, add_manual_parkspace_info_ex())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:message.Parkspace_force_update_response_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_force_update_response_msg) return false; #undef DO_ } void Parkspace_force_update_response_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_force_update_response_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_force_update_response_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), output); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->error_manager_, output); } // repeated .message.Parkspace_info manual_parkspace_info_ex = 4; for (unsigned int i = 0, n = static_cast(this->manual_parkspace_info_ex_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, this->manual_parkspace_info_ex(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_force_update_response_msg) } ::google::protobuf::uint8* Parkspace_force_update_response_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_force_update_response_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_force_update_response_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), target); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, *this->error_manager_, deterministic, target); } // repeated .message.Parkspace_info manual_parkspace_info_ex = 4; for (unsigned int i = 0, n = static_cast(this->manual_parkspace_info_ex_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, this->manual_parkspace_info_ex(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_force_update_response_msg) return target; } size_t Parkspace_force_update_response_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_force_update_response_msg) size_t total_size = 0; if (has_command_key()) { // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); } if (has_base_info()) { // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } if (has_error_manager()) { // required .message.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } 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] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); // required .message.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } else { total_size += RequiredFieldsByteSizeFallback(); } // repeated .message.Parkspace_info manual_parkspace_info_ex = 4; { unsigned int count = static_cast(this->manual_parkspace_info_ex_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->manual_parkspace_info_ex(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_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; manual_parkspace_info_ex_.MergeFrom(from.manual_parkspace_info_ex_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 7u) { if (cached_has_bits & 0x00000001u) { set_has_command_key(); command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (cached_has_bits & 0x00000002u) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000004u) { mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager()); } } } 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] & 0x00000007) != 0x00000007) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } if (has_error_manager()) { if (!this->error_manager_->IsInitialized()) return false; } return true; } void Parkspace_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; manual_parkspace_info_ex_.InternalSwap(&other->manual_parkspace_info_ex_); command_key_.Swap(&other->command_key_); 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_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()); } void Parkspace_confirm_alloc_request_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_confirm_alloc_request_msg::clear_confirm_parkspace_info_ex() { confirm_parkspace_info_ex_.Clear(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_confirm_alloc_request_msg::kBaseInfoFieldNumber; const int Parkspace_confirm_alloc_request_msg::kCommandKeyFieldNumber; const int Parkspace_confirm_alloc_request_msg::kConfirmParkspaceInfoExFieldNumber; const int Parkspace_confirm_alloc_request_msg::kCarTypeFieldNumber; #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), confirm_parkspace_info_ex_(from.confirm_parkspace_info_ex_) { _internal_metadata_.MergeFrom(from._internal_metadata_); command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_command_key()) { command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (from.has_base_info()) { base_info_ = new ::message::Base_info(*from.base_info_); } else { base_info_ = NULL; } car_type_ = from.car_type_; // @@protoc_insertion_point(copy_constructor:message.Parkspace_confirm_alloc_request_msg) } void Parkspace_confirm_alloc_request_msg::SharedCtor() { _cached_size_ = 0; command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&base_info_, 0, static_cast( reinterpret_cast(&car_type_) - reinterpret_cast(&base_info_)) + sizeof(car_type_)); } Parkspace_confirm_alloc_request_msg::~Parkspace_confirm_alloc_request_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_confirm_alloc_request_msg) SharedDtor(); } void Parkspace_confirm_alloc_request_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; } 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; confirm_parkspace_info_ex_.Clear(); cached_has_bits = _has_bits_[0]; if (cached_has_bits & 3u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*command_key_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } } car_type_ = 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 string command_key = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_command_key())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::PARSE, "message.Parkspace_confirm_alloc_request_msg.command_key"); } else { goto handle_unusual; } break; } // repeated .message.Parkspace_info confirm_parkspace_info_ex = 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_confirm_parkspace_info_ex())); } else { goto handle_unusual; } break; } // optional .message.Car_type car_type = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); if (::message::Car_type_IsValid(value)) { set_car_type(static_cast< ::message::Car_type >(value)); } else { mutable_unknown_fields()->AddVarint( 4, static_cast< ::google::protobuf::uint64>(value)); } } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:message.Parkspace_confirm_alloc_request_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_confirm_alloc_request_msg) return false; #undef DO_ } void Parkspace_confirm_alloc_request_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_confirm_alloc_request_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_confirm_alloc_request_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), output); } // repeated .message.Parkspace_info confirm_parkspace_info_ex = 3; for (unsigned int i = 0, n = static_cast(this->confirm_parkspace_info_ex_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, this->confirm_parkspace_info_ex(static_cast(i)), output); } // optional .message.Car_type car_type = 4; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 4, this->car_type(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_confirm_alloc_request_msg) } ::google::protobuf::uint8* Parkspace_confirm_alloc_request_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_confirm_alloc_request_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_confirm_alloc_request_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), target); } // repeated .message.Parkspace_info confirm_parkspace_info_ex = 3; for (unsigned int i = 0, n = static_cast(this->confirm_parkspace_info_ex_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, this->confirm_parkspace_info_ex(static_cast(i)), deterministic, target); } // optional .message.Car_type car_type = 4; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 4, this->car_type(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_confirm_alloc_request_msg) return target; } size_t Parkspace_confirm_alloc_request_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_confirm_alloc_request_msg) size_t total_size = 0; if (has_command_key()) { // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); } if (has_base_info()) { // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } 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] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } else { total_size += RequiredFieldsByteSizeFallback(); } // repeated .message.Parkspace_info confirm_parkspace_info_ex = 3; { unsigned int count = static_cast(this->confirm_parkspace_info_ex_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->confirm_parkspace_info_ex(static_cast(i))); } } // optional .message.Car_type car_type = 4; if (has_car_type()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->car_type()); } 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; confirm_parkspace_info_ex_.MergeFrom(from.confirm_parkspace_info_ex_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 7u) { if (cached_has_bits & 0x00000001u) { set_has_command_key(); command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (cached_has_bits & 0x00000002u) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000004u) { car_type_ = from.car_type_; } _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] & 0x00000003) != 0x00000003) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } return true; } void Parkspace_confirm_alloc_request_msg::Swap(Parkspace_confirm_alloc_request_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_confirm_alloc_request_msg::InternalSwap(Parkspace_confirm_alloc_request_msg* other) { using std::swap; confirm_parkspace_info_ex_.InternalSwap(&other->confirm_parkspace_info_ex_); command_key_.Swap(&other->command_key_); swap(base_info_, other->base_info_); swap(car_type_, other->car_type_); 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()); } void Parkspace_confirm_alloc_response_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_confirm_alloc_response_msg::clear_error_manager() { if (error_manager_ != NULL) error_manager_->Clear(); clear_has_error_manager(); } void Parkspace_confirm_alloc_response_msg::clear_confirm_parkspace_info_ex() { confirm_parkspace_info_ex_.Clear(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_confirm_alloc_response_msg::kBaseInfoFieldNumber; const int Parkspace_confirm_alloc_response_msg::kCommandKeyFieldNumber; const int Parkspace_confirm_alloc_response_msg::kErrorManagerFieldNumber; const int Parkspace_confirm_alloc_response_msg::kConfirmParkspaceInfoExFieldNumber; const int Parkspace_confirm_alloc_response_msg::kCarTypeFieldNumber; #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), confirm_parkspace_info_ex_(from.confirm_parkspace_info_ex_) { _internal_metadata_.MergeFrom(from._internal_metadata_); command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_command_key()) { command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (from.has_base_info()) { base_info_ = new ::message::Base_info(*from.base_info_); } else { base_info_ = NULL; } if (from.has_error_manager()) { error_manager_ = new ::message::Error_manager(*from.error_manager_); } else { error_manager_ = NULL; } car_type_ = from.car_type_; // @@protoc_insertion_point(copy_constructor:message.Parkspace_confirm_alloc_response_msg) } void Parkspace_confirm_alloc_response_msg::SharedCtor() { _cached_size_ = 0; command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&base_info_, 0, static_cast( reinterpret_cast(&car_type_) - reinterpret_cast(&base_info_)) + sizeof(car_type_)); } Parkspace_confirm_alloc_response_msg::~Parkspace_confirm_alloc_response_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_confirm_alloc_response_msg) SharedDtor(); } void Parkspace_confirm_alloc_response_msg::SharedDtor() { command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete error_manager_; } 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; confirm_parkspace_info_ex_.Clear(); cached_has_bits = _has_bits_[0]; if (cached_has_bits & 7u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*command_key_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(error_manager_ != NULL); error_manager_->Clear(); } } car_type_ = 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 string command_key = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_command_key())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::PARSE, "message.Parkspace_confirm_alloc_response_msg.command_key"); } else { goto handle_unusual; } break; } // required .message.Error_manager error_manager = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_error_manager())); } else { goto handle_unusual; } break; } // repeated .message.Parkspace_info confirm_parkspace_info_ex = 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, add_confirm_parkspace_info_ex())); } else { goto handle_unusual; } break; } // optional .message.Car_type car_type = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); if (::message::Car_type_IsValid(value)) { set_car_type(static_cast< ::message::Car_type >(value)); } else { mutable_unknown_fields()->AddVarint( 5, static_cast< ::google::protobuf::uint64>(value)); } } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:message.Parkspace_confirm_alloc_response_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_confirm_alloc_response_msg) return false; #undef DO_ } void Parkspace_confirm_alloc_response_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_confirm_alloc_response_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_confirm_alloc_response_msg.command_key"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->command_key(), output); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->error_manager_, output); } // repeated .message.Parkspace_info confirm_parkspace_info_ex = 4; for (unsigned int i = 0, n = static_cast(this->confirm_parkspace_info_ex_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, this->confirm_parkspace_info_ex(static_cast(i)), output); } // optional .message.Car_type car_type = 5; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 5, this->car_type(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_confirm_alloc_response_msg) } ::google::protobuf::uint8* Parkspace_confirm_alloc_response_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_confirm_alloc_response_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required string command_key = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->command_key().data(), static_cast(this->command_key().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_confirm_alloc_response_msg.command_key"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->command_key(), target); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, *this->error_manager_, deterministic, target); } // repeated .message.Parkspace_info confirm_parkspace_info_ex = 4; for (unsigned int i = 0, n = static_cast(this->confirm_parkspace_info_ex_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, this->confirm_parkspace_info_ex(static_cast(i)), deterministic, target); } // optional .message.Car_type car_type = 5; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 5, this->car_type(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_confirm_alloc_response_msg) return target; } size_t Parkspace_confirm_alloc_response_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_confirm_alloc_response_msg) size_t total_size = 0; if (has_command_key()) { // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); } if (has_base_info()) { // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } if (has_error_manager()) { // required .message.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } 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] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. // required string command_key = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->command_key()); // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); // required .message.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } else { total_size += RequiredFieldsByteSizeFallback(); } // repeated .message.Parkspace_info confirm_parkspace_info_ex = 4; { unsigned int count = static_cast(this->confirm_parkspace_info_ex_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->confirm_parkspace_info_ex(static_cast(i))); } } // optional .message.Car_type car_type = 5; if (has_car_type()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->car_type()); } 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; confirm_parkspace_info_ex_.MergeFrom(from.confirm_parkspace_info_ex_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 15u) { if (cached_has_bits & 0x00000001u) { set_has_command_key(); command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_); } if (cached_has_bits & 0x00000002u) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000004u) { mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager()); } if (cached_has_bits & 0x00000008u) { car_type_ = from.car_type_; } _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] & 0x00000007) != 0x00000007) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } if (has_error_manager()) { if (!this->error_manager_->IsInitialized()) return false; } return true; } void Parkspace_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; confirm_parkspace_info_ex_.InternalSwap(&other->confirm_parkspace_info_ex_); command_key_.Swap(&other->command_key_); swap(base_info_, other->base_info_); swap(error_manager_, other->error_manager_); swap(car_type_, other->car_type_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_confirm_alloc_response_msg::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Parkspace_allocation_status_msg::InitAsDefaultInstance() { ::message::_Parkspace_allocation_status_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); ::message::_Parkspace_allocation_status_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>( ::message::Error_manager::internal_default_instance()); } void Parkspace_allocation_status_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_allocation_status_msg::clear_error_manager() { if (error_manager_ != NULL) error_manager_->Clear(); clear_has_error_manager(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_allocation_status_msg::kBaseInfoFieldNumber; const int Parkspace_allocation_status_msg::kErrorManagerFieldNumber; const int Parkspace_allocation_status_msg::kDatabaseControllerStatusFieldNumber; const int Parkspace_allocation_status_msg::kParkspaceManagerSatusFieldNumber; const int Parkspace_allocation_status_msg::kUnitIdFieldNumber; const int Parkspace_allocation_status_msg::kSmallParkspaceRemainingNumberFieldNumber; const int Parkspace_allocation_status_msg::kMediumParkspaceRemainingNumberFieldNumber; const int Parkspace_allocation_status_msg::kLargeParkspaceRemainingNumberFieldNumber; const int Parkspace_allocation_status_msg::kTotalParkspaceRemainingNumberFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_allocation_status_msg::Parkspace_allocation_status_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_status_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_allocation_status_msg) } Parkspace_allocation_status_msg::Parkspace_allocation_status_msg(const Parkspace_allocation_status_msg& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_base_info()) { base_info_ = new ::message::Base_info(*from.base_info_); } else { base_info_ = NULL; } if (from.has_error_manager()) { error_manager_ = new ::message::Error_manager(*from.error_manager_); } else { error_manager_ = NULL; } ::memcpy(&database_controller_status_, &from.database_controller_status_, static_cast(reinterpret_cast(&total_parkspace_remaining_number_) - reinterpret_cast(&database_controller_status_)) + sizeof(total_parkspace_remaining_number_)); // @@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(&total_parkspace_remaining_number_) - reinterpret_cast(&base_info_)) + sizeof(total_parkspace_remaining_number_)); } Parkspace_allocation_status_msg::~Parkspace_allocation_status_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_allocation_status_msg) SharedDtor(); } void Parkspace_allocation_status_msg::SharedDtor() { if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete error_manager_; } void Parkspace_allocation_status_msg::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Parkspace_allocation_status_msg::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Parkspace_allocation_status_msg& Parkspace_allocation_status_msg::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_status_msg(); return *internal_default_instance(); } Parkspace_allocation_status_msg* Parkspace_allocation_status_msg::New(::google::protobuf::Arena* arena) const { Parkspace_allocation_status_msg* n = new Parkspace_allocation_status_msg; if (arena != NULL) { arena->Own(n); } return n; } void Parkspace_allocation_status_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Parkspace_allocation_status_msg) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 3u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(error_manager_ != NULL); error_manager_->Clear(); } } if (cached_has_bits & 252u) { ::memset(&database_controller_status_, 0, static_cast( reinterpret_cast(&large_parkspace_remaining_number_) - reinterpret_cast(&database_controller_status_)) + sizeof(large_parkspace_remaining_number_)); } total_parkspace_remaining_number_ = 0; _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_allocation_status_msg::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:message.Parkspace_allocation_status_msg) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required .message.Base_info base_info = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_base_info())); } else { goto handle_unusual; } break; } // required .message.Error_manager error_manager = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_error_manager())); } else { goto handle_unusual; } break; } // required .message.Database_controller_status database_controller_status = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); if (::message::Database_controller_status_IsValid(value)) { set_database_controller_status(static_cast< ::message::Database_controller_status >(value)); } else { mutable_unknown_fields()->AddVarint( 3, static_cast< ::google::protobuf::uint64>(value)); } } else { goto handle_unusual; } break; } // required .message.Parkspace_manager_satus parkspace_manager_satus = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); if (::message::Parkspace_manager_satus_IsValid(value)) { set_parkspace_manager_satus(static_cast< ::message::Parkspace_manager_satus >(value)); } else { mutable_unknown_fields()->AddVarint( 4, static_cast< ::google::protobuf::uint64>(value)); } } else { goto handle_unusual; } break; } // required int32 unit_id = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { set_has_unit_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &unit_id_))); } else { goto handle_unusual; } break; } // required int32 small_parkspace_remaining_number = 6; case 6: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { set_has_small_parkspace_remaining_number(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &small_parkspace_remaining_number_))); } else { goto handle_unusual; } break; } // required int32 medium_parkspace_remaining_number = 7; case 7: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { set_has_medium_parkspace_remaining_number(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &medium_parkspace_remaining_number_))); } else { goto handle_unusual; } break; } // required int32 large_parkspace_remaining_number = 8; case 8: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { set_has_large_parkspace_remaining_number(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &large_parkspace_remaining_number_))); } else { goto handle_unusual; } break; } // required int32 total_parkspace_remaining_number = 9; case 9: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { set_has_total_parkspace_remaining_number(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &total_parkspace_remaining_number_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:message.Parkspace_allocation_status_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_allocation_status_msg) return false; #undef DO_ } void Parkspace_allocation_status_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_allocation_status_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required .message.Error_manager error_manager = 2; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, *this->error_manager_, output); } // required .message.Database_controller_status database_controller_status = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 3, this->database_controller_status(), output); } // required .message.Parkspace_manager_satus parkspace_manager_satus = 4; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 4, this->parkspace_manager_satus(), output); } // required int32 unit_id = 5; if (cached_has_bits & 0x00000010u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->unit_id(), output); } // required int32 small_parkspace_remaining_number = 6; if (cached_has_bits & 0x00000020u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->small_parkspace_remaining_number(), output); } // required int32 medium_parkspace_remaining_number = 7; if (cached_has_bits & 0x00000040u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->medium_parkspace_remaining_number(), output); } // required int32 large_parkspace_remaining_number = 8; if (cached_has_bits & 0x00000080u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->large_parkspace_remaining_number(), output); } // required int32 total_parkspace_remaining_number = 9; if (cached_has_bits & 0x00000100u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->total_parkspace_remaining_number(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_allocation_status_msg) } ::google::protobuf::uint8* Parkspace_allocation_status_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_allocation_status_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required .message.Error_manager error_manager = 2; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, *this->error_manager_, deterministic, target); } // required .message.Database_controller_status database_controller_status = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 3, this->database_controller_status(), target); } // required .message.Parkspace_manager_satus parkspace_manager_satus = 4; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 4, this->parkspace_manager_satus(), target); } // required int32 unit_id = 5; if (cached_has_bits & 0x00000010u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->unit_id(), target); } // required int32 small_parkspace_remaining_number = 6; if (cached_has_bits & 0x00000020u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->small_parkspace_remaining_number(), target); } // required int32 medium_parkspace_remaining_number = 7; if (cached_has_bits & 0x00000040u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->medium_parkspace_remaining_number(), target); } // required int32 large_parkspace_remaining_number = 8; if (cached_has_bits & 0x00000080u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->large_parkspace_remaining_number(), target); } // required int32 total_parkspace_remaining_number = 9; if (cached_has_bits & 0x00000100u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->total_parkspace_remaining_number(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_allocation_status_msg) return target; } size_t Parkspace_allocation_status_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_allocation_status_msg) size_t total_size = 0; if (has_base_info()) { // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } if (has_error_manager()) { // required .message.Error_manager error_manager = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } if (has_database_controller_status()) { // required .message.Database_controller_status database_controller_status = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->database_controller_status()); } if (has_parkspace_manager_satus()) { // required .message.Parkspace_manager_satus parkspace_manager_satus = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkspace_manager_satus()); } if (has_unit_id()) { // required int32 unit_id = 5; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->unit_id()); } if (has_small_parkspace_remaining_number()) { // required int32 small_parkspace_remaining_number = 6; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->small_parkspace_remaining_number()); } if (has_medium_parkspace_remaining_number()) { // required int32 medium_parkspace_remaining_number = 7; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->medium_parkspace_remaining_number()); } if (has_large_parkspace_remaining_number()) { // required int32 large_parkspace_remaining_number = 8; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->large_parkspace_remaining_number()); } if (has_total_parkspace_remaining_number()) { // required int32 total_parkspace_remaining_number = 9; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->total_parkspace_remaining_number()); } 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] & 0x000001ff) ^ 0x000001ff) == 0) { // All required fields are present. // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); // required .message.Error_manager error_manager = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); // required .message.Database_controller_status database_controller_status = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->database_controller_status()); // required .message.Parkspace_manager_satus parkspace_manager_satus = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkspace_manager_satus()); // required int32 unit_id = 5; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->unit_id()); // required int32 small_parkspace_remaining_number = 6; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->small_parkspace_remaining_number()); // required int32 medium_parkspace_remaining_number = 7; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->medium_parkspace_remaining_number()); // required int32 large_parkspace_remaining_number = 8; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->large_parkspace_remaining_number()); // required int32 total_parkspace_remaining_number = 9; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->total_parkspace_remaining_number()); } else { total_size += RequiredFieldsByteSizeFallback(); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Parkspace_allocation_status_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_allocation_status_msg) GOOGLE_DCHECK_NE(&from, this); const Parkspace_allocation_status_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_allocation_status_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_allocation_status_msg) MergeFrom(*source); } } void Parkspace_allocation_status_msg::MergeFrom(const Parkspace_allocation_status_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_allocation_status_msg) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 255u) { if (cached_has_bits & 0x00000001u) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000002u) { mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager()); } if (cached_has_bits & 0x00000004u) { database_controller_status_ = from.database_controller_status_; } if (cached_has_bits & 0x00000008u) { parkspace_manager_satus_ = from.parkspace_manager_satus_; } if (cached_has_bits & 0x00000010u) { unit_id_ = from.unit_id_; } if (cached_has_bits & 0x00000020u) { small_parkspace_remaining_number_ = from.small_parkspace_remaining_number_; } if (cached_has_bits & 0x00000040u) { medium_parkspace_remaining_number_ = from.medium_parkspace_remaining_number_; } if (cached_has_bits & 0x00000080u) { large_parkspace_remaining_number_ = from.large_parkspace_remaining_number_; } _has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x00000100u) { set_total_parkspace_remaining_number(from.total_parkspace_remaining_number()); } } 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] & 0x000001ff) != 0x000001ff) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } if (has_error_manager()) { if (!this->error_manager_->IsInitialized()) return false; } return true; } void Parkspace_allocation_status_msg::Swap(Parkspace_allocation_status_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_allocation_status_msg::InternalSwap(Parkspace_allocation_status_msg* other) { using std::swap; swap(base_info_, other->base_info_); swap(error_manager_, other->error_manager_); swap(database_controller_status_, other->database_controller_status_); swap(parkspace_manager_satus_, other->parkspace_manager_satus_); swap(unit_id_, other->unit_id_); swap(small_parkspace_remaining_number_, other->small_parkspace_remaining_number_); swap(medium_parkspace_remaining_number_, other->medium_parkspace_remaining_number_); swap(large_parkspace_remaining_number_, other->large_parkspace_remaining_number_); swap(total_parkspace_remaining_number_, other->total_parkspace_remaining_number_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_allocation_status_msg::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Parkspace_refresh_request_msg::InitAsDefaultInstance() { ::message::_Parkspace_refresh_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); } void Parkspace_refresh_request_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_refresh_request_msg::kBaseInfoFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_refresh_request_msg::Parkspace_refresh_request_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_refresh_request_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_refresh_request_msg) } Parkspace_refresh_request_msg::Parkspace_refresh_request_msg(const Parkspace_refresh_request_msg& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_base_info()) { base_info_ = new ::message::Base_info(*from.base_info_); } else { base_info_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Parkspace_refresh_request_msg) } void Parkspace_refresh_request_msg::SharedCtor() { _cached_size_ = 0; base_info_ = NULL; } Parkspace_refresh_request_msg::~Parkspace_refresh_request_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_refresh_request_msg) SharedDtor(); } void Parkspace_refresh_request_msg::SharedDtor() { if (this != internal_default_instance()) delete base_info_; } void Parkspace_refresh_request_msg::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Parkspace_refresh_request_msg::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Parkspace_refresh_request_msg& Parkspace_refresh_request_msg::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_refresh_request_msg(); return *internal_default_instance(); } Parkspace_refresh_request_msg* Parkspace_refresh_request_msg::New(::google::protobuf::Arena* arena) const { Parkspace_refresh_request_msg* n = new Parkspace_refresh_request_msg; if (arena != NULL) { arena->Own(n); } return n; } void Parkspace_refresh_request_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Parkspace_refresh_request_msg) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_refresh_request_msg::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:message.Parkspace_refresh_request_msg) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required .message.Base_info base_info = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_base_info())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:message.Parkspace_refresh_request_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_refresh_request_msg) return false; #undef DO_ } void Parkspace_refresh_request_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_refresh_request_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_refresh_request_msg) } ::google::protobuf::uint8* Parkspace_refresh_request_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_refresh_request_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_refresh_request_msg) return target; } size_t Parkspace_refresh_request_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_refresh_request_msg) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // required .message.Base_info base_info = 1; if (has_base_info()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Parkspace_refresh_request_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_refresh_request_msg) GOOGLE_DCHECK_NE(&from, this); const Parkspace_refresh_request_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_refresh_request_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_refresh_request_msg) MergeFrom(*source); } } void Parkspace_refresh_request_msg::MergeFrom(const Parkspace_refresh_request_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_refresh_request_msg) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.has_base_info()) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } } void Parkspace_refresh_request_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_refresh_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_refresh_request_msg::CopyFrom(const Parkspace_refresh_request_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_refresh_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_refresh_request_msg::IsInitialized() const { if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } return true; } void Parkspace_refresh_request_msg::Swap(Parkspace_refresh_request_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_refresh_request_msg::InternalSwap(Parkspace_refresh_request_msg* other) { using std::swap; swap(base_info_, other->base_info_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_refresh_request_msg::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Parkspace_allocation_data_msg::InitAsDefaultInstance() { ::message::_Parkspace_allocation_data_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); ::message::_Parkspace_allocation_data_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>( ::message::Error_manager::internal_default_instance()); } void Parkspace_allocation_data_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_allocation_data_msg::clear_error_manager() { if (error_manager_ != NULL) error_manager_->Clear(); clear_has_error_manager(); } void Parkspace_allocation_data_msg::clear_parkspace_info_ex() { parkspace_info_ex_.Clear(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_allocation_data_msg::kBaseInfoFieldNumber; const int Parkspace_allocation_data_msg::kErrorManagerFieldNumber; const int Parkspace_allocation_data_msg::kParkspaceInfoExFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_allocation_data_msg::Parkspace_allocation_data_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_data_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_allocation_data_msg) } Parkspace_allocation_data_msg::Parkspace_allocation_data_msg(const Parkspace_allocation_data_msg& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0), parkspace_info_ex_(from.parkspace_info_ex_) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_base_info()) { base_info_ = new ::message::Base_info(*from.base_info_); } else { base_info_ = NULL; } if (from.has_error_manager()) { error_manager_ = new ::message::Error_manager(*from.error_manager_); } else { error_manager_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Parkspace_allocation_data_msg) } void Parkspace_allocation_data_msg::SharedCtor() { _cached_size_ = 0; ::memset(&base_info_, 0, static_cast( reinterpret_cast(&error_manager_) - reinterpret_cast(&base_info_)) + sizeof(error_manager_)); } Parkspace_allocation_data_msg::~Parkspace_allocation_data_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_allocation_data_msg) SharedDtor(); } void Parkspace_allocation_data_msg::SharedDtor() { if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete error_manager_; } void Parkspace_allocation_data_msg::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Parkspace_allocation_data_msg::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Parkspace_allocation_data_msg& Parkspace_allocation_data_msg::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_data_msg(); return *internal_default_instance(); } Parkspace_allocation_data_msg* Parkspace_allocation_data_msg::New(::google::protobuf::Arena* arena) const { Parkspace_allocation_data_msg* n = new Parkspace_allocation_data_msg; if (arena != NULL) { arena->Own(n); } return n; } void Parkspace_allocation_data_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Parkspace_allocation_data_msg) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; parkspace_info_ex_.Clear(); cached_has_bits = _has_bits_[0]; if (cached_has_bits & 3u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(error_manager_ != NULL); error_manager_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_allocation_data_msg::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:message.Parkspace_allocation_data_msg) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required .message.Base_info base_info = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_base_info())); } else { goto handle_unusual; } break; } // required .message.Error_manager error_manager = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_error_manager())); } else { goto handle_unusual; } break; } // repeated .message.Parkspace_info parkspace_info_ex = 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_ex())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:message.Parkspace_allocation_data_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_allocation_data_msg) return false; #undef DO_ } void Parkspace_allocation_data_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_allocation_data_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required .message.Error_manager error_manager = 2; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, *this->error_manager_, output); } // repeated .message.Parkspace_info parkspace_info_ex = 3; for (unsigned int i = 0, n = static_cast(this->parkspace_info_ex_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, this->parkspace_info_ex(static_cast(i)), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_allocation_data_msg) } ::google::protobuf::uint8* Parkspace_allocation_data_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_allocation_data_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required .message.Error_manager error_manager = 2; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, *this->error_manager_, deterministic, target); } // repeated .message.Parkspace_info parkspace_info_ex = 3; for (unsigned int i = 0, n = static_cast(this->parkspace_info_ex_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, this->parkspace_info_ex(static_cast(i)), deterministic, target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_allocation_data_msg) return target; } size_t Parkspace_allocation_data_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_allocation_data_msg) size_t total_size = 0; if (has_base_info()) { // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } if (has_error_manager()) { // required .message.Error_manager error_manager = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } return total_size; } size_t Parkspace_allocation_data_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_allocation_data_msg) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); // required .message.Error_manager error_manager = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } else { total_size += RequiredFieldsByteSizeFallback(); } // repeated .message.Parkspace_info parkspace_info_ex = 3; { unsigned int count = static_cast(this->parkspace_info_ex_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->parkspace_info_ex(static_cast(i))); } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Parkspace_allocation_data_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_allocation_data_msg) GOOGLE_DCHECK_NE(&from, this); const Parkspace_allocation_data_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_allocation_data_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_allocation_data_msg) MergeFrom(*source); } } void Parkspace_allocation_data_msg::MergeFrom(const Parkspace_allocation_data_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_allocation_data_msg) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; parkspace_info_ex_.MergeFrom(from.parkspace_info_ex_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 3u) { if (cached_has_bits & 0x00000001u) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000002u) { mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager()); } } } void Parkspace_allocation_data_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_allocation_data_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_allocation_data_msg::CopyFrom(const Parkspace_allocation_data_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_allocation_data_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_allocation_data_msg::IsInitialized() const { if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } if (has_error_manager()) { if (!this->error_manager_->IsInitialized()) return false; } return true; } void Parkspace_allocation_data_msg::Swap(Parkspace_allocation_data_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_allocation_data_msg::InternalSwap(Parkspace_allocation_data_msg* other) { using std::swap; parkspace_info_ex_.InternalSwap(&other->parkspace_info_ex_); swap(base_info_, other->base_info_); swap(error_manager_, other->error_manager_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_allocation_data_msg::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // @@protoc_insertion_point(namespace_scope) } // namespace message // @@protoc_insertion_point(global_scope)