|
@@ -45,7 +45,7 @@ void InitDefaultsMeasure_status_msgImpl() {
|
|
|
#else
|
|
|
::google::protobuf::internal::InitProtobufDefaults();
|
|
|
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- protobuf_message_5fbase_2eproto::InitDefaultsBase_msg();
|
|
|
+ protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
|
|
|
protobuf_message_5fbase_2eproto::InitDefaultsLocate_information();
|
|
|
protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
|
|
|
{
|
|
@@ -69,7 +69,7 @@ void InitDefaultsMeasure_request_msgImpl() {
|
|
|
#else
|
|
|
::google::protobuf::internal::InitProtobufDefaults();
|
|
|
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- protobuf_message_5fbase_2eproto::InitDefaultsBase_msg();
|
|
|
+ protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
|
|
|
{
|
|
|
void* ptr = &::message::_Measure_request_msg_default_instance_;
|
|
|
new (ptr) ::message::Measure_request_msg();
|
|
@@ -91,7 +91,7 @@ void InitDefaultsMeasure_response_msgImpl() {
|
|
|
#else
|
|
|
::google::protobuf::internal::InitProtobufDefaults();
|
|
|
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- protobuf_message_5fbase_2eproto::InitDefaultsBase_msg();
|
|
|
+ protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
|
|
|
protobuf_message_5fbase_2eproto::InitDefaultsLocate_information();
|
|
|
protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
|
|
|
{
|
|
@@ -116,7 +116,7 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
~0u, // no _extensions_
|
|
|
~0u, // no _oneof_case_
|
|
|
~0u, // no _weak_field_map_
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_status_msg, msg_type_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_status_msg, base_info_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_status_msg, laser_manager_status_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_status_msg, laser_statu_vector_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_status_msg, locate_manager_status_),
|
|
@@ -133,7 +133,7 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
~0u, // no _extensions_
|
|
|
~0u, // no _oneof_case_
|
|
|
~0u, // no _weak_field_map_
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_request_msg, msg_base_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_request_msg, base_info_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_request_msg, command_id_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_request_msg, terminal_id_),
|
|
|
0,
|
|
@@ -144,7 +144,7 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
~0u, // no _extensions_
|
|
|
~0u, // no _oneof_case_
|
|
|
~0u, // no _weak_field_map_
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_response_msg, msg_base_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_response_msg, base_info_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_response_msg, command_id_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_response_msg, terminal_id_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Measure_response_msg, locate_information_),
|
|
@@ -190,37 +190,37 @@ void AddDescriptorsImpl() {
|
|
|
InitDefaults();
|
|
|
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
"\n\025measure_message.proto\022\007message\032\022messag"
|
|
|
- "e_base.proto\"\330\002\n\022Measure_status_msg\022#\n\010m"
|
|
|
- "sg_type\030\001 \002(\0132\021.message.Base_msg\022;\n\024lase"
|
|
|
- "r_manager_status\030\002 \002(\0162\035.message.Laser_m"
|
|
|
- "anager_status\0220\n\022laser_statu_vector\030\003 \003("
|
|
|
- "\0162\024.message.Laser_statu\022=\n\025locate_manage"
|
|
|
- "r_status\030\004 \002(\0162\036.message.Locate_manager_"
|
|
|
- "status\022@\n\033locate_information_realtime\030\005 "
|
|
|
- "\001(\0132\033.message.Locate_information\022-\n\rerro"
|
|
|
- "r_manager\030\006 \002(\0132\026.message.Error_manager\""
|
|
|
- "c\n\023Measure_request_msg\022#\n\010msg_base\030\001 \002(\013"
|
|
|
- "2\021.message.Base_msg\022\022\n\ncommand_id\030\002 \002(\005\022"
|
|
|
- "\023\n\013terminal_id\030\003 \002(\005\"\314\001\n\024Measure_respons"
|
|
|
- "e_msg\022#\n\010msg_base\030\001 \002(\0132\021.message.Base_m"
|
|
|
- "sg\022\022\n\ncommand_id\030\002 \002(\005\022\023\n\013terminal_id\030\003 "
|
|
|
- "\002(\005\0227\n\022locate_information\030\004 \001(\0132\033.messag"
|
|
|
- "e.Locate_information\022-\n\rerror_manager\030\005 "
|
|
|
- "\002(\0132\026.message.Error_manager*\237\001\n\024Laser_ma"
|
|
|
- "nager_status\022\030\n\024LASER_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_REP"
|
|
|
- "LY\020\003\022\027\n\023LASER_MANAGER_FAULT\020\004*U\n\013Laser_s"
|
|
|
- "tatu\022\024\n\020LASER_DISCONNECT\020\000\022\017\n\013LASER_READ"
|
|
|
- "Y\020\001\022\016\n\nLASER_BUSY\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\024LOCATE_MANAGER_READY\020\001\022\027\n\023L"
|
|
|
- "OCATE_MANAGER_SIFT\020\002\022\026\n\022LOCATE_MANAGER_C"
|
|
|
- "AR\020\003\022\030\n\024LOCATE_MANAGER_WHEEL\020\004\022\030\n\024LOCATE"
|
|
|
- "_MANAGER_FAULT\020\005"
|
|
|
+ "e_base.proto\"\332\002\n\022Measure_status_msg\022%\n\tb"
|
|
|
+ "ase_info\030\001 \002(\0132\022.message.Base_info\022;\n\024la"
|
|
|
+ "ser_manager_status\030\002 \002(\0162\035.message.Laser"
|
|
|
+ "_manager_status\0220\n\022laser_statu_vector\030\003 "
|
|
|
+ "\003(\0162\024.message.Laser_statu\022=\n\025locate_mana"
|
|
|
+ "ger_status\030\004 \002(\0162\036.message.Locate_manage"
|
|
|
+ "r_status\022@\n\033locate_information_realtime\030"
|
|
|
+ "\005 \001(\0132\033.message.Locate_information\022-\n\rer"
|
|
|
+ "ror_manager\030\006 \002(\0132\026.message.Error_manage"
|
|
|
+ "r\"e\n\023Measure_request_msg\022%\n\tbase_info\030\001 "
|
|
|
+ "\002(\0132\022.message.Base_info\022\022\n\ncommand_id\030\002 "
|
|
|
+ "\002(\005\022\023\n\013terminal_id\030\003 \002(\005\"\316\001\n\024Measure_res"
|
|
|
+ "ponse_msg\022%\n\tbase_info\030\001 \002(\0132\022.message.B"
|
|
|
+ "ase_info\022\022\n\ncommand_id\030\002 \002(\005\022\023\n\013terminal"
|
|
|
+ "_id\030\003 \002(\005\0227\n\022locate_information\030\004 \001(\0132\033."
|
|
|
+ "message.Locate_information\022-\n\rerror_mana"
|
|
|
+ "ger\030\005 \002(\0132\026.message.Error_manager*\237\001\n\024La"
|
|
|
+ "ser_manager_status\022\030\n\024LASER_MANAGER_UNKN"
|
|
|
+ "OW\020\000\022\027\n\023LASER_MANAGER_READY\020\001\022\035\n\031LASER_M"
|
|
|
+ "ANAGER_ISSUED_TASK\020\002\022\034\n\030LASER_MANAGER_WA"
|
|
|
+ "IT_REPLY\020\003\022\027\n\023LASER_MANAGER_FAULT\020\004*U\n\013L"
|
|
|
+ "aser_statu\022\024\n\020LASER_DISCONNECT\020\000\022\017\n\013LASE"
|
|
|
+ "R_READY\020\001\022\016\n\nLASER_BUSY\020\002\022\017\n\013LASER_FAULT"
|
|
|
+ "\020\003*\261\001\n\025Locate_manager_status\022\031\n\025LOCATE_M"
|
|
|
+ "ANAGER_UNKNOW\020\000\022\030\n\024LOCATE_MANAGER_READY\020"
|
|
|
+ "\001\022\027\n\023LOCATE_MANAGER_SIFT\020\002\022\026\n\022LOCATE_MAN"
|
|
|
+ "AGER_CAR\020\003\022\030\n\024LOCATE_MANAGER_WHEEL\020\004\022\030\n\024"
|
|
|
+ "LOCATE_MANAGER_FAULT\020\005"
|
|
|
};
|
|
|
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
|
|
- descriptor, 1136);
|
|
|
+ descriptor, 1142);
|
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
|
|
"measure_message.proto", &protobuf_RegisterTypes);
|
|
|
::protobuf_message_5fbase_2eproto::AddDescriptors();
|
|
@@ -293,16 +293,16 @@ bool Locate_manager_status_IsValid(int value) {
|
|
|
// ===================================================================
|
|
|
|
|
|
void Measure_status_msg::InitAsDefaultInstance() {
|
|
|
- ::message::_Measure_status_msg_default_instance_._instance.get_mutable()->msg_type_ = const_cast< ::message::Base_msg*>(
|
|
|
- ::message::Base_msg::internal_default_instance());
|
|
|
+ ::message::_Measure_status_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
|
|
|
+ ::message::Base_info::internal_default_instance());
|
|
|
::message::_Measure_status_msg_default_instance_._instance.get_mutable()->locate_information_realtime_ = const_cast< ::message::Locate_information*>(
|
|
|
::message::Locate_information::internal_default_instance());
|
|
|
::message::_Measure_status_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
|
|
|
::message::Error_manager::internal_default_instance());
|
|
|
}
|
|
|
-void Measure_status_msg::clear_msg_type() {
|
|
|
- if (msg_type_ != NULL) msg_type_->Clear();
|
|
|
- clear_has_msg_type();
|
|
|
+void Measure_status_msg::clear_base_info() {
|
|
|
+ if (base_info_ != NULL) base_info_->Clear();
|
|
|
+ clear_has_base_info();
|
|
|
}
|
|
|
void Measure_status_msg::clear_locate_information_realtime() {
|
|
|
if (locate_information_realtime_ != NULL) locate_information_realtime_->Clear();
|
|
@@ -313,7 +313,7 @@ void Measure_status_msg::clear_error_manager() {
|
|
|
clear_has_error_manager();
|
|
|
}
|
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
-const int Measure_status_msg::kMsgTypeFieldNumber;
|
|
|
+const int Measure_status_msg::kBaseInfoFieldNumber;
|
|
|
const int Measure_status_msg::kLaserManagerStatusFieldNumber;
|
|
|
const int Measure_status_msg::kLaserStatuVectorFieldNumber;
|
|
|
const int Measure_status_msg::kLocateManagerStatusFieldNumber;
|
|
@@ -336,10 +336,10 @@ Measure_status_msg::Measure_status_msg(const Measure_status_msg& from)
|
|
|
_cached_size_(0),
|
|
|
laser_statu_vector_(from.laser_statu_vector_) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- if (from.has_msg_type()) {
|
|
|
- msg_type_ = new ::message::Base_msg(*from.msg_type_);
|
|
|
+ if (from.has_base_info()) {
|
|
|
+ base_info_ = new ::message::Base_info(*from.base_info_);
|
|
|
} else {
|
|
|
- msg_type_ = NULL;
|
|
|
+ base_info_ = NULL;
|
|
|
}
|
|
|
if (from.has_locate_information_realtime()) {
|
|
|
locate_information_realtime_ = new ::message::Locate_information(*from.locate_information_realtime_);
|
|
@@ -359,9 +359,9 @@ Measure_status_msg::Measure_status_msg(const Measure_status_msg& from)
|
|
|
|
|
|
void Measure_status_msg::SharedCtor() {
|
|
|
_cached_size_ = 0;
|
|
|
- ::memset(&msg_type_, 0, static_cast<size_t>(
|
|
|
+ ::memset(&base_info_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&locate_manager_status_) -
|
|
|
- reinterpret_cast<char*>(&msg_type_)) + sizeof(locate_manager_status_));
|
|
|
+ reinterpret_cast<char*>(&base_info_)) + sizeof(locate_manager_status_));
|
|
|
}
|
|
|
|
|
|
Measure_status_msg::~Measure_status_msg() {
|
|
@@ -370,7 +370,7 @@ Measure_status_msg::~Measure_status_msg() {
|
|
|
}
|
|
|
|
|
|
void Measure_status_msg::SharedDtor() {
|
|
|
- if (this != internal_default_instance()) delete msg_type_;
|
|
|
+ if (this != internal_default_instance()) delete base_info_;
|
|
|
if (this != internal_default_instance()) delete locate_information_realtime_;
|
|
|
if (this != internal_default_instance()) delete error_manager_;
|
|
|
}
|
|
@@ -408,8 +408,8 @@ void Measure_status_msg::Clear() {
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
if (cached_has_bits & 7u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- GOOGLE_DCHECK(msg_type_ != NULL);
|
|
|
- msg_type_->Clear();
|
|
|
+ GOOGLE_DCHECK(base_info_ != NULL);
|
|
|
+ base_info_->Clear();
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
GOOGLE_DCHECK(locate_information_realtime_ != NULL);
|
|
@@ -439,12 +439,12 @@ bool Measure_status_msg::MergePartialFromCodedStream(
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
|
- // required .message.Base_msg msg_type = 1;
|
|
|
+ // 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_msg_type()));
|
|
|
+ input, mutable_base_info()));
|
|
|
} else {
|
|
|
goto handle_unusual;
|
|
|
}
|
|
@@ -571,10 +571,10 @@ void Measure_status_msg::SerializeWithCachedSizes(
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
- // required .message.Base_msg msg_type = 1;
|
|
|
+ // required .message.Base_info base_info = 1;
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 1, *this->msg_type_, output);
|
|
|
+ 1, *this->base_info_, output);
|
|
|
}
|
|
|
|
|
|
// required .message.Laser_manager_status laser_manager_status = 2;
|
|
@@ -622,11 +622,11 @@ void Measure_status_msg::SerializeWithCachedSizes(
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
- // required .message.Base_msg msg_type = 1;
|
|
|
+ // required .message.Base_info base_info = 1;
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 1, *this->msg_type_, deterministic, target);
|
|
|
+ 1, *this->base_info_, deterministic, target);
|
|
|
}
|
|
|
|
|
|
// required .message.Laser_manager_status laser_manager_status = 2;
|
|
@@ -671,11 +671,11 @@ size_t Measure_status_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Measure_status_msg)
|
|
|
size_t total_size = 0;
|
|
|
|
|
|
- if (has_msg_type()) {
|
|
|
- // required .message.Base_msg msg_type = 1;
|
|
|
+ if (has_base_info()) {
|
|
|
+ // required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->msg_type_);
|
|
|
+ *this->base_info_);
|
|
|
}
|
|
|
|
|
|
if (has_error_manager()) {
|
|
@@ -709,10 +709,10 @@ size_t Measure_status_msg::ByteSizeLong() const {
|
|
|
_internal_metadata_.unknown_fields());
|
|
|
}
|
|
|
if (((_has_bits_[0] & 0x0000001d) ^ 0x0000001d) == 0) { // All required fields are present.
|
|
|
- // required .message.Base_msg msg_type = 1;
|
|
|
+ // required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->msg_type_);
|
|
|
+ *this->base_info_);
|
|
|
|
|
|
// required .message.Error_manager error_manager = 6;
|
|
|
total_size += 1 +
|
|
@@ -780,7 +780,7 @@ void Measure_status_msg::MergeFrom(const Measure_status_msg& from) {
|
|
|
cached_has_bits = from._has_bits_[0];
|
|
|
if (cached_has_bits & 31u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- mutable_msg_type()->::message::Base_msg::MergeFrom(from.msg_type());
|
|
|
+ mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
mutable_locate_information_realtime()->::message::Locate_information::MergeFrom(from.locate_information_realtime());
|
|
@@ -814,8 +814,8 @@ void Measure_status_msg::CopyFrom(const Measure_status_msg& from) {
|
|
|
|
|
|
bool Measure_status_msg::IsInitialized() const {
|
|
|
if ((_has_bits_[0] & 0x0000001d) != 0x0000001d) return false;
|
|
|
- if (has_msg_type()) {
|
|
|
- if (!this->msg_type_->IsInitialized()) return false;
|
|
|
+ if (has_base_info()) {
|
|
|
+ if (!this->base_info_->IsInitialized()) return false;
|
|
|
}
|
|
|
if (has_error_manager()) {
|
|
|
if (!this->error_manager_->IsInitialized()) return false;
|
|
@@ -830,7 +830,7 @@ void Measure_status_msg::Swap(Measure_status_msg* other) {
|
|
|
void Measure_status_msg::InternalSwap(Measure_status_msg* other) {
|
|
|
using std::swap;
|
|
|
laser_statu_vector_.InternalSwap(&other->laser_statu_vector_);
|
|
|
- swap(msg_type_, other->msg_type_);
|
|
|
+ swap(base_info_, other->base_info_);
|
|
|
swap(locate_information_realtime_, other->locate_information_realtime_);
|
|
|
swap(error_manager_, other->error_manager_);
|
|
|
swap(laser_manager_status_, other->laser_manager_status_);
|
|
@@ -849,15 +849,15 @@ void Measure_status_msg::InternalSwap(Measure_status_msg* other) {
|
|
|
// ===================================================================
|
|
|
|
|
|
void Measure_request_msg::InitAsDefaultInstance() {
|
|
|
- ::message::_Measure_request_msg_default_instance_._instance.get_mutable()->msg_base_ = const_cast< ::message::Base_msg*>(
|
|
|
- ::message::Base_msg::internal_default_instance());
|
|
|
+ ::message::_Measure_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
|
|
|
+ ::message::Base_info::internal_default_instance());
|
|
|
}
|
|
|
-void Measure_request_msg::clear_msg_base() {
|
|
|
- if (msg_base_ != NULL) msg_base_->Clear();
|
|
|
- clear_has_msg_base();
|
|
|
+void Measure_request_msg::clear_base_info() {
|
|
|
+ if (base_info_ != NULL) base_info_->Clear();
|
|
|
+ clear_has_base_info();
|
|
|
}
|
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
-const int Measure_request_msg::kMsgBaseFieldNumber;
|
|
|
+const int Measure_request_msg::kBaseInfoFieldNumber;
|
|
|
const int Measure_request_msg::kCommandIdFieldNumber;
|
|
|
const int Measure_request_msg::kTerminalIdFieldNumber;
|
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
@@ -876,10 +876,10 @@ Measure_request_msg::Measure_request_msg(const Measure_request_msg& from)
|
|
|
_has_bits_(from._has_bits_),
|
|
|
_cached_size_(0) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- if (from.has_msg_base()) {
|
|
|
- msg_base_ = new ::message::Base_msg(*from.msg_base_);
|
|
|
+ if (from.has_base_info()) {
|
|
|
+ base_info_ = new ::message::Base_info(*from.base_info_);
|
|
|
} else {
|
|
|
- msg_base_ = NULL;
|
|
|
+ base_info_ = NULL;
|
|
|
}
|
|
|
::memcpy(&command_id_, &from.command_id_,
|
|
|
static_cast<size_t>(reinterpret_cast<char*>(&terminal_id_) -
|
|
@@ -889,9 +889,9 @@ Measure_request_msg::Measure_request_msg(const Measure_request_msg& from)
|
|
|
|
|
|
void Measure_request_msg::SharedCtor() {
|
|
|
_cached_size_ = 0;
|
|
|
- ::memset(&msg_base_, 0, static_cast<size_t>(
|
|
|
+ ::memset(&base_info_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&terminal_id_) -
|
|
|
- reinterpret_cast<char*>(&msg_base_)) + sizeof(terminal_id_));
|
|
|
+ reinterpret_cast<char*>(&base_info_)) + sizeof(terminal_id_));
|
|
|
}
|
|
|
|
|
|
Measure_request_msg::~Measure_request_msg() {
|
|
@@ -900,7 +900,7 @@ Measure_request_msg::~Measure_request_msg() {
|
|
|
}
|
|
|
|
|
|
void Measure_request_msg::SharedDtor() {
|
|
|
- if (this != internal_default_instance()) delete msg_base_;
|
|
|
+ if (this != internal_default_instance()) delete base_info_;
|
|
|
}
|
|
|
|
|
|
void Measure_request_msg::SetCachedSize(int size) const {
|
|
@@ -934,8 +934,8 @@ void Measure_request_msg::Clear() {
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- GOOGLE_DCHECK(msg_base_ != NULL);
|
|
|
- msg_base_->Clear();
|
|
|
+ GOOGLE_DCHECK(base_info_ != NULL);
|
|
|
+ base_info_->Clear();
|
|
|
}
|
|
|
if (cached_has_bits & 6u) {
|
|
|
::memset(&command_id_, 0, static_cast<size_t>(
|
|
@@ -956,12 +956,12 @@ bool Measure_request_msg::MergePartialFromCodedStream(
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
|
- // required .message.Base_msg msg_base = 1;
|
|
|
+ // 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_msg_base()));
|
|
|
+ input, mutable_base_info()));
|
|
|
} else {
|
|
|
goto handle_unusual;
|
|
|
}
|
|
@@ -1023,10 +1023,10 @@ void Measure_request_msg::SerializeWithCachedSizes(
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
- // required .message.Base_msg msg_base = 1;
|
|
|
+ // required .message.Base_info base_info = 1;
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 1, *this->msg_base_, output);
|
|
|
+ 1, *this->base_info_, output);
|
|
|
}
|
|
|
|
|
|
// required int32 command_id = 2;
|
|
@@ -1054,11 +1054,11 @@ void Measure_request_msg::SerializeWithCachedSizes(
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
- // required .message.Base_msg msg_base = 1;
|
|
|
+ // required .message.Base_info base_info = 1;
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 1, *this->msg_base_, deterministic, target);
|
|
|
+ 1, *this->base_info_, deterministic, target);
|
|
|
}
|
|
|
|
|
|
// required int32 command_id = 2;
|
|
@@ -1083,11 +1083,11 @@ size_t Measure_request_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Measure_request_msg)
|
|
|
size_t total_size = 0;
|
|
|
|
|
|
- if (has_msg_base()) {
|
|
|
- // required .message.Base_msg msg_base = 1;
|
|
|
+ if (has_base_info()) {
|
|
|
+ // required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->msg_base_);
|
|
|
+ *this->base_info_);
|
|
|
}
|
|
|
|
|
|
if (has_command_id()) {
|
|
@@ -1116,10 +1116,10 @@ size_t Measure_request_msg::ByteSizeLong() const {
|
|
|
_internal_metadata_.unknown_fields());
|
|
|
}
|
|
|
if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
|
|
|
- // required .message.Base_msg msg_base = 1;
|
|
|
+ // required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->msg_base_);
|
|
|
+ *this->base_info_);
|
|
|
|
|
|
// required int32 command_id = 2;
|
|
|
total_size += 1 +
|
|
@@ -1166,7 +1166,7 @@ void Measure_request_msg::MergeFrom(const Measure_request_msg& from) {
|
|
|
cached_has_bits = from._has_bits_[0];
|
|
|
if (cached_has_bits & 7u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- mutable_msg_base()->::message::Base_msg::MergeFrom(from.msg_base());
|
|
|
+ mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
command_id_ = from.command_id_;
|
|
@@ -1194,8 +1194,8 @@ void Measure_request_msg::CopyFrom(const Measure_request_msg& from) {
|
|
|
|
|
|
bool Measure_request_msg::IsInitialized() const {
|
|
|
if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
|
|
|
- if (has_msg_base()) {
|
|
|
- if (!this->msg_base_->IsInitialized()) return false;
|
|
|
+ if (has_base_info()) {
|
|
|
+ if (!this->base_info_->IsInitialized()) return false;
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
@@ -1206,7 +1206,7 @@ void Measure_request_msg::Swap(Measure_request_msg* other) {
|
|
|
}
|
|
|
void Measure_request_msg::InternalSwap(Measure_request_msg* other) {
|
|
|
using std::swap;
|
|
|
- swap(msg_base_, other->msg_base_);
|
|
|
+ swap(base_info_, other->base_info_);
|
|
|
swap(command_id_, other->command_id_);
|
|
|
swap(terminal_id_, other->terminal_id_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
@@ -1223,16 +1223,16 @@ void Measure_request_msg::InternalSwap(Measure_request_msg* other) {
|
|
|
// ===================================================================
|
|
|
|
|
|
void Measure_response_msg::InitAsDefaultInstance() {
|
|
|
- ::message::_Measure_response_msg_default_instance_._instance.get_mutable()->msg_base_ = const_cast< ::message::Base_msg*>(
|
|
|
- ::message::Base_msg::internal_default_instance());
|
|
|
+ ::message::_Measure_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
|
|
|
+ ::message::Base_info::internal_default_instance());
|
|
|
::message::_Measure_response_msg_default_instance_._instance.get_mutable()->locate_information_ = const_cast< ::message::Locate_information*>(
|
|
|
::message::Locate_information::internal_default_instance());
|
|
|
::message::_Measure_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
|
|
|
::message::Error_manager::internal_default_instance());
|
|
|
}
|
|
|
-void Measure_response_msg::clear_msg_base() {
|
|
|
- if (msg_base_ != NULL) msg_base_->Clear();
|
|
|
- clear_has_msg_base();
|
|
|
+void Measure_response_msg::clear_base_info() {
|
|
|
+ if (base_info_ != NULL) base_info_->Clear();
|
|
|
+ clear_has_base_info();
|
|
|
}
|
|
|
void Measure_response_msg::clear_locate_information() {
|
|
|
if (locate_information_ != NULL) locate_information_->Clear();
|
|
@@ -1243,7 +1243,7 @@ void Measure_response_msg::clear_error_manager() {
|
|
|
clear_has_error_manager();
|
|
|
}
|
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
-const int Measure_response_msg::kMsgBaseFieldNumber;
|
|
|
+const int Measure_response_msg::kBaseInfoFieldNumber;
|
|
|
const int Measure_response_msg::kCommandIdFieldNumber;
|
|
|
const int Measure_response_msg::kTerminalIdFieldNumber;
|
|
|
const int Measure_response_msg::kLocateInformationFieldNumber;
|
|
@@ -1264,10 +1264,10 @@ Measure_response_msg::Measure_response_msg(const Measure_response_msg& from)
|
|
|
_has_bits_(from._has_bits_),
|
|
|
_cached_size_(0) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- if (from.has_msg_base()) {
|
|
|
- msg_base_ = new ::message::Base_msg(*from.msg_base_);
|
|
|
+ if (from.has_base_info()) {
|
|
|
+ base_info_ = new ::message::Base_info(*from.base_info_);
|
|
|
} else {
|
|
|
- msg_base_ = NULL;
|
|
|
+ base_info_ = NULL;
|
|
|
}
|
|
|
if (from.has_locate_information()) {
|
|
|
locate_information_ = new ::message::Locate_information(*from.locate_information_);
|
|
@@ -1287,9 +1287,9 @@ Measure_response_msg::Measure_response_msg(const Measure_response_msg& from)
|
|
|
|
|
|
void Measure_response_msg::SharedCtor() {
|
|
|
_cached_size_ = 0;
|
|
|
- ::memset(&msg_base_, 0, static_cast<size_t>(
|
|
|
+ ::memset(&base_info_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&terminal_id_) -
|
|
|
- reinterpret_cast<char*>(&msg_base_)) + sizeof(terminal_id_));
|
|
|
+ reinterpret_cast<char*>(&base_info_)) + sizeof(terminal_id_));
|
|
|
}
|
|
|
|
|
|
Measure_response_msg::~Measure_response_msg() {
|
|
@@ -1298,7 +1298,7 @@ Measure_response_msg::~Measure_response_msg() {
|
|
|
}
|
|
|
|
|
|
void Measure_response_msg::SharedDtor() {
|
|
|
- if (this != internal_default_instance()) delete msg_base_;
|
|
|
+ if (this != internal_default_instance()) delete base_info_;
|
|
|
if (this != internal_default_instance()) delete locate_information_;
|
|
|
if (this != internal_default_instance()) delete error_manager_;
|
|
|
}
|
|
@@ -1335,8 +1335,8 @@ void Measure_response_msg::Clear() {
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
if (cached_has_bits & 7u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- GOOGLE_DCHECK(msg_base_ != NULL);
|
|
|
- msg_base_->Clear();
|
|
|
+ GOOGLE_DCHECK(base_info_ != NULL);
|
|
|
+ base_info_->Clear();
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
GOOGLE_DCHECK(locate_information_ != NULL);
|
|
@@ -1366,12 +1366,12 @@ bool Measure_response_msg::MergePartialFromCodedStream(
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
|
- // required .message.Base_msg msg_base = 1;
|
|
|
+ // 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_msg_base()));
|
|
|
+ input, mutable_base_info()));
|
|
|
} else {
|
|
|
goto handle_unusual;
|
|
|
}
|
|
@@ -1457,10 +1457,10 @@ void Measure_response_msg::SerializeWithCachedSizes(
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
- // required .message.Base_msg msg_base = 1;
|
|
|
+ // required .message.Base_info base_info = 1;
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 1, *this->msg_base_, output);
|
|
|
+ 1, *this->base_info_, output);
|
|
|
}
|
|
|
|
|
|
// required int32 command_id = 2;
|
|
@@ -1500,11 +1500,11 @@ void Measure_response_msg::SerializeWithCachedSizes(
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
- // required .message.Base_msg msg_base = 1;
|
|
|
+ // required .message.Base_info base_info = 1;
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 1, *this->msg_base_, deterministic, target);
|
|
|
+ 1, *this->base_info_, deterministic, target);
|
|
|
}
|
|
|
|
|
|
// required int32 command_id = 2;
|
|
@@ -1543,11 +1543,11 @@ size_t Measure_response_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Measure_response_msg)
|
|
|
size_t total_size = 0;
|
|
|
|
|
|
- if (has_msg_base()) {
|
|
|
- // required .message.Base_msg msg_base = 1;
|
|
|
+ if (has_base_info()) {
|
|
|
+ // required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->msg_base_);
|
|
|
+ *this->base_info_);
|
|
|
}
|
|
|
|
|
|
if (has_error_manager()) {
|
|
@@ -1583,10 +1583,10 @@ size_t Measure_response_msg::ByteSizeLong() const {
|
|
|
_internal_metadata_.unknown_fields());
|
|
|
}
|
|
|
if (((_has_bits_[0] & 0x0000001d) ^ 0x0000001d) == 0) { // All required fields are present.
|
|
|
- // required .message.Base_msg msg_base = 1;
|
|
|
+ // required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->msg_base_);
|
|
|
+ *this->base_info_);
|
|
|
|
|
|
// required .message.Error_manager error_manager = 5;
|
|
|
total_size += 1 +
|
|
@@ -1645,7 +1645,7 @@ void Measure_response_msg::MergeFrom(const Measure_response_msg& from) {
|
|
|
cached_has_bits = from._has_bits_[0];
|
|
|
if (cached_has_bits & 31u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- mutable_msg_base()->::message::Base_msg::MergeFrom(from.msg_base());
|
|
|
+ mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
mutable_locate_information()->::message::Locate_information::MergeFrom(from.locate_information());
|
|
@@ -1679,8 +1679,8 @@ void Measure_response_msg::CopyFrom(const Measure_response_msg& from) {
|
|
|
|
|
|
bool Measure_response_msg::IsInitialized() const {
|
|
|
if ((_has_bits_[0] & 0x0000001d) != 0x0000001d) return false;
|
|
|
- if (has_msg_base()) {
|
|
|
- if (!this->msg_base_->IsInitialized()) return false;
|
|
|
+ if (has_base_info()) {
|
|
|
+ if (!this->base_info_->IsInitialized()) return false;
|
|
|
}
|
|
|
if (has_error_manager()) {
|
|
|
if (!this->error_manager_->IsInitialized()) return false;
|
|
@@ -1694,7 +1694,7 @@ void Measure_response_msg::Swap(Measure_response_msg* other) {
|
|
|
}
|
|
|
void Measure_response_msg::InternalSwap(Measure_response_msg* other) {
|
|
|
using std::swap;
|
|
|
- swap(msg_base_, other->msg_base_);
|
|
|
+ swap(base_info_, other->base_info_);
|
|
|
swap(locate_information_, other->locate_information_);
|
|
|
swap(error_manager_, other->error_manager_);
|
|
|
swap(command_id_, other->command_id_);
|