|
@@ -76,6 +76,7 @@ void InitDefaultsParkspace_allocation_request_msgImpl() {
|
|
|
::google::protobuf::internal::InitProtobufDefaults();
|
|
|
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
|
|
|
+ protobuf_message_5fbase_2eproto::InitDefaultsCommand_info();
|
|
|
protobuf_message_5fbase_2eproto::InitDefaultsCar_info();
|
|
|
{
|
|
|
void* ptr = &::message::_Parkspace_allocation_request_msg_default_instance_;
|
|
@@ -99,6 +100,7 @@ void InitDefaultsParkspace_allocation_response_msgImpl() {
|
|
|
::google::protobuf::internal::InitProtobufDefaults();
|
|
|
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
|
|
|
+ protobuf_message_5fbase_2eproto::InitDefaultsCommand_info();
|
|
|
protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
|
|
|
protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info();
|
|
|
{
|
|
@@ -123,6 +125,7 @@ void InitDefaultsParkspace_search_request_msgImpl() {
|
|
|
::google::protobuf::internal::InitProtobufDefaults();
|
|
|
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
|
|
|
+ protobuf_message_5fbase_2eproto::InitDefaultsCommand_info();
|
|
|
protobuf_message_5fbase_2eproto::InitDefaultsCar_info();
|
|
|
{
|
|
|
void* ptr = &::message::_Parkspace_search_request_msg_default_instance_;
|
|
@@ -293,12 +296,12 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
~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, command_info_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, car_info_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_request_msg, terminal_id_),
|
|
|
0,
|
|
|
- 2,
|
|
|
1,
|
|
|
+ 2,
|
|
|
3,
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, _has_bits_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, _internal_metadata_),
|
|
@@ -306,24 +309,24 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
~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, command_info_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, error_manager_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_allocation_response_msg, allocated_space_info_),
|
|
|
0,
|
|
|
- 3,
|
|
|
1,
|
|
|
2,
|
|
|
+ 3,
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, _has_bits_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, _internal_metadata_),
|
|
|
~0u, // no _extensions_
|
|
|
~0u, // no _oneof_case_
|
|
|
~0u, // no _weak_field_map_
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, base_info_),
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, command_id_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, command_info_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_request_msg, car_info_),
|
|
|
0,
|
|
|
- 2,
|
|
|
1,
|
|
|
+ 2,
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, _has_bits_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Parkspace_search_response_msg, _internal_metadata_),
|
|
|
~0u, // no _extensions_
|
|
@@ -444,52 +447,54 @@ 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\"\227\001\n Parkspace_"
|
|
|
+ "ssage\032\022message_base.proto\"\260\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#\n\010car_info\030\003 \002(\0132\021.message.Car_info\022\023"
|
|
|
- "\n\013terminal_id\030\004 \002(\005\"\304\001\n!Parkspace_alloca"
|
|
|
- "tion_response_msg\022%\n\tbase_info\030\001 \002(\0132\022.m"
|
|
|
- "essage.Base_info\022\022\n\ncommand_id\030\002 \002(\005\022-\n\r"
|
|
|
- "error_manager\030\003 \002(\0132\026.message.Error_mana"
|
|
|
- "ger\0225\n\024allocated_space_info\030\004 \002(\0132\027.mess"
|
|
|
- "age.Parkspace_info\"~\n\034Parkspace_search_r"
|
|
|
- "equest_msg\022%\n\tbase_info\030\001 \002(\0132\022.message."
|
|
|
- "Base_info\022\022\n\ncommand_id\030\002 \002(\005\022#\n\010car_inf"
|
|
|
- "o\030\003 \002(\0132\021.message.Car_info\"\321\001\n\035Parkspace"
|
|
|
- "_search_response_msg\022%\n\tbase_info\030\001 \002(\0132"
|
|
|
- "\022.message.Base_info\022+\n\014command_info\030\002 \002("
|
|
|
- "\0132\025.message.Command_info\022-\n\rerror_manage"
|
|
|
- "r\030\003 \002(\0132\026.message.Error_manager\022-\n\014car_p"
|
|
|
- "osition\030\004 \001(\0132\027.message.Parkspace_info\"\250"
|
|
|
- "\001\n\035Parkspace_release_request_msg\022%\n\tbase"
|
|
|
- "_info\030\001 \002(\0132\022.message.Base_info\022+\n\014comma"
|
|
|
- "nd_info\030\002 \002(\0132\025.message.Command_info\0223\n\022"
|
|
|
- "release_space_info\030\003 \002(\0132\027.message.Parks"
|
|
|
- "pace_info\"\330\001\n\036Parkspace_release_response"
|
|
|
- "_msg\022%\n\tbase_info\030\001 \002(\0132\022.message.Base_i"
|
|
|
- "nfo\022+\n\014command_info\030\002 \002(\0132\025.message.Comm"
|
|
|
- "and_info\022-\n\rerror_manager\030\003 \002(\0132\026.messag"
|
|
|
- "e.Error_manager\0223\n\022release_space_info\030\004 "
|
|
|
- "\002(\0132\027.message.Parkspace_info\"\256\001\n#Parkspa"
|
|
|
- "ce_confirm_alloc_request_msg\022%\n\tbase_inf"
|
|
|
+ "\0132\022.message.Base_info\022+\n\014command_info\030\002 "
|
|
|
+ "\002(\0132\025.message.Command_info\022#\n\010car_info\030\003"
|
|
|
+ " \002(\0132\021.message.Car_info\022\023\n\013terminal_id\030\004"
|
|
|
+ " \002(\005\"\335\001\n!Parkspace_allocation_response_m"
|
|
|
+ "sg\022%\n\tbase_info\030\001 \002(\0132\022.message.Base_inf"
|
|
|
+ "o\022+\n\014command_info\030\002 \002(\0132\025.message.Comman"
|
|
|
+ "d_info\022-\n\rerror_manager\030\003 \002(\0132\026.message."
|
|
|
+ "Error_manager\0225\n\024allocated_space_info\030\004 "
|
|
|
+ "\002(\0132\027.message.Parkspace_info\"\227\001\n\034Parkspa"
|
|
|
+ "ce_search_request_msg\022%\n\tbase_info\030\001 \002(\013"
|
|
|
+ "2\022.message.Base_info\022+\n\014command_info\030\002 \002"
|
|
|
+ "(\0132\025.message.Command_info\022#\n\010car_info\030\003 "
|
|
|
+ "\002(\0132\021.message.Car_info\"\321\001\n\035Parkspace_sea"
|
|
|
+ "rch_response_msg\022%\n\tbase_info\030\001 \002(\0132\022.me"
|
|
|
+ "ssage.Base_info\022+\n\014command_info\030\002 \002(\0132\025."
|
|
|
+ "message.Command_info\022-\n\rerror_manager\030\003 "
|
|
|
+ "\002(\0132\026.message.Error_manager\022-\n\014car_posit"
|
|
|
+ "ion\030\004 \001(\0132\027.message.Parkspace_info\"\250\001\n\035P"
|
|
|
+ "arkspace_release_request_msg\022%\n\tbase_inf"
|
|
|
"o\030\001 \002(\0132\022.message.Base_info\022+\n\014command_i"
|
|
|
- "nfo\030\002 \002(\0132\025.message.Command_info\0223\n\022conf"
|
|
|
- "irm_space_info\030\003 \002(\0132\027.message.Parkspace"
|
|
|
- "_info\"\344\001\n$Parkspace_confirm_alloc_respon"
|
|
|
- "se_msg\022%\n\tbase_info\030\001 \002(\0132\022.message.Base"
|
|
|
- "_info\022+\n\014command_info\030\002 \002(\0132\025.message.Co"
|
|
|
- "mmand_info\022-\n\rerror_manager\030\003 \002(\0132\026.mess"
|
|
|
- "age.Error_manager\0229\n\030confirm_alloc_space"
|
|
|
- "_info\030\004 \002(\0132\027.message.Parkspace_info\"\250\001\n"
|
|
|
- "\037Parkspace_allocation_status_msg\022%\n\tbase"
|
|
|
- "_info\030\001 \002(\0132\022.message.Base_info\022-\n\rerror"
|
|
|
- "_manager\030\002 \002(\0132\026.message.Error_manager\022/"
|
|
|
- "\n\016parkspace_info\030\003 \003(\0132\027.message.Parkspa"
|
|
|
- "ce_info"
|
|
|
+ "nfo\030\002 \002(\0132\025.message.Command_info\0223\n\022rele"
|
|
|
+ "ase_space_info\030\003 \002(\0132\027.message.Parkspace"
|
|
|
+ "_info\"\330\001\n\036Parkspace_release_response_msg"
|
|
|
+ "\022%\n\tbase_info\030\001 \002(\0132\022.message.Base_info\022"
|
|
|
+ "+\n\014command_info\030\002 \002(\0132\025.message.Command_"
|
|
|
+ "info\022-\n\rerror_manager\030\003 \002(\0132\026.message.Er"
|
|
|
+ "ror_manager\0223\n\022release_space_info\030\004 \002(\0132"
|
|
|
+ "\027.message.Parkspace_info\"\256\001\n#Parkspace_c"
|
|
|
+ "onfirm_alloc_request_msg\022%\n\tbase_info\030\001 "
|
|
|
+ "\002(\0132\022.message.Base_info\022+\n\014command_info\030"
|
|
|
+ "\002 \002(\0132\025.message.Command_info\0223\n\022confirm_"
|
|
|
+ "space_info\030\003 \002(\0132\027.message.Parkspace_inf"
|
|
|
+ "o\"\344\001\n$Parkspace_confirm_alloc_response_m"
|
|
|
+ "sg\022%\n\tbase_info\030\001 \002(\0132\022.message.Base_inf"
|
|
|
+ "o\022+\n\014command_info\030\002 \002(\0132\025.message.Comman"
|
|
|
+ "d_info\022-\n\rerror_manager\030\003 \002(\0132\026.message."
|
|
|
+ "Error_manager\0229\n\030confirm_alloc_space_inf"
|
|
|
+ "o\030\004 \002(\0132\027.message.Parkspace_info\"\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"
|
|
|
};
|
|
|
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
|
|
- descriptor, 1727);
|
|
|
+ descriptor, 1803);
|
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
|
|
"parkspace_allocation_message.proto", &protobuf_RegisterTypes);
|
|
|
::protobuf_message_5fbase_2eproto::AddDescriptors();
|
|
@@ -513,6 +518,8 @@ namespace message {
|
|
|
void Parkspace_allocation_request_msg::InitAsDefaultInstance() {
|
|
|
::message::_Parkspace_allocation_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
|
|
|
::message::Base_info::internal_default_instance());
|
|
|
+ ::message::_Parkspace_allocation_request_msg_default_instance_._instance.get_mutable()->command_info_ = const_cast< ::message::Command_info*>(
|
|
|
+ ::message::Command_info::internal_default_instance());
|
|
|
::message::_Parkspace_allocation_request_msg_default_instance_._instance.get_mutable()->car_info_ = const_cast< ::message::Car_info*>(
|
|
|
::message::Car_info::internal_default_instance());
|
|
|
}
|
|
@@ -520,13 +527,17 @@ void Parkspace_allocation_request_msg::clear_base_info() {
|
|
|
if (base_info_ != NULL) base_info_->Clear();
|
|
|
clear_has_base_info();
|
|
|
}
|
|
|
+void Parkspace_allocation_request_msg::clear_command_info() {
|
|
|
+ if (command_info_ != NULL) command_info_->Clear();
|
|
|
+ clear_has_command_info();
|
|
|
+}
|
|
|
void Parkspace_allocation_request_msg::clear_car_info() {
|
|
|
if (car_info_ != NULL) car_info_->Clear();
|
|
|
clear_has_car_info();
|
|
|
}
|
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
const int Parkspace_allocation_request_msg::kBaseInfoFieldNumber;
|
|
|
-const int Parkspace_allocation_request_msg::kCommandIdFieldNumber;
|
|
|
+const int Parkspace_allocation_request_msg::kCommandInfoFieldNumber;
|
|
|
const int Parkspace_allocation_request_msg::kCarInfoFieldNumber;
|
|
|
const int Parkspace_allocation_request_msg::kTerminalIdFieldNumber;
|
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
@@ -550,14 +561,17 @@ Parkspace_allocation_request_msg::Parkspace_allocation_request_msg(const Parkspa
|
|
|
} else {
|
|
|
base_info_ = NULL;
|
|
|
}
|
|
|
+ if (from.has_command_info()) {
|
|
|
+ command_info_ = new ::message::Command_info(*from.command_info_);
|
|
|
+ } else {
|
|
|
+ command_info_ = NULL;
|
|
|
+ }
|
|
|
if (from.has_car_info()) {
|
|
|
car_info_ = new ::message::Car_info(*from.car_info_);
|
|
|
} else {
|
|
|
car_info_ = NULL;
|
|
|
}
|
|
|
- ::memcpy(&command_id_, &from.command_id_,
|
|
|
- static_cast<size_t>(reinterpret_cast<char*>(&terminal_id_) -
|
|
|
- reinterpret_cast<char*>(&command_id_)) + sizeof(terminal_id_));
|
|
|
+ terminal_id_ = from.terminal_id_;
|
|
|
// @@protoc_insertion_point(copy_constructor:message.Parkspace_allocation_request_msg)
|
|
|
}
|
|
|
|
|
@@ -575,6 +589,7 @@ Parkspace_allocation_request_msg::~Parkspace_allocation_request_msg() {
|
|
|
|
|
|
void Parkspace_allocation_request_msg::SharedDtor() {
|
|
|
if (this != internal_default_instance()) delete base_info_;
|
|
|
+ if (this != internal_default_instance()) delete command_info_;
|
|
|
if (this != internal_default_instance()) delete car_info_;
|
|
|
}
|
|
|
|
|
@@ -608,21 +623,21 @@ void Parkspace_allocation_request_msg::Clear() {
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
- if (cached_has_bits & 3u) {
|
|
|
+ if (cached_has_bits & 7u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
GOOGLE_DCHECK(base_info_ != NULL);
|
|
|
base_info_->Clear();
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
+ GOOGLE_DCHECK(command_info_ != NULL);
|
|
|
+ command_info_->Clear();
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
GOOGLE_DCHECK(car_info_ != NULL);
|
|
|
car_info_->Clear();
|
|
|
}
|
|
|
}
|
|
|
- if (cached_has_bits & 12u) {
|
|
|
- ::memset(&command_id_, 0, static_cast<size_t>(
|
|
|
- reinterpret_cast<char*>(&terminal_id_) -
|
|
|
- reinterpret_cast<char*>(&command_id_)) + sizeof(terminal_id_));
|
|
|
- }
|
|
|
+ terminal_id_ = 0;
|
|
|
_has_bits_.Clear();
|
|
|
_internal_metadata_.Clear();
|
|
|
}
|
|
@@ -649,14 +664,12 @@ bool Parkspace_allocation_request_msg::MergePartialFromCodedStream(
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- // required int32 command_id = 2;
|
|
|
+ // required .message.Command_info command_info = 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_)));
|
|
|
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
|
+ input, mutable_command_info()));
|
|
|
} else {
|
|
|
goto handle_unusual;
|
|
|
}
|
|
@@ -722,13 +735,14 @@ void Parkspace_allocation_request_msg::SerializeWithCachedSizes(
|
|
|
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.Command_info command_info = 2;
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
+ 2, *this->command_info_, output);
|
|
|
}
|
|
|
|
|
|
// required .message.Car_info car_info = 3;
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
3, *this->car_info_, output);
|
|
|
}
|
|
@@ -760,13 +774,15 @@ void Parkspace_allocation_request_msg::SerializeWithCachedSizes(
|
|
|
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.Command_info command_info = 2;
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::
|
|
|
+ InternalWriteMessageToArray(
|
|
|
+ 2, *this->command_info_, deterministic, target);
|
|
|
}
|
|
|
|
|
|
// required .message.Car_info car_info = 3;
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
3, *this->car_info_, deterministic, target);
|
|
@@ -796,18 +812,18 @@ size_t Parkspace_allocation_request_msg::RequiredFieldsByteSizeFallback() const
|
|
|
*this->base_info_);
|
|
|
}
|
|
|
|
|
|
- if (has_car_info()) {
|
|
|
- // required .message.Car_info car_info = 3;
|
|
|
+ if (has_command_info()) {
|
|
|
+ // required .message.Command_info command_info = 2;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->car_info_);
|
|
|
+ *this->command_info_);
|
|
|
}
|
|
|
|
|
|
- if (has_command_id()) {
|
|
|
- // required int32 command_id = 2;
|
|
|
+ if (has_car_info()) {
|
|
|
+ // required .message.Car_info car_info = 3;
|
|
|
total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
- this->command_id());
|
|
|
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
+ *this->car_info_);
|
|
|
}
|
|
|
|
|
|
if (has_terminal_id()) {
|
|
@@ -834,15 +850,15 @@ size_t Parkspace_allocation_request_msg::ByteSizeLong() const {
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
*this->base_info_);
|
|
|
|
|
|
- // required .message.Car_info car_info = 3;
|
|
|
+ // required .message.Command_info command_info = 2;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->car_info_);
|
|
|
+ *this->command_info_);
|
|
|
|
|
|
- // required int32 command_id = 2;
|
|
|
+ // required .message.Car_info car_info = 3;
|
|
|
total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
- this->command_id());
|
|
|
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
+ *this->car_info_);
|
|
|
|
|
|
// required int32 terminal_id = 4;
|
|
|
total_size += 1 +
|
|
@@ -887,10 +903,10 @@ void Parkspace_allocation_request_msg::MergeFrom(const Parkspace_allocation_requ
|
|
|
mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
- mutable_car_info()->::message::Car_info::MergeFrom(from.car_info());
|
|
|
+ mutable_command_info()->::message::Command_info::MergeFrom(from.command_info());
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
- command_id_ = from.command_id_;
|
|
|
+ mutable_car_info()->::message::Car_info::MergeFrom(from.car_info());
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000008u) {
|
|
|
terminal_id_ = from.terminal_id_;
|
|
@@ -918,6 +934,9 @@ bool Parkspace_allocation_request_msg::IsInitialized() const {
|
|
|
if (has_base_info()) {
|
|
|
if (!this->base_info_->IsInitialized()) return false;
|
|
|
}
|
|
|
+ if (has_command_info()) {
|
|
|
+ if (!this->command_info_->IsInitialized()) return false;
|
|
|
+ }
|
|
|
return true;
|
|
|
}
|
|
|
|
|
@@ -928,8 +947,8 @@ void Parkspace_allocation_request_msg::Swap(Parkspace_allocation_request_msg* ot
|
|
|
void Parkspace_allocation_request_msg::InternalSwap(Parkspace_allocation_request_msg* other) {
|
|
|
using std::swap;
|
|
|
swap(base_info_, other->base_info_);
|
|
|
+ swap(command_info_, other->command_info_);
|
|
|
swap(car_info_, other->car_info_);
|
|
|
- swap(command_id_, other->command_id_);
|
|
|
swap(terminal_id_, other->terminal_id_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
@@ -947,6 +966,8 @@ void Parkspace_allocation_request_msg::InternalSwap(Parkspace_allocation_request
|
|
|
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()->command_info_ = const_cast< ::message::Command_info*>(
|
|
|
+ ::message::Command_info::internal_default_instance());
|
|
|
::message::_Parkspace_allocation_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
|
|
|
::message::Error_manager::internal_default_instance());
|
|
|
::message::_Parkspace_allocation_response_msg_default_instance_._instance.get_mutable()->allocated_space_info_ = const_cast< ::message::Parkspace_info*>(
|
|
@@ -956,6 +977,10 @@ 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_command_info() {
|
|
|
+ if (command_info_ != NULL) command_info_->Clear();
|
|
|
+ clear_has_command_info();
|
|
|
+}
|
|
|
void Parkspace_allocation_response_msg::clear_error_manager() {
|
|
|
if (error_manager_ != NULL) error_manager_->Clear();
|
|
|
clear_has_error_manager();
|
|
@@ -966,7 +991,7 @@ void Parkspace_allocation_response_msg::clear_allocated_space_info() {
|
|
|
}
|
|
|
#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::kCommandInfoFieldNumber;
|
|
|
const int Parkspace_allocation_response_msg::kErrorManagerFieldNumber;
|
|
|
const int Parkspace_allocation_response_msg::kAllocatedSpaceInfoFieldNumber;
|
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
@@ -990,6 +1015,11 @@ Parkspace_allocation_response_msg::Parkspace_allocation_response_msg(const Parks
|
|
|
} else {
|
|
|
base_info_ = NULL;
|
|
|
}
|
|
|
+ if (from.has_command_info()) {
|
|
|
+ command_info_ = new ::message::Command_info(*from.command_info_);
|
|
|
+ } else {
|
|
|
+ command_info_ = NULL;
|
|
|
+ }
|
|
|
if (from.has_error_manager()) {
|
|
|
error_manager_ = new ::message::Error_manager(*from.error_manager_);
|
|
|
} else {
|
|
@@ -1000,15 +1030,14 @@ Parkspace_allocation_response_msg::Parkspace_allocation_response_msg(const Parks
|
|
|
} else {
|
|
|
allocated_space_info_ = NULL;
|
|
|
}
|
|
|
- command_id_ = from.command_id_;
|
|
|
// @@protoc_insertion_point(copy_constructor:message.Parkspace_allocation_response_msg)
|
|
|
}
|
|
|
|
|
|
void Parkspace_allocation_response_msg::SharedCtor() {
|
|
|
_cached_size_ = 0;
|
|
|
::memset(&base_info_, 0, static_cast<size_t>(
|
|
|
- reinterpret_cast<char*>(&command_id_) -
|
|
|
- reinterpret_cast<char*>(&base_info_)) + sizeof(command_id_));
|
|
|
+ reinterpret_cast<char*>(&allocated_space_info_) -
|
|
|
+ reinterpret_cast<char*>(&base_info_)) + sizeof(allocated_space_info_));
|
|
|
}
|
|
|
|
|
|
Parkspace_allocation_response_msg::~Parkspace_allocation_response_msg() {
|
|
@@ -1018,6 +1047,7 @@ Parkspace_allocation_response_msg::~Parkspace_allocation_response_msg() {
|
|
|
|
|
|
void Parkspace_allocation_response_msg::SharedDtor() {
|
|
|
if (this != internal_default_instance()) delete base_info_;
|
|
|
+ if (this != internal_default_instance()) delete command_info_;
|
|
|
if (this != internal_default_instance()) delete error_manager_;
|
|
|
if (this != internal_default_instance()) delete allocated_space_info_;
|
|
|
}
|
|
@@ -1052,21 +1082,24 @@ void Parkspace_allocation_response_msg::Clear() {
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
- if (cached_has_bits & 7u) {
|
|
|
+ if (cached_has_bits & 15u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
GOOGLE_DCHECK(base_info_ != NULL);
|
|
|
base_info_->Clear();
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
+ GOOGLE_DCHECK(command_info_ != NULL);
|
|
|
+ command_info_->Clear();
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
GOOGLE_DCHECK(error_manager_ != NULL);
|
|
|
error_manager_->Clear();
|
|
|
}
|
|
|
- if (cached_has_bits & 0x00000004u) {
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
GOOGLE_DCHECK(allocated_space_info_ != NULL);
|
|
|
allocated_space_info_->Clear();
|
|
|
}
|
|
|
}
|
|
|
- command_id_ = 0;
|
|
|
_has_bits_.Clear();
|
|
|
_internal_metadata_.Clear();
|
|
|
}
|
|
@@ -1093,14 +1126,12 @@ bool Parkspace_allocation_response_msg::MergePartialFromCodedStream(
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- // required int32 command_id = 2;
|
|
|
+ // required .message.Command_info command_info = 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_)));
|
|
|
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
|
+ input, mutable_command_info()));
|
|
|
} else {
|
|
|
goto handle_unusual;
|
|
|
}
|
|
@@ -1164,19 +1195,20 @@ void Parkspace_allocation_response_msg::SerializeWithCachedSizes(
|
|
|
1, *this->base_info_, output);
|
|
|
}
|
|
|
|
|
|
- // required int32 command_id = 2;
|
|
|
- if (cached_has_bits & 0x00000008u) {
|
|
|
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output);
|
|
|
+ // required .message.Command_info command_info = 2;
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
+ 2, *this->command_info_, output);
|
|
|
}
|
|
|
|
|
|
// required .message.Error_manager error_manager = 3;
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
3, *this->error_manager_, output);
|
|
|
}
|
|
|
|
|
|
// required .message.Parkspace_info allocated_space_info = 4;
|
|
|
- if (cached_has_bits & 0x00000004u) {
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
4, *this->allocated_space_info_, output);
|
|
|
}
|
|
@@ -1203,20 +1235,22 @@ void Parkspace_allocation_response_msg::SerializeWithCachedSizes(
|
|
|
1, *this->base_info_, deterministic, target);
|
|
|
}
|
|
|
|
|
|
- // required int32 command_id = 2;
|
|
|
- if (cached_has_bits & 0x00000008u) {
|
|
|
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target);
|
|
|
+ // required .message.Command_info command_info = 2;
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::
|
|
|
+ InternalWriteMessageToArray(
|
|
|
+ 2, *this->command_info_, deterministic, target);
|
|
|
}
|
|
|
|
|
|
// required .message.Error_manager error_manager = 3;
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
3, *this->error_manager_, deterministic, target);
|
|
|
}
|
|
|
|
|
|
// required .message.Parkspace_info allocated_space_info = 4;
|
|
|
- if (cached_has_bits & 0x00000004u) {
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
4, *this->allocated_space_info_, deterministic, target);
|
|
@@ -1241,6 +1275,13 @@ size_t Parkspace_allocation_response_msg::RequiredFieldsByteSizeFallback() const
|
|
|
*this->base_info_);
|
|
|
}
|
|
|
|
|
|
+ if (has_command_info()) {
|
|
|
+ // required .message.Command_info command_info = 2;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
+ *this->command_info_);
|
|
|
+ }
|
|
|
+
|
|
|
if (has_error_manager()) {
|
|
|
// required .message.Error_manager error_manager = 3;
|
|
|
total_size += 1 +
|
|
@@ -1255,13 +1296,6 @@ size_t Parkspace_allocation_response_msg::RequiredFieldsByteSizeFallback() const
|
|
|
*this->allocated_space_info_);
|
|
|
}
|
|
|
|
|
|
- if (has_command_id()) {
|
|
|
- // required int32 command_id = 2;
|
|
|
- total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
- this->command_id());
|
|
|
- }
|
|
|
-
|
|
|
return total_size;
|
|
|
}
|
|
|
size_t Parkspace_allocation_response_msg::ByteSizeLong() const {
|
|
@@ -1279,6 +1313,11 @@ size_t Parkspace_allocation_response_msg::ByteSizeLong() const {
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
*this->base_info_);
|
|
|
|
|
|
+ // required .message.Command_info command_info = 2;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
+ *this->command_info_);
|
|
|
+
|
|
|
// required .message.Error_manager error_manager = 3;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
@@ -1289,11 +1328,6 @@ size_t Parkspace_allocation_response_msg::ByteSizeLong() const {
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
*this->allocated_space_info_);
|
|
|
|
|
|
- // required int32 command_id = 2;
|
|
|
- total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
- this->command_id());
|
|
|
-
|
|
|
} else {
|
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
|
}
|
|
@@ -1332,15 +1366,14 @@ void Parkspace_allocation_response_msg::MergeFrom(const Parkspace_allocation_res
|
|
|
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());
|
|
|
+ mutable_command_info()->::message::Command_info::MergeFrom(from.command_info());
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
- mutable_allocated_space_info()->::message::Parkspace_info::MergeFrom(from.allocated_space_info());
|
|
|
+ mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000008u) {
|
|
|
- command_id_ = from.command_id_;
|
|
|
+ mutable_allocated_space_info()->::message::Parkspace_info::MergeFrom(from.allocated_space_info());
|
|
|
}
|
|
|
- _has_bits_[0] |= cached_has_bits;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1363,6 +1396,9 @@ bool Parkspace_allocation_response_msg::IsInitialized() const {
|
|
|
if (has_base_info()) {
|
|
|
if (!this->base_info_->IsInitialized()) return false;
|
|
|
}
|
|
|
+ if (has_command_info()) {
|
|
|
+ if (!this->command_info_->IsInitialized()) return false;
|
|
|
+ }
|
|
|
if (has_error_manager()) {
|
|
|
if (!this->error_manager_->IsInitialized()) return false;
|
|
|
}
|
|
@@ -1376,9 +1412,9 @@ void Parkspace_allocation_response_msg::Swap(Parkspace_allocation_response_msg*
|
|
|
void Parkspace_allocation_response_msg::InternalSwap(Parkspace_allocation_response_msg* other) {
|
|
|
using std::swap;
|
|
|
swap(base_info_, other->base_info_);
|
|
|
+ swap(command_info_, other->command_info_);
|
|
|
swap(error_manager_, other->error_manager_);
|
|
|
swap(allocated_space_info_, other->allocated_space_info_);
|
|
|
- swap(command_id_, other->command_id_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
swap(_cached_size_, other->_cached_size_);
|
|
@@ -1395,6 +1431,8 @@ void Parkspace_allocation_response_msg::InternalSwap(Parkspace_allocation_respon
|
|
|
void Parkspace_search_request_msg::InitAsDefaultInstance() {
|
|
|
::message::_Parkspace_search_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
|
|
|
::message::Base_info::internal_default_instance());
|
|
|
+ ::message::_Parkspace_search_request_msg_default_instance_._instance.get_mutable()->command_info_ = const_cast< ::message::Command_info*>(
|
|
|
+ ::message::Command_info::internal_default_instance());
|
|
|
::message::_Parkspace_search_request_msg_default_instance_._instance.get_mutable()->car_info_ = const_cast< ::message::Car_info*>(
|
|
|
::message::Car_info::internal_default_instance());
|
|
|
}
|
|
@@ -1402,13 +1440,17 @@ void Parkspace_search_request_msg::clear_base_info() {
|
|
|
if (base_info_ != NULL) base_info_->Clear();
|
|
|
clear_has_base_info();
|
|
|
}
|
|
|
+void Parkspace_search_request_msg::clear_command_info() {
|
|
|
+ if (command_info_ != NULL) command_info_->Clear();
|
|
|
+ clear_has_command_info();
|
|
|
+}
|
|
|
void Parkspace_search_request_msg::clear_car_info() {
|
|
|
if (car_info_ != NULL) car_info_->Clear();
|
|
|
clear_has_car_info();
|
|
|
}
|
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
const int Parkspace_search_request_msg::kBaseInfoFieldNumber;
|
|
|
-const int Parkspace_search_request_msg::kCommandIdFieldNumber;
|
|
|
+const int Parkspace_search_request_msg::kCommandInfoFieldNumber;
|
|
|
const int Parkspace_search_request_msg::kCarInfoFieldNumber;
|
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
|
@@ -1431,20 +1473,24 @@ Parkspace_search_request_msg::Parkspace_search_request_msg(const Parkspace_searc
|
|
|
} else {
|
|
|
base_info_ = NULL;
|
|
|
}
|
|
|
+ if (from.has_command_info()) {
|
|
|
+ command_info_ = new ::message::Command_info(*from.command_info_);
|
|
|
+ } else {
|
|
|
+ command_info_ = NULL;
|
|
|
+ }
|
|
|
if (from.has_car_info()) {
|
|
|
car_info_ = new ::message::Car_info(*from.car_info_);
|
|
|
} else {
|
|
|
car_info_ = NULL;
|
|
|
}
|
|
|
- command_id_ = from.command_id_;
|
|
|
// @@protoc_insertion_point(copy_constructor:message.Parkspace_search_request_msg)
|
|
|
}
|
|
|
|
|
|
void Parkspace_search_request_msg::SharedCtor() {
|
|
|
_cached_size_ = 0;
|
|
|
::memset(&base_info_, 0, static_cast<size_t>(
|
|
|
- reinterpret_cast<char*>(&command_id_) -
|
|
|
- reinterpret_cast<char*>(&base_info_)) + sizeof(command_id_));
|
|
|
+ reinterpret_cast<char*>(&car_info_) -
|
|
|
+ reinterpret_cast<char*>(&base_info_)) + sizeof(car_info_));
|
|
|
}
|
|
|
|
|
|
Parkspace_search_request_msg::~Parkspace_search_request_msg() {
|
|
@@ -1454,6 +1500,7 @@ Parkspace_search_request_msg::~Parkspace_search_request_msg() {
|
|
|
|
|
|
void Parkspace_search_request_msg::SharedDtor() {
|
|
|
if (this != internal_default_instance()) delete base_info_;
|
|
|
+ if (this != internal_default_instance()) delete command_info_;
|
|
|
if (this != internal_default_instance()) delete car_info_;
|
|
|
}
|
|
|
|
|
@@ -1487,17 +1534,20 @@ void Parkspace_search_request_msg::Clear() {
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
- if (cached_has_bits & 3u) {
|
|
|
+ if (cached_has_bits & 7u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
GOOGLE_DCHECK(base_info_ != NULL);
|
|
|
base_info_->Clear();
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
+ GOOGLE_DCHECK(command_info_ != NULL);
|
|
|
+ command_info_->Clear();
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
GOOGLE_DCHECK(car_info_ != NULL);
|
|
|
car_info_->Clear();
|
|
|
}
|
|
|
}
|
|
|
- command_id_ = 0;
|
|
|
_has_bits_.Clear();
|
|
|
_internal_metadata_.Clear();
|
|
|
}
|
|
@@ -1524,14 +1574,12 @@ bool Parkspace_search_request_msg::MergePartialFromCodedStream(
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- // required int32 command_id = 2;
|
|
|
+ // required .message.Command_info command_info = 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_)));
|
|
|
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
|
+ input, mutable_command_info()));
|
|
|
} else {
|
|
|
goto handle_unusual;
|
|
|
}
|
|
@@ -1583,13 +1631,14 @@ void Parkspace_search_request_msg::SerializeWithCachedSizes(
|
|
|
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.Command_info command_info = 2;
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
+ 2, *this->command_info_, output);
|
|
|
}
|
|
|
|
|
|
// required .message.Car_info car_info = 3;
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
3, *this->car_info_, output);
|
|
|
}
|
|
@@ -1616,13 +1665,15 @@ void Parkspace_search_request_msg::SerializeWithCachedSizes(
|
|
|
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.Command_info command_info = 2;
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::
|
|
|
+ InternalWriteMessageToArray(
|
|
|
+ 2, *this->command_info_, deterministic, target);
|
|
|
}
|
|
|
|
|
|
// required .message.Car_info car_info = 3;
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
3, *this->car_info_, deterministic, target);
|
|
@@ -1647,18 +1698,18 @@ size_t Parkspace_search_request_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
*this->base_info_);
|
|
|
}
|
|
|
|
|
|
- if (has_car_info()) {
|
|
|
- // required .message.Car_info car_info = 3;
|
|
|
+ if (has_command_info()) {
|
|
|
+ // required .message.Command_info command_info = 2;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->car_info_);
|
|
|
+ *this->command_info_);
|
|
|
}
|
|
|
|
|
|
- if (has_command_id()) {
|
|
|
- // required int32 command_id = 2;
|
|
|
+ if (has_car_info()) {
|
|
|
+ // required .message.Car_info car_info = 3;
|
|
|
total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
- this->command_id());
|
|
|
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
+ *this->car_info_);
|
|
|
}
|
|
|
|
|
|
return total_size;
|
|
@@ -1678,15 +1729,15 @@ size_t Parkspace_search_request_msg::ByteSizeLong() const {
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
*this->base_info_);
|
|
|
|
|
|
- // required .message.Car_info car_info = 3;
|
|
|
+ // required .message.Command_info command_info = 2;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->car_info_);
|
|
|
+ *this->command_info_);
|
|
|
|
|
|
- // required int32 command_id = 2;
|
|
|
+ // required .message.Car_info car_info = 3;
|
|
|
total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
- this->command_id());
|
|
|
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
+ *this->car_info_);
|
|
|
|
|
|
} else {
|
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
@@ -1726,12 +1777,11 @@ void Parkspace_search_request_msg::MergeFrom(const Parkspace_search_request_msg&
|
|
|
mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
- mutable_car_info()->::message::Car_info::MergeFrom(from.car_info());
|
|
|
+ mutable_command_info()->::message::Command_info::MergeFrom(from.command_info());
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
- command_id_ = from.command_id_;
|
|
|
+ mutable_car_info()->::message::Car_info::MergeFrom(from.car_info());
|
|
|
}
|
|
|
- _has_bits_[0] |= cached_has_bits;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1754,6 +1804,9 @@ bool Parkspace_search_request_msg::IsInitialized() const {
|
|
|
if (has_base_info()) {
|
|
|
if (!this->base_info_->IsInitialized()) return false;
|
|
|
}
|
|
|
+ if (has_command_info()) {
|
|
|
+ if (!this->command_info_->IsInitialized()) return false;
|
|
|
+ }
|
|
|
return true;
|
|
|
}
|
|
|
|
|
@@ -1764,8 +1817,8 @@ void Parkspace_search_request_msg::Swap(Parkspace_search_request_msg* other) {
|
|
|
void Parkspace_search_request_msg::InternalSwap(Parkspace_search_request_msg* other) {
|
|
|
using std::swap;
|
|
|
swap(base_info_, other->base_info_);
|
|
|
+ swap(command_info_, other->command_info_);
|
|
|
swap(car_info_, other->car_info_);
|
|
|
- swap(command_id_, other->command_id_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
swap(_cached_size_, other->_cached_size_);
|