|
@@ -94,7 +94,6 @@ void InitDefaultsDispatch_request_msgImpl() {
|
|
|
::google::protobuf::internal::InitProtobufDefaults();
|
|
|
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
|
|
|
- protobuf_message_5fbase_2eproto::InitDefaultsCommand_info();
|
|
|
protobuf_message_5fbase_2eproto::InitDefaultsLocate_information();
|
|
|
{
|
|
|
void* ptr = &::message::_Dispatch_request_msg_default_instance_;
|
|
@@ -118,7 +117,6 @@ void InitDefaultsDispatch_response_msgImpl() {
|
|
|
::google::protobuf::internal::InitProtobufDefaults();
|
|
|
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
|
|
|
- protobuf_message_5fbase_2eproto::InitDefaultsCommand_info();
|
|
|
protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
|
|
|
{
|
|
|
void* ptr = &::message::_Dispatch_response_msg_default_instance_;
|
|
@@ -167,13 +165,13 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
~0u, // no _oneof_case_
|
|
|
~0u, // no _weak_field_map_
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, base_info_),
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, command_info_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, command_key_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, dispatch_motion_direction_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, terminal_id_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, parkspace_id_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, locate_information_),
|
|
|
- 0,
|
|
|
1,
|
|
|
+ 0,
|
|
|
3,
|
|
|
4,
|
|
|
5,
|
|
@@ -184,10 +182,10 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
~0u, // no _oneof_case_
|
|
|
~0u, // no _weak_field_map_
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, base_info_),
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, command_info_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, command_key_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, error_manager_),
|
|
|
- 0,
|
|
|
1,
|
|
|
+ 0,
|
|
|
2,
|
|
|
};
|
|
|
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
@@ -234,30 +232,29 @@ void AddDescriptorsImpl() {
|
|
|
"ch_manager_status\030\003 \002(\0162 .message.Dispat"
|
|
|
"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"
|
|
|
+ "irection\"\375\001\n\024Dispatch_request_msg\022%\n\tbas"
|
|
|
+ "e_info\030\001 \002(\0132\022.message.Base_info\022\023\n\013comm"
|
|
|
+ "and_key\030\002 \002(\t\022E\n\031dispatch_motion_directi"
|
|
|
+ "on\030\003 \002(\0162\".message.Dispatch_motion_direc"
|
|
|
+ "tion\022\023\n\013terminal_id\030\004 \002(\005\022\024\n\014parkspace_i"
|
|
|
+ "d\030\005 \002(\005\0227\n\022locate_information\030\006 \001(\0132\033.me"
|
|
|
+ "ssage.Locate_information\"\202\001\n\025Dispatch_re"
|
|
|
+ "sponse_msg\022%\n\tbase_info\030\001 \002(\0132\022.message."
|
|
|
+ "Base_info\022\023\n\013command_key\030\002 \002(\t\022-\n\rerror_"
|
|
|
+ "manager\030\003 \002(\0132\026.message.Error_manager*\261\001"
|
|
|
+ "\n\027Dispatch_manager_status\022\035\n\031E_DISPATCH_"
|
|
|
+ "MANAGER_UNKNOW\020\000\022\034\n\030E_DISPATCH_MANAGER_R"
|
|
|
+ "EADY\020\001\022\034\n\030E_DISPATCH_MANAGER_STORE\020\002\022\035\n\031"
|
|
|
+ "E_DISPATCH_MANAGER_PICKUP\020\003\022\034\n\030E_DISPATC"
|
|
|
+ "H_MANAGER_FAULT\020\n*{\n\016Carrier_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\020E_CARRIER_PICKUP\020"
|
|
|
+ "\003\022\023\n\017E_CARRIER_FAULT\020\n*>\n\031Dispatch_motio"
|
|
|
+ "n_direction\022\017\n\013E_STORE_CAR\020\000\022\020\n\014E_PICKUP"
|
|
|
+ "_CAR\020\001"
|
|
|
};
|
|
|
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
|
|
- descriptor, 1134);
|
|
|
+ descriptor, 1086);
|
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
|
|
"dispatch_message.proto", &protobuf_RegisterTypes);
|
|
|
::protobuf_message_5fbase_2eproto::AddDescriptors();
|
|
@@ -1098,8 +1095,6 @@ void Dispatch_status_msg::InternalSwap(Dispatch_status_msg* other) {
|
|
|
void Dispatch_request_msg::InitAsDefaultInstance() {
|
|
|
::message::_Dispatch_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
|
|
|
::message::Base_info::internal_default_instance());
|
|
|
- ::message::_Dispatch_request_msg_default_instance_._instance.get_mutable()->command_info_ = const_cast< ::message::Command_info*>(
|
|
|
- ::message::Command_info::internal_default_instance());
|
|
|
::message::_Dispatch_request_msg_default_instance_._instance.get_mutable()->locate_information_ = const_cast< ::message::Locate_information*>(
|
|
|
::message::Locate_information::internal_default_instance());
|
|
|
}
|
|
@@ -1107,17 +1102,13 @@ void Dispatch_request_msg::clear_base_info() {
|
|
|
if (base_info_ != NULL) base_info_->Clear();
|
|
|
clear_has_base_info();
|
|
|
}
|
|
|
-void Dispatch_request_msg::clear_command_info() {
|
|
|
- if (command_info_ != NULL) command_info_->Clear();
|
|
|
- clear_has_command_info();
|
|
|
-}
|
|
|
void Dispatch_request_msg::clear_locate_information() {
|
|
|
if (locate_information_ != NULL) locate_information_->Clear();
|
|
|
clear_has_locate_information();
|
|
|
}
|
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
const int Dispatch_request_msg::kBaseInfoFieldNumber;
|
|
|
-const int Dispatch_request_msg::kCommandInfoFieldNumber;
|
|
|
+const int Dispatch_request_msg::kCommandKeyFieldNumber;
|
|
|
const int Dispatch_request_msg::kDispatchMotionDirectionFieldNumber;
|
|
|
const int Dispatch_request_msg::kTerminalIdFieldNumber;
|
|
|
const int Dispatch_request_msg::kParkspaceIdFieldNumber;
|
|
@@ -1138,16 +1129,15 @@ Dispatch_request_msg::Dispatch_request_msg(const Dispatch_request_msg& from)
|
|
|
_has_bits_(from._has_bits_),
|
|
|
_cached_size_(0) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
+ if (from.has_command_key()) {
|
|
|
+ command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
|
|
|
+ }
|
|
|
if (from.has_base_info()) {
|
|
|
base_info_ = new ::message::Base_info(*from.base_info_);
|
|
|
} else {
|
|
|
base_info_ = NULL;
|
|
|
}
|
|
|
- if (from.has_command_info()) {
|
|
|
- command_info_ = new ::message::Command_info(*from.command_info_);
|
|
|
- } else {
|
|
|
- command_info_ = NULL;
|
|
|
- }
|
|
|
if (from.has_locate_information()) {
|
|
|
locate_information_ = new ::message::Locate_information(*from.locate_information_);
|
|
|
} else {
|
|
@@ -1161,6 +1151,7 @@ Dispatch_request_msg::Dispatch_request_msg(const Dispatch_request_msg& from)
|
|
|
|
|
|
void Dispatch_request_msg::SharedCtor() {
|
|
|
_cached_size_ = 0;
|
|
|
+ command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
::memset(&base_info_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&parkspace_id_) -
|
|
|
reinterpret_cast<char*>(&base_info_)) + sizeof(parkspace_id_));
|
|
@@ -1172,8 +1163,8 @@ Dispatch_request_msg::~Dispatch_request_msg() {
|
|
|
}
|
|
|
|
|
|
void Dispatch_request_msg::SharedDtor() {
|
|
|
+ command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
if (this != internal_default_instance()) delete base_info_;
|
|
|
- if (this != internal_default_instance()) delete command_info_;
|
|
|
if (this != internal_default_instance()) delete locate_information_;
|
|
|
}
|
|
|
|
|
@@ -1209,12 +1200,12 @@ void Dispatch_request_msg::Clear() {
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
if (cached_has_bits & 7u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- GOOGLE_DCHECK(base_info_ != NULL);
|
|
|
- base_info_->Clear();
|
|
|
+ GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
+ (*command_key_.UnsafeRawStringPointer())->clear();
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
- GOOGLE_DCHECK(command_info_ != NULL);
|
|
|
- command_info_->Clear();
|
|
|
+ GOOGLE_DCHECK(base_info_ != NULL);
|
|
|
+ base_info_->Clear();
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
GOOGLE_DCHECK(locate_information_ != NULL);
|
|
@@ -1252,12 +1243,16 @@ bool Dispatch_request_msg::MergePartialFromCodedStream(
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- // required .message.Command_info command_info = 2;
|
|
|
+ // required string command_key = 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_command_info()));
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
|
+ input, this->mutable_command_key()));
|
|
|
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
+ this->command_key().data(), static_cast<int>(this->command_key().length()),
|
|
|
+ ::google::protobuf::internal::WireFormat::PARSE,
|
|
|
+ "message.Dispatch_request_msg.command_key");
|
|
|
} else {
|
|
|
goto handle_unusual;
|
|
|
}
|
|
@@ -1352,15 +1347,19 @@ void Dispatch_request_msg::SerializeWithCachedSizes(
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
- if (cached_has_bits & 0x00000001u) {
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
1, *this->base_info_, output);
|
|
|
}
|
|
|
|
|
|
- // required .message.Command_info command_info = 2;
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 2, *this->command_info_, output);
|
|
|
+ // required string command_key = 2;
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
+ this->command_key().data(), static_cast<int>(this->command_key().length()),
|
|
|
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
|
+ "message.Dispatch_request_msg.command_key");
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
|
+ 2, this->command_key(), output);
|
|
|
}
|
|
|
|
|
|
// required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
|
|
@@ -1401,17 +1400,21 @@ void Dispatch_request_msg::SerializeWithCachedSizes(
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
- if (cached_has_bits & 0x00000001u) {
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
1, *this->base_info_, deterministic, target);
|
|
|
}
|
|
|
|
|
|
- // required .message.Command_info command_info = 2;
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
- target = ::google::protobuf::internal::WireFormatLite::
|
|
|
- InternalWriteMessageToArray(
|
|
|
- 2, *this->command_info_, deterministic, target);
|
|
|
+ // required string command_key = 2;
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
+ this->command_key().data(), static_cast<int>(this->command_key().length()),
|
|
|
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
|
+ "message.Dispatch_request_msg.command_key");
|
|
|
+ target =
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
|
+ 2, this->command_key(), target);
|
|
|
}
|
|
|
|
|
|
// required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
|
|
@@ -1449,18 +1452,18 @@ size_t Dispatch_request_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_request_msg)
|
|
|
size_t total_size = 0;
|
|
|
|
|
|
- if (has_base_info()) {
|
|
|
- // required .message.Base_info base_info = 1;
|
|
|
+ if (has_command_key()) {
|
|
|
+ // required string command_key = 2;
|
|
|
total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->base_info_);
|
|
|
+ ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
|
+ this->command_key());
|
|
|
}
|
|
|
|
|
|
- if (has_command_info()) {
|
|
|
- // required .message.Command_info command_info = 2;
|
|
|
+ if (has_base_info()) {
|
|
|
+ // required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->command_info_);
|
|
|
+ *this->base_info_);
|
|
|
}
|
|
|
|
|
|
if (has_dispatch_motion_direction()) {
|
|
@@ -1495,15 +1498,15 @@ size_t Dispatch_request_msg::ByteSizeLong() const {
|
|
|
_internal_metadata_.unknown_fields());
|
|
|
}
|
|
|
if (((_has_bits_[0] & 0x0000003b) ^ 0x0000003b) == 0) { // All required fields are present.
|
|
|
- // required .message.Base_info base_info = 1;
|
|
|
+ // required string command_key = 2;
|
|
|
total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->base_info_);
|
|
|
+ ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
|
+ this->command_key());
|
|
|
|
|
|
- // required .message.Command_info command_info = 2;
|
|
|
+ // required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->command_info_);
|
|
|
+ *this->base_info_);
|
|
|
|
|
|
// required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
|
|
|
total_size += 1 +
|
|
@@ -1561,10 +1564,11 @@ void Dispatch_request_msg::MergeFrom(const Dispatch_request_msg& from) {
|
|
|
cached_has_bits = from._has_bits_[0];
|
|
|
if (cached_has_bits & 63u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
|
|
|
+ set_has_command_key();
|
|
|
+ command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
- mutable_command_info()->::message::Command_info::MergeFrom(from.command_info());
|
|
|
+ mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
mutable_locate_information()->::message::Locate_information::MergeFrom(from.locate_information());
|
|
@@ -1601,9 +1605,6 @@ bool Dispatch_request_msg::IsInitialized() const {
|
|
|
if (has_base_info()) {
|
|
|
if (!this->base_info_->IsInitialized()) return false;
|
|
|
}
|
|
|
- if (has_command_info()) {
|
|
|
- if (!this->command_info_->IsInitialized()) return false;
|
|
|
- }
|
|
|
return true;
|
|
|
}
|
|
|
|
|
@@ -1613,8 +1614,8 @@ void Dispatch_request_msg::Swap(Dispatch_request_msg* other) {
|
|
|
}
|
|
|
void Dispatch_request_msg::InternalSwap(Dispatch_request_msg* other) {
|
|
|
using std::swap;
|
|
|
+ command_key_.Swap(&other->command_key_);
|
|
|
swap(base_info_, other->base_info_);
|
|
|
- swap(command_info_, other->command_info_);
|
|
|
swap(locate_information_, other->locate_information_);
|
|
|
swap(dispatch_motion_direction_, other->dispatch_motion_direction_);
|
|
|
swap(terminal_id_, other->terminal_id_);
|
|
@@ -1635,8 +1636,6 @@ void Dispatch_request_msg::InternalSwap(Dispatch_request_msg* other) {
|
|
|
void Dispatch_response_msg::InitAsDefaultInstance() {
|
|
|
::message::_Dispatch_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
|
|
|
::message::Base_info::internal_default_instance());
|
|
|
- ::message::_Dispatch_response_msg_default_instance_._instance.get_mutable()->command_info_ = const_cast< ::message::Command_info*>(
|
|
|
- ::message::Command_info::internal_default_instance());
|
|
|
::message::_Dispatch_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
|
|
|
::message::Error_manager::internal_default_instance());
|
|
|
}
|
|
@@ -1644,17 +1643,13 @@ void Dispatch_response_msg::clear_base_info() {
|
|
|
if (base_info_ != NULL) base_info_->Clear();
|
|
|
clear_has_base_info();
|
|
|
}
|
|
|
-void Dispatch_response_msg::clear_command_info() {
|
|
|
- if (command_info_ != NULL) command_info_->Clear();
|
|
|
- clear_has_command_info();
|
|
|
-}
|
|
|
void Dispatch_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 Dispatch_response_msg::kBaseInfoFieldNumber;
|
|
|
-const int Dispatch_response_msg::kCommandInfoFieldNumber;
|
|
|
+const int Dispatch_response_msg::kCommandKeyFieldNumber;
|
|
|
const int Dispatch_response_msg::kErrorManagerFieldNumber;
|
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
|
@@ -1672,16 +1667,15 @@ Dispatch_response_msg::Dispatch_response_msg(const Dispatch_response_msg& from)
|
|
|
_has_bits_(from._has_bits_),
|
|
|
_cached_size_(0) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
+ if (from.has_command_key()) {
|
|
|
+ command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
|
|
|
+ }
|
|
|
if (from.has_base_info()) {
|
|
|
base_info_ = new ::message::Base_info(*from.base_info_);
|
|
|
} else {
|
|
|
base_info_ = NULL;
|
|
|
}
|
|
|
- if (from.has_command_info()) {
|
|
|
- command_info_ = new ::message::Command_info(*from.command_info_);
|
|
|
- } else {
|
|
|
- command_info_ = NULL;
|
|
|
- }
|
|
|
if (from.has_error_manager()) {
|
|
|
error_manager_ = new ::message::Error_manager(*from.error_manager_);
|
|
|
} else {
|
|
@@ -1692,6 +1686,7 @@ Dispatch_response_msg::Dispatch_response_msg(const Dispatch_response_msg& from)
|
|
|
|
|
|
void Dispatch_response_msg::SharedCtor() {
|
|
|
_cached_size_ = 0;
|
|
|
+ command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
::memset(&base_info_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&error_manager_) -
|
|
|
reinterpret_cast<char*>(&base_info_)) + sizeof(error_manager_));
|
|
@@ -1703,8 +1698,8 @@ Dispatch_response_msg::~Dispatch_response_msg() {
|
|
|
}
|
|
|
|
|
|
void Dispatch_response_msg::SharedDtor() {
|
|
|
+ command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
if (this != internal_default_instance()) delete base_info_;
|
|
|
- if (this != internal_default_instance()) delete command_info_;
|
|
|
if (this != internal_default_instance()) delete error_manager_;
|
|
|
}
|
|
|
|
|
@@ -1740,12 +1735,12 @@ void Dispatch_response_msg::Clear() {
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
if (cached_has_bits & 7u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- GOOGLE_DCHECK(base_info_ != NULL);
|
|
|
- base_info_->Clear();
|
|
|
+ GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
+ (*command_key_.UnsafeRawStringPointer())->clear();
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
- GOOGLE_DCHECK(command_info_ != NULL);
|
|
|
- command_info_->Clear();
|
|
|
+ GOOGLE_DCHECK(base_info_ != NULL);
|
|
|
+ base_info_->Clear();
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
GOOGLE_DCHECK(error_manager_ != NULL);
|
|
@@ -1778,12 +1773,16 @@ bool Dispatch_response_msg::MergePartialFromCodedStream(
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- // required .message.Command_info command_info = 2;
|
|
|
+ // required string command_key = 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_command_info()));
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
|
+ input, this->mutable_command_key()));
|
|
|
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
+ this->command_key().data(), static_cast<int>(this->command_key().length()),
|
|
|
+ ::google::protobuf::internal::WireFormat::PARSE,
|
|
|
+ "message.Dispatch_response_msg.command_key");
|
|
|
} else {
|
|
|
goto handle_unusual;
|
|
|
}
|
|
@@ -1830,15 +1829,19 @@ void Dispatch_response_msg::SerializeWithCachedSizes(
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
- if (cached_has_bits & 0x00000001u) {
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
1, *this->base_info_, output);
|
|
|
}
|
|
|
|
|
|
- // required .message.Command_info command_info = 2;
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 2, *this->command_info_, output);
|
|
|
+ // required string command_key = 2;
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
+ this->command_key().data(), static_cast<int>(this->command_key().length()),
|
|
|
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
|
+ "message.Dispatch_response_msg.command_key");
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
|
+ 2, this->command_key(), output);
|
|
|
}
|
|
|
|
|
|
// required .message.Error_manager error_manager = 3;
|
|
@@ -1863,17 +1866,21 @@ void Dispatch_response_msg::SerializeWithCachedSizes(
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
- if (cached_has_bits & 0x00000001u) {
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
1, *this->base_info_, deterministic, target);
|
|
|
}
|
|
|
|
|
|
- // required .message.Command_info command_info = 2;
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
- target = ::google::protobuf::internal::WireFormatLite::
|
|
|
- InternalWriteMessageToArray(
|
|
|
- 2, *this->command_info_, deterministic, target);
|
|
|
+ // required string command_key = 2;
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
+ this->command_key().data(), static_cast<int>(this->command_key().length()),
|
|
|
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
|
+ "message.Dispatch_response_msg.command_key");
|
|
|
+ target =
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
|
+ 2, this->command_key(), target);
|
|
|
}
|
|
|
|
|
|
// required .message.Error_manager error_manager = 3;
|
|
@@ -1895,18 +1902,18 @@ size_t Dispatch_response_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_response_msg)
|
|
|
size_t total_size = 0;
|
|
|
|
|
|
- if (has_base_info()) {
|
|
|
- // required .message.Base_info base_info = 1;
|
|
|
+ if (has_command_key()) {
|
|
|
+ // required string command_key = 2;
|
|
|
total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->base_info_);
|
|
|
+ ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
|
+ this->command_key());
|
|
|
}
|
|
|
|
|
|
- if (has_command_info()) {
|
|
|
- // required .message.Command_info command_info = 2;
|
|
|
+ if (has_base_info()) {
|
|
|
+ // required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->command_info_);
|
|
|
+ *this->base_info_);
|
|
|
}
|
|
|
|
|
|
if (has_error_manager()) {
|
|
@@ -1928,15 +1935,15 @@ size_t Dispatch_response_msg::ByteSizeLong() const {
|
|
|
_internal_metadata_.unknown_fields());
|
|
|
}
|
|
|
if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
|
|
|
- // required .message.Base_info base_info = 1;
|
|
|
+ // required string command_key = 2;
|
|
|
total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->base_info_);
|
|
|
+ ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
|
+ this->command_key());
|
|
|
|
|
|
- // required .message.Command_info command_info = 2;
|
|
|
+ // required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->command_info_);
|
|
|
+ *this->base_info_);
|
|
|
|
|
|
// required .message.Error_manager error_manager = 3;
|
|
|
total_size += 1 +
|
|
@@ -1978,10 +1985,11 @@ void Dispatch_response_msg::MergeFrom(const Dispatch_response_msg& from) {
|
|
|
cached_has_bits = from._has_bits_[0];
|
|
|
if (cached_has_bits & 7u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
|
|
|
+ set_has_command_key();
|
|
|
+ command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
- mutable_command_info()->::message::Command_info::MergeFrom(from.command_info());
|
|
|
+ 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());
|
|
@@ -2008,9 +2016,6 @@ bool Dispatch_response_msg::IsInitialized() const {
|
|
|
if (has_base_info()) {
|
|
|
if (!this->base_info_->IsInitialized()) return false;
|
|
|
}
|
|
|
- if (has_command_info()) {
|
|
|
- if (!this->command_info_->IsInitialized()) return false;
|
|
|
- }
|
|
|
if (has_error_manager()) {
|
|
|
if (!this->error_manager_->IsInitialized()) return false;
|
|
|
}
|
|
@@ -2023,8 +2028,8 @@ void Dispatch_response_msg::Swap(Dispatch_response_msg* other) {
|
|
|
}
|
|
|
void Dispatch_response_msg::InternalSwap(Dispatch_response_msg* other) {
|
|
|
using std::swap;
|
|
|
+ command_key_.Swap(&other->command_key_);
|
|
|
swap(base_info_, other->base_info_);
|
|
|
- swap(command_info_, other->command_info_);
|
|
|
swap(error_manager_, other->error_manager_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|