// 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_allocation_status_msgDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_allocation_status_msg_default_instance_; class Parkspace_infoDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Parkspace_info_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(); { 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(); { 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_allocation_status_msgImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_message_5fbase_2eproto::InitDefaultsBase_info(); protobuf_message_5fbase_2eproto::InitDefaultsError_manager(); protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_info(); { void* ptr = &::message::_Parkspace_allocation_status_msg_default_instance_; new (ptr) ::message::Parkspace_allocation_status_msg(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_allocation_status_msg::InitAsDefaultInstance(); } void InitDefaultsParkspace_allocation_status_msg() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_allocation_status_msgImpl); } void InitDefaultsParkspace_infoImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS { void* ptr = &::message::_Parkspace_info_default_instance_; new (ptr) ::message::Parkspace_info(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Parkspace_info::InitAsDefaultInstance(); } void InitDefaultsParkspace_info() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_infoImpl); } ::google::protobuf::Metadata file_level_metadata[4]; const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; 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_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, car_length_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, car_width_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, car_height_), 0, 1, 2, 3, 4, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, base_info_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, command_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, error_manager_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, allocated_space_id_), 0, 2, 1, 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, parkspace_info_), 0, 1, ~0u, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkspace_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, x_coordinate_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, y_coordinate_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, z_coordinate_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, length_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, width_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, height_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, parkspace_status_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, license_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, entry_time_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_info, leave_time_), 2, 3, 4, 5, 6, 7, 8, 9, 10, 0, 1, }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, 10, sizeof(::message::Parkspace_allocation_request_msg)}, { 15, 24, sizeof(::message::Parkspace_allocation_response_msg)}, { 28, 36, sizeof(::message::Parkspace_allocation_status_msg)}, { 39, 55, sizeof(::message::Parkspace_info)}, }; 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_allocation_status_msg_default_instance_), reinterpret_cast(&::message::_Parkspace_info_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, 4); } void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n\"parkspace_allocation_message.proto\022\007me" "ssage\032\022message_base.proto\"\230\001\n Parkspace_" "allocation_request_msg\022%\n\tbase_info\030\001 \002(" "\0132\022.message.Base_info\022\022\n\ncommand_id\030\002 \002(" "\005\022\022\n\ncar_length\030\003 \002(\005\022\021\n\tcar_width\030\004 \002(\005" "\022\022\n\ncar_height\030\005 \002(\005\"\251\001\n!Parkspace_alloc" "ation_response_msg\022%\n\tbase_info\030\001 \002(\0132\022." "message.Base_info\022\022\n\ncommand_id\030\002 \002(\005\022-\n" "\rerror_manager\030\003 \002(\0132\026.message.Error_man" "ager\022\032\n\022allocated_space_id\030\004 \002(\005\"\250\001\n\037Par" "kspace_allocation_status_msg\022%\n\tbase_inf" "o\030\001 \002(\0132\022.message.Base_info\022-\n\rerror_man" "ager\030\002 \002(\0132\026.message.Error_manager\022/\n\016pa" "rkspace_info\030\003 \003(\0132\027.message.Parkspace_i" "nfo\"\205\002\n\016Parkspace_info\022\024\n\014parkspace_id\030\001" " \002(\005\022\024\n\014x_coordinate\030\002 \002(\005\022\024\n\014y_coordina" "te\030\003 \002(\005\022\024\n\014z_coordinate\030\004 \002(\005\022\016\n\006length" "\030\005 \002(\005\022\r\n\005width\030\006 \002(\005\022\016\n\006height\030\007 \002(\005\0223\n" "\020parkspace_status\030\010 \002(\0162\031.message.Parksp" "ace_status\022\017\n\007license\030\t \001(\005\022\022\n\nentry_tim" "e\030\n \001(\t\022\022\n\nleave_time\030\013 \001(\t*q\n\020Parkspace" "_status\022\024\n\020eParkspace_empty\020\000\022\027\n\023eParksp" "ace_occupied\020\001\022\030\n\024eParkspace_reserverd\020\002" "\022\024\n\020eParkspace_error\020\003" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( descriptor, 942); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "parkspace_allocation_message.proto", &protobuf_RegisterTypes); ::protobuf_message_5fbase_2eproto::AddDescriptors(); } void AddDescriptors() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); } // Force AddDescriptors() to be called at dynamic initialization time. struct StaticDescriptorInitializer { StaticDescriptorInitializer() { AddDescriptors(); } } static_descriptor_initializer; } // namespace protobuf_parkspace_5fallocation_5fmessage_2eproto namespace message { const ::google::protobuf::EnumDescriptor* Parkspace_status_descriptor() { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_enum_descriptors[0]; } bool Parkspace_status_IsValid(int value) { switch (value) { case 0: case 1: case 2: case 3: 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()); } void Parkspace_allocation_request_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_allocation_request_msg::kBaseInfoFieldNumber; const int Parkspace_allocation_request_msg::kCommandIdFieldNumber; const int Parkspace_allocation_request_msg::kCarLengthFieldNumber; const int Parkspace_allocation_request_msg::kCarWidthFieldNumber; const int Parkspace_allocation_request_msg::kCarHeightFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_allocation_request_msg::Parkspace_allocation_request_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_request_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_allocation_request_msg) } Parkspace_allocation_request_msg::Parkspace_allocation_request_msg(const Parkspace_allocation_request_msg& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_base_info()) { base_info_ = new ::message::Base_info(*from.base_info_); } else { base_info_ = NULL; } ::memcpy(&command_id_, &from.command_id_, static_cast(reinterpret_cast(&car_height_) - reinterpret_cast(&command_id_)) + sizeof(car_height_)); // @@protoc_insertion_point(copy_constructor:message.Parkspace_allocation_request_msg) } void Parkspace_allocation_request_msg::SharedCtor() { _cached_size_ = 0; ::memset(&base_info_, 0, static_cast( reinterpret_cast(&car_height_) - reinterpret_cast(&base_info_)) + sizeof(car_height_)); } Parkspace_allocation_request_msg::~Parkspace_allocation_request_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_allocation_request_msg) SharedDtor(); } void Parkspace_allocation_request_msg::SharedDtor() { if (this != internal_default_instance()) delete base_info_; } 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 & 0x00000001u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 30u) { ::memset(&command_id_, 0, static_cast( reinterpret_cast(&car_height_) - reinterpret_cast(&command_id_)) + sizeof(car_height_)); } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_allocation_request_msg::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:message.Parkspace_allocation_request_msg) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required .message.Base_info base_info = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_base_info())); } else { goto handle_unusual; } break; } // required int32 command_id = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_command_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &command_id_))); } else { goto handle_unusual; } break; } // required int32 car_length = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { set_has_car_length(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &car_length_))); } else { goto handle_unusual; } break; } // required int32 car_width = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { set_has_car_width(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &car_width_))); } else { goto handle_unusual; } break; } // required int32 car_height = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { set_has_car_height(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &car_height_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:message.Parkspace_allocation_request_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_allocation_request_msg) return false; #undef DO_ } void Parkspace_allocation_request_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_allocation_request_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required int32 command_id = 2; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output); } // required int32 car_length = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->car_length(), output); } // required int32 car_width = 4; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->car_width(), output); } // required int32 car_height = 5; if (cached_has_bits & 0x00000010u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->car_height(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_allocation_request_msg) } ::google::protobuf::uint8* Parkspace_allocation_request_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_allocation_request_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required int32 command_id = 2; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target); } // required int32 car_length = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->car_length(), target); } // required int32 car_width = 4; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->car_width(), target); } // required int32 car_height = 5; if (cached_has_bits & 0x00000010u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->car_height(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_allocation_request_msg) return target; } size_t Parkspace_allocation_request_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_allocation_request_msg) size_t total_size = 0; if (has_base_info()) { // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } if (has_command_id()) { // required int32 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_id()); } if (has_car_length()) { // required int32 car_length = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->car_length()); } if (has_car_width()) { // required int32 car_width = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->car_width()); } if (has_car_height()) { // required int32 car_height = 5; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->car_height()); } 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] & 0x0000001f) ^ 0x0000001f) == 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 int32 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_id()); // required int32 car_length = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->car_length()); // required int32 car_width = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->car_width()); // required int32 car_height = 5; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->car_height()); } 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 & 31u) { if (cached_has_bits & 0x00000001u) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000002u) { command_id_ = from.command_id_; } if (cached_has_bits & 0x00000004u) { car_length_ = from.car_length_; } if (cached_has_bits & 0x00000008u) { car_width_ = from.car_width_; } if (cached_has_bits & 0x00000010u) { car_height_ = from.car_height_; } _has_bits_[0] |= cached_has_bits; } } void Parkspace_allocation_request_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_allocation_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_allocation_request_msg::CopyFrom(const Parkspace_allocation_request_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_allocation_request_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_allocation_request_msg::IsInitialized() const { if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) 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; swap(base_info_, other->base_info_); swap(command_id_, other->command_id_); swap(car_length_, other->car_length_); swap(car_width_, other->car_width_); swap(car_height_, other->car_height_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata 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(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_allocation_response_msg::kBaseInfoFieldNumber; const int Parkspace_allocation_response_msg::kCommandIdFieldNumber; const int Parkspace_allocation_response_msg::kErrorManagerFieldNumber; const int Parkspace_allocation_response_msg::kAllocatedSpaceIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_allocation_response_msg::Parkspace_allocation_response_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_response_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_allocation_response_msg) } Parkspace_allocation_response_msg::Parkspace_allocation_response_msg(const Parkspace_allocation_response_msg& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_base_info()) { base_info_ = new ::message::Base_info(*from.base_info_); } else { base_info_ = NULL; } if (from.has_error_manager()) { error_manager_ = new ::message::Error_manager(*from.error_manager_); } else { error_manager_ = NULL; } ::memcpy(&command_id_, &from.command_id_, static_cast(reinterpret_cast(&allocated_space_id_) - reinterpret_cast(&command_id_)) + sizeof(allocated_space_id_)); // @@protoc_insertion_point(copy_constructor:message.Parkspace_allocation_response_msg) } void Parkspace_allocation_response_msg::SharedCtor() { _cached_size_ = 0; ::memset(&base_info_, 0, static_cast( reinterpret_cast(&allocated_space_id_) - reinterpret_cast(&base_info_)) + sizeof(allocated_space_id_)); } Parkspace_allocation_response_msg::~Parkspace_allocation_response_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_allocation_response_msg) SharedDtor(); } void Parkspace_allocation_response_msg::SharedDtor() { if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete error_manager_; } void Parkspace_allocation_response_msg::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Parkspace_allocation_response_msg::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Parkspace_allocation_response_msg& Parkspace_allocation_response_msg::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_response_msg(); return *internal_default_instance(); } Parkspace_allocation_response_msg* Parkspace_allocation_response_msg::New(::google::protobuf::Arena* arena) const { Parkspace_allocation_response_msg* n = new Parkspace_allocation_response_msg; if (arena != NULL) { arena->Own(n); } return n; } void Parkspace_allocation_response_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Parkspace_allocation_response_msg) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 3u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(error_manager_ != NULL); error_manager_->Clear(); } } if (cached_has_bits & 12u) { ::memset(&command_id_, 0, static_cast( reinterpret_cast(&allocated_space_id_) - reinterpret_cast(&command_id_)) + sizeof(allocated_space_id_)); } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_allocation_response_msg::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:message.Parkspace_allocation_response_msg) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required .message.Base_info base_info = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_base_info())); } else { goto handle_unusual; } break; } // required int32 command_id = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_command_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &command_id_))); } else { goto handle_unusual; } break; } // required .message.Error_manager error_manager = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_error_manager())); } else { goto handle_unusual; } break; } // required int32 allocated_space_id = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { set_has_allocated_space_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &allocated_space_id_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:message.Parkspace_allocation_response_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_allocation_response_msg) return false; #undef DO_ } void Parkspace_allocation_response_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_allocation_response_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required int32 command_id = 2; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->error_manager_, output); } // required int32 allocated_space_id = 4; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->allocated_space_id(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_allocation_response_msg) } ::google::protobuf::uint8* Parkspace_allocation_response_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_allocation_response_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required int32 command_id = 2; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target); } // required .message.Error_manager error_manager = 3; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, *this->error_manager_, deterministic, target); } // required int32 allocated_space_id = 4; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->allocated_space_id(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_allocation_response_msg) return target; } size_t Parkspace_allocation_response_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_allocation_response_msg) size_t total_size = 0; if (has_base_info()) { // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } if (has_error_manager()) { // required .message.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } if (has_command_id()) { // required int32 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_id()); } if (has_allocated_space_id()) { // required int32 allocated_space_id = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->allocated_space_id()); } return total_size; } size_t Parkspace_allocation_response_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_allocation_response_msg) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present. // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); // required .message.Error_manager error_manager = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); // required int32 command_id = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->command_id()); // required int32 allocated_space_id = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->allocated_space_id()); } else { total_size += RequiredFieldsByteSizeFallback(); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Parkspace_allocation_response_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_allocation_response_msg) GOOGLE_DCHECK_NE(&from, this); const Parkspace_allocation_response_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_allocation_response_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_allocation_response_msg) MergeFrom(*source); } } void Parkspace_allocation_response_msg::MergeFrom(const Parkspace_allocation_response_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_allocation_response_msg) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 15u) { if (cached_has_bits & 0x00000001u) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000002u) { mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager()); } if (cached_has_bits & 0x00000004u) { command_id_ = from.command_id_; } if (cached_has_bits & 0x00000008u) { allocated_space_id_ = from.allocated_space_id_; } _has_bits_[0] |= cached_has_bits; } } void Parkspace_allocation_response_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_allocation_response_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_allocation_response_msg::CopyFrom(const Parkspace_allocation_response_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_allocation_response_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_allocation_response_msg::IsInitialized() const { if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } if (has_error_manager()) { if (!this->error_manager_->IsInitialized()) return false; } return true; } void Parkspace_allocation_response_msg::Swap(Parkspace_allocation_response_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_allocation_response_msg::InternalSwap(Parkspace_allocation_response_msg* other) { using std::swap; swap(base_info_, other->base_info_); swap(error_manager_, other->error_manager_); swap(command_id_, other->command_id_); swap(allocated_space_id_, other->allocated_space_id_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_allocation_response_msg::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Parkspace_allocation_status_msg::InitAsDefaultInstance() { ::message::_Parkspace_allocation_status_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>( ::message::Base_info::internal_default_instance()); ::message::_Parkspace_allocation_status_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>( ::message::Error_manager::internal_default_instance()); } void Parkspace_allocation_status_msg::clear_base_info() { if (base_info_ != NULL) base_info_->Clear(); clear_has_base_info(); } void Parkspace_allocation_status_msg::clear_error_manager() { if (error_manager_ != NULL) error_manager_->Clear(); clear_has_error_manager(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_allocation_status_msg::kBaseInfoFieldNumber; const int Parkspace_allocation_status_msg::kErrorManagerFieldNumber; const int Parkspace_allocation_status_msg::kParkspaceInfoFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_allocation_status_msg::Parkspace_allocation_status_msg() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_status_msg(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_allocation_status_msg) } Parkspace_allocation_status_msg::Parkspace_allocation_status_msg(const Parkspace_allocation_status_msg& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0), parkspace_info_(from.parkspace_info_) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_base_info()) { base_info_ = new ::message::Base_info(*from.base_info_); } else { base_info_ = NULL; } if (from.has_error_manager()) { error_manager_ = new ::message::Error_manager(*from.error_manager_); } else { error_manager_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Parkspace_allocation_status_msg) } void Parkspace_allocation_status_msg::SharedCtor() { _cached_size_ = 0; ::memset(&base_info_, 0, static_cast( reinterpret_cast(&error_manager_) - reinterpret_cast(&base_info_)) + sizeof(error_manager_)); } Parkspace_allocation_status_msg::~Parkspace_allocation_status_msg() { // @@protoc_insertion_point(destructor:message.Parkspace_allocation_status_msg) SharedDtor(); } void Parkspace_allocation_status_msg::SharedDtor() { if (this != internal_default_instance()) delete base_info_; if (this != internal_default_instance()) delete error_manager_; } void Parkspace_allocation_status_msg::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Parkspace_allocation_status_msg::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Parkspace_allocation_status_msg& Parkspace_allocation_status_msg::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_allocation_status_msg(); return *internal_default_instance(); } Parkspace_allocation_status_msg* Parkspace_allocation_status_msg::New(::google::protobuf::Arena* arena) const { Parkspace_allocation_status_msg* n = new Parkspace_allocation_status_msg; if (arena != NULL) { arena->Own(n); } return n; } void Parkspace_allocation_status_msg::Clear() { // @@protoc_insertion_point(message_clear_start:message.Parkspace_allocation_status_msg) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; parkspace_info_.Clear(); cached_has_bits = _has_bits_[0]; if (cached_has_bits & 3u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(base_info_ != NULL); base_info_->Clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(error_manager_ != NULL); error_manager_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_allocation_status_msg::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:message.Parkspace_allocation_status_msg) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required .message.Base_info base_info = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_base_info())); } else { goto handle_unusual; } break; } // required .message.Error_manager error_manager = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_error_manager())); } else { goto handle_unusual; } break; } // repeated .message.Parkspace_info parkspace_info = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_parkspace_info())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:message.Parkspace_allocation_status_msg) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_allocation_status_msg) return false; #undef DO_ } void Parkspace_allocation_status_msg::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_allocation_status_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->base_info_, output); } // required .message.Error_manager error_manager = 2; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, *this->error_manager_, output); } // repeated .message.Parkspace_info parkspace_info = 3; for (unsigned int i = 0, n = static_cast(this->parkspace_info_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, this->parkspace_info(static_cast(i)), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_allocation_status_msg) } ::google::protobuf::uint8* Parkspace_allocation_status_msg::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_allocation_status_msg) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Base_info base_info = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->base_info_, deterministic, target); } // required .message.Error_manager error_manager = 2; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, *this->error_manager_, deterministic, target); } // repeated .message.Parkspace_info parkspace_info = 3; for (unsigned int i = 0, n = static_cast(this->parkspace_info_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, this->parkspace_info(static_cast(i)), deterministic, target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_allocation_status_msg) return target; } size_t Parkspace_allocation_status_msg::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_allocation_status_msg) size_t total_size = 0; if (has_base_info()) { // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); } if (has_error_manager()) { // required .message.Error_manager error_manager = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } return total_size; } size_t Parkspace_allocation_status_msg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_allocation_status_msg) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. // required .message.Base_info base_info = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->base_info_); // required .message.Error_manager error_manager = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->error_manager_); } else { total_size += RequiredFieldsByteSizeFallback(); } // repeated .message.Parkspace_info parkspace_info = 3; { unsigned int count = static_cast(this->parkspace_info_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->parkspace_info(static_cast(i))); } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Parkspace_allocation_status_msg::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_allocation_status_msg) GOOGLE_DCHECK_NE(&from, this); const Parkspace_allocation_status_msg* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_allocation_status_msg) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_allocation_status_msg) MergeFrom(*source); } } void Parkspace_allocation_status_msg::MergeFrom(const Parkspace_allocation_status_msg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_allocation_status_msg) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; parkspace_info_.MergeFrom(from.parkspace_info_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 3u) { if (cached_has_bits & 0x00000001u) { mutable_base_info()->::message::Base_info::MergeFrom(from.base_info()); } if (cached_has_bits & 0x00000002u) { mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager()); } } } void Parkspace_allocation_status_msg::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_allocation_status_msg) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_allocation_status_msg::CopyFrom(const Parkspace_allocation_status_msg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_allocation_status_msg) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_allocation_status_msg::IsInitialized() const { if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; if (!::google::protobuf::internal::AllAreInitialized(this->parkspace_info())) return false; if (has_base_info()) { if (!this->base_info_->IsInitialized()) return false; } if (has_error_manager()) { if (!this->error_manager_->IsInitialized()) return false; } return true; } void Parkspace_allocation_status_msg::Swap(Parkspace_allocation_status_msg* other) { if (other == this) return; InternalSwap(other); } void Parkspace_allocation_status_msg::InternalSwap(Parkspace_allocation_status_msg* other) { using std::swap; parkspace_info_.InternalSwap(&other->parkspace_info_); swap(base_info_, other->base_info_); swap(error_manager_, other->error_manager_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_allocation_status_msg::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Parkspace_info::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Parkspace_info::kParkspaceIdFieldNumber; const int Parkspace_info::kXCoordinateFieldNumber; const int Parkspace_info::kYCoordinateFieldNumber; const int Parkspace_info::kZCoordinateFieldNumber; const int Parkspace_info::kLengthFieldNumber; const int Parkspace_info::kWidthFieldNumber; const int Parkspace_info::kHeightFieldNumber; const int Parkspace_info::kParkspaceStatusFieldNumber; const int Parkspace_info::kLicenseFieldNumber; const int Parkspace_info::kEntryTimeFieldNumber; const int Parkspace_info::kLeaveTimeFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Parkspace_info::Parkspace_info() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_info(); } SharedCtor(); // @@protoc_insertion_point(constructor:message.Parkspace_info) } Parkspace_info::Parkspace_info(const Parkspace_info& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); entry_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_entry_time()) { entry_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.entry_time_); } leave_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_leave_time()) { leave_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.leave_time_); } ::memcpy(&parkspace_id_, &from.parkspace_id_, static_cast(reinterpret_cast(&license_) - reinterpret_cast(&parkspace_id_)) + sizeof(license_)); // @@protoc_insertion_point(copy_constructor:message.Parkspace_info) } void Parkspace_info::SharedCtor() { _cached_size_ = 0; entry_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); leave_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&parkspace_id_, 0, static_cast( reinterpret_cast(&license_) - reinterpret_cast(&parkspace_id_)) + sizeof(license_)); } Parkspace_info::~Parkspace_info() { // @@protoc_insertion_point(destructor:message.Parkspace_info) SharedDtor(); } void Parkspace_info::SharedDtor() { entry_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); leave_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void Parkspace_info::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Parkspace_info::descriptor() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Parkspace_info& Parkspace_info::default_instance() { ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_info(); return *internal_default_instance(); } Parkspace_info* Parkspace_info::New(::google::protobuf::Arena* arena) const { Parkspace_info* n = new Parkspace_info; if (arena != NULL) { arena->Own(n); } return n; } void Parkspace_info::Clear() { // @@protoc_insertion_point(message_clear_start:message.Parkspace_info) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 3u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(!entry_time_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*entry_time_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(!leave_time_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*leave_time_.UnsafeRawStringPointer())->clear(); } } if (cached_has_bits & 252u) { ::memset(&parkspace_id_, 0, static_cast( reinterpret_cast(&width_) - reinterpret_cast(&parkspace_id_)) + sizeof(width_)); } if (cached_has_bits & 1792u) { ::memset(&height_, 0, static_cast( reinterpret_cast(&license_) - reinterpret_cast(&height_)) + sizeof(license_)); } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Parkspace_info::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:message.Parkspace_info) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required int32 parkspace_id = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { set_has_parkspace_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &parkspace_id_))); } else { goto handle_unusual; } break; } // required int32 x_coordinate = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_x_coordinate(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &x_coordinate_))); } else { goto handle_unusual; } break; } // required int32 y_coordinate = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { set_has_y_coordinate(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &y_coordinate_))); } else { goto handle_unusual; } break; } // required int32 z_coordinate = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { set_has_z_coordinate(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &z_coordinate_))); } else { goto handle_unusual; } break; } // required int32 length = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { set_has_length(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &length_))); } else { goto handle_unusual; } break; } // required int32 width = 6; case 6: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { set_has_width(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &width_))); } else { goto handle_unusual; } break; } // required int32 height = 7; case 7: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { set_has_height(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &height_))); } else { goto handle_unusual; } break; } // required .message.Parkspace_status parkspace_status = 8; case 8: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); if (::message::Parkspace_status_IsValid(value)) { set_parkspace_status(static_cast< ::message::Parkspace_status >(value)); } else { mutable_unknown_fields()->AddVarint( 8, static_cast< ::google::protobuf::uint64>(value)); } } else { goto handle_unusual; } break; } // optional int32 license = 9; case 9: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { set_has_license(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &license_))); } else { goto handle_unusual; } break; } // optional string entry_time = 10; case 10: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_entry_time())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->entry_time().data(), static_cast(this->entry_time().length()), ::google::protobuf::internal::WireFormat::PARSE, "message.Parkspace_info.entry_time"); } else { goto handle_unusual; } break; } // optional string leave_time = 11; case 11: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_leave_time())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->leave_time().data(), static_cast(this->leave_time().length()), ::google::protobuf::internal::WireFormat::PARSE, "message.Parkspace_info.leave_time"); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:message.Parkspace_info) return true; failure: // @@protoc_insertion_point(parse_failure:message.Parkspace_info) return false; #undef DO_ } void Parkspace_info::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Parkspace_info) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int32 parkspace_id = 1; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->parkspace_id(), output); } // required int32 x_coordinate = 2; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->x_coordinate(), output); } // required int32 y_coordinate = 3; if (cached_has_bits & 0x00000010u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->y_coordinate(), output); } // required int32 z_coordinate = 4; if (cached_has_bits & 0x00000020u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->z_coordinate(), output); } // required int32 length = 5; if (cached_has_bits & 0x00000040u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->length(), output); } // required int32 width = 6; if (cached_has_bits & 0x00000080u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->width(), output); } // required int32 height = 7; if (cached_has_bits & 0x00000100u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->height(), output); } // required .message.Parkspace_status parkspace_status = 8; if (cached_has_bits & 0x00000200u) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 8, this->parkspace_status(), output); } // optional int32 license = 9; if (cached_has_bits & 0x00000400u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->license(), output); } // optional string entry_time = 10; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->entry_time().data(), static_cast(this->entry_time().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_info.entry_time"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 10, this->entry_time(), output); } // optional string leave_time = 11; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->leave_time().data(), static_cast(this->leave_time().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_info.leave_time"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 11, this->leave_time(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Parkspace_info) } ::google::protobuf::uint8* Parkspace_info::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_info) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int32 parkspace_id = 1; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->parkspace_id(), target); } // required int32 x_coordinate = 2; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->x_coordinate(), target); } // required int32 y_coordinate = 3; if (cached_has_bits & 0x00000010u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->y_coordinate(), target); } // required int32 z_coordinate = 4; if (cached_has_bits & 0x00000020u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->z_coordinate(), target); } // required int32 length = 5; if (cached_has_bits & 0x00000040u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->length(), target); } // required int32 width = 6; if (cached_has_bits & 0x00000080u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->width(), target); } // required int32 height = 7; if (cached_has_bits & 0x00000100u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->height(), target); } // required .message.Parkspace_status parkspace_status = 8; if (cached_has_bits & 0x00000200u) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 8, this->parkspace_status(), target); } // optional int32 license = 9; if (cached_has_bits & 0x00000400u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->license(), target); } // optional string entry_time = 10; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->entry_time().data(), static_cast(this->entry_time().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_info.entry_time"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 10, this->entry_time(), target); } // optional string leave_time = 11; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->leave_time().data(), static_cast(this->leave_time().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Parkspace_info.leave_time"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 11, this->leave_time(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:message.Parkspace_info) return target; } size_t Parkspace_info::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_info) size_t total_size = 0; if (has_parkspace_id()) { // required int32 parkspace_id = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->parkspace_id()); } if (has_x_coordinate()) { // required int32 x_coordinate = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->x_coordinate()); } if (has_y_coordinate()) { // required int32 y_coordinate = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->y_coordinate()); } if (has_z_coordinate()) { // required int32 z_coordinate = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->z_coordinate()); } if (has_length()) { // required int32 length = 5; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->length()); } if (has_width()) { // required int32 width = 6; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->width()); } if (has_height()) { // required int32 height = 7; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->height()); } if (has_parkspace_status()) { // required .message.Parkspace_status parkspace_status = 8; total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkspace_status()); } return total_size; } size_t Parkspace_info::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Parkspace_info) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } if (((_has_bits_[0] & 0x000003fc) ^ 0x000003fc) == 0) { // All required fields are present. // required int32 parkspace_id = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->parkspace_id()); // required int32 x_coordinate = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->x_coordinate()); // required int32 y_coordinate = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->y_coordinate()); // required int32 z_coordinate = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->z_coordinate()); // required int32 length = 5; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->length()); // required int32 width = 6; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->width()); // required int32 height = 7; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->height()); // required .message.Parkspace_status parkspace_status = 8; total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkspace_status()); } else { total_size += RequiredFieldsByteSizeFallback(); } if (_has_bits_[0 / 32] & 3u) { // optional string entry_time = 10; if (has_entry_time()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->entry_time()); } // optional string leave_time = 11; if (has_leave_time()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->leave_time()); } } // optional int32 license = 9; if (has_license()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->license()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Parkspace_info::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_info) GOOGLE_DCHECK_NE(&from, this); const Parkspace_info* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_info) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_info) MergeFrom(*source); } } void Parkspace_info::MergeFrom(const Parkspace_info& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_info) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 255u) { if (cached_has_bits & 0x00000001u) { set_has_entry_time(); entry_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.entry_time_); } if (cached_has_bits & 0x00000002u) { set_has_leave_time(); leave_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.leave_time_); } if (cached_has_bits & 0x00000004u) { parkspace_id_ = from.parkspace_id_; } if (cached_has_bits & 0x00000008u) { x_coordinate_ = from.x_coordinate_; } if (cached_has_bits & 0x00000010u) { y_coordinate_ = from.y_coordinate_; } if (cached_has_bits & 0x00000020u) { z_coordinate_ = from.z_coordinate_; } if (cached_has_bits & 0x00000040u) { length_ = from.length_; } if (cached_has_bits & 0x00000080u) { width_ = from.width_; } _has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 1792u) { if (cached_has_bits & 0x00000100u) { height_ = from.height_; } if (cached_has_bits & 0x00000200u) { parkspace_status_ = from.parkspace_status_; } if (cached_has_bits & 0x00000400u) { license_ = from.license_; } _has_bits_[0] |= cached_has_bits; } } void Parkspace_info::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_info) if (&from == this) return; Clear(); MergeFrom(from); } void Parkspace_info::CopyFrom(const Parkspace_info& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_info) if (&from == this) return; Clear(); MergeFrom(from); } bool Parkspace_info::IsInitialized() const { if ((_has_bits_[0] & 0x000003fc) != 0x000003fc) return false; return true; } void Parkspace_info::Swap(Parkspace_info* other) { if (other == this) return; InternalSwap(other); } void Parkspace_info::InternalSwap(Parkspace_info* other) { using std::swap; entry_time_.Swap(&other->entry_time_); leave_time_.Swap(&other->leave_time_); swap(parkspace_id_, other->parkspace_id_); swap(x_coordinate_, other->x_coordinate_); swap(y_coordinate_, other->y_coordinate_); swap(z_coordinate_, other->z_coordinate_); swap(length_, other->length_); swap(width_, other->width_); swap(height_, other->height_); swap(parkspace_status_, other->parkspace_status_); swap(license_, other->license_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Parkspace_info::GetMetadata() const { protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages]; } // @@protoc_insertion_point(namespace_scope) } // namespace message // @@protoc_insertion_point(global_scope)