|
@@ -127,9 +127,11 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_terminal_5fmessage_2eproto::of
|
|
|
PROTOBUF_FIELD_OFFSET(::message::Store_command_response_msg, base_info_),
|
|
|
PROTOBUF_FIELD_OFFSET(::message::Store_command_response_msg, terminal_id_),
|
|
|
PROTOBUF_FIELD_OFFSET(::message::Store_command_response_msg, code_),
|
|
|
- 0,
|
|
|
- 2,
|
|
|
+ PROTOBUF_FIELD_OFFSET(::message::Store_command_response_msg, license_),
|
|
|
1,
|
|
|
+ 3,
|
|
|
+ 2,
|
|
|
+ 0,
|
|
|
PROTOBUF_FIELD_OFFSET(::message::Pickup_command_request_msg, _has_bits_),
|
|
|
PROTOBUF_FIELD_OFFSET(::message::Pickup_command_request_msg, _internal_metadata_),
|
|
|
~0u, // no _extensions_
|
|
@@ -149,15 +151,17 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_terminal_5fmessage_2eproto::of
|
|
|
PROTOBUF_FIELD_OFFSET(::message::Pickup_command_response_msg, base_info_),
|
|
|
PROTOBUF_FIELD_OFFSET(::message::Pickup_command_response_msg, terminal_id_),
|
|
|
PROTOBUF_FIELD_OFFSET(::message::Pickup_command_response_msg, code_),
|
|
|
- 0,
|
|
|
- 2,
|
|
|
+ PROTOBUF_FIELD_OFFSET(::message::Pickup_command_response_msg, license_),
|
|
|
1,
|
|
|
+ 3,
|
|
|
+ 2,
|
|
|
+ 0,
|
|
|
};
|
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
{ 0, 9, sizeof(::message::Store_command_request_msg)},
|
|
|
- { 13, 21, sizeof(::message::Store_command_response_msg)},
|
|
|
- { 24, 32, sizeof(::message::Pickup_command_request_msg)},
|
|
|
- { 35, 43, sizeof(::message::Pickup_command_response_msg)},
|
|
|
+ { 13, 22, sizeof(::message::Store_command_response_msg)},
|
|
|
+ { 26, 34, sizeof(::message::Pickup_command_request_msg)},
|
|
|
+ { 37, 46, sizeof(::message::Pickup_command_response_msg)},
|
|
|
};
|
|
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
|
|
@@ -173,17 +177,18 @@ const char descriptor_table_protodef_terminal_5fmessage_2eproto[] PROTOBUF_SECTI
|
|
|
"msg\022%\n\tbase_info\030\001 \002(\0132\022.message.Base_in"
|
|
|
"fo\022\023\n\013terminal_id\030\002 \002(\005\0227\n\022locate_inform"
|
|
|
"ation\030\003 \002(\0132\033.message.Locate_information"
|
|
|
- "\022#\n\010car_info\030\004 \002(\0132\021.message.Car_info\"~\n"
|
|
|
- "\032Store_command_response_msg\022%\n\tbase_info"
|
|
|
- "\030\001 \002(\0132\022.message.Base_info\022\023\n\013terminal_i"
|
|
|
- "d\030\002 \002(\005\022$\n\004code\030\003 \002(\0132\026.message.Error_ma"
|
|
|
- "nager\"}\n\032Pickup_command_request_msg\022%\n\tb"
|
|
|
- "ase_info\030\001 \002(\0132\022.message.Base_info\022\023\n\013te"
|
|
|
- "rminal_id\030\002 \002(\005\022#\n\010car_info\030\004 \002(\0132\021.mess"
|
|
|
- "age.Car_info\"\177\n\033Pickup_command_response_"
|
|
|
- "msg\022%\n\tbase_info\030\001 \002(\0132\022.message.Base_in"
|
|
|
- "fo\022\023\n\013terminal_id\030\002 \002(\005\022$\n\004code\030\003 \002(\0132\026."
|
|
|
- "message.Error_manager"
|
|
|
+ "\022#\n\010car_info\030\004 \002(\0132\021.message.Car_info\"\217\001"
|
|
|
+ "\n\032Store_command_response_msg\022%\n\tbase_inf"
|
|
|
+ "o\030\001 \002(\0132\022.message.Base_info\022\023\n\013terminal_"
|
|
|
+ "id\030\002 \002(\005\022$\n\004code\030\003 \002(\0132\026.message.Error_m"
|
|
|
+ "anager\022\017\n\007license\030\004 \001(\t\"}\n\032Pickup_comman"
|
|
|
+ "d_request_msg\022%\n\tbase_info\030\001 \002(\0132\022.messa"
|
|
|
+ "ge.Base_info\022\023\n\013terminal_id\030\002 \002(\005\022#\n\010car"
|
|
|
+ "_info\030\004 \002(\0132\021.message.Car_info\"\220\001\n\033Picku"
|
|
|
+ "p_command_response_msg\022%\n\tbase_info\030\001 \002("
|
|
|
+ "\0132\022.message.Base_info\022\023\n\013terminal_id\030\002 \002"
|
|
|
+ "(\005\022$\n\004code\030\003 \002(\0132\026.message.Error_manager"
|
|
|
+ "\022\017\n\007license\030\004 \001(\t"
|
|
|
;
|
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_terminal_5fmessage_2eproto_deps[1] = {
|
|
|
&::descriptor_table_message_5fbase_2eproto,
|
|
@@ -196,7 +201,7 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_ter
|
|
|
};
|
|
|
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_terminal_5fmessage_2eproto_once;
|
|
|
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_terminal_5fmessage_2eproto = {
|
|
|
- false, false, descriptor_table_protodef_terminal_5fmessage_2eproto, "terminal_message.proto", 621,
|
|
|
+ false, false, descriptor_table_protodef_terminal_5fmessage_2eproto, "terminal_message.proto", 657,
|
|
|
&descriptor_table_terminal_5fmessage_2eproto_once, descriptor_table_terminal_5fmessage_2eproto_sccs, descriptor_table_terminal_5fmessage_2eproto_deps, 4, 1,
|
|
|
schemas, file_default_instances, TableStruct_terminal_5fmessage_2eproto::offsets,
|
|
|
file_level_metadata_terminal_5fmessage_2eproto, 4, file_level_enum_descriptors_terminal_5fmessage_2eproto, file_level_service_descriptors_terminal_5fmessage_2eproto,
|
|
@@ -626,17 +631,20 @@ class Store_command_response_msg::_Internal {
|
|
|
using HasBits = decltype(std::declval<Store_command_response_msg>()._has_bits_);
|
|
|
static const ::message::Base_info& base_info(const Store_command_response_msg* msg);
|
|
|
static void set_has_base_info(HasBits* has_bits) {
|
|
|
- (*has_bits)[0] |= 1u;
|
|
|
+ (*has_bits)[0] |= 2u;
|
|
|
}
|
|
|
static void set_has_terminal_id(HasBits* has_bits) {
|
|
|
- (*has_bits)[0] |= 4u;
|
|
|
+ (*has_bits)[0] |= 8u;
|
|
|
}
|
|
|
static const ::message::Error_manager& code(const Store_command_response_msg* msg);
|
|
|
static void set_has_code(HasBits* has_bits) {
|
|
|
- (*has_bits)[0] |= 2u;
|
|
|
+ (*has_bits)[0] |= 4u;
|
|
|
+ }
|
|
|
+ static void set_has_license(HasBits* has_bits) {
|
|
|
+ (*has_bits)[0] |= 1u;
|
|
|
}
|
|
|
static bool MissingRequiredFields(const HasBits& has_bits) {
|
|
|
- return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0;
|
|
|
+ return ((has_bits[0] & 0x0000000e) ^ 0x0000000e) != 0;
|
|
|
}
|
|
|
};
|
|
|
|
|
@@ -650,11 +658,11 @@ Store_command_response_msg::_Internal::code(const Store_command_response_msg* ms
|
|
|
}
|
|
|
void Store_command_response_msg::clear_base_info() {
|
|
|
if (base_info_ != nullptr) base_info_->Clear();
|
|
|
- _has_bits_[0] &= ~0x00000001u;
|
|
|
+ _has_bits_[0] &= ~0x00000002u;
|
|
|
}
|
|
|
void Store_command_response_msg::clear_code() {
|
|
|
if (code_ != nullptr) code_->Clear();
|
|
|
- _has_bits_[0] &= ~0x00000002u;
|
|
|
+ _has_bits_[0] &= ~0x00000004u;
|
|
|
}
|
|
|
Store_command_response_msg::Store_command_response_msg(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
|
@@ -666,6 +674,11 @@ Store_command_response_msg::Store_command_response_msg(const Store_command_respo
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
|
_has_bits_(from._has_bits_) {
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
+ license_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
+ if (from._internal_has_license()) {
|
|
|
+ license_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_license(),
|
|
|
+ GetArena());
|
|
|
+ }
|
|
|
if (from._internal_has_base_info()) {
|
|
|
base_info_ = new ::message::Base_info(*from.base_info_);
|
|
|
} else {
|
|
@@ -682,6 +695,7 @@ Store_command_response_msg::Store_command_response_msg(const Store_command_respo
|
|
|
|
|
|
void Store_command_response_msg::SharedCtor() {
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Store_command_response_msg_terminal_5fmessage_2eproto.base);
|
|
|
+ license_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
::memset(&base_info_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&terminal_id_) -
|
|
|
reinterpret_cast<char*>(&base_info_)) + sizeof(terminal_id_));
|
|
@@ -695,6 +709,7 @@ Store_command_response_msg::~Store_command_response_msg() {
|
|
|
|
|
|
void Store_command_response_msg::SharedDtor() {
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr);
|
|
|
+ license_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
if (this != internal_default_instance()) delete base_info_;
|
|
|
if (this != internal_default_instance()) delete code_;
|
|
|
}
|
|
@@ -721,12 +736,15 @@ void Store_command_response_msg::Clear() {
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
- if (cached_has_bits & 0x00000003u) {
|
|
|
+ if (cached_has_bits & 0x00000007u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
+ license_.ClearNonDefaultToEmpty();
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
GOOGLE_DCHECK(base_info_ != nullptr);
|
|
|
base_info_->Clear();
|
|
|
}
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
GOOGLE_DCHECK(code_ != nullptr);
|
|
|
code_->Clear();
|
|
|
}
|
|
@@ -767,6 +785,17 @@ const char* Store_command_response_msg::_InternalParse(const char* ptr, ::PROTOB
|
|
|
CHK_(ptr);
|
|
|
} else goto handle_unusual;
|
|
|
continue;
|
|
|
+ // optional string license = 4;
|
|
|
+ case 4:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
|
|
+ auto str = _internal_mutable_license();
|
|
|
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
+ #ifndef NDEBUG
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "message.Store_command_response_msg.license");
|
|
|
+ #endif // !NDEBUG
|
|
|
+ CHK_(ptr);
|
|
|
+ } else goto handle_unusual;
|
|
|
+ continue;
|
|
|
default: {
|
|
|
handle_unusual:
|
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
@@ -798,7 +827,7 @@ failure:
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
- if (cached_has_bits & 0x00000001u) {
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
target = stream->EnsureSpace(target);
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
InternalWriteMessage(
|
|
@@ -806,19 +835,29 @@ failure:
|
|
|
}
|
|
|
|
|
|
// required int32 terminal_id = 2;
|
|
|
- if (cached_has_bits & 0x00000004u) {
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
target = stream->EnsureSpace(target);
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_terminal_id(), target);
|
|
|
}
|
|
|
|
|
|
// required .message.Error_manager code = 3;
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
target = stream->EnsureSpace(target);
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
InternalWriteMessage(
|
|
|
3, _Internal::code(this), target, stream);
|
|
|
}
|
|
|
|
|
|
+ // optional string license = 4;
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
+ this->_internal_license().data(), static_cast<int>(this->_internal_license().length()),
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
|
|
|
+ "message.Store_command_response_msg.license");
|
|
|
+ target = stream->WriteStringMaybeAliased(
|
|
|
+ 4, this->_internal_license(), target);
|
|
|
+ }
|
|
|
+
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
|
@@ -858,7 +897,7 @@ size_t Store_command_response_msg::ByteSizeLong() const {
|
|
|
// @@protoc_insertion_point(message_byte_size_start:message.Store_command_response_msg)
|
|
|
size_t total_size = 0;
|
|
|
|
|
|
- if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
|
|
|
+ if (((_has_bits_[0] & 0x0000000e) ^ 0x0000000e) == 0) { // All required fields are present.
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
@@ -881,6 +920,14 @@ size_t Store_command_response_msg::ByteSizeLong() const {
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
+ // optional string license = 4;
|
|
|
+ cached_has_bits = _has_bits_[0];
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
+ this->_internal_license());
|
|
|
+ }
|
|
|
+
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
|
|
_internal_metadata_, total_size, &_cached_size_);
|
|
@@ -913,14 +960,17 @@ void Store_command_response_msg::MergeFrom(const Store_command_response_msg& fro
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
cached_has_bits = from._has_bits_[0];
|
|
|
- if (cached_has_bits & 0x00000007u) {
|
|
|
+ if (cached_has_bits & 0x0000000fu) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- _internal_mutable_base_info()->::message::Base_info::MergeFrom(from._internal_base_info());
|
|
|
+ _internal_set_license(from._internal_license());
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
- _internal_mutable_code()->::message::Error_manager::MergeFrom(from._internal_code());
|
|
|
+ _internal_mutable_base_info()->::message::Base_info::MergeFrom(from._internal_base_info());
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
+ _internal_mutable_code()->::message::Error_manager::MergeFrom(from._internal_code());
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
terminal_id_ = from.terminal_id_;
|
|
|
}
|
|
|
_has_bits_[0] |= cached_has_bits;
|
|
@@ -956,6 +1006,7 @@ void Store_command_response_msg::InternalSwap(Store_command_response_msg* other)
|
|
|
using std::swap;
|
|
|
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
+ license_.Swap(&other->license_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
|
PROTOBUF_FIELD_OFFSET(Store_command_response_msg, terminal_id_)
|
|
|
+ sizeof(Store_command_response_msg::terminal_id_)
|
|
@@ -1335,17 +1386,20 @@ class Pickup_command_response_msg::_Internal {
|
|
|
using HasBits = decltype(std::declval<Pickup_command_response_msg>()._has_bits_);
|
|
|
static const ::message::Base_info& base_info(const Pickup_command_response_msg* msg);
|
|
|
static void set_has_base_info(HasBits* has_bits) {
|
|
|
- (*has_bits)[0] |= 1u;
|
|
|
+ (*has_bits)[0] |= 2u;
|
|
|
}
|
|
|
static void set_has_terminal_id(HasBits* has_bits) {
|
|
|
- (*has_bits)[0] |= 4u;
|
|
|
+ (*has_bits)[0] |= 8u;
|
|
|
}
|
|
|
static const ::message::Error_manager& code(const Pickup_command_response_msg* msg);
|
|
|
static void set_has_code(HasBits* has_bits) {
|
|
|
- (*has_bits)[0] |= 2u;
|
|
|
+ (*has_bits)[0] |= 4u;
|
|
|
+ }
|
|
|
+ static void set_has_license(HasBits* has_bits) {
|
|
|
+ (*has_bits)[0] |= 1u;
|
|
|
}
|
|
|
static bool MissingRequiredFields(const HasBits& has_bits) {
|
|
|
- return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0;
|
|
|
+ return ((has_bits[0] & 0x0000000e) ^ 0x0000000e) != 0;
|
|
|
}
|
|
|
};
|
|
|
|
|
@@ -1359,11 +1413,11 @@ Pickup_command_response_msg::_Internal::code(const Pickup_command_response_msg*
|
|
|
}
|
|
|
void Pickup_command_response_msg::clear_base_info() {
|
|
|
if (base_info_ != nullptr) base_info_->Clear();
|
|
|
- _has_bits_[0] &= ~0x00000001u;
|
|
|
+ _has_bits_[0] &= ~0x00000002u;
|
|
|
}
|
|
|
void Pickup_command_response_msg::clear_code() {
|
|
|
if (code_ != nullptr) code_->Clear();
|
|
|
- _has_bits_[0] &= ~0x00000002u;
|
|
|
+ _has_bits_[0] &= ~0x00000004u;
|
|
|
}
|
|
|
Pickup_command_response_msg::Pickup_command_response_msg(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
|
@@ -1375,6 +1429,11 @@ Pickup_command_response_msg::Pickup_command_response_msg(const Pickup_command_re
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
|
_has_bits_(from._has_bits_) {
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
+ license_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
+ if (from._internal_has_license()) {
|
|
|
+ license_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_license(),
|
|
|
+ GetArena());
|
|
|
+ }
|
|
|
if (from._internal_has_base_info()) {
|
|
|
base_info_ = new ::message::Base_info(*from.base_info_);
|
|
|
} else {
|
|
@@ -1391,6 +1450,7 @@ Pickup_command_response_msg::Pickup_command_response_msg(const Pickup_command_re
|
|
|
|
|
|
void Pickup_command_response_msg::SharedCtor() {
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Pickup_command_response_msg_terminal_5fmessage_2eproto.base);
|
|
|
+ license_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
::memset(&base_info_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&terminal_id_) -
|
|
|
reinterpret_cast<char*>(&base_info_)) + sizeof(terminal_id_));
|
|
@@ -1404,6 +1464,7 @@ Pickup_command_response_msg::~Pickup_command_response_msg() {
|
|
|
|
|
|
void Pickup_command_response_msg::SharedDtor() {
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr);
|
|
|
+ license_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
if (this != internal_default_instance()) delete base_info_;
|
|
|
if (this != internal_default_instance()) delete code_;
|
|
|
}
|
|
@@ -1430,12 +1491,15 @@ void Pickup_command_response_msg::Clear() {
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
- if (cached_has_bits & 0x00000003u) {
|
|
|
+ if (cached_has_bits & 0x00000007u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
+ license_.ClearNonDefaultToEmpty();
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
GOOGLE_DCHECK(base_info_ != nullptr);
|
|
|
base_info_->Clear();
|
|
|
}
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
GOOGLE_DCHECK(code_ != nullptr);
|
|
|
code_->Clear();
|
|
|
}
|
|
@@ -1476,6 +1540,17 @@ const char* Pickup_command_response_msg::_InternalParse(const char* ptr, ::PROTO
|
|
|
CHK_(ptr);
|
|
|
} else goto handle_unusual;
|
|
|
continue;
|
|
|
+ // optional string license = 4;
|
|
|
+ case 4:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
|
|
+ auto str = _internal_mutable_license();
|
|
|
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
+ #ifndef NDEBUG
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "message.Pickup_command_response_msg.license");
|
|
|
+ #endif // !NDEBUG
|
|
|
+ CHK_(ptr);
|
|
|
+ } else goto handle_unusual;
|
|
|
+ continue;
|
|
|
default: {
|
|
|
handle_unusual:
|
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
@@ -1507,7 +1582,7 @@ failure:
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
- if (cached_has_bits & 0x00000001u) {
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
target = stream->EnsureSpace(target);
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
InternalWriteMessage(
|
|
@@ -1515,19 +1590,29 @@ failure:
|
|
|
}
|
|
|
|
|
|
// required int32 terminal_id = 2;
|
|
|
- if (cached_has_bits & 0x00000004u) {
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
target = stream->EnsureSpace(target);
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_terminal_id(), target);
|
|
|
}
|
|
|
|
|
|
// required .message.Error_manager code = 3;
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
target = stream->EnsureSpace(target);
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
InternalWriteMessage(
|
|
|
3, _Internal::code(this), target, stream);
|
|
|
}
|
|
|
|
|
|
+ // optional string license = 4;
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
+ this->_internal_license().data(), static_cast<int>(this->_internal_license().length()),
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
|
|
|
+ "message.Pickup_command_response_msg.license");
|
|
|
+ target = stream->WriteStringMaybeAliased(
|
|
|
+ 4, this->_internal_license(), target);
|
|
|
+ }
|
|
|
+
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
|
@@ -1567,7 +1652,7 @@ size_t Pickup_command_response_msg::ByteSizeLong() const {
|
|
|
// @@protoc_insertion_point(message_byte_size_start:message.Pickup_command_response_msg)
|
|
|
size_t total_size = 0;
|
|
|
|
|
|
- if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
|
|
|
+ if (((_has_bits_[0] & 0x0000000e) ^ 0x0000000e) == 0) { // All required fields are present.
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
@@ -1590,6 +1675,14 @@ size_t Pickup_command_response_msg::ByteSizeLong() const {
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
+ // optional string license = 4;
|
|
|
+ cached_has_bits = _has_bits_[0];
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
+ this->_internal_license());
|
|
|
+ }
|
|
|
+
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
|
|
_internal_metadata_, total_size, &_cached_size_);
|
|
@@ -1622,14 +1715,17 @@ void Pickup_command_response_msg::MergeFrom(const Pickup_command_response_msg& f
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
cached_has_bits = from._has_bits_[0];
|
|
|
- if (cached_has_bits & 0x00000007u) {
|
|
|
+ if (cached_has_bits & 0x0000000fu) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- _internal_mutable_base_info()->::message::Base_info::MergeFrom(from._internal_base_info());
|
|
|
+ _internal_set_license(from._internal_license());
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
- _internal_mutable_code()->::message::Error_manager::MergeFrom(from._internal_code());
|
|
|
+ _internal_mutable_base_info()->::message::Base_info::MergeFrom(from._internal_base_info());
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
+ _internal_mutable_code()->::message::Error_manager::MergeFrom(from._internal_code());
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
terminal_id_ = from.terminal_id_;
|
|
|
}
|
|
|
_has_bits_[0] |= cached_has_bits;
|
|
@@ -1665,6 +1761,7 @@ void Pickup_command_response_msg::InternalSwap(Pickup_command_response_msg* othe
|
|
|
using std::swap;
|
|
|
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
+ license_.Swap(&other->license_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
|
PROTOBUF_FIELD_OFFSET(Pickup_command_response_msg, terminal_id_)
|
|
|
+ sizeof(Pickup_command_response_msg::terminal_id_)
|