|
@@ -85,6 +85,11 @@ class Parkspace_allocation_data_msgDefaultTypeInternal {
|
|
|
::google::protobuf::internal::ExplicitlyConstructed<Parkspace_allocation_data_msg>
|
|
|
_instance;
|
|
|
} _Parkspace_allocation_data_msg_default_instance_;
|
|
|
+class Parkspace_remaining_number_msgDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<Parkspace_remaining_number_msg>
|
|
|
+ _instance;
|
|
|
+} _Parkspace_remaining_number_msg_default_instance_;
|
|
|
} // namespace message
|
|
|
namespace protobuf_parkspace_5fallocation_5fmessage_2eproto {
|
|
|
void InitDefaultsParkspace_allocation_request_msgImpl() {
|
|
@@ -391,7 +396,30 @@ void InitDefaultsParkspace_allocation_data_msg() {
|
|
|
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_allocation_data_msgImpl);
|
|
|
}
|
|
|
|
|
|
-::google::protobuf::Metadata file_level_metadata[13];
|
|
|
+void InitDefaultsParkspace_remaining_number_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_remaining_number_msg_default_instance_;
|
|
|
+ new (ptr) ::message::Parkspace_remaining_number_msg();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::message::Parkspace_remaining_number_msg::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+void InitDefaultsParkspace_remaining_number_msg() {
|
|
|
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_remaining_number_msgImpl);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata file_level_metadata[14];
|
|
|
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[3];
|
|
|
|
|
|
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
@@ -552,6 +580,23 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
0,
|
|
|
1,
|
|
|
~0u,
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_remaining_number_msg, _has_bits_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_remaining_number_msg, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_remaining_number_msg, base_info_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_remaining_number_msg, error_manager_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_remaining_number_msg, small_parkspace_remaining_number_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_remaining_number_msg, medium_parkspace_remaining_number_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_remaining_number_msg, large_parkspace_remaining_number_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_remaining_number_msg, total_parkspace_remaining_number_),
|
|
|
+ 0,
|
|
|
+ 1,
|
|
|
+ 2,
|
|
|
+ 3,
|
|
|
+ 4,
|
|
|
+ 5,
|
|
|
};
|
|
|
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
{ 0, 9, sizeof(::message::Parkspace_allocation_request_msg)},
|
|
@@ -567,6 +612,7 @@ static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROT
|
|
|
{ 126, 135, sizeof(::message::Parkspace_allocation_status_msg)},
|
|
|
{ 139, 145, sizeof(::message::Parkspace_refresh_request_msg)},
|
|
|
{ 146, 154, sizeof(::message::Parkspace_allocation_data_msg)},
|
|
|
+ { 157, 168, sizeof(::message::Parkspace_remaining_number_msg)},
|
|
|
};
|
|
|
|
|
|
static ::google::protobuf::Message const * const file_default_instances[] = {
|
|
@@ -583,6 +629,7 @@ static ::google::protobuf::Message const * const file_default_instances[] = {
|
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_allocation_status_msg_default_instance_),
|
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_refresh_request_msg_default_instance_),
|
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_allocation_data_msg_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Parkspace_remaining_number_msg_default_instance_),
|
|
|
};
|
|
|
|
|
|
void protobuf_AssignDescriptors() {
|
|
@@ -601,7 +648,7 @@ void protobuf_AssignDescriptorsOnce() {
|
|
|
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
|
|
|
void protobuf_RegisterTypes(const ::std::string&) {
|
|
|
protobuf_AssignDescriptorsOnce();
|
|
|
- ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 13);
|
|
|
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 14);
|
|
|
}
|
|
|
|
|
|
void AddDescriptorsImpl() {
|
|
@@ -667,19 +714,26 @@ void AddDescriptorsImpl() {
|
|
|
"info\030\001 \002(\0132\022.message.Base_info\022-\n\rerror_"
|
|
|
"manager\030\002 \002(\0132\026.message.Error_manager\022/\n"
|
|
|
"\016parkspace_info\030\003 \003(\0132\027.message.Parkspac"
|
|
|
- "e_info*\225\001\n\016Vehicle_status\022\021\n\reVehicle_id"
|
|
|
- "le\020\000\022\026\n\022eVehicle_in_garage\020\001\022\024\n\020eVehicle"
|
|
|
- "_parking\020\002\022\025\n\021eVehicle_fetching\020\003\022\025\n\021eVe"
|
|
|
- "hicle_reserved\020\004\022\024\n\020eVehicle_unknown\020\005*W"
|
|
|
- "\n\032Database_controller_status\022\r\n\tE_UNKNOW"
|
|
|
- "N\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\032eP"
|
|
|
- "arkspace_manager_unknown\020\000\022\035\n\031eParkspace"
|
|
|
- "_manager_normal\020\001\022\034\n\030eParkspace_manager_"
|
|
|
- "fault\020\002"
|
|
|
+ "e_info\"\237\002\n\036Parkspace_remaining_number_ms"
|
|
|
+ "g\022%\n\tbase_info\030\001 \002(\0132\022.message.Base_info"
|
|
|
+ "\022-\n\rerror_manager\030\002 \002(\0132\026.message.Error_"
|
|
|
+ "manager\022(\n small_parkspace_remaining_num"
|
|
|
+ "ber\030\003 \002(\005\022)\n!medium_parkspace_remaining_"
|
|
|
+ "number\030\004 \002(\005\022(\n large_parkspace_remainin"
|
|
|
+ "g_number\030\005 \002(\005\022(\n total_parkspace_remain"
|
|
|
+ "ing_number\030\006 \002(\005*\225\001\n\016Vehicle_status\022\021\n\re"
|
|
|
+ "Vehicle_idle\020\000\022\026\n\022eVehicle_in_garage\020\001\022\024"
|
|
|
+ "\n\020eVehicle_parking\020\002\022\025\n\021eVehicle_fetchin"
|
|
|
+ "g\020\003\022\025\n\021eVehicle_reserved\020\004\022\024\n\020eVehicle_u"
|
|
|
+ "nknown\020\005*W\n\032Database_controller_status\022\r"
|
|
|
+ "\n\tE_UNKNOWN\020\000\022\013\n\007E_READY\020\001\022\020\n\014E_DISCONNE"
|
|
|
+ "CT\020\002\022\013\n\007E_FAULT\020\003*v\n\027Parkspace_manager_s"
|
|
|
+ "atus\022\036\n\032eParkspace_manager_unknown\020\000\022\035\n\031"
|
|
|
+ "eParkspace_manager_normal\020\001\022\034\n\030eParkspac"
|
|
|
+ "e_manager_fault\020\002"
|
|
|
};
|
|
|
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
|
|
- descriptor, 2767);
|
|
|
+ descriptor, 3057);
|
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
|
|
"parkspace_allocation_message.proto", &protobuf_RegisterTypes);
|
|
|
::protobuf_message_5fbase_2eproto::AddDescriptors();
|
|
@@ -6363,6 +6417,525 @@ void Parkspace_allocation_data_msg::InternalSwap(Parkspace_allocation_data_msg*
|
|
|
}
|
|
|
|
|
|
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void Parkspace_remaining_number_msg::InitAsDefaultInstance() {
|
|
|
+ ::message::_Parkspace_remaining_number_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
|
|
|
+ ::message::Base_info::internal_default_instance());
|
|
|
+ ::message::_Parkspace_remaining_number_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
|
|
|
+ ::message::Error_manager::internal_default_instance());
|
|
|
+}
|
|
|
+void Parkspace_remaining_number_msg::clear_base_info() {
|
|
|
+ if (base_info_ != NULL) base_info_->Clear();
|
|
|
+ clear_has_base_info();
|
|
|
+}
|
|
|
+void Parkspace_remaining_number_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_remaining_number_msg::kBaseInfoFieldNumber;
|
|
|
+const int Parkspace_remaining_number_msg::kErrorManagerFieldNumber;
|
|
|
+const int Parkspace_remaining_number_msg::kSmallParkspaceRemainingNumberFieldNumber;
|
|
|
+const int Parkspace_remaining_number_msg::kMediumParkspaceRemainingNumberFieldNumber;
|
|
|
+const int Parkspace_remaining_number_msg::kLargeParkspaceRemainingNumberFieldNumber;
|
|
|
+const int Parkspace_remaining_number_msg::kTotalParkspaceRemainingNumberFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+Parkspace_remaining_number_msg::Parkspace_remaining_number_msg()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
+ ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_remaining_number_msg();
|
|
|
+ }
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:message.Parkspace_remaining_number_msg)
|
|
|
+}
|
|
|
+Parkspace_remaining_number_msg::Parkspace_remaining_number_msg(const Parkspace_remaining_number_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(&small_parkspace_remaining_number_, &from.small_parkspace_remaining_number_,
|
|
|
+ static_cast<size_t>(reinterpret_cast<char*>(&total_parkspace_remaining_number_) -
|
|
|
+ reinterpret_cast<char*>(&small_parkspace_remaining_number_)) + sizeof(total_parkspace_remaining_number_));
|
|
|
+ // @@protoc_insertion_point(copy_constructor:message.Parkspace_remaining_number_msg)
|
|
|
+}
|
|
|
+
|
|
|
+void Parkspace_remaining_number_msg::SharedCtor() {
|
|
|
+ _cached_size_ = 0;
|
|
|
+ ::memset(&base_info_, 0, static_cast<size_t>(
|
|
|
+ reinterpret_cast<char*>(&total_parkspace_remaining_number_) -
|
|
|
+ reinterpret_cast<char*>(&base_info_)) + sizeof(total_parkspace_remaining_number_));
|
|
|
+}
|
|
|
+
|
|
|
+Parkspace_remaining_number_msg::~Parkspace_remaining_number_msg() {
|
|
|
+ // @@protoc_insertion_point(destructor:message.Parkspace_remaining_number_msg)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void Parkspace_remaining_number_msg::SharedDtor() {
|
|
|
+ if (this != internal_default_instance()) delete base_info_;
|
|
|
+ if (this != internal_default_instance()) delete error_manager_;
|
|
|
+}
|
|
|
+
|
|
|
+void Parkspace_remaining_number_msg::SetCachedSize(int size) const {
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
+ _cached_size_ = size;
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* Parkspace_remaining_number_msg::descriptor() {
|
|
|
+ ::protobuf_parkspace_5fallocation_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_parkspace_5fallocation_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const Parkspace_remaining_number_msg& Parkspace_remaining_number_msg::default_instance() {
|
|
|
+ ::protobuf_parkspace_5fallocation_5fmessage_2eproto::InitDefaultsParkspace_remaining_number_msg();
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+Parkspace_remaining_number_msg* Parkspace_remaining_number_msg::New(::google::protobuf::Arena* arena) const {
|
|
|
+ Parkspace_remaining_number_msg* n = new Parkspace_remaining_number_msg;
|
|
|
+ if (arena != NULL) {
|
|
|
+ arena->Own(n);
|
|
|
+ }
|
|
|
+ return n;
|
|
|
+}
|
|
|
+
|
|
|
+void Parkspace_remaining_number_msg::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:message.Parkspace_remaining_number_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 & 60u) {
|
|
|
+ ::memset(&small_parkspace_remaining_number_, 0, static_cast<size_t>(
|
|
|
+ reinterpret_cast<char*>(&total_parkspace_remaining_number_) -
|
|
|
+ reinterpret_cast<char*>(&small_parkspace_remaining_number_)) + sizeof(total_parkspace_remaining_number_));
|
|
|
+ }
|
|
|
+ _has_bits_.Clear();
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool Parkspace_remaining_number_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_remaining_number_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 int32 small_parkspace_remaining_number = 3;
|
|
|
+ case 3: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 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 = 4;
|
|
|
+ case 4: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(32u /* 32 & 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 = 5;
|
|
|
+ case 5: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(40u /* 40 & 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 = 6;
|
|
|
+ case 6: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(48u /* 48 & 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_remaining_number_msg)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:message.Parkspace_remaining_number_msg)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void Parkspace_remaining_number_msg::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:message.Parkspace_remaining_number_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 int32 small_parkspace_remaining_number = 3;
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->small_parkspace_remaining_number(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ // required int32 medium_parkspace_remaining_number = 4;
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->medium_parkspace_remaining_number(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ // required int32 large_parkspace_remaining_number = 5;
|
|
|
+ if (cached_has_bits & 0x00000010u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->large_parkspace_remaining_number(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ // required int32 total_parkspace_remaining_number = 6;
|
|
|
+ if (cached_has_bits & 0x00000020u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(6, 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_remaining_number_msg)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* Parkspace_remaining_number_msg::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:message.Parkspace_remaining_number_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 int32 small_parkspace_remaining_number = 3;
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->small_parkspace_remaining_number(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // required int32 medium_parkspace_remaining_number = 4;
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->medium_parkspace_remaining_number(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // required int32 large_parkspace_remaining_number = 5;
|
|
|
+ if (cached_has_bits & 0x00000010u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->large_parkspace_remaining_number(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // required int32 total_parkspace_remaining_number = 6;
|
|
|
+ if (cached_has_bits & 0x00000020u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, 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_remaining_number_msg)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t Parkspace_remaining_number_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
+// @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Parkspace_remaining_number_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_small_parkspace_remaining_number()) {
|
|
|
+ // required int32 small_parkspace_remaining_number = 3;
|
|
|
+ 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 = 4;
|
|
|
+ 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 = 5;
|
|
|
+ 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 = 6;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
+ this->total_parkspace_remaining_number());
|
|
|
+ }
|
|
|
+
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+size_t Parkspace_remaining_number_msg::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:message.Parkspace_remaining_number_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] & 0x0000003f) ^ 0x0000003f) == 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 int32 small_parkspace_remaining_number = 3;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
+ this->small_parkspace_remaining_number());
|
|
|
+
|
|
|
+ // required int32 medium_parkspace_remaining_number = 4;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
+ this->medium_parkspace_remaining_number());
|
|
|
+
|
|
|
+ // required int32 large_parkspace_remaining_number = 5;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
+ this->large_parkspace_remaining_number());
|
|
|
+
|
|
|
+ // required int32 total_parkspace_remaining_number = 6;
|
|
|
+ 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_remaining_number_msg::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:message.Parkspace_remaining_number_msg)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const Parkspace_remaining_number_msg* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const Parkspace_remaining_number_msg>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Parkspace_remaining_number_msg)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Parkspace_remaining_number_msg)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void Parkspace_remaining_number_msg::MergeFrom(const Parkspace_remaining_number_msg& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:message.Parkspace_remaining_number_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 & 63u) {
|
|
|
+ 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) {
|
|
|
+ small_parkspace_remaining_number_ = from.small_parkspace_remaining_number_;
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
+ medium_parkspace_remaining_number_ = from.medium_parkspace_remaining_number_;
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000010u) {
|
|
|
+ large_parkspace_remaining_number_ = from.large_parkspace_remaining_number_;
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000020u) {
|
|
|
+ total_parkspace_remaining_number_ = from.total_parkspace_remaining_number_;
|
|
|
+ }
|
|
|
+ _has_bits_[0] |= cached_has_bits;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void Parkspace_remaining_number_msg::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:message.Parkspace_remaining_number_msg)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void Parkspace_remaining_number_msg::CopyFrom(const Parkspace_remaining_number_msg& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:message.Parkspace_remaining_number_msg)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool Parkspace_remaining_number_msg::IsInitialized() const {
|
|
|
+ if ((_has_bits_[0] & 0x0000003f) != 0x0000003f) 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_remaining_number_msg::Swap(Parkspace_remaining_number_msg* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void Parkspace_remaining_number_msg::InternalSwap(Parkspace_remaining_number_msg* other) {
|
|
|
+ using std::swap;
|
|
|
+ swap(base_info_, other->base_info_);
|
|
|
+ swap(error_manager_, other->error_manager_);
|
|
|
+ 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_remaining_number_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
|
|
|
|