|
@@ -192,9 +192,11 @@ 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::Harware_statu_msg, msg_type_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Harware_statu_msg, carrier1_statu_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Harware_statu_msg, carrier2_statu_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Harware_statu_msg, carrier3_statu_),
|
|
|
+ 3,
|
|
|
0,
|
|
|
1,
|
|
|
2,
|
|
@@ -203,18 +205,22 @@ 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::Execute_request_msg, msg_type_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Execute_request_msg, cmd_msg_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Execute_request_msg, time_out_),
|
|
|
- 0,
|
|
|
1,
|
|
|
+ 0,
|
|
|
+ 2,
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Execute_response_msg, _has_bits_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Execute_response_msg, _internal_metadata_),
|
|
|
~0u, // no _extensions_
|
|
|
~0u, // no _oneof_case_
|
|
|
~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Execute_response_msg, msg_type_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Execute_response_msg, cmd_msg_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Execute_response_msg, error_code_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Execute_response_msg, error_description_),
|
|
|
+ 3,
|
|
|
1,
|
|
|
2,
|
|
|
0,
|
|
@@ -222,9 +228,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::Position)},
|
|
|
{ 11, 21, sizeof(::message::Carrier_status)},
|
|
|
- { 26, 34, sizeof(::message::Harware_statu_msg)},
|
|
|
- { 37, 44, sizeof(::message::Execute_request_msg)},
|
|
|
- { 46, 54, sizeof(::message::Execute_response_msg)},
|
|
|
+ { 26, 35, sizeof(::message::Harware_statu_msg)},
|
|
|
+ { 39, 47, sizeof(::message::Execute_request_msg)},
|
|
|
+ { 50, 59, sizeof(::message::Execute_response_msg)},
|
|
|
};
|
|
|
|
|
|
static ::google::protobuf::Message const * const file_default_instances[] = {
|
|
@@ -264,20 +270,24 @@ void AddDescriptorsImpl() {
|
|
|
"\007cmd_msg\030\002 \001(\0132\030.message.Command_message"
|
|
|
"\022\031\n\021error_destination\030\003 \001(\t\022#\n\010position\030"
|
|
|
"\004 \001(\0132\021.message.Position\022\r\n\005empty\030\005 \002(\010\""
|
|
|
- "\246\001\n\021Harware_statu_msg\022/\n\016carrier1_statu\030"
|
|
|
- "\001 \002(\0132\027.message.Carrier_status\022/\n\016carrie"
|
|
|
- "r2_statu\030\002 \002(\0132\027.message.Carrier_status\022"
|
|
|
- "/\n\016carrier3_statu\030\003 \002(\0132\027.message.Carrie"
|
|
|
- "r_status\"Z\n\023Execute_request_msg\022)\n\007cmd_m"
|
|
|
- "sg\030\001 \002(\0132\030.message.Command_message\022\030\n\010ti"
|
|
|
- "me_out\030\003 \001(\005:\006200000\"p\n\024Execute_response"
|
|
|
- "_msg\022)\n\007cmd_msg\030\001 \002(\0132\030.message.Command_"
|
|
|
- "message\022\022\n\nerror_code\030\002 \002(\005\022\031\n\021error_des"
|
|
|
- "cription\030\003 \001(\t*\?\n\016Hardware_statu\022\013\n\007eNor"
|
|
|
- "mal\020\000\022\t\n\005eBusy\020\001\022\t\n\005eMiss\020\002\022\n\n\006eError\020\003"
|
|
|
+ "\317\001\n\021Harware_statu_msg\022\'\n\010msg_type\030\001 \002(\0162"
|
|
|
+ "\025.message.Message_type\022/\n\016carrier1_statu"
|
|
|
+ "\030\002 \002(\0132\027.message.Carrier_status\022/\n\016carri"
|
|
|
+ "er2_statu\030\003 \002(\0132\027.message.Carrier_status"
|
|
|
+ "\022/\n\016carrier3_statu\030\004 \002(\0132\027.message.Carri"
|
|
|
+ "er_status\"\203\001\n\023Execute_request_msg\022\'\n\010msg"
|
|
|
+ "_type\030\001 \002(\0162\025.message.Message_type\022)\n\007cm"
|
|
|
+ "d_msg\030\002 \002(\0132\030.message.Command_message\022\030\n"
|
|
|
+ "\010time_out\030\003 \001(\005:\006200000\"\231\001\n\024Execute_resp"
|
|
|
+ "onse_msg\022\'\n\010msg_type\030\001 \002(\0162\025.message.Mes"
|
|
|
+ "sage_type\022)\n\007cmd_msg\030\002 \002(\0132\030.message.Com"
|
|
|
+ "mand_message\022\022\n\nerror_code\030\003 \002(\005\022\031\n\021erro"
|
|
|
+ "r_description\030\004 \001(\t*\?\n\016Hardware_statu\022\013\n"
|
|
|
+ "\007eNormal\020\000\022\t\n\005eBusy\020\001\022\t\n\005eMiss\020\002\022\n\n\006eErr"
|
|
|
+ "or\020\003"
|
|
|
};
|
|
|
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
|
|
- descriptor, 719);
|
|
|
+ descriptor, 844);
|
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
|
|
"hardware_message.proto", &protobuf_RegisterTypes);
|
|
|
::protobuf_message_5fbase_2eproto::AddDescriptors();
|
|
@@ -1152,6 +1162,7 @@ void Harware_statu_msg::InitAsDefaultInstance() {
|
|
|
::message::Carrier_status::internal_default_instance());
|
|
|
}
|
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int Harware_statu_msg::kMsgTypeFieldNumber;
|
|
|
const int Harware_statu_msg::kCarrier1StatuFieldNumber;
|
|
|
const int Harware_statu_msg::kCarrier2StatuFieldNumber;
|
|
|
const int Harware_statu_msg::kCarrier3StatuFieldNumber;
|
|
@@ -1186,6 +1197,7 @@ Harware_statu_msg::Harware_statu_msg(const Harware_statu_msg& from)
|
|
|
} else {
|
|
|
carrier3_statu_ = NULL;
|
|
|
}
|
|
|
+ msg_type_ = from.msg_type_;
|
|
|
// @@protoc_insertion_point(copy_constructor:message.Harware_statu_msg)
|
|
|
}
|
|
|
|
|
@@ -1194,6 +1206,7 @@ void Harware_statu_msg::SharedCtor() {
|
|
|
::memset(&carrier1_statu_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&carrier3_statu_) -
|
|
|
reinterpret_cast<char*>(&carrier1_statu_)) + sizeof(carrier3_statu_));
|
|
|
+ msg_type_ = 1;
|
|
|
}
|
|
|
|
|
|
Harware_statu_msg::~Harware_statu_msg() {
|
|
@@ -1237,7 +1250,7 @@ void Harware_statu_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(carrier1_statu_ != NULL);
|
|
|
carrier1_statu_->Clear();
|
|
@@ -1250,6 +1263,7 @@ void Harware_statu_msg::Clear() {
|
|
|
GOOGLE_DCHECK(carrier3_statu_ != NULL);
|
|
|
carrier3_statu_->Clear();
|
|
|
}
|
|
|
+ msg_type_ = 1;
|
|
|
}
|
|
|
_has_bits_.Clear();
|
|
|
_internal_metadata_.Clear();
|
|
@@ -1265,34 +1279,54 @@ bool Harware_statu_msg::MergePartialFromCodedStream(
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
|
- // required .message.Carrier_status carrier1_statu = 1;
|
|
|
+ // required .message.Message_type msg_type = 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_carrier1_statu()));
|
|
|
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
|
|
+ int value;
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
|
+ input, &value)));
|
|
|
+ if (::message::Message_type_IsValid(value)) {
|
|
|
+ set_msg_type(static_cast< ::message::Message_type >(value));
|
|
|
+ } else {
|
|
|
+ mutable_unknown_fields()->AddVarint(
|
|
|
+ 1, static_cast< ::google::protobuf::uint64>(value));
|
|
|
+ }
|
|
|
} else {
|
|
|
goto handle_unusual;
|
|
|
}
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- // required .message.Carrier_status carrier2_statu = 2;
|
|
|
+ // required .message.Carrier_status carrier1_statu = 2;
|
|
|
case 2: {
|
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
|
- input, mutable_carrier2_statu()));
|
|
|
+ input, mutable_carrier1_statu()));
|
|
|
} else {
|
|
|
goto handle_unusual;
|
|
|
}
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- // required .message.Carrier_status carrier3_statu = 3;
|
|
|
+ // required .message.Carrier_status carrier2_statu = 3;
|
|
|
case 3: {
|
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
|
+ input, mutable_carrier2_statu()));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ // required .message.Carrier_status carrier3_statu = 4;
|
|
|
+ case 4: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
|
input, mutable_carrier3_statu()));
|
|
|
} else {
|
|
@@ -1328,22 +1362,28 @@ void Harware_statu_msg::SerializeWithCachedSizes(
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
- // required .message.Carrier_status carrier1_statu = 1;
|
|
|
+ // required .message.Message_type msg_type = 1;
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
|
+ 1, this->msg_type(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ // required .message.Carrier_status carrier1_statu = 2;
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 1, *this->carrier1_statu_, output);
|
|
|
+ 2, *this->carrier1_statu_, output);
|
|
|
}
|
|
|
|
|
|
- // required .message.Carrier_status carrier2_statu = 2;
|
|
|
+ // required .message.Carrier_status carrier2_statu = 3;
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 2, *this->carrier2_statu_, output);
|
|
|
+ 3, *this->carrier2_statu_, output);
|
|
|
}
|
|
|
|
|
|
- // required .message.Carrier_status carrier3_statu = 3;
|
|
|
+ // required .message.Carrier_status carrier3_statu = 4;
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 3, *this->carrier3_statu_, output);
|
|
|
+ 4, *this->carrier3_statu_, output);
|
|
|
}
|
|
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
@@ -1361,25 +1401,31 @@ void Harware_statu_msg::SerializeWithCachedSizes(
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
- // required .message.Carrier_status carrier1_statu = 1;
|
|
|
+ // required .message.Message_type msg_type = 1;
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
|
+ 1, this->msg_type(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // required .message.Carrier_status carrier1_statu = 2;
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 1, *this->carrier1_statu_, deterministic, target);
|
|
|
+ 2, *this->carrier1_statu_, deterministic, target);
|
|
|
}
|
|
|
|
|
|
- // required .message.Carrier_status carrier2_statu = 2;
|
|
|
+ // required .message.Carrier_status carrier2_statu = 3;
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 2, *this->carrier2_statu_, deterministic, target);
|
|
|
+ 3, *this->carrier2_statu_, deterministic, target);
|
|
|
}
|
|
|
|
|
|
- // required .message.Carrier_status carrier3_statu = 3;
|
|
|
+ // required .message.Carrier_status carrier3_statu = 4;
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 3, *this->carrier3_statu_, deterministic, target);
|
|
|
+ 4, *this->carrier3_statu_, deterministic, target);
|
|
|
}
|
|
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
@@ -1395,26 +1441,32 @@ size_t Harware_statu_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
size_t total_size = 0;
|
|
|
|
|
|
if (has_carrier1_statu()) {
|
|
|
- // required .message.Carrier_status carrier1_statu = 1;
|
|
|
+ // required .message.Carrier_status carrier1_statu = 2;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
*this->carrier1_statu_);
|
|
|
}
|
|
|
|
|
|
if (has_carrier2_statu()) {
|
|
|
- // required .message.Carrier_status carrier2_statu = 2;
|
|
|
+ // required .message.Carrier_status carrier2_statu = 3;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
*this->carrier2_statu_);
|
|
|
}
|
|
|
|
|
|
if (has_carrier3_statu()) {
|
|
|
- // required .message.Carrier_status carrier3_statu = 3;
|
|
|
+ // required .message.Carrier_status carrier3_statu = 4;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
*this->carrier3_statu_);
|
|
|
}
|
|
|
|
|
|
+ if (has_msg_type()) {
|
|
|
+ // required .message.Message_type msg_type = 1;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type());
|
|
|
+ }
|
|
|
+
|
|
|
return total_size;
|
|
|
}
|
|
|
size_t Harware_statu_msg::ByteSizeLong() const {
|
|
@@ -1426,22 +1478,26 @@ size_t Harware_statu_msg::ByteSizeLong() const {
|
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
_internal_metadata_.unknown_fields());
|
|
|
}
|
|
|
- if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
|
|
|
- // required .message.Carrier_status carrier1_statu = 1;
|
|
|
+ if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
|
|
|
+ // required .message.Carrier_status carrier1_statu = 2;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
*this->carrier1_statu_);
|
|
|
|
|
|
- // required .message.Carrier_status carrier2_statu = 2;
|
|
|
+ // required .message.Carrier_status carrier2_statu = 3;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
*this->carrier2_statu_);
|
|
|
|
|
|
- // required .message.Carrier_status carrier3_statu = 3;
|
|
|
+ // required .message.Carrier_status carrier3_statu = 4;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
*this->carrier3_statu_);
|
|
|
|
|
|
+ // required .message.Message_type msg_type = 1;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type());
|
|
|
+
|
|
|
} else {
|
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
|
}
|
|
@@ -1475,7 +1531,7 @@ void Harware_statu_msg::MergeFrom(const Harware_statu_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_carrier1_statu()->::message::Carrier_status::MergeFrom(from.carrier1_statu());
|
|
|
}
|
|
@@ -1485,6 +1541,10 @@ void Harware_statu_msg::MergeFrom(const Harware_statu_msg& from) {
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
mutable_carrier3_statu()->::message::Carrier_status::MergeFrom(from.carrier3_statu());
|
|
|
}
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
+ msg_type_ = from.msg_type_;
|
|
|
+ }
|
|
|
+ _has_bits_[0] |= cached_has_bits;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1503,7 +1563,7 @@ void Harware_statu_msg::CopyFrom(const Harware_statu_msg& from) {
|
|
|
}
|
|
|
|
|
|
bool Harware_statu_msg::IsInitialized() const {
|
|
|
- if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
|
|
|
+ if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
|
|
|
if (has_carrier1_statu()) {
|
|
|
if (!this->carrier1_statu_->IsInitialized()) return false;
|
|
|
}
|
|
@@ -1525,6 +1585,7 @@ void Harware_statu_msg::InternalSwap(Harware_statu_msg* other) {
|
|
|
swap(carrier1_statu_, other->carrier1_statu_);
|
|
|
swap(carrier2_statu_, other->carrier2_statu_);
|
|
|
swap(carrier3_statu_, other->carrier3_statu_);
|
|
|
+ swap(msg_type_, other->msg_type_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
swap(_cached_size_, other->_cached_size_);
|
|
@@ -1547,6 +1608,7 @@ void Execute_request_msg::clear_cmd_msg() {
|
|
|
clear_has_cmd_msg();
|
|
|
}
|
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int Execute_request_msg::kMsgTypeFieldNumber;
|
|
|
const int Execute_request_msg::kCmdMsgFieldNumber;
|
|
|
const int Execute_request_msg::kTimeOutFieldNumber;
|
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
@@ -1570,13 +1632,16 @@ Execute_request_msg::Execute_request_msg(const Execute_request_msg& from)
|
|
|
} else {
|
|
|
cmd_msg_ = NULL;
|
|
|
}
|
|
|
- time_out_ = from.time_out_;
|
|
|
+ ::memcpy(&msg_type_, &from.msg_type_,
|
|
|
+ static_cast<size_t>(reinterpret_cast<char*>(&time_out_) -
|
|
|
+ reinterpret_cast<char*>(&msg_type_)) + sizeof(time_out_));
|
|
|
// @@protoc_insertion_point(copy_constructor:message.Execute_request_msg)
|
|
|
}
|
|
|
|
|
|
void Execute_request_msg::SharedCtor() {
|
|
|
_cached_size_ = 0;
|
|
|
cmd_msg_ = NULL;
|
|
|
+ msg_type_ = 1;
|
|
|
time_out_ = 200000;
|
|
|
}
|
|
|
|
|
@@ -1619,11 +1684,12 @@ void Execute_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(cmd_msg_ != NULL);
|
|
|
cmd_msg_->Clear();
|
|
|
}
|
|
|
+ msg_type_ = 1;
|
|
|
time_out_ = 200000;
|
|
|
}
|
|
|
_has_bits_.Clear();
|
|
@@ -1640,10 +1706,30 @@ bool Execute_request_msg::MergePartialFromCodedStream(
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
|
- // required .message.Command_message cmd_msg = 1;
|
|
|
+ // required .message.Message_type msg_type = 1;
|
|
|
case 1: {
|
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
|
|
|
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
|
|
+ int value;
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
|
+ input, &value)));
|
|
|
+ if (::message::Message_type_IsValid(value)) {
|
|
|
+ set_msg_type(static_cast< ::message::Message_type >(value));
|
|
|
+ } else {
|
|
|
+ mutable_unknown_fields()->AddVarint(
|
|
|
+ 1, static_cast< ::google::protobuf::uint64>(value));
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ // required .message.Command_message cmd_msg = 2;
|
|
|
+ case 2: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
|
input, mutable_cmd_msg()));
|
|
|
} else {
|
|
@@ -1693,14 +1779,20 @@ void Execute_request_msg::SerializeWithCachedSizes(
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
- // required .message.Command_message cmd_msg = 1;
|
|
|
+ // required .message.Message_type msg_type = 1;
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
|
+ 1, this->msg_type(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ // required .message.Command_message cmd_msg = 2;
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 1, *this->cmd_msg_, output);
|
|
|
+ 2, *this->cmd_msg_, output);
|
|
|
}
|
|
|
|
|
|
// optional int32 time_out = 3 [default = 200000];
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->time_out(), output);
|
|
|
}
|
|
|
|
|
@@ -1719,15 +1811,21 @@ void Execute_request_msg::SerializeWithCachedSizes(
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
- // required .message.Command_message cmd_msg = 1;
|
|
|
+ // required .message.Message_type msg_type = 1;
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
|
+ 1, this->msg_type(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // required .message.Command_message cmd_msg = 2;
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 1, *this->cmd_msg_, deterministic, target);
|
|
|
+ 2, *this->cmd_msg_, deterministic, target);
|
|
|
}
|
|
|
|
|
|
// optional int32 time_out = 3 [default = 200000];
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->time_out(), target);
|
|
|
}
|
|
|
|
|
@@ -1739,6 +1837,25 @@ void Execute_request_msg::SerializeWithCachedSizes(
|
|
|
return target;
|
|
|
}
|
|
|
|
|
|
+size_t Execute_request_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
+// @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Execute_request_msg)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if (has_cmd_msg()) {
|
|
|
+ // required .message.Command_message cmd_msg = 2;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
+ *this->cmd_msg_);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (has_msg_type()) {
|
|
|
+ // required .message.Message_type msg_type = 1;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type());
|
|
|
+ }
|
|
|
+
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
size_t Execute_request_msg::ByteSizeLong() const {
|
|
|
// @@protoc_insertion_point(message_byte_size_start:message.Execute_request_msg)
|
|
|
size_t total_size = 0;
|
|
@@ -1748,11 +1865,18 @@ size_t Execute_request_msg::ByteSizeLong() const {
|
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
_internal_metadata_.unknown_fields());
|
|
|
}
|
|
|
- // required .message.Command_message cmd_msg = 1;
|
|
|
- if (has_cmd_msg()) {
|
|
|
+ if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
|
|
|
+ // required .message.Command_message cmd_msg = 2;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
*this->cmd_msg_);
|
|
|
+
|
|
|
+ // required .message.Message_type msg_type = 1;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type());
|
|
|
+
|
|
|
+ } else {
|
|
|
+ total_size += RequiredFieldsByteSizeFallback();
|
|
|
}
|
|
|
// optional int32 time_out = 3 [default = 200000];
|
|
|
if (has_time_out()) {
|
|
@@ -1791,11 +1915,14 @@ void Execute_request_msg::MergeFrom(const Execute_request_msg& from) {
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
cached_has_bits = from._has_bits_[0];
|
|
|
- if (cached_has_bits & 3u) {
|
|
|
+ if (cached_has_bits & 7u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
mutable_cmd_msg()->::message::Command_message::MergeFrom(from.cmd_msg());
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
+ msg_type_ = from.msg_type_;
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
time_out_ = from.time_out_;
|
|
|
}
|
|
|
_has_bits_[0] |= cached_has_bits;
|
|
@@ -1817,7 +1944,7 @@ void Execute_request_msg::CopyFrom(const Execute_request_msg& from) {
|
|
|
}
|
|
|
|
|
|
bool Execute_request_msg::IsInitialized() const {
|
|
|
- if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
|
|
|
+ if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
|
|
|
if (has_cmd_msg()) {
|
|
|
if (!this->cmd_msg_->IsInitialized()) return false;
|
|
|
}
|
|
@@ -1831,6 +1958,7 @@ void Execute_request_msg::Swap(Execute_request_msg* other) {
|
|
|
void Execute_request_msg::InternalSwap(Execute_request_msg* other) {
|
|
|
using std::swap;
|
|
|
swap(cmd_msg_, other->cmd_msg_);
|
|
|
+ swap(msg_type_, other->msg_type_);
|
|
|
swap(time_out_, other->time_out_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
@@ -1854,6 +1982,7 @@ void Execute_response_msg::clear_cmd_msg() {
|
|
|
clear_has_cmd_msg();
|
|
|
}
|
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int Execute_response_msg::kMsgTypeFieldNumber;
|
|
|
const int Execute_response_msg::kCmdMsgFieldNumber;
|
|
|
const int Execute_response_msg::kErrorCodeFieldNumber;
|
|
|
const int Execute_response_msg::kErrorDescriptionFieldNumber;
|
|
@@ -1882,7 +2011,9 @@ Execute_response_msg::Execute_response_msg(const Execute_response_msg& from)
|
|
|
} else {
|
|
|
cmd_msg_ = NULL;
|
|
|
}
|
|
|
- error_code_ = from.error_code_;
|
|
|
+ ::memcpy(&error_code_, &from.error_code_,
|
|
|
+ static_cast<size_t>(reinterpret_cast<char*>(&msg_type_) -
|
|
|
+ reinterpret_cast<char*>(&error_code_)) + sizeof(msg_type_));
|
|
|
// @@protoc_insertion_point(copy_constructor:message.Execute_response_msg)
|
|
|
}
|
|
|
|
|
@@ -1892,6 +2023,7 @@ void Execute_response_msg::SharedCtor() {
|
|
|
::memset(&cmd_msg_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&error_code_) -
|
|
|
reinterpret_cast<char*>(&cmd_msg_)) + sizeof(error_code_));
|
|
|
+ msg_type_ = 1;
|
|
|
}
|
|
|
|
|
|
Execute_response_msg::~Execute_response_msg() {
|
|
@@ -1944,7 +2076,10 @@ void Execute_response_msg::Clear() {
|
|
|
cmd_msg_->Clear();
|
|
|
}
|
|
|
}
|
|
|
- error_code_ = 0;
|
|
|
+ if (cached_has_bits & 12u) {
|
|
|
+ error_code_ = 0;
|
|
|
+ msg_type_ = 1;
|
|
|
+ }
|
|
|
_has_bits_.Clear();
|
|
|
_internal_metadata_.Clear();
|
|
|
}
|
|
@@ -1959,10 +2094,30 @@ bool Execute_response_msg::MergePartialFromCodedStream(
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
|
- // required .message.Command_message cmd_msg = 1;
|
|
|
+ // required .message.Message_type msg_type = 1;
|
|
|
case 1: {
|
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
|
|
|
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
|
|
+ int value;
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
|
+ input, &value)));
|
|
|
+ if (::message::Message_type_IsValid(value)) {
|
|
|
+ set_msg_type(static_cast< ::message::Message_type >(value));
|
|
|
+ } else {
|
|
|
+ mutable_unknown_fields()->AddVarint(
|
|
|
+ 1, static_cast< ::google::protobuf::uint64>(value));
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ // required .message.Command_message cmd_msg = 2;
|
|
|
+ case 2: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
|
input, mutable_cmd_msg()));
|
|
|
} else {
|
|
@@ -1971,10 +2126,10 @@ bool Execute_response_msg::MergePartialFromCodedStream(
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- // required int32 error_code = 2;
|
|
|
- case 2: {
|
|
|
+ // required int32 error_code = 3;
|
|
|
+ case 3: {
|
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
- static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
|
|
|
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
|
|
|
set_has_error_code();
|
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
@@ -1985,10 +2140,10 @@ bool Execute_response_msg::MergePartialFromCodedStream(
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- // optional string error_description = 3;
|
|
|
- case 3: {
|
|
|
+ // optional string error_description = 4;
|
|
|
+ case 4: {
|
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
- static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
|
|
|
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
|
input, this->mutable_error_description()));
|
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
@@ -2028,25 +2183,31 @@ void Execute_response_msg::SerializeWithCachedSizes(
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
- // required .message.Command_message cmd_msg = 1;
|
|
|
+ // required .message.Message_type msg_type = 1;
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
|
+ 1, this->msg_type(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ // required .message.Command_message cmd_msg = 2;
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 1, *this->cmd_msg_, output);
|
|
|
+ 2, *this->cmd_msg_, output);
|
|
|
}
|
|
|
|
|
|
- // required int32 error_code = 2;
|
|
|
+ // required int32 error_code = 3;
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->error_code(), output);
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->error_code(), output);
|
|
|
}
|
|
|
|
|
|
- // optional string error_description = 3;
|
|
|
+ // optional string error_description = 4;
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
this->error_description().data(), static_cast<int>(this->error_description().length()),
|
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
|
"message.Execute_response_msg.error_description");
|
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
|
- 3, this->error_description(), output);
|
|
|
+ 4, this->error_description(), output);
|
|
|
}
|
|
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
@@ -2064,19 +2225,25 @@ void Execute_response_msg::SerializeWithCachedSizes(
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
- // required .message.Command_message cmd_msg = 1;
|
|
|
+ // required .message.Message_type msg_type = 1;
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
|
+ 1, this->msg_type(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // required .message.Command_message cmd_msg = 2;
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 1, *this->cmd_msg_, deterministic, target);
|
|
|
+ 2, *this->cmd_msg_, deterministic, target);
|
|
|
}
|
|
|
|
|
|
- // required int32 error_code = 2;
|
|
|
+ // required int32 error_code = 3;
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->error_code(), target);
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->error_code(), target);
|
|
|
}
|
|
|
|
|
|
- // optional string error_description = 3;
|
|
|
+ // optional string error_description = 4;
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
this->error_description().data(), static_cast<int>(this->error_description().length()),
|
|
@@ -2084,7 +2251,7 @@ void Execute_response_msg::SerializeWithCachedSizes(
|
|
|
"message.Execute_response_msg.error_description");
|
|
|
target =
|
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
|
- 3, this->error_description(), target);
|
|
|
+ 4, this->error_description(), target);
|
|
|
}
|
|
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
@@ -2100,19 +2267,25 @@ size_t Execute_response_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
size_t total_size = 0;
|
|
|
|
|
|
if (has_cmd_msg()) {
|
|
|
- // required .message.Command_message cmd_msg = 1;
|
|
|
+ // required .message.Command_message cmd_msg = 2;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
*this->cmd_msg_);
|
|
|
}
|
|
|
|
|
|
if (has_error_code()) {
|
|
|
- // required int32 error_code = 2;
|
|
|
+ // required int32 error_code = 3;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
this->error_code());
|
|
|
}
|
|
|
|
|
|
+ if (has_msg_type()) {
|
|
|
+ // required .message.Message_type msg_type = 1;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type());
|
|
|
+ }
|
|
|
+
|
|
|
return total_size;
|
|
|
}
|
|
|
size_t Execute_response_msg::ByteSizeLong() const {
|
|
@@ -2124,21 +2297,25 @@ size_t Execute_response_msg::ByteSizeLong() const {
|
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
_internal_metadata_.unknown_fields());
|
|
|
}
|
|
|
- if (((_has_bits_[0] & 0x00000006) ^ 0x00000006) == 0) { // All required fields are present.
|
|
|
- // required .message.Command_message cmd_msg = 1;
|
|
|
+ if (((_has_bits_[0] & 0x0000000e) ^ 0x0000000e) == 0) { // All required fields are present.
|
|
|
+ // required .message.Command_message cmd_msg = 2;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
*this->cmd_msg_);
|
|
|
|
|
|
- // required int32 error_code = 2;
|
|
|
+ // required int32 error_code = 3;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
this->error_code());
|
|
|
|
|
|
+ // required .message.Message_type msg_type = 1;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type());
|
|
|
+
|
|
|
} else {
|
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
|
}
|
|
|
- // optional string error_description = 3;
|
|
|
+ // optional string error_description = 4;
|
|
|
if (has_error_description()) {
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
@@ -2175,7 +2352,7 @@ void Execute_response_msg::MergeFrom(const Execute_response_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) {
|
|
|
set_has_error_description();
|
|
|
error_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_description_);
|
|
@@ -2186,6 +2363,9 @@ void Execute_response_msg::MergeFrom(const Execute_response_msg& from) {
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
error_code_ = from.error_code_;
|
|
|
}
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
+ msg_type_ = from.msg_type_;
|
|
|
+ }
|
|
|
_has_bits_[0] |= cached_has_bits;
|
|
|
}
|
|
|
}
|
|
@@ -2205,7 +2385,7 @@ void Execute_response_msg::CopyFrom(const Execute_response_msg& from) {
|
|
|
}
|
|
|
|
|
|
bool Execute_response_msg::IsInitialized() const {
|
|
|
- if ((_has_bits_[0] & 0x00000006) != 0x00000006) return false;
|
|
|
+ if ((_has_bits_[0] & 0x0000000e) != 0x0000000e) return false;
|
|
|
if (has_cmd_msg()) {
|
|
|
if (!this->cmd_msg_->IsInitialized()) return false;
|
|
|
}
|
|
@@ -2221,6 +2401,7 @@ void Execute_response_msg::InternalSwap(Execute_response_msg* other) {
|
|
|
error_description_.Swap(&other->error_description_);
|
|
|
swap(cmd_msg_, other->cmd_msg_);
|
|
|
swap(error_code_, other->error_code_);
|
|
|
+ swap(msg_type_, other->msg_type_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
swap(_cached_size_, other->_cached_size_);
|