|
@@ -156,9 +156,11 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_status_msg, base_info_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_status_msg, terminal_id_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_status_msg, dispatch_manager_status_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_status_msg, dispatch_motion_direction_),
|
|
|
0,
|
|
|
1,
|
|
|
2,
|
|
|
+ 3,
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, _has_bits_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, _internal_metadata_),
|
|
|
~0u, // no _extensions_
|
|
@@ -190,9 +192,9 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
};
|
|
|
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
{ 0, 8, sizeof(::message::Carrier_position)},
|
|
|
- { 11, 19, sizeof(::message::Dispatch_status_msg)},
|
|
|
- { 22, 33, sizeof(::message::Dispatch_request_msg)},
|
|
|
- { 39, 47, sizeof(::message::Dispatch_response_msg)},
|
|
|
+ { 11, 20, sizeof(::message::Dispatch_status_msg)},
|
|
|
+ { 24, 35, sizeof(::message::Dispatch_request_msg)},
|
|
|
+ { 41, 49, sizeof(::message::Dispatch_response_msg)},
|
|
|
};
|
|
|
|
|
|
static ::google::protobuf::Message const * const file_default_instances[] = {
|
|
@@ -226,34 +228,36 @@ void AddDescriptorsImpl() {
|
|
|
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
"\n\026dispatch_message.proto\022\007message\032\022messa"
|
|
|
"ge_base.proto\"3\n\020Carrier_position\022\t\n\001x\030\001"
|
|
|
- " \002(\002\022\t\n\001y\030\002 \002(\002\022\t\n\001z\030\003 \002(\002\"\224\001\n\023Dispatch_"
|
|
|
+ " \002(\002\022\t\n\001y\030\002 \002(\002\022\t\n\001z\030\003 \002(\002\"\333\001\n\023Dispatch_"
|
|
|
"status_msg\022%\n\tbase_info\030\001 \002(\0132\022.message."
|
|
|
"Base_info\022\023\n\013terminal_id\030\002 \002(\005\022A\n\027dispat"
|
|
|
"ch_manager_status\030\003 \002(\0162 .message.Dispat"
|
|
|
- "ch_manager_status\"\225\002\n\024Dispatch_request_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\022E\n\031dispatch_motion_direction\030\003 \002("
|
|
|
- "\0162\".message.Dispatch_motion_direction\022\023\n"
|
|
|
- "\013terminal_id\030\004 \002(\005\022\024\n\014parkspace_id\030\005 \002(\005"
|
|
|
- "\0227\n\022locate_information\030\006 \001(\0132\033.message.L"
|
|
|
- "ocate_information\"\232\001\n\025Dispatch_response_"
|
|
|
- "msg\022%\n\tbase_info\030\001 \002(\0132\022.message.Base_in"
|
|
|
- "fo\022+\n\014command_info\030\002 \002(\0132\025.message.Comma"
|
|
|
- "nd_info\022-\n\rerror_manager\030\003 \002(\0132\026.message"
|
|
|
- ".Error_manager*\261\001\n\027Dispatch_manager_stat"
|
|
|
- "us\022\035\n\031E_DISPATCH_MANAGER_UNKNOW\020\000\022\034\n\030E_D"
|
|
|
- "ISPATCH_MANAGER_READY\020\001\022\034\n\030E_DISPATCH_MA"
|
|
|
- "NAGER_STORE\020\002\022\035\n\031E_DISPATCH_MANAGER_PICK"
|
|
|
- "UP\020\003\022\034\n\030E_DISPATCH_MANAGER_FAULT\020\n*{\n\016Ca"
|
|
|
- "rrier_status\022\024\n\020E_CARRIER_UNKNOW\020\000\022\023\n\017E_"
|
|
|
- "CARRIER_READY\020\001\022\023\n\017E_CARRIER_STORE\020\002\022\024\n\020"
|
|
|
- "E_CARRIER_PICKUP\020\003\022\023\n\017E_CARRIER_FAULT\020\n*"
|
|
|
- ">\n\031Dispatch_motion_direction\022\017\n\013E_STORE_"
|
|
|
- "CAR\020\000\022\020\n\014E_PICKUP_CAR\020\001"
|
|
|
+ "ch_manager_status\022E\n\031dispatch_motion_dir"
|
|
|
+ "ection\030\004 \002(\0162\".message.Dispatch_motion_d"
|
|
|
+ "irection\"\225\002\n\024Dispatch_request_msg\022%\n\tbas"
|
|
|
+ "e_info\030\001 \002(\0132\022.message.Base_info\022+\n\014comm"
|
|
|
+ "and_info\030\002 \002(\0132\025.message.Command_info\022E\n"
|
|
|
+ "\031dispatch_motion_direction\030\003 \002(\0162\".messa"
|
|
|
+ "ge.Dispatch_motion_direction\022\023\n\013terminal"
|
|
|
+ "_id\030\004 \002(\005\022\024\n\014parkspace_id\030\005 \002(\005\0227\n\022locat"
|
|
|
+ "e_information\030\006 \001(\0132\033.message.Locate_inf"
|
|
|
+ "ormation\"\232\001\n\025Dispatch_response_msg\022%\n\tba"
|
|
|
+ "se_info\030\001 \002(\0132\022.message.Base_info\022+\n\014com"
|
|
|
+ "mand_info\030\002 \002(\0132\025.message.Command_info\022-"
|
|
|
+ "\n\rerror_manager\030\003 \002(\0132\026.message.Error_ma"
|
|
|
+ "nager*\261\001\n\027Dispatch_manager_status\022\035\n\031E_D"
|
|
|
+ "ISPATCH_MANAGER_UNKNOW\020\000\022\034\n\030E_DISPATCH_M"
|
|
|
+ "ANAGER_READY\020\001\022\034\n\030E_DISPATCH_MANAGER_STO"
|
|
|
+ "RE\020\002\022\035\n\031E_DISPATCH_MANAGER_PICKUP\020\003\022\034\n\030E"
|
|
|
+ "_DISPATCH_MANAGER_FAULT\020\n*{\n\016Carrier_sta"
|
|
|
+ "tus\022\024\n\020E_CARRIER_UNKNOW\020\000\022\023\n\017E_CARRIER_R"
|
|
|
+ "EADY\020\001\022\023\n\017E_CARRIER_STORE\020\002\022\024\n\020E_CARRIER"
|
|
|
+ "_PICKUP\020\003\022\023\n\017E_CARRIER_FAULT\020\n*>\n\031Dispat"
|
|
|
+ "ch_motion_direction\022\017\n\013E_STORE_CAR\020\000\022\020\n\014"
|
|
|
+ "E_PICKUP_CAR\020\001"
|
|
|
};
|
|
|
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
|
|
- descriptor, 1063);
|
|
|
+ descriptor, 1134);
|
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
|
|
"dispatch_message.proto", &protobuf_RegisterTypes);
|
|
|
::protobuf_message_5fbase_2eproto::AddDescriptors();
|
|
@@ -676,6 +680,7 @@ void Dispatch_status_msg::clear_base_info() {
|
|
|
const int Dispatch_status_msg::kBaseInfoFieldNumber;
|
|
|
const int Dispatch_status_msg::kTerminalIdFieldNumber;
|
|
|
const int Dispatch_status_msg::kDispatchManagerStatusFieldNumber;
|
|
|
+const int Dispatch_status_msg::kDispatchMotionDirectionFieldNumber;
|
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
|
|
Dispatch_status_msg::Dispatch_status_msg()
|
|
@@ -698,16 +703,16 @@ Dispatch_status_msg::Dispatch_status_msg(const Dispatch_status_msg& from)
|
|
|
base_info_ = NULL;
|
|
|
}
|
|
|
::memcpy(&terminal_id_, &from.terminal_id_,
|
|
|
- static_cast<size_t>(reinterpret_cast<char*>(&dispatch_manager_status_) -
|
|
|
- reinterpret_cast<char*>(&terminal_id_)) + sizeof(dispatch_manager_status_));
|
|
|
+ static_cast<size_t>(reinterpret_cast<char*>(&dispatch_motion_direction_) -
|
|
|
+ reinterpret_cast<char*>(&terminal_id_)) + sizeof(dispatch_motion_direction_));
|
|
|
// @@protoc_insertion_point(copy_constructor:message.Dispatch_status_msg)
|
|
|
}
|
|
|
|
|
|
void Dispatch_status_msg::SharedCtor() {
|
|
|
_cached_size_ = 0;
|
|
|
::memset(&base_info_, 0, static_cast<size_t>(
|
|
|
- reinterpret_cast<char*>(&dispatch_manager_status_) -
|
|
|
- reinterpret_cast<char*>(&base_info_)) + sizeof(dispatch_manager_status_));
|
|
|
+ reinterpret_cast<char*>(&dispatch_motion_direction_) -
|
|
|
+ reinterpret_cast<char*>(&base_info_)) + sizeof(dispatch_motion_direction_));
|
|
|
}
|
|
|
|
|
|
Dispatch_status_msg::~Dispatch_status_msg() {
|
|
@@ -753,10 +758,10 @@ void Dispatch_status_msg::Clear() {
|
|
|
GOOGLE_DCHECK(base_info_ != NULL);
|
|
|
base_info_->Clear();
|
|
|
}
|
|
|
- if (cached_has_bits & 6u) {
|
|
|
+ if (cached_has_bits & 14u) {
|
|
|
::memset(&terminal_id_, 0, static_cast<size_t>(
|
|
|
- reinterpret_cast<char*>(&dispatch_manager_status_) -
|
|
|
- reinterpret_cast<char*>(&terminal_id_)) + sizeof(dispatch_manager_status_));
|
|
|
+ reinterpret_cast<char*>(&dispatch_motion_direction_) -
|
|
|
+ reinterpret_cast<char*>(&terminal_id_)) + sizeof(dispatch_motion_direction_));
|
|
|
}
|
|
|
_has_bits_.Clear();
|
|
|
_internal_metadata_.Clear();
|
|
@@ -818,6 +823,26 @@ bool Dispatch_status_msg::MergePartialFromCodedStream(
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
+ // required .message.Dispatch_motion_direction dispatch_motion_direction = 4;
|
|
|
+ case 4: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
|
|
|
+ int value;
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
|
+ input, &value)));
|
|
|
+ if (::message::Dispatch_motion_direction_IsValid(value)) {
|
|
|
+ set_dispatch_motion_direction(static_cast< ::message::Dispatch_motion_direction >(value));
|
|
|
+ } else {
|
|
|
+ mutable_unknown_fields()->AddVarint(
|
|
|
+ 4, static_cast< ::google::protobuf::uint64>(value));
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
default: {
|
|
|
handle_unusual:
|
|
|
if (tag == 0) {
|
|
@@ -862,6 +887,12 @@ void Dispatch_status_msg::SerializeWithCachedSizes(
|
|
|
3, this->dispatch_manager_status(), output);
|
|
|
}
|
|
|
|
|
|
+ // required .message.Dispatch_motion_direction dispatch_motion_direction = 4;
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
|
+ 4, this->dispatch_motion_direction(), output);
|
|
|
+ }
|
|
|
+
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
_internal_metadata_.unknown_fields(), output);
|
|
@@ -895,6 +926,12 @@ void Dispatch_status_msg::SerializeWithCachedSizes(
|
|
|
3, this->dispatch_manager_status(), target);
|
|
|
}
|
|
|
|
|
|
+ // required .message.Dispatch_motion_direction dispatch_motion_direction = 4;
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
|
+ 4, this->dispatch_motion_direction(), target);
|
|
|
+ }
|
|
|
+
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
_internal_metadata_.unknown_fields(), target);
|
|
@@ -927,6 +964,12 @@ size_t Dispatch_status_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_manager_status());
|
|
|
}
|
|
|
|
|
|
+ if (has_dispatch_motion_direction()) {
|
|
|
+ // required .message.Dispatch_motion_direction dispatch_motion_direction = 4;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_motion_direction());
|
|
|
+ }
|
|
|
+
|
|
|
return total_size;
|
|
|
}
|
|
|
size_t Dispatch_status_msg::ByteSizeLong() const {
|
|
@@ -938,7 +981,7 @@ size_t Dispatch_status_msg::ByteSizeLong() const {
|
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
_internal_metadata_.unknown_fields());
|
|
|
}
|
|
|
- if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
|
|
|
+ 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(
|
|
@@ -953,6 +996,10 @@ size_t Dispatch_status_msg::ByteSizeLong() const {
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_manager_status());
|
|
|
|
|
|
+ // required .message.Dispatch_motion_direction dispatch_motion_direction = 4;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_motion_direction());
|
|
|
+
|
|
|
} else {
|
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
|
}
|
|
@@ -986,7 +1033,7 @@ void Dispatch_status_msg::MergeFrom(const Dispatch_status_msg& from) {
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
cached_has_bits = from._has_bits_[0];
|
|
|
- if (cached_has_bits & 7u) {
|
|
|
+ if (cached_has_bits & 15u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
|
|
|
}
|
|
@@ -996,6 +1043,9 @@ void Dispatch_status_msg::MergeFrom(const Dispatch_status_msg& from) {
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
dispatch_manager_status_ = from.dispatch_manager_status_;
|
|
|
}
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
+ dispatch_motion_direction_ = from.dispatch_motion_direction_;
|
|
|
+ }
|
|
|
_has_bits_[0] |= cached_has_bits;
|
|
|
}
|
|
|
}
|
|
@@ -1015,7 +1065,7 @@ void Dispatch_status_msg::CopyFrom(const Dispatch_status_msg& from) {
|
|
|
}
|
|
|
|
|
|
bool Dispatch_status_msg::IsInitialized() const {
|
|
|
- if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
|
|
|
+ if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
|
|
|
if (has_base_info()) {
|
|
|
if (!this->base_info_->IsInitialized()) return false;
|
|
|
}
|
|
@@ -1031,6 +1081,7 @@ void Dispatch_status_msg::InternalSwap(Dispatch_status_msg* other) {
|
|
|
swap(base_info_, other->base_info_);
|
|
|
swap(terminal_id_, other->terminal_id_);
|
|
|
swap(dispatch_manager_status_, other->dispatch_manager_status_);
|
|
|
+ swap(dispatch_motion_direction_, other->dispatch_motion_direction_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
swap(_cached_size_, other->_cached_size_);
|