|
@@ -7,6 +7,7 @@
|
|
|
|
|
|
#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>
|
|
@@ -18,11 +19,6 @@
|
|
|
#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:
|
|
@@ -46,9 +42,16 @@ class Dispatch_control_response_msgDefaultTypeInternal {
|
|
|
} _Dispatch_control_response_msg_default_instance_;
|
|
|
} // namespace message
|
|
|
namespace protobuf_dispatch_5fcontrol_2eproto {
|
|
|
-static void InitDefaultsDispatch_plan_request_msg() {
|
|
|
+void InitDefaultsDispatch_plan_request_msgImpl() {
|
|
|
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();
|
|
@@ -57,14 +60,21 @@ static void InitDefaultsDispatch_plan_request_msg() {
|
|
|
::message::Dispatch_plan_request_msg::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-::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_request_msg() {
|
|
|
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_plan_request_msgImpl);
|
|
|
+}
|
|
|
|
|
|
-static void InitDefaultsDispatch_plan_response_msg() {
|
|
|
+void InitDefaultsDispatch_plan_response_msgImpl() {
|
|
|
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();
|
|
@@ -73,14 +83,21 @@ static void InitDefaultsDispatch_plan_response_msg() {
|
|
|
::message::Dispatch_plan_response_msg::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-::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_plan_response_msg() {
|
|
|
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_plan_response_msgImpl);
|
|
|
+}
|
|
|
|
|
|
-static void InitDefaultsDispatch_control_request_msg() {
|
|
|
+void InitDefaultsDispatch_control_request_msgImpl() {
|
|
|
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();
|
|
@@ -89,14 +106,21 @@ static void InitDefaultsDispatch_control_request_msg() {
|
|
|
::message::Dispatch_control_request_msg::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-::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_request_msg() {
|
|
|
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_control_request_msgImpl);
|
|
|
+}
|
|
|
|
|
|
-static void InitDefaultsDispatch_control_response_msg() {
|
|
|
+void InitDefaultsDispatch_control_response_msgImpl() {
|
|
|
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();
|
|
@@ -105,16 +129,9 @@ static void InitDefaultsDispatch_control_response_msg() {
|
|
|
::message::Dispatch_control_response_msg::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-::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);
|
|
|
+void InitDefaultsDispatch_control_response_msg() {
|
|
|
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_control_response_msgImpl);
|
|
|
}
|
|
|
|
|
|
::google::protobuf::Metadata file_level_metadata[4];
|
|
@@ -218,14 +235,15 @@ 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,
|
|
|
+ "dispatch_control.proto", schemas, file_default_instances, TableStruct::offsets, factory,
|
|
|
file_level_metadata, file_level_enum_descriptors, NULL);
|
|
|
}
|
|
|
|
|
|
void protobuf_AssignDescriptorsOnce() {
|
|
|
- static ::google::protobuf::internal::once_flag once;
|
|
|
- ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
|
|
|
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
+ ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
|
|
|
}
|
|
|
|
|
|
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
|
|
@@ -314,8 +332,8 @@ void AddDescriptorsImpl() {
|
|
|
}
|
|
|
|
|
|
void AddDescriptors() {
|
|
|
- static ::google::protobuf::internal::once_flag once;
|
|
|
- ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
|
|
|
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
+ ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
|
|
|
}
|
|
|
// Force AddDescriptors() to be called at dynamic initialization time.
|
|
|
struct StaticDescriptorInitializer {
|
|
@@ -430,15 +448,17 @@ const int Dispatch_plan_request_msg::kErrorManagerFieldNumber;
|
|
|
|
|
|
Dispatch_plan_request_msg::Dispatch_plan_request_msg()
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
- ::google::protobuf::internal::InitSCC(
|
|
|
- &protobuf_dispatch_5fcontrol_2eproto::scc_info_Dispatch_plan_request_msg.base);
|
|
|
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
+ ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_plan_request_msg();
|
|
|
+ }
|
|
|
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_) {
|
|
|
+ _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()) {
|
|
@@ -461,6 +481,7 @@ 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_) -
|
|
@@ -479,7 +500,9 @@ void Dispatch_plan_request_msg::SharedDtor() {
|
|
|
}
|
|
|
|
|
|
void Dispatch_plan_request_msg::SetCachedSize(int size) const {
|
|
|
- _cached_size_.Set(size);
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
+ _cached_size_ = size;
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
}
|
|
|
const ::google::protobuf::Descriptor* Dispatch_plan_request_msg::descriptor() {
|
|
|
::protobuf_dispatch_5fcontrol_2eproto::protobuf_AssignDescriptorsOnce();
|
|
@@ -487,10 +510,17 @@ const ::google::protobuf::Descriptor* Dispatch_plan_request_msg::descriptor() {
|
|
|
}
|
|
|
|
|
|
const Dispatch_plan_request_msg& Dispatch_plan_request_msg::default_instance() {
|
|
|
- ::google::protobuf::internal::InitSCC(&protobuf_dispatch_5fcontrol_2eproto::scc_info_Dispatch_plan_request_msg.base);
|
|
|
+ ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_plan_request_msg();
|
|
|
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)
|
|
@@ -501,7 +531,8 @@ void Dispatch_plan_request_msg::Clear() {
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
if (cached_has_bits & 7u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- command_key_.ClearNonDefaultToEmptyNoArena();
|
|
|
+ GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
+ (*command_key_.UnsafeRawStringPointer())->clear();
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
GOOGLE_DCHECK(base_info_ != NULL);
|
|
@@ -527,7 +558,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)) {
|
|
@@ -649,7 +680,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->_internal_base_info(), output);
|
|
|
+ 1, *this->base_info_, output);
|
|
|
}
|
|
|
|
|
|
// required string command_key = 2;
|
|
@@ -681,7 +712,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->_internal_error_manager(), output);
|
|
|
+ 6, *this->error_manager_, output);
|
|
|
}
|
|
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
@@ -703,7 +734,7 @@ void Dispatch_plan_request_msg::SerializeWithCachedSizes(
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 1, this->_internal_base_info(), deterministic, target);
|
|
|
+ 1, *this->base_info_, deterministic, target);
|
|
|
}
|
|
|
|
|
|
// required string command_key = 2;
|
|
@@ -737,7 +768,7 @@ void Dispatch_plan_request_msg::SerializeWithCachedSizes(
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 6, this->_internal_error_manager(), deterministic, target);
|
|
|
+ 6, *this->error_manager_, deterministic, target);
|
|
|
}
|
|
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
@@ -763,7 +794,7 @@ size_t Dispatch_plan_request_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *base_info_);
|
|
|
+ *this->base_info_);
|
|
|
}
|
|
|
|
|
|
return total_size;
|
|
@@ -786,7 +817,7 @@ size_t Dispatch_plan_request_msg::ByteSizeLong() const {
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *base_info_);
|
|
|
+ *this->base_info_);
|
|
|
|
|
|
} else {
|
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
@@ -796,7 +827,7 @@ size_t Dispatch_plan_request_msg::ByteSizeLong() const {
|
|
|
if (has_error_manager()) {
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *error_manager_);
|
|
|
+ *this->error_manager_);
|
|
|
}
|
|
|
|
|
|
// optional .message.Dispatch_task_type dispatch_task_type = 3;
|
|
@@ -821,7 +852,9 @@ size_t Dispatch_plan_request_msg::ByteSizeLong() const {
|
|
|
|
|
|
}
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
- SetCachedSize(cached_size);
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
+ _cached_size_ = cached_size;
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
return total_size;
|
|
|
}
|
|
|
|
|
@@ -903,8 +936,7 @@ 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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
- GetArenaNoVirtual());
|
|
|
+ command_key_.Swap(&other->command_key_);
|
|
|
swap(base_info_, other->base_info_);
|
|
|
swap(error_manager_, other->error_manager_);
|
|
|
swap(dispatch_task_type_, other->dispatch_task_type_);
|
|
@@ -912,6 +944,7 @@ 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 {
|
|
@@ -947,15 +980,17 @@ const int Dispatch_plan_response_msg::kErrorManagerFieldNumber;
|
|
|
|
|
|
Dispatch_plan_response_msg::Dispatch_plan_response_msg()
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
- ::google::protobuf::internal::InitSCC(
|
|
|
- &protobuf_dispatch_5fcontrol_2eproto::scc_info_Dispatch_plan_response_msg.base);
|
|
|
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
+ ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_plan_response_msg();
|
|
|
+ }
|
|
|
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_) {
|
|
|
+ _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()) {
|
|
@@ -978,6 +1013,7 @@ 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_) -
|
|
@@ -996,7 +1032,9 @@ void Dispatch_plan_response_msg::SharedDtor() {
|
|
|
}
|
|
|
|
|
|
void Dispatch_plan_response_msg::SetCachedSize(int size) const {
|
|
|
- _cached_size_.Set(size);
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
+ _cached_size_ = size;
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
}
|
|
|
const ::google::protobuf::Descriptor* Dispatch_plan_response_msg::descriptor() {
|
|
|
::protobuf_dispatch_5fcontrol_2eproto::protobuf_AssignDescriptorsOnce();
|
|
@@ -1004,10 +1042,17 @@ const ::google::protobuf::Descriptor* Dispatch_plan_response_msg::descriptor() {
|
|
|
}
|
|
|
|
|
|
const Dispatch_plan_response_msg& Dispatch_plan_response_msg::default_instance() {
|
|
|
- ::google::protobuf::internal::InitSCC(&protobuf_dispatch_5fcontrol_2eproto::scc_info_Dispatch_plan_response_msg.base);
|
|
|
+ ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_plan_response_msg();
|
|
|
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)
|
|
@@ -1018,7 +1063,8 @@ void Dispatch_plan_response_msg::Clear() {
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
if (cached_has_bits & 7u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- command_key_.ClearNonDefaultToEmptyNoArena();
|
|
|
+ GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
+ (*command_key_.UnsafeRawStringPointer())->clear();
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
GOOGLE_DCHECK(base_info_ != NULL);
|
|
@@ -1044,7 +1090,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)) {
|
|
@@ -1166,7 +1212,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->_internal_base_info(), output);
|
|
|
+ 1, *this->base_info_, output);
|
|
|
}
|
|
|
|
|
|
// required string command_key = 2;
|
|
@@ -1198,7 +1244,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->_internal_error_manager(), output);
|
|
|
+ 6, *this->error_manager_, output);
|
|
|
}
|
|
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
@@ -1220,7 +1266,7 @@ void Dispatch_plan_response_msg::SerializeWithCachedSizes(
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 1, this->_internal_base_info(), deterministic, target);
|
|
|
+ 1, *this->base_info_, deterministic, target);
|
|
|
}
|
|
|
|
|
|
// required string command_key = 2;
|
|
@@ -1254,7 +1300,7 @@ void Dispatch_plan_response_msg::SerializeWithCachedSizes(
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 6, this->_internal_error_manager(), deterministic, target);
|
|
|
+ 6, *this->error_manager_, deterministic, target);
|
|
|
}
|
|
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
@@ -1280,7 +1326,7 @@ size_t Dispatch_plan_response_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *base_info_);
|
|
|
+ *this->base_info_);
|
|
|
}
|
|
|
|
|
|
return total_size;
|
|
@@ -1303,7 +1349,7 @@ size_t Dispatch_plan_response_msg::ByteSizeLong() const {
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *base_info_);
|
|
|
+ *this->base_info_);
|
|
|
|
|
|
} else {
|
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
@@ -1313,7 +1359,7 @@ size_t Dispatch_plan_response_msg::ByteSizeLong() const {
|
|
|
if (has_error_manager()) {
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *error_manager_);
|
|
|
+ *this->error_manager_);
|
|
|
}
|
|
|
|
|
|
// optional .message.Dispatch_task_type dispatch_task_type = 3;
|
|
@@ -1338,7 +1384,9 @@ size_t Dispatch_plan_response_msg::ByteSizeLong() const {
|
|
|
|
|
|
}
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
- SetCachedSize(cached_size);
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
+ _cached_size_ = cached_size;
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
return total_size;
|
|
|
}
|
|
|
|
|
@@ -1420,8 +1468,7 @@ 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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
- GetArenaNoVirtual());
|
|
|
+ command_key_.Swap(&other->command_key_);
|
|
|
swap(base_info_, other->base_info_);
|
|
|
swap(error_manager_, other->error_manager_);
|
|
|
swap(dispatch_task_type_, other->dispatch_task_type_);
|
|
@@ -1429,6 +1476,7 @@ 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 {
|
|
@@ -1467,15 +1515,17 @@ const int Dispatch_control_request_msg::kDispatchDeviceTaskStatusFieldNumber;
|
|
|
|
|
|
Dispatch_control_request_msg::Dispatch_control_request_msg()
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
- ::google::protobuf::internal::InitSCC(
|
|
|
- &protobuf_dispatch_5fcontrol_2eproto::scc_info_Dispatch_control_request_msg.base);
|
|
|
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
+ ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_control_request_msg();
|
|
|
+ }
|
|
|
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_) {
|
|
|
+ _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()) {
|
|
@@ -1498,6 +1548,7 @@ 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_) -
|
|
@@ -1517,7 +1568,9 @@ void Dispatch_control_request_msg::SharedDtor() {
|
|
|
}
|
|
|
|
|
|
void Dispatch_control_request_msg::SetCachedSize(int size) const {
|
|
|
- _cached_size_.Set(size);
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
+ _cached_size_ = size;
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
}
|
|
|
const ::google::protobuf::Descriptor* Dispatch_control_request_msg::descriptor() {
|
|
|
::protobuf_dispatch_5fcontrol_2eproto::protobuf_AssignDescriptorsOnce();
|
|
@@ -1525,10 +1578,17 @@ const ::google::protobuf::Descriptor* Dispatch_control_request_msg::descriptor()
|
|
|
}
|
|
|
|
|
|
const Dispatch_control_request_msg& Dispatch_control_request_msg::default_instance() {
|
|
|
- ::google::protobuf::internal::InitSCC(&protobuf_dispatch_5fcontrol_2eproto::scc_info_Dispatch_control_request_msg.base);
|
|
|
+ ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_control_request_msg();
|
|
|
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)
|
|
@@ -1539,7 +1599,8 @@ void Dispatch_control_request_msg::Clear() {
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
if (cached_has_bits & 7u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- command_key_.ClearNonDefaultToEmptyNoArena();
|
|
|
+ GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
+ (*command_key_.UnsafeRawStringPointer())->clear();
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
GOOGLE_DCHECK(base_info_ != NULL);
|
|
@@ -1566,7 +1627,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)) {
|
|
@@ -1748,7 +1809,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->_internal_base_info(), output);
|
|
|
+ 1, *this->base_info_, output);
|
|
|
}
|
|
|
|
|
|
// required string command_key = 2;
|
|
@@ -1786,7 +1847,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->_internal_error_manager(), output);
|
|
|
+ 7, *this->error_manager_, output);
|
|
|
}
|
|
|
|
|
|
// optional .message.Dispatch_device_target_status dispatch_device_target_status = 8;
|
|
@@ -1820,7 +1881,7 @@ void Dispatch_control_request_msg::SerializeWithCachedSizes(
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 1, this->_internal_base_info(), deterministic, target);
|
|
|
+ 1, *this->base_info_, deterministic, target);
|
|
|
}
|
|
|
|
|
|
// required string command_key = 2;
|
|
@@ -1860,7 +1921,7 @@ void Dispatch_control_request_msg::SerializeWithCachedSizes(
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 7, this->_internal_error_manager(), deterministic, target);
|
|
|
+ 7, *this->error_manager_, deterministic, target);
|
|
|
}
|
|
|
|
|
|
// optional .message.Dispatch_device_target_status dispatch_device_target_status = 8;
|
|
@@ -1898,7 +1959,7 @@ size_t Dispatch_control_request_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *base_info_);
|
|
|
+ *this->base_info_);
|
|
|
}
|
|
|
|
|
|
if (has_dispatch_task_type()) {
|
|
@@ -1927,7 +1988,7 @@ size_t Dispatch_control_request_msg::ByteSizeLong() const {
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *base_info_);
|
|
|
+ *this->base_info_);
|
|
|
|
|
|
// required .message.Dispatch_task_type dispatch_task_type = 3;
|
|
|
total_size += 1 +
|
|
@@ -1940,7 +2001,7 @@ size_t Dispatch_control_request_msg::ByteSizeLong() const {
|
|
|
if (has_error_manager()) {
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *error_manager_);
|
|
|
+ *this->error_manager_);
|
|
|
}
|
|
|
|
|
|
if (_has_bits_[0 / 32] & 240u) {
|
|
@@ -1978,7 +2039,9 @@ size_t Dispatch_control_request_msg::ByteSizeLong() const {
|
|
|
}
|
|
|
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
- SetCachedSize(cached_size);
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
+ _cached_size_ = cached_size;
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
return total_size;
|
|
|
}
|
|
|
|
|
@@ -2069,8 +2132,7 @@ 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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
- GetArenaNoVirtual());
|
|
|
+ command_key_.Swap(&other->command_key_);
|
|
|
swap(base_info_, other->base_info_);
|
|
|
swap(error_manager_, other->error_manager_);
|
|
|
swap(dispatch_task_type_, other->dispatch_task_type_);
|
|
@@ -2081,6 +2143,7 @@ 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 {
|
|
@@ -2119,15 +2182,17 @@ const int Dispatch_control_response_msg::kDispatchDeviceTaskStatusFieldNumber;
|
|
|
|
|
|
Dispatch_control_response_msg::Dispatch_control_response_msg()
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
- ::google::protobuf::internal::InitSCC(
|
|
|
- &protobuf_dispatch_5fcontrol_2eproto::scc_info_Dispatch_control_response_msg.base);
|
|
|
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
+ ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_control_response_msg();
|
|
|
+ }
|
|
|
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_) {
|
|
|
+ _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()) {
|
|
@@ -2150,6 +2215,7 @@ 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_) -
|
|
@@ -2169,7 +2235,9 @@ void Dispatch_control_response_msg::SharedDtor() {
|
|
|
}
|
|
|
|
|
|
void Dispatch_control_response_msg::SetCachedSize(int size) const {
|
|
|
- _cached_size_.Set(size);
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
+ _cached_size_ = size;
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
}
|
|
|
const ::google::protobuf::Descriptor* Dispatch_control_response_msg::descriptor() {
|
|
|
::protobuf_dispatch_5fcontrol_2eproto::protobuf_AssignDescriptorsOnce();
|
|
@@ -2177,10 +2245,17 @@ const ::google::protobuf::Descriptor* Dispatch_control_response_msg::descriptor(
|
|
|
}
|
|
|
|
|
|
const Dispatch_control_response_msg& Dispatch_control_response_msg::default_instance() {
|
|
|
- ::google::protobuf::internal::InitSCC(&protobuf_dispatch_5fcontrol_2eproto::scc_info_Dispatch_control_response_msg.base);
|
|
|
+ ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_control_response_msg();
|
|
|
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)
|
|
@@ -2191,7 +2266,8 @@ void Dispatch_control_response_msg::Clear() {
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
if (cached_has_bits & 7u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- command_key_.ClearNonDefaultToEmptyNoArena();
|
|
|
+ GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
+ (*command_key_.UnsafeRawStringPointer())->clear();
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
GOOGLE_DCHECK(base_info_ != NULL);
|
|
@@ -2218,7 +2294,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)) {
|
|
@@ -2400,7 +2476,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->_internal_base_info(), output);
|
|
|
+ 1, *this->base_info_, output);
|
|
|
}
|
|
|
|
|
|
// required string command_key = 2;
|
|
@@ -2438,7 +2514,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->_internal_error_manager(), output);
|
|
|
+ 7, *this->error_manager_, output);
|
|
|
}
|
|
|
|
|
|
// optional .message.Dispatch_device_target_status dispatch_device_target_status = 8;
|
|
@@ -2472,7 +2548,7 @@ void Dispatch_control_response_msg::SerializeWithCachedSizes(
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 1, this->_internal_base_info(), deterministic, target);
|
|
|
+ 1, *this->base_info_, deterministic, target);
|
|
|
}
|
|
|
|
|
|
// required string command_key = 2;
|
|
@@ -2512,7 +2588,7 @@ void Dispatch_control_response_msg::SerializeWithCachedSizes(
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 7, this->_internal_error_manager(), deterministic, target);
|
|
|
+ 7, *this->error_manager_, deterministic, target);
|
|
|
}
|
|
|
|
|
|
// optional .message.Dispatch_device_target_status dispatch_device_target_status = 8;
|
|
@@ -2550,7 +2626,7 @@ size_t Dispatch_control_response_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *base_info_);
|
|
|
+ *this->base_info_);
|
|
|
}
|
|
|
|
|
|
return total_size;
|
|
@@ -2573,7 +2649,7 @@ size_t Dispatch_control_response_msg::ByteSizeLong() const {
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *base_info_);
|
|
|
+ *this->base_info_);
|
|
|
|
|
|
} else {
|
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
@@ -2583,7 +2659,7 @@ size_t Dispatch_control_response_msg::ByteSizeLong() const {
|
|
|
if (has_error_manager()) {
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *error_manager_);
|
|
|
+ *this->error_manager_);
|
|
|
}
|
|
|
|
|
|
// optional .message.Dispatch_task_type dispatch_task_type = 3;
|
|
@@ -2626,7 +2702,9 @@ size_t Dispatch_control_response_msg::ByteSizeLong() const {
|
|
|
}
|
|
|
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
- SetCachedSize(cached_size);
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
+ _cached_size_ = cached_size;
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
return total_size;
|
|
|
}
|
|
|
|
|
@@ -2717,8 +2795,7 @@ 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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
- GetArenaNoVirtual());
|
|
|
+ command_key_.Swap(&other->command_key_);
|
|
|
swap(base_info_, other->base_info_);
|
|
|
swap(error_manager_, other->error_manager_);
|
|
|
swap(dispatch_task_type_, other->dispatch_task_type_);
|
|
@@ -2729,6 +2806,7 @@ 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 {
|
|
@@ -2739,21 +2817,5 @@ 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)
|