|
@@ -202,6 +202,7 @@ void InitDefaultsLocate_sift_response_msgImpl() {
|
|
|
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
|
|
|
protobuf_measure_5fmessage_2eproto::InitDefaultsCloud_type();
|
|
|
+ protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
|
|
|
{
|
|
|
void* ptr = &::message::_Locate_sift_response_msg_default_instance_;
|
|
|
new (ptr) ::message::Locate_sift_response_msg();
|
|
@@ -304,10 +305,12 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_sift_response_msg, command_key_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_sift_response_msg, terminal_id_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_sift_response_msg, cloud_type_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_sift_response_msg, error_manager_),
|
|
|
1,
|
|
|
0,
|
|
|
- 2,
|
|
|
+ 3,
|
|
|
~0u,
|
|
|
+ 2,
|
|
|
};
|
|
|
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
{ 0, 12, sizeof(::message::Measure_status_msg)},
|
|
@@ -316,7 +319,7 @@ static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROT
|
|
|
{ 45, 53, sizeof(::message::Cloud_coordinate)},
|
|
|
{ 56, 62, sizeof(::message::Cloud_type)},
|
|
|
{ 63, 72, sizeof(::message::Locate_sift_request_msg)},
|
|
|
- { 76, 85, sizeof(::message::Locate_sift_response_msg)},
|
|
|
+ { 76, 86, sizeof(::message::Locate_sift_response_msg)},
|
|
|
};
|
|
|
|
|
|
static ::google::protobuf::Message const * const file_default_instances[] = {
|
|
@@ -375,24 +378,26 @@ void AddDescriptorsImpl() {
|
|
|
"t_msg\022%\n\tbase_info\030\001 \002(\0132\022.message.Base_"
|
|
|
"info\022\023\n\013command_key\030\002 \002(\t\022\023\n\013terminal_id"
|
|
|
"\030\003 \002(\005\0224\n\021cloud_coordinates\030\004 \003(\0132\031.mess"
|
|
|
- "age.Cloud_coordinate\"\224\001\n\030Locate_sift_res"
|
|
|
+ "age.Cloud_coordinate\"\303\001\n\030Locate_sift_res"
|
|
|
"ponse_msg\022%\n\tbase_info\030\001 \002(\0132\022.message.B"
|
|
|
"ase_info\022\023\n\013command_key\030\002 \002(\t\022\023\n\013termina"
|
|
|
"l_id\030\003 \002(\005\022\'\n\ncloud_type\030\004 \003(\0132\023.message"
|
|
|
- ".Cloud_type*\237\001\n\024Laser_manager_status\022\030\n\024"
|
|
|
- "LASER_MANAGER_UNKNOW\020\000\022\027\n\023LASER_MANAGER_"
|
|
|
- "READY\020\001\022\035\n\031LASER_MANAGER_ISSUED_TASK\020\002\022\034"
|
|
|
- "\n\030LASER_MANAGER_WAIT_REPLY\020\003\022\027\n\023LASER_MA"
|
|
|
- "NAGER_FAULT\020\004*U\n\013Laser_statu\022\024\n\020LASER_DI"
|
|
|
- "SCONNECT\020\000\022\017\n\013LASER_READY\020\001\022\016\n\nLASER_BUS"
|
|
|
- "Y\020\002\022\017\n\013LASER_FAULT\020\003*\261\001\n\025Locate_manager_"
|
|
|
- "status\022\031\n\025LOCATE_MANAGER_UNKNOW\020\000\022\030\n\024LOC"
|
|
|
- "ATE_MANAGER_READY\020\001\022\027\n\023LOCATE_MANAGER_SI"
|
|
|
- "FT\020\002\022\026\n\022LOCATE_MANAGER_CAR\020\003\022\030\n\024LOCATE_M"
|
|
|
- "ANAGER_WHEEL\020\004\022\030\n\024LOCATE_MANAGER_FAULT\020\005"
|
|
|
+ ".Cloud_type\022-\n\rerror_manager\030\005 \002(\0132\026.mes"
|
|
|
+ "sage.Error_manager*\237\001\n\024Laser_manager_sta"
|
|
|
+ "tus\022\030\n\024LASER_MANAGER_UNKNOW\020\000\022\027\n\023LASER_M"
|
|
|
+ "ANAGER_READY\020\001\022\035\n\031LASER_MANAGER_ISSUED_T"
|
|
|
+ "ASK\020\002\022\034\n\030LASER_MANAGER_WAIT_REPLY\020\003\022\027\n\023L"
|
|
|
+ "ASER_MANAGER_FAULT\020\004*U\n\013Laser_statu\022\024\n\020L"
|
|
|
+ "ASER_DISCONNECT\020\000\022\017\n\013LASER_READY\020\001\022\016\n\nLA"
|
|
|
+ "SER_BUSY\020\002\022\017\n\013LASER_FAULT\020\003*\261\001\n\025Locate_m"
|
|
|
+ "anager_status\022\031\n\025LOCATE_MANAGER_UNKNOW\020\000"
|
|
|
+ "\022\030\n\024LOCATE_MANAGER_READY\020\001\022\027\n\023LOCATE_MAN"
|
|
|
+ "AGER_SIFT\020\002\022\026\n\022LOCATE_MANAGER_CAR\020\003\022\030\n\024L"
|
|
|
+ "OCATE_MANAGER_WHEEL\020\004\022\030\n\024LOCATE_MANAGER_"
|
|
|
+ "FAULT\020\005"
|
|
|
};
|
|
|
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
|
|
- descriptor, 1560);
|
|
|
+ descriptor, 1607);
|
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
|
|
"measure_message.proto", &protobuf_RegisterTypes);
|
|
|
::protobuf_message_5fbase_2eproto::AddDescriptors();
|
|
@@ -2988,16 +2993,23 @@ void Locate_sift_request_msg::InternalSwap(Locate_sift_request_msg* other) {
|
|
|
void Locate_sift_response_msg::InitAsDefaultInstance() {
|
|
|
::message::_Locate_sift_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
|
|
|
::message::Base_info::internal_default_instance());
|
|
|
+ ::message::_Locate_sift_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
|
|
|
+ ::message::Error_manager::internal_default_instance());
|
|
|
}
|
|
|
void Locate_sift_response_msg::clear_base_info() {
|
|
|
if (base_info_ != NULL) base_info_->Clear();
|
|
|
clear_has_base_info();
|
|
|
}
|
|
|
+void Locate_sift_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 Locate_sift_response_msg::kBaseInfoFieldNumber;
|
|
|
const int Locate_sift_response_msg::kCommandKeyFieldNumber;
|
|
|
const int Locate_sift_response_msg::kTerminalIdFieldNumber;
|
|
|
const int Locate_sift_response_msg::kCloudTypeFieldNumber;
|
|
|
+const int Locate_sift_response_msg::kErrorManagerFieldNumber;
|
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
|
|
Locate_sift_response_msg::Locate_sift_response_msg()
|
|
@@ -3024,6 +3036,11 @@ Locate_sift_response_msg::Locate_sift_response_msg(const Locate_sift_response_ms
|
|
|
} else {
|
|
|
base_info_ = NULL;
|
|
|
}
|
|
|
+ if (from.has_error_manager()) {
|
|
|
+ error_manager_ = new ::message::Error_manager(*from.error_manager_);
|
|
|
+ } else {
|
|
|
+ error_manager_ = NULL;
|
|
|
+ }
|
|
|
terminal_id_ = from.terminal_id_;
|
|
|
// @@protoc_insertion_point(copy_constructor:message.Locate_sift_response_msg)
|
|
|
}
|
|
@@ -3044,6 +3061,7 @@ Locate_sift_response_msg::~Locate_sift_response_msg() {
|
|
|
void Locate_sift_response_msg::SharedDtor() {
|
|
|
command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
if (this != internal_default_instance()) delete base_info_;
|
|
|
+ if (this != internal_default_instance()) delete error_manager_;
|
|
|
}
|
|
|
|
|
|
void Locate_sift_response_msg::SetCachedSize(int size) const {
|
|
@@ -3077,7 +3095,7 @@ void Locate_sift_response_msg::Clear() {
|
|
|
|
|
|
cloud_type_.Clear();
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
- if (cached_has_bits & 3u) {
|
|
|
+ if (cached_has_bits & 7u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
(*command_key_.UnsafeRawStringPointer())->clear();
|
|
@@ -3086,6 +3104,10 @@ void Locate_sift_response_msg::Clear() {
|
|
|
GOOGLE_DCHECK(base_info_ != NULL);
|
|
|
base_info_->Clear();
|
|
|
}
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ GOOGLE_DCHECK(error_manager_ != NULL);
|
|
|
+ error_manager_->Clear();
|
|
|
+ }
|
|
|
}
|
|
|
terminal_id_ = 0;
|
|
|
_has_bits_.Clear();
|
|
@@ -3155,6 +3177,18 @@ bool Locate_sift_response_msg::MergePartialFromCodedStream(
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
+ // required .message.Error_manager error_manager = 5;
|
|
|
+ case 5: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
|
+ input, mutable_error_manager()));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
default: {
|
|
|
handle_unusual:
|
|
|
if (tag == 0) {
|
|
@@ -3199,7 +3233,7 @@ void Locate_sift_response_msg::SerializeWithCachedSizes(
|
|
|
}
|
|
|
|
|
|
// required int32 terminal_id = 3;
|
|
|
- if (cached_has_bits & 0x00000004u) {
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->terminal_id(), output);
|
|
|
}
|
|
|
|
|
@@ -3210,6 +3244,12 @@ void Locate_sift_response_msg::SerializeWithCachedSizes(
|
|
|
4, this->cloud_type(static_cast<int>(i)), output);
|
|
|
}
|
|
|
|
|
|
+ // required .message.Error_manager error_manager = 5;
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
+ 5, *this->error_manager_, output);
|
|
|
+ }
|
|
|
+
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
_internal_metadata_.unknown_fields(), output);
|
|
@@ -3244,7 +3284,7 @@ void Locate_sift_response_msg::SerializeWithCachedSizes(
|
|
|
}
|
|
|
|
|
|
// required int32 terminal_id = 3;
|
|
|
- if (cached_has_bits & 0x00000004u) {
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->terminal_id(), target);
|
|
|
}
|
|
|
|
|
@@ -3256,6 +3296,13 @@ void Locate_sift_response_msg::SerializeWithCachedSizes(
|
|
|
4, this->cloud_type(static_cast<int>(i)), deterministic, target);
|
|
|
}
|
|
|
|
|
|
+ // required .message.Error_manager error_manager = 5;
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::
|
|
|
+ InternalWriteMessageToArray(
|
|
|
+ 5, *this->error_manager_, deterministic, target);
|
|
|
+ }
|
|
|
+
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
_internal_metadata_.unknown_fields(), target);
|
|
@@ -3282,6 +3329,13 @@ size_t Locate_sift_response_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
*this->base_info_);
|
|
|
}
|
|
|
|
|
|
+ if (has_error_manager()) {
|
|
|
+ // required .message.Error_manager error_manager = 5;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
+ *this->error_manager_);
|
|
|
+ }
|
|
|
+
|
|
|
if (has_terminal_id()) {
|
|
|
// required int32 terminal_id = 3;
|
|
|
total_size += 1 +
|
|
@@ -3300,7 +3354,7 @@ size_t Locate_sift_response_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 string command_key = 2;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
@@ -3311,6 +3365,11 @@ size_t Locate_sift_response_msg::ByteSizeLong() const {
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
*this->base_info_);
|
|
|
|
|
|
+ // required .message.Error_manager error_manager = 5;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
+ *this->error_manager_);
|
|
|
+
|
|
|
// required int32 terminal_id = 3;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
@@ -3361,7 +3420,7 @@ void Locate_sift_response_msg::MergeFrom(const Locate_sift_response_msg& from) {
|
|
|
|
|
|
cloud_type_.MergeFrom(from.cloud_type_);
|
|
|
cached_has_bits = from._has_bits_[0];
|
|
|
- if (cached_has_bits & 7u) {
|
|
|
+ if (cached_has_bits & 15u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
set_has_command_key();
|
|
|
command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
|
|
@@ -3370,6 +3429,9 @@ void Locate_sift_response_msg::MergeFrom(const Locate_sift_response_msg& from) {
|
|
|
mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
+ mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
terminal_id_ = from.terminal_id_;
|
|
|
}
|
|
|
_has_bits_[0] |= cached_has_bits;
|
|
@@ -3391,11 +3453,14 @@ void Locate_sift_response_msg::CopyFrom(const Locate_sift_response_msg& from) {
|
|
|
}
|
|
|
|
|
|
bool Locate_sift_response_msg::IsInitialized() const {
|
|
|
- if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
|
|
|
+ if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
|
|
|
if (!::google::protobuf::internal::AllAreInitialized(this->cloud_type())) 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;
|
|
|
}
|
|
|
|
|
@@ -3408,6 +3473,7 @@ void Locate_sift_response_msg::InternalSwap(Locate_sift_response_msg* other) {
|
|
|
cloud_type_.InternalSwap(&other->cloud_type_);
|
|
|
command_key_.Swap(&other->command_key_);
|
|
|
swap(base_info_, other->base_info_);
|
|
|
+ swap(error_manager_, other->error_manager_);
|
|
|
swap(terminal_id_, other->terminal_id_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|