|
@@ -7,7 +7,6 @@
|
|
|
|
|
|
#include <google/protobuf/stubs/common.h>
|
|
|
#include <google/protobuf/stubs/port.h>
|
|
|
-#include <google/protobuf/stubs/once.h>
|
|
|
#include <google/protobuf/io/coded_stream.h>
|
|
|
#include <google/protobuf/wire_format_lite_inl.h>
|
|
|
#include <google/protobuf/descriptor.h>
|
|
@@ -19,6 +18,11 @@
|
|
|
#include "third_party/protobuf/version.h"
|
|
|
#endif
|
|
|
// @@protoc_insertion_point(includes)
|
|
|
+
|
|
|
+namespace protobuf_message_5fbase_2eproto {
|
|
|
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Base_info;
|
|
|
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Error_manager;
|
|
|
+} // namespace protobuf_message_5fbase_2eproto
|
|
|
namespace message {
|
|
|
class Dispatch_plan_request_msgDefaultTypeInternal {
|
|
|
public:
|
|
@@ -42,16 +46,9 @@ class Dispatch_control_response_msgDefaultTypeInternal {
|
|
|
} _Dispatch_control_response_msg_default_instance_;
|
|
|
} // namespace message
|
|
|
namespace protobuf_dispatch_5fcontrol_2eproto {
|
|
|
-void InitDefaultsDispatch_plan_request_msgImpl() {
|
|
|
+static void InitDefaultsDispatch_plan_request_msg() {
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
|
|
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
-#else
|
|
|
- ::google::protobuf::internal::InitProtobufDefaults();
|
|
|
-#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
|
|
|
- protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
|
|
|
{
|
|
|
void* ptr = &::message::_Dispatch_plan_request_msg_default_instance_;
|
|
|
new (ptr) ::message::Dispatch_plan_request_msg();
|
|
@@ -60,21 +57,14 @@ void InitDefaultsDispatch_plan_request_msgImpl() {
|
|
|
::message::Dispatch_plan_request_msg::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-void InitDefaultsDispatch_plan_request_msg() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_plan_request_msgImpl);
|
|
|
-}
|
|
|
+::google::protobuf::internal::SCCInfo<2> scc_info_Dispatch_plan_request_msg =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDispatch_plan_request_msg}, {
|
|
|
+ &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,
|
|
|
+ &protobuf_message_5fbase_2eproto::scc_info_Error_manager.base,}};
|
|
|
|
|
|
-void InitDefaultsDispatch_plan_response_msgImpl() {
|
|
|
+static void InitDefaultsDispatch_plan_response_msg() {
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
|
|
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
-#else
|
|
|
- ::google::protobuf::internal::InitProtobufDefaults();
|
|
|
-#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
|
|
|
- protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
|
|
|
{
|
|
|
void* ptr = &::message::_Dispatch_plan_response_msg_default_instance_;
|
|
|
new (ptr) ::message::Dispatch_plan_response_msg();
|
|
@@ -83,21 +73,14 @@ void InitDefaultsDispatch_plan_response_msgImpl() {
|
|
|
::message::Dispatch_plan_response_msg::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-void InitDefaultsDispatch_plan_response_msg() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_plan_response_msgImpl);
|
|
|
-}
|
|
|
+::google::protobuf::internal::SCCInfo<2> scc_info_Dispatch_plan_response_msg =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDispatch_plan_response_msg}, {
|
|
|
+ &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,
|
|
|
+ &protobuf_message_5fbase_2eproto::scc_info_Error_manager.base,}};
|
|
|
|
|
|
-void InitDefaultsDispatch_control_request_msgImpl() {
|
|
|
+static void InitDefaultsDispatch_control_request_msg() {
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
|
|
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
-#else
|
|
|
- ::google::protobuf::internal::InitProtobufDefaults();
|
|
|
-#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
|
|
|
- protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
|
|
|
{
|
|
|
void* ptr = &::message::_Dispatch_control_request_msg_default_instance_;
|
|
|
new (ptr) ::message::Dispatch_control_request_msg();
|
|
@@ -106,21 +89,14 @@ void InitDefaultsDispatch_control_request_msgImpl() {
|
|
|
::message::Dispatch_control_request_msg::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-void InitDefaultsDispatch_control_request_msg() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_control_request_msgImpl);
|
|
|
-}
|
|
|
+::google::protobuf::internal::SCCInfo<2> scc_info_Dispatch_control_request_msg =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDispatch_control_request_msg}, {
|
|
|
+ &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,
|
|
|
+ &protobuf_message_5fbase_2eproto::scc_info_Error_manager.base,}};
|
|
|
|
|
|
-void InitDefaultsDispatch_control_response_msgImpl() {
|
|
|
+static void InitDefaultsDispatch_control_response_msg() {
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
|
|
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
-#else
|
|
|
- ::google::protobuf::internal::InitProtobufDefaults();
|
|
|
-#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
|
|
|
- protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
|
|
|
{
|
|
|
void* ptr = &::message::_Dispatch_control_response_msg_default_instance_;
|
|
|
new (ptr) ::message::Dispatch_control_response_msg();
|
|
@@ -129,9 +105,16 @@ void InitDefaultsDispatch_control_response_msgImpl() {
|
|
|
::message::Dispatch_control_response_msg::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-void InitDefaultsDispatch_control_response_msg() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_control_response_msgImpl);
|
|
|
+::google::protobuf::internal::SCCInfo<2> scc_info_Dispatch_control_response_msg =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDispatch_control_response_msg}, {
|
|
|
+ &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,
|
|
|
+ &protobuf_message_5fbase_2eproto::scc_info_Error_manager.base,}};
|
|
|
+
|
|
|
+void InitDefaults() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_Dispatch_plan_request_msg.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_Dispatch_plan_response_msg.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_Dispatch_control_request_msg.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_Dispatch_control_response_msg.base);
|
|
|
}
|
|
|
|
|
|
::google::protobuf::Metadata file_level_metadata[4];
|
|
@@ -235,15 +218,14 @@ static ::google::protobuf::Message const * const file_default_instances[] = {
|
|
|
|
|
|
void protobuf_AssignDescriptors() {
|
|
|
AddDescriptors();
|
|
|
- ::google::protobuf::MessageFactory* factory = NULL;
|
|
|
AssignDescriptors(
|
|
|
- "dispatch_control.proto", schemas, file_default_instances, TableStruct::offsets, factory,
|
|
|
+ "dispatch_control.proto", schemas, file_default_instances, TableStruct::offsets,
|
|
|
file_level_metadata, file_level_enum_descriptors, NULL);
|
|
|
}
|
|
|
|
|
|
void protobuf_AssignDescriptorsOnce() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
|
|
|
+ static ::google::protobuf::internal::once_flag once;
|
|
|
+ ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
|
|
|
}
|
|
|
|
|
|
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
|
|
@@ -332,8 +314,8 @@ void AddDescriptorsImpl() {
|
|
|
}
|
|
|
|
|
|
void AddDescriptors() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
|
|
|
+ static ::google::protobuf::internal::once_flag once;
|
|
|
+ ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
|
|
|
}
|
|
|
// Force AddDescriptors() to be called at dynamic initialization time.
|
|
|
struct StaticDescriptorInitializer {
|
|
@@ -448,17 +430,15 @@ const int Dispatch_plan_request_msg::kErrorManagerFieldNumber;
|
|
|
|
|
|
Dispatch_plan_request_msg::Dispatch_plan_request_msg()
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
- ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_plan_request_msg();
|
|
|
- }
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_dispatch_5fcontrol_2eproto::scc_info_Dispatch_plan_request_msg.base);
|
|
|
SharedCtor();
|
|
|
// @@protoc_insertion_point(constructor:message.Dispatch_plan_request_msg)
|
|
|
}
|
|
|
Dispatch_plan_request_msg::Dispatch_plan_request_msg(const Dispatch_plan_request_msg& from)
|
|
|
: ::google::protobuf::Message(),
|
|
|
_internal_metadata_(NULL),
|
|
|
- _has_bits_(from._has_bits_),
|
|
|
- _cached_size_(0) {
|
|
|
+ _has_bits_(from._has_bits_) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
if (from.has_command_key()) {
|
|
@@ -481,7 +461,6 @@ Dispatch_plan_request_msg::Dispatch_plan_request_msg(const Dispatch_plan_request
|
|
|
}
|
|
|
|
|
|
void Dispatch_plan_request_msg::SharedCtor() {
|
|
|
- _cached_size_ = 0;
|
|
|
command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
::memset(&base_info_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&dispatch_destination_) -
|
|
@@ -500,9 +479,7 @@ void Dispatch_plan_request_msg::SharedDtor() {
|
|
|
}
|
|
|
|
|
|
void Dispatch_plan_request_msg::SetCachedSize(int size) const {
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ _cached_size_.Set(size);
|
|
|
}
|
|
|
const ::google::protobuf::Descriptor* Dispatch_plan_request_msg::descriptor() {
|
|
|
::protobuf_dispatch_5fcontrol_2eproto::protobuf_AssignDescriptorsOnce();
|
|
@@ -510,17 +487,10 @@ const ::google::protobuf::Descriptor* Dispatch_plan_request_msg::descriptor() {
|
|
|
}
|
|
|
|
|
|
const Dispatch_plan_request_msg& Dispatch_plan_request_msg::default_instance() {
|
|
|
- ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_plan_request_msg();
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_dispatch_5fcontrol_2eproto::scc_info_Dispatch_plan_request_msg.base);
|
|
|
return *internal_default_instance();
|
|
|
}
|
|
|
|
|
|
-Dispatch_plan_request_msg* Dispatch_plan_request_msg::New(::google::protobuf::Arena* arena) const {
|
|
|
- Dispatch_plan_request_msg* n = new Dispatch_plan_request_msg;
|
|
|
- if (arena != NULL) {
|
|
|
- arena->Own(n);
|
|
|
- }
|
|
|
- return n;
|
|
|
-}
|
|
|
|
|
|
void Dispatch_plan_request_msg::Clear() {
|
|
|
// @@protoc_insertion_point(message_clear_start:message.Dispatch_plan_request_msg)
|
|
@@ -531,8 +501,7 @@ void Dispatch_plan_request_msg::Clear() {
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
if (cached_has_bits & 7u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
- (*command_key_.UnsafeRawStringPointer())->clear();
|
|
|
+ command_key_.ClearNonDefaultToEmptyNoArena();
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
GOOGLE_DCHECK(base_info_ != NULL);
|
|
@@ -558,7 +527,7 @@ bool Dispatch_plan_request_msg::MergePartialFromCodedStream(
|
|
|
::google::protobuf::uint32 tag;
|
|
|
// @@protoc_insertion_point(parse_start:message.Dispatch_plan_request_msg)
|
|
|
for (;;) {
|
|
|
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
@@ -680,7 +649,7 @@ void Dispatch_plan_request_msg::SerializeWithCachedSizes(
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 1, *this->base_info_, output);
|
|
|
+ 1, this->_internal_base_info(), output);
|
|
|
}
|
|
|
|
|
|
// required string command_key = 2;
|
|
@@ -712,7 +681,7 @@ void Dispatch_plan_request_msg::SerializeWithCachedSizes(
|
|
|
// optional .message.Error_manager error_manager = 6;
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 6, *this->error_manager_, output);
|
|
|
+ 6, this->_internal_error_manager(), output);
|
|
|
}
|
|
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
@@ -734,7 +703,7 @@ void Dispatch_plan_request_msg::SerializeWithCachedSizes(
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 1, *this->base_info_, deterministic, target);
|
|
|
+ 1, this->_internal_base_info(), deterministic, target);
|
|
|
}
|
|
|
|
|
|
// required string command_key = 2;
|
|
@@ -768,7 +737,7 @@ void Dispatch_plan_request_msg::SerializeWithCachedSizes(
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 6, *this->error_manager_, deterministic, target);
|
|
|
+ 6, this->_internal_error_manager(), deterministic, target);
|
|
|
}
|
|
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
@@ -794,7 +763,7 @@ size_t Dispatch_plan_request_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->base_info_);
|
|
|
+ *base_info_);
|
|
|
}
|
|
|
|
|
|
return total_size;
|
|
@@ -817,7 +786,7 @@ size_t Dispatch_plan_request_msg::ByteSizeLong() const {
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->base_info_);
|
|
|
+ *base_info_);
|
|
|
|
|
|
} else {
|
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
@@ -827,7 +796,7 @@ size_t Dispatch_plan_request_msg::ByteSizeLong() const {
|
|
|
if (has_error_manager()) {
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->error_manager_);
|
|
|
+ *error_manager_);
|
|
|
}
|
|
|
|
|
|
// optional .message.Dispatch_task_type dispatch_task_type = 3;
|
|
@@ -852,9 +821,7 @@ size_t Dispatch_plan_request_msg::ByteSizeLong() const {
|
|
|
|
|
|
}
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = cached_size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ SetCachedSize(cached_size);
|
|
|
return total_size;
|
|
|
}
|
|
|
|
|
@@ -936,7 +903,8 @@ void Dispatch_plan_request_msg::Swap(Dispatch_plan_request_msg* other) {
|
|
|
}
|
|
|
void Dispatch_plan_request_msg::InternalSwap(Dispatch_plan_request_msg* other) {
|
|
|
using std::swap;
|
|
|
- command_key_.Swap(&other->command_key_);
|
|
|
+ command_key_.Swap(&other->command_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
+ GetArenaNoVirtual());
|
|
|
swap(base_info_, other->base_info_);
|
|
|
swap(error_manager_, other->error_manager_);
|
|
|
swap(dispatch_task_type_, other->dispatch_task_type_);
|
|
@@ -944,7 +912,6 @@ void Dispatch_plan_request_msg::InternalSwap(Dispatch_plan_request_msg* other) {
|
|
|
swap(dispatch_destination_, other->dispatch_destination_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- swap(_cached_size_, other->_cached_size_);
|
|
|
}
|
|
|
|
|
|
::google::protobuf::Metadata Dispatch_plan_request_msg::GetMetadata() const {
|
|
@@ -980,17 +947,15 @@ const int Dispatch_plan_response_msg::kErrorManagerFieldNumber;
|
|
|
|
|
|
Dispatch_plan_response_msg::Dispatch_plan_response_msg()
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
- ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_plan_response_msg();
|
|
|
- }
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_dispatch_5fcontrol_2eproto::scc_info_Dispatch_plan_response_msg.base);
|
|
|
SharedCtor();
|
|
|
// @@protoc_insertion_point(constructor:message.Dispatch_plan_response_msg)
|
|
|
}
|
|
|
Dispatch_plan_response_msg::Dispatch_plan_response_msg(const Dispatch_plan_response_msg& from)
|
|
|
: ::google::protobuf::Message(),
|
|
|
_internal_metadata_(NULL),
|
|
|
- _has_bits_(from._has_bits_),
|
|
|
- _cached_size_(0) {
|
|
|
+ _has_bits_(from._has_bits_) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
if (from.has_command_key()) {
|
|
@@ -1013,7 +978,6 @@ Dispatch_plan_response_msg::Dispatch_plan_response_msg(const Dispatch_plan_respo
|
|
|
}
|
|
|
|
|
|
void Dispatch_plan_response_msg::SharedCtor() {
|
|
|
- _cached_size_ = 0;
|
|
|
command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
::memset(&base_info_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&dispatch_destination_) -
|
|
@@ -1032,9 +996,7 @@ void Dispatch_plan_response_msg::SharedDtor() {
|
|
|
}
|
|
|
|
|
|
void Dispatch_plan_response_msg::SetCachedSize(int size) const {
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ _cached_size_.Set(size);
|
|
|
}
|
|
|
const ::google::protobuf::Descriptor* Dispatch_plan_response_msg::descriptor() {
|
|
|
::protobuf_dispatch_5fcontrol_2eproto::protobuf_AssignDescriptorsOnce();
|
|
@@ -1042,17 +1004,10 @@ const ::google::protobuf::Descriptor* Dispatch_plan_response_msg::descriptor() {
|
|
|
}
|
|
|
|
|
|
const Dispatch_plan_response_msg& Dispatch_plan_response_msg::default_instance() {
|
|
|
- ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_plan_response_msg();
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_dispatch_5fcontrol_2eproto::scc_info_Dispatch_plan_response_msg.base);
|
|
|
return *internal_default_instance();
|
|
|
}
|
|
|
|
|
|
-Dispatch_plan_response_msg* Dispatch_plan_response_msg::New(::google::protobuf::Arena* arena) const {
|
|
|
- Dispatch_plan_response_msg* n = new Dispatch_plan_response_msg;
|
|
|
- if (arena != NULL) {
|
|
|
- arena->Own(n);
|
|
|
- }
|
|
|
- return n;
|
|
|
-}
|
|
|
|
|
|
void Dispatch_plan_response_msg::Clear() {
|
|
|
// @@protoc_insertion_point(message_clear_start:message.Dispatch_plan_response_msg)
|
|
@@ -1063,8 +1018,7 @@ void Dispatch_plan_response_msg::Clear() {
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
if (cached_has_bits & 7u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
- (*command_key_.UnsafeRawStringPointer())->clear();
|
|
|
+ command_key_.ClearNonDefaultToEmptyNoArena();
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
GOOGLE_DCHECK(base_info_ != NULL);
|
|
@@ -1090,7 +1044,7 @@ bool Dispatch_plan_response_msg::MergePartialFromCodedStream(
|
|
|
::google::protobuf::uint32 tag;
|
|
|
// @@protoc_insertion_point(parse_start:message.Dispatch_plan_response_msg)
|
|
|
for (;;) {
|
|
|
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
@@ -1212,7 +1166,7 @@ void Dispatch_plan_response_msg::SerializeWithCachedSizes(
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 1, *this->base_info_, output);
|
|
|
+ 1, this->_internal_base_info(), output);
|
|
|
}
|
|
|
|
|
|
// required string command_key = 2;
|
|
@@ -1244,7 +1198,7 @@ void Dispatch_plan_response_msg::SerializeWithCachedSizes(
|
|
|
// optional .message.Error_manager error_manager = 6;
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 6, *this->error_manager_, output);
|
|
|
+ 6, this->_internal_error_manager(), output);
|
|
|
}
|
|
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
@@ -1266,7 +1220,7 @@ void Dispatch_plan_response_msg::SerializeWithCachedSizes(
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 1, *this->base_info_, deterministic, target);
|
|
|
+ 1, this->_internal_base_info(), deterministic, target);
|
|
|
}
|
|
|
|
|
|
// required string command_key = 2;
|
|
@@ -1300,7 +1254,7 @@ void Dispatch_plan_response_msg::SerializeWithCachedSizes(
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 6, *this->error_manager_, deterministic, target);
|
|
|
+ 6, this->_internal_error_manager(), deterministic, target);
|
|
|
}
|
|
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
@@ -1326,7 +1280,7 @@ size_t Dispatch_plan_response_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->base_info_);
|
|
|
+ *base_info_);
|
|
|
}
|
|
|
|
|
|
return total_size;
|
|
@@ -1349,7 +1303,7 @@ size_t Dispatch_plan_response_msg::ByteSizeLong() const {
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->base_info_);
|
|
|
+ *base_info_);
|
|
|
|
|
|
} else {
|
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
@@ -1359,7 +1313,7 @@ size_t Dispatch_plan_response_msg::ByteSizeLong() const {
|
|
|
if (has_error_manager()) {
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->error_manager_);
|
|
|
+ *error_manager_);
|
|
|
}
|
|
|
|
|
|
// optional .message.Dispatch_task_type dispatch_task_type = 3;
|
|
@@ -1384,9 +1338,7 @@ size_t Dispatch_plan_response_msg::ByteSizeLong() const {
|
|
|
|
|
|
}
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = cached_size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ SetCachedSize(cached_size);
|
|
|
return total_size;
|
|
|
}
|
|
|
|
|
@@ -1468,7 +1420,8 @@ void Dispatch_plan_response_msg::Swap(Dispatch_plan_response_msg* other) {
|
|
|
}
|
|
|
void Dispatch_plan_response_msg::InternalSwap(Dispatch_plan_response_msg* other) {
|
|
|
using std::swap;
|
|
|
- command_key_.Swap(&other->command_key_);
|
|
|
+ command_key_.Swap(&other->command_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
+ GetArenaNoVirtual());
|
|
|
swap(base_info_, other->base_info_);
|
|
|
swap(error_manager_, other->error_manager_);
|
|
|
swap(dispatch_task_type_, other->dispatch_task_type_);
|
|
@@ -1476,7 +1429,6 @@ void Dispatch_plan_response_msg::InternalSwap(Dispatch_plan_response_msg* other)
|
|
|
swap(dispatch_destination_, other->dispatch_destination_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- swap(_cached_size_, other->_cached_size_);
|
|
|
}
|
|
|
|
|
|
::google::protobuf::Metadata Dispatch_plan_response_msg::GetMetadata() const {
|
|
@@ -1515,17 +1467,15 @@ const int Dispatch_control_request_msg::kDispatchDeviceTaskStatusFieldNumber;
|
|
|
|
|
|
Dispatch_control_request_msg::Dispatch_control_request_msg()
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
- ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_control_request_msg();
|
|
|
- }
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_dispatch_5fcontrol_2eproto::scc_info_Dispatch_control_request_msg.base);
|
|
|
SharedCtor();
|
|
|
// @@protoc_insertion_point(constructor:message.Dispatch_control_request_msg)
|
|
|
}
|
|
|
Dispatch_control_request_msg::Dispatch_control_request_msg(const Dispatch_control_request_msg& from)
|
|
|
: ::google::protobuf::Message(),
|
|
|
_internal_metadata_(NULL),
|
|
|
- _has_bits_(from._has_bits_),
|
|
|
- _cached_size_(0) {
|
|
|
+ _has_bits_(from._has_bits_) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
if (from.has_command_key()) {
|
|
@@ -1548,7 +1498,6 @@ Dispatch_control_request_msg::Dispatch_control_request_msg(const Dispatch_contro
|
|
|
}
|
|
|
|
|
|
void Dispatch_control_request_msg::SharedCtor() {
|
|
|
- _cached_size_ = 0;
|
|
|
command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
::memset(&base_info_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&dispatch_device_task_status_) -
|
|
@@ -1568,9 +1517,7 @@ void Dispatch_control_request_msg::SharedDtor() {
|
|
|
}
|
|
|
|
|
|
void Dispatch_control_request_msg::SetCachedSize(int size) const {
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ _cached_size_.Set(size);
|
|
|
}
|
|
|
const ::google::protobuf::Descriptor* Dispatch_control_request_msg::descriptor() {
|
|
|
::protobuf_dispatch_5fcontrol_2eproto::protobuf_AssignDescriptorsOnce();
|
|
@@ -1578,17 +1525,10 @@ const ::google::protobuf::Descriptor* Dispatch_control_request_msg::descriptor()
|
|
|
}
|
|
|
|
|
|
const Dispatch_control_request_msg& Dispatch_control_request_msg::default_instance() {
|
|
|
- ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_control_request_msg();
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_dispatch_5fcontrol_2eproto::scc_info_Dispatch_control_request_msg.base);
|
|
|
return *internal_default_instance();
|
|
|
}
|
|
|
|
|
|
-Dispatch_control_request_msg* Dispatch_control_request_msg::New(::google::protobuf::Arena* arena) const {
|
|
|
- Dispatch_control_request_msg* n = new Dispatch_control_request_msg;
|
|
|
- if (arena != NULL) {
|
|
|
- arena->Own(n);
|
|
|
- }
|
|
|
- return n;
|
|
|
-}
|
|
|
|
|
|
void Dispatch_control_request_msg::Clear() {
|
|
|
// @@protoc_insertion_point(message_clear_start:message.Dispatch_control_request_msg)
|
|
@@ -1599,8 +1539,7 @@ void Dispatch_control_request_msg::Clear() {
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
if (cached_has_bits & 7u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
- (*command_key_.UnsafeRawStringPointer())->clear();
|
|
|
+ command_key_.ClearNonDefaultToEmptyNoArena();
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
GOOGLE_DCHECK(base_info_ != NULL);
|
|
@@ -1627,7 +1566,7 @@ bool Dispatch_control_request_msg::MergePartialFromCodedStream(
|
|
|
::google::protobuf::uint32 tag;
|
|
|
// @@protoc_insertion_point(parse_start:message.Dispatch_control_request_msg)
|
|
|
for (;;) {
|
|
|
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
@@ -1809,7 +1748,7 @@ void Dispatch_control_request_msg::SerializeWithCachedSizes(
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 1, *this->base_info_, output);
|
|
|
+ 1, this->_internal_base_info(), output);
|
|
|
}
|
|
|
|
|
|
// required string command_key = 2;
|
|
@@ -1847,7 +1786,7 @@ void Dispatch_control_request_msg::SerializeWithCachedSizes(
|
|
|
// optional .message.Error_manager error_manager = 7;
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 7, *this->error_manager_, output);
|
|
|
+ 7, this->_internal_error_manager(), output);
|
|
|
}
|
|
|
|
|
|
// optional .message.Dispatch_device_target_status dispatch_device_target_status = 8;
|
|
@@ -1881,7 +1820,7 @@ void Dispatch_control_request_msg::SerializeWithCachedSizes(
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 1, *this->base_info_, deterministic, target);
|
|
|
+ 1, this->_internal_base_info(), deterministic, target);
|
|
|
}
|
|
|
|
|
|
// required string command_key = 2;
|
|
@@ -1921,7 +1860,7 @@ void Dispatch_control_request_msg::SerializeWithCachedSizes(
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 7, *this->error_manager_, deterministic, target);
|
|
|
+ 7, this->_internal_error_manager(), deterministic, target);
|
|
|
}
|
|
|
|
|
|
// optional .message.Dispatch_device_target_status dispatch_device_target_status = 8;
|
|
@@ -1959,7 +1898,7 @@ size_t Dispatch_control_request_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->base_info_);
|
|
|
+ *base_info_);
|
|
|
}
|
|
|
|
|
|
if (has_dispatch_task_type()) {
|
|
@@ -1988,7 +1927,7 @@ size_t Dispatch_control_request_msg::ByteSizeLong() const {
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->base_info_);
|
|
|
+ *base_info_);
|
|
|
|
|
|
// required .message.Dispatch_task_type dispatch_task_type = 3;
|
|
|
total_size += 1 +
|
|
@@ -2001,7 +1940,7 @@ size_t Dispatch_control_request_msg::ByteSizeLong() const {
|
|
|
if (has_error_manager()) {
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->error_manager_);
|
|
|
+ *error_manager_);
|
|
|
}
|
|
|
|
|
|
if (_has_bits_[0 / 32] & 240u) {
|
|
@@ -2039,9 +1978,7 @@ size_t Dispatch_control_request_msg::ByteSizeLong() const {
|
|
|
}
|
|
|
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = cached_size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ SetCachedSize(cached_size);
|
|
|
return total_size;
|
|
|
}
|
|
|
|
|
@@ -2132,7 +2069,8 @@ void Dispatch_control_request_msg::Swap(Dispatch_control_request_msg* other) {
|
|
|
}
|
|
|
void Dispatch_control_request_msg::InternalSwap(Dispatch_control_request_msg* other) {
|
|
|
using std::swap;
|
|
|
- command_key_.Swap(&other->command_key_);
|
|
|
+ command_key_.Swap(&other->command_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
+ GetArenaNoVirtual());
|
|
|
swap(base_info_, other->base_info_);
|
|
|
swap(error_manager_, other->error_manager_);
|
|
|
swap(dispatch_task_type_, other->dispatch_task_type_);
|
|
@@ -2143,7 +2081,6 @@ void Dispatch_control_request_msg::InternalSwap(Dispatch_control_request_msg* ot
|
|
|
swap(dispatch_device_type_, other->dispatch_device_type_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- swap(_cached_size_, other->_cached_size_);
|
|
|
}
|
|
|
|
|
|
::google::protobuf::Metadata Dispatch_control_request_msg::GetMetadata() const {
|
|
@@ -2182,17 +2119,15 @@ const int Dispatch_control_response_msg::kDispatchDeviceTaskStatusFieldNumber;
|
|
|
|
|
|
Dispatch_control_response_msg::Dispatch_control_response_msg()
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
- ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_control_response_msg();
|
|
|
- }
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_dispatch_5fcontrol_2eproto::scc_info_Dispatch_control_response_msg.base);
|
|
|
SharedCtor();
|
|
|
// @@protoc_insertion_point(constructor:message.Dispatch_control_response_msg)
|
|
|
}
|
|
|
Dispatch_control_response_msg::Dispatch_control_response_msg(const Dispatch_control_response_msg& from)
|
|
|
: ::google::protobuf::Message(),
|
|
|
_internal_metadata_(NULL),
|
|
|
- _has_bits_(from._has_bits_),
|
|
|
- _cached_size_(0) {
|
|
|
+ _has_bits_(from._has_bits_) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
if (from.has_command_key()) {
|
|
@@ -2215,7 +2150,6 @@ Dispatch_control_response_msg::Dispatch_control_response_msg(const Dispatch_cont
|
|
|
}
|
|
|
|
|
|
void Dispatch_control_response_msg::SharedCtor() {
|
|
|
- _cached_size_ = 0;
|
|
|
command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
::memset(&base_info_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&dispatch_device_task_status_) -
|
|
@@ -2235,9 +2169,7 @@ void Dispatch_control_response_msg::SharedDtor() {
|
|
|
}
|
|
|
|
|
|
void Dispatch_control_response_msg::SetCachedSize(int size) const {
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ _cached_size_.Set(size);
|
|
|
}
|
|
|
const ::google::protobuf::Descriptor* Dispatch_control_response_msg::descriptor() {
|
|
|
::protobuf_dispatch_5fcontrol_2eproto::protobuf_AssignDescriptorsOnce();
|
|
@@ -2245,17 +2177,10 @@ const ::google::protobuf::Descriptor* Dispatch_control_response_msg::descriptor(
|
|
|
}
|
|
|
|
|
|
const Dispatch_control_response_msg& Dispatch_control_response_msg::default_instance() {
|
|
|
- ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_control_response_msg();
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_dispatch_5fcontrol_2eproto::scc_info_Dispatch_control_response_msg.base);
|
|
|
return *internal_default_instance();
|
|
|
}
|
|
|
|
|
|
-Dispatch_control_response_msg* Dispatch_control_response_msg::New(::google::protobuf::Arena* arena) const {
|
|
|
- Dispatch_control_response_msg* n = new Dispatch_control_response_msg;
|
|
|
- if (arena != NULL) {
|
|
|
- arena->Own(n);
|
|
|
- }
|
|
|
- return n;
|
|
|
-}
|
|
|
|
|
|
void Dispatch_control_response_msg::Clear() {
|
|
|
// @@protoc_insertion_point(message_clear_start:message.Dispatch_control_response_msg)
|
|
@@ -2266,8 +2191,7 @@ void Dispatch_control_response_msg::Clear() {
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
if (cached_has_bits & 7u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
- (*command_key_.UnsafeRawStringPointer())->clear();
|
|
|
+ command_key_.ClearNonDefaultToEmptyNoArena();
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
GOOGLE_DCHECK(base_info_ != NULL);
|
|
@@ -2294,7 +2218,7 @@ bool Dispatch_control_response_msg::MergePartialFromCodedStream(
|
|
|
::google::protobuf::uint32 tag;
|
|
|
// @@protoc_insertion_point(parse_start:message.Dispatch_control_response_msg)
|
|
|
for (;;) {
|
|
|
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
@@ -2476,7 +2400,7 @@ void Dispatch_control_response_msg::SerializeWithCachedSizes(
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 1, *this->base_info_, output);
|
|
|
+ 1, this->_internal_base_info(), output);
|
|
|
}
|
|
|
|
|
|
// required string command_key = 2;
|
|
@@ -2514,7 +2438,7 @@ void Dispatch_control_response_msg::SerializeWithCachedSizes(
|
|
|
// optional .message.Error_manager error_manager = 7;
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 7, *this->error_manager_, output);
|
|
|
+ 7, this->_internal_error_manager(), output);
|
|
|
}
|
|
|
|
|
|
// optional .message.Dispatch_device_target_status dispatch_device_target_status = 8;
|
|
@@ -2548,7 +2472,7 @@ void Dispatch_control_response_msg::SerializeWithCachedSizes(
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 1, *this->base_info_, deterministic, target);
|
|
|
+ 1, this->_internal_base_info(), deterministic, target);
|
|
|
}
|
|
|
|
|
|
// required string command_key = 2;
|
|
@@ -2588,7 +2512,7 @@ void Dispatch_control_response_msg::SerializeWithCachedSizes(
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 7, *this->error_manager_, deterministic, target);
|
|
|
+ 7, this->_internal_error_manager(), deterministic, target);
|
|
|
}
|
|
|
|
|
|
// optional .message.Dispatch_device_target_status dispatch_device_target_status = 8;
|
|
@@ -2626,7 +2550,7 @@ size_t Dispatch_control_response_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->base_info_);
|
|
|
+ *base_info_);
|
|
|
}
|
|
|
|
|
|
return total_size;
|
|
@@ -2649,7 +2573,7 @@ size_t Dispatch_control_response_msg::ByteSizeLong() const {
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->base_info_);
|
|
|
+ *base_info_);
|
|
|
|
|
|
} else {
|
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
@@ -2659,7 +2583,7 @@ size_t Dispatch_control_response_msg::ByteSizeLong() const {
|
|
|
if (has_error_manager()) {
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->error_manager_);
|
|
|
+ *error_manager_);
|
|
|
}
|
|
|
|
|
|
// optional .message.Dispatch_task_type dispatch_task_type = 3;
|
|
@@ -2702,9 +2626,7 @@ size_t Dispatch_control_response_msg::ByteSizeLong() const {
|
|
|
}
|
|
|
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = cached_size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ SetCachedSize(cached_size);
|
|
|
return total_size;
|
|
|
}
|
|
|
|
|
@@ -2795,7 +2717,8 @@ void Dispatch_control_response_msg::Swap(Dispatch_control_response_msg* other) {
|
|
|
}
|
|
|
void Dispatch_control_response_msg::InternalSwap(Dispatch_control_response_msg* other) {
|
|
|
using std::swap;
|
|
|
- command_key_.Swap(&other->command_key_);
|
|
|
+ command_key_.Swap(&other->command_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
+ GetArenaNoVirtual());
|
|
|
swap(base_info_, other->base_info_);
|
|
|
swap(error_manager_, other->error_manager_);
|
|
|
swap(dispatch_task_type_, other->dispatch_task_type_);
|
|
@@ -2806,7 +2729,6 @@ void Dispatch_control_response_msg::InternalSwap(Dispatch_control_response_msg*
|
|
|
swap(dispatch_device_type_, other->dispatch_device_type_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- swap(_cached_size_, other->_cached_size_);
|
|
|
}
|
|
|
|
|
|
::google::protobuf::Metadata Dispatch_control_response_msg::GetMetadata() const {
|
|
@@ -2817,5 +2739,21 @@ void Dispatch_control_response_msg::InternalSwap(Dispatch_control_response_msg*
|
|
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
} // namespace message
|
|
|
+namespace google {
|
|
|
+namespace protobuf {
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Dispatch_plan_request_msg* Arena::CreateMaybeMessage< ::message::Dispatch_plan_request_msg >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::message::Dispatch_plan_request_msg >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Dispatch_plan_response_msg* Arena::CreateMaybeMessage< ::message::Dispatch_plan_response_msg >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::message::Dispatch_plan_response_msg >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Dispatch_control_request_msg* Arena::CreateMaybeMessage< ::message::Dispatch_control_request_msg >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::message::Dispatch_control_request_msg >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Dispatch_control_response_msg* Arena::CreateMaybeMessage< ::message::Dispatch_control_response_msg >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::message::Dispatch_control_response_msg >(arena);
|
|
|
+}
|
|
|
+} // namespace protobuf
|
|
|
+} // namespace google
|
|
|
|
|
|
// @@protoc_insertion_point(global_scope)
|