Quellcode durchsuchen

20211116, , hebing

huli vor 3 Jahren
Ursprung
Commit
43e4ef13c1

+ 77 - 50
communication/communication.pb.cc

@@ -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,10 +19,6 @@
 #include "third_party/protobuf/version.h"
 #endif
 // @@protoc_insertion_point(includes)
-
-namespace protobuf_communication_2eproto {
-extern PROTOBUF_INTERNAL_EXPORT_protobuf_communication_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Communication_parameter;
-}  // namespace protobuf_communication_2eproto
 namespace Communication_proto {
 class Communication_parameterDefaultTypeInternal {
  public:
@@ -35,9 +32,14 @@ class Communication_parameter_allDefaultTypeInternal {
 } _Communication_parameter_all_default_instance_;
 }  // namespace Communication_proto
 namespace protobuf_communication_2eproto {
-static void InitDefaultsCommunication_parameter() {
+void InitDefaultsCommunication_parameterImpl() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+  ::google::protobuf::internal::InitProtobufDefaults();
+#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
   {
     void* ptr = &::Communication_proto::_Communication_parameter_default_instance_;
     new (ptr) ::Communication_proto::Communication_parameter();
@@ -46,12 +48,20 @@ static void InitDefaultsCommunication_parameter() {
   ::Communication_proto::Communication_parameter::InitAsDefaultInstance();
 }
 
-::google::protobuf::internal::SCCInfo<0> scc_info_Communication_parameter =
-    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCommunication_parameter}, {}};
+void InitDefaultsCommunication_parameter() {
+  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCommunication_parameterImpl);
+}
 
-static void InitDefaultsCommunication_parameter_all() {
+void InitDefaultsCommunication_parameter_allImpl() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+  ::google::protobuf::internal::InitProtobufDefaults();
+#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+  protobuf_communication_2eproto::InitDefaultsCommunication_parameter();
   {
     void* ptr = &::Communication_proto::_Communication_parameter_all_default_instance_;
     new (ptr) ::Communication_proto::Communication_parameter_all();
@@ -60,13 +70,9 @@ static void InitDefaultsCommunication_parameter_all() {
   ::Communication_proto::Communication_parameter_all::InitAsDefaultInstance();
 }
 
-::google::protobuf::internal::SCCInfo<1> scc_info_Communication_parameter_all =
-    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCommunication_parameter_all}, {
-      &protobuf_communication_2eproto::scc_info_Communication_parameter.base,}};
-
-void InitDefaults() {
-  ::google::protobuf::internal::InitSCC(&scc_info_Communication_parameter.base);
-  ::google::protobuf::internal::InitSCC(&scc_info_Communication_parameter_all.base);
+void InitDefaultsCommunication_parameter_all() {
+  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCommunication_parameter_allImpl);
 }
 
 ::google::protobuf::Metadata file_level_metadata[2];
@@ -101,14 +107,15 @@ static ::google::protobuf::Message const * const file_default_instances[] = {
 
 void protobuf_AssignDescriptors() {
   AddDescriptors();
+  ::google::protobuf::MessageFactory* factory = NULL;
   AssignDescriptors(
-      "communication.proto", schemas, file_default_instances, TableStruct::offsets,
+      "communication.proto", schemas, file_default_instances, TableStruct::offsets, factory,
       file_level_metadata, NULL, 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;
@@ -134,8 +141,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 {
@@ -157,8 +164,9 @@ const int Communication_parameter::kConnectStringVectorFieldNumber;
 
 Communication_parameter::Communication_parameter()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  ::google::protobuf::internal::InitSCC(
-      &protobuf_communication_2eproto::scc_info_Communication_parameter.base);
+  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+    ::protobuf_communication_2eproto::InitDefaultsCommunication_parameter();
+  }
   SharedCtor();
   // @@protoc_insertion_point(constructor:Communication_proto.Communication_parameter)
 }
@@ -166,6 +174,7 @@ Communication_parameter::Communication_parameter(const Communication_parameter&
   : ::google::protobuf::Message(),
       _internal_metadata_(NULL),
       _has_bits_(from._has_bits_),
+      _cached_size_(0),
       connect_string_vector_(from.connect_string_vector_) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   bind_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
@@ -176,6 +185,7 @@ Communication_parameter::Communication_parameter(const Communication_parameter&
 }
 
 void Communication_parameter::SharedCtor() {
+  _cached_size_ = 0;
   bind_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 
@@ -189,7 +199,9 @@ void Communication_parameter::SharedDtor() {
 }
 
 void Communication_parameter::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* Communication_parameter::descriptor() {
   ::protobuf_communication_2eproto::protobuf_AssignDescriptorsOnce();
@@ -197,10 +209,17 @@ const ::google::protobuf::Descriptor* Communication_parameter::descriptor() {
 }
 
 const Communication_parameter& Communication_parameter::default_instance() {
-  ::google::protobuf::internal::InitSCC(&protobuf_communication_2eproto::scc_info_Communication_parameter.base);
+  ::protobuf_communication_2eproto::InitDefaultsCommunication_parameter();
   return *internal_default_instance();
 }
 
+Communication_parameter* Communication_parameter::New(::google::protobuf::Arena* arena) const {
+  Communication_parameter* n = new Communication_parameter;
+  if (arena != NULL) {
+    arena->Own(n);
+  }
+  return n;
+}
 
 void Communication_parameter::Clear() {
 // @@protoc_insertion_point(message_clear_start:Communication_proto.Communication_parameter)
@@ -211,7 +230,8 @@ void Communication_parameter::Clear() {
   connect_string_vector_.Clear();
   cached_has_bits = _has_bits_[0];
   if (cached_has_bits & 0x00000001u) {
-    bind_string_.ClearNonDefaultToEmptyNoArena();
+    GOOGLE_DCHECK(!bind_string_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
+    (*bind_string_.UnsafeRawStringPointer())->clear();
   }
   _has_bits_.Clear();
   _internal_metadata_.Clear();
@@ -223,7 +243,7 @@ bool Communication_parameter::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:Communication_proto.Communication_parameter)
   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)) {
@@ -376,7 +396,9 @@ size_t Communication_parameter::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;
 }
 
@@ -433,11 +455,11 @@ void Communication_parameter::Swap(Communication_parameter* other) {
 }
 void Communication_parameter::InternalSwap(Communication_parameter* other) {
   using std::swap;
-  connect_string_vector_.InternalSwap(CastToBase(&other->connect_string_vector_));
-  bind_string_.Swap(&other->bind_string_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
-    GetArenaNoVirtual());
+  connect_string_vector_.InternalSwap(&other->connect_string_vector_);
+  bind_string_.Swap(&other->bind_string_);
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
+  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata Communication_parameter::GetMetadata() const {
@@ -458,15 +480,17 @@ const int Communication_parameter_all::kCommunicationParametersFieldNumber;
 
 Communication_parameter_all::Communication_parameter_all()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  ::google::protobuf::internal::InitSCC(
-      &protobuf_communication_2eproto::scc_info_Communication_parameter_all.base);
+  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+    ::protobuf_communication_2eproto::InitDefaultsCommunication_parameter_all();
+  }
   SharedCtor();
   // @@protoc_insertion_point(constructor:Communication_proto.Communication_parameter_all)
 }
 Communication_parameter_all::Communication_parameter_all(const Communication_parameter_all& 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_);
   if (from.has_communication_parameters()) {
     communication_parameters_ = new ::Communication_proto::Communication_parameter(*from.communication_parameters_);
@@ -477,6 +501,7 @@ Communication_parameter_all::Communication_parameter_all(const Communication_par
 }
 
 void Communication_parameter_all::SharedCtor() {
+  _cached_size_ = 0;
   communication_parameters_ = NULL;
 }
 
@@ -490,7 +515,9 @@ void Communication_parameter_all::SharedDtor() {
 }
 
 void Communication_parameter_all::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* Communication_parameter_all::descriptor() {
   ::protobuf_communication_2eproto::protobuf_AssignDescriptorsOnce();
@@ -498,10 +525,17 @@ const ::google::protobuf::Descriptor* Communication_parameter_all::descriptor()
 }
 
 const Communication_parameter_all& Communication_parameter_all::default_instance() {
-  ::google::protobuf::internal::InitSCC(&protobuf_communication_2eproto::scc_info_Communication_parameter_all.base);
+  ::protobuf_communication_2eproto::InitDefaultsCommunication_parameter_all();
   return *internal_default_instance();
 }
 
+Communication_parameter_all* Communication_parameter_all::New(::google::protobuf::Arena* arena) const {
+  Communication_parameter_all* n = new Communication_parameter_all;
+  if (arena != NULL) {
+    arena->Own(n);
+  }
+  return n;
+}
 
 void Communication_parameter_all::Clear() {
 // @@protoc_insertion_point(message_clear_start:Communication_proto.Communication_parameter_all)
@@ -524,7 +558,7 @@ bool Communication_parameter_all::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:Communication_proto.Communication_parameter_all)
   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)) {
@@ -570,7 +604,7 @@ void Communication_parameter_all::SerializeWithCachedSizes(
   // optional .Communication_proto.Communication_parameter communication_parameters = 1;
   if (cached_has_bits & 0x00000001u) {
     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
-      1, this->_internal_communication_parameters(), output);
+      1, *this->communication_parameters_, output);
   }
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -592,7 +626,7 @@ void Communication_parameter_all::SerializeWithCachedSizes(
   if (cached_has_bits & 0x00000001u) {
     target = ::google::protobuf::internal::WireFormatLite::
       InternalWriteMessageToArray(
-        1, this->_internal_communication_parameters(), deterministic, target);
+        1, *this->communication_parameters_, deterministic, target);
   }
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -616,11 +650,13 @@ size_t Communication_parameter_all::ByteSizeLong() const {
   if (has_communication_parameters()) {
     total_size += 1 +
       ::google::protobuf::internal::WireFormatLite::MessageSize(
-        *communication_parameters_);
+        *this->communication_parameters_);
   }
 
   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;
 }
 
@@ -678,6 +714,7 @@ void Communication_parameter_all::InternalSwap(Communication_parameter_all* othe
   swap(communication_parameters_, other->communication_parameters_);
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
+  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata Communication_parameter_all::GetMetadata() const {
@@ -688,15 +725,5 @@ void Communication_parameter_all::InternalSwap(Communication_parameter_all* othe
 
 // @@protoc_insertion_point(namespace_scope)
 }  // namespace Communication_proto
-namespace google {
-namespace protobuf {
-template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Communication_proto::Communication_parameter* Arena::CreateMaybeMessage< ::Communication_proto::Communication_parameter >(Arena* arena) {
-  return Arena::CreateInternal< ::Communication_proto::Communication_parameter >(arena);
-}
-template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Communication_proto::Communication_parameter_all* Arena::CreateMaybeMessage< ::Communication_proto::Communication_parameter_all >(Arena* arena) {
-  return Arena::CreateInternal< ::Communication_proto::Communication_parameter_all >(arena);
-}
-}  // namespace protobuf
-}  // namespace google
 
 // @@protoc_insertion_point(global_scope)

+ 47 - 65
communication/communication.pb.h

@@ -1,19 +1,19 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: communication.proto
 
-#ifndef PROTOBUF_INCLUDED_communication_2eproto
-#define PROTOBUF_INCLUDED_communication_2eproto
+#ifndef PROTOBUF_communication_2eproto__INCLUDED
+#define PROTOBUF_communication_2eproto__INCLUDED
 
 #include <string>
 
 #include <google/protobuf/stubs/common.h>
 
-#if GOOGLE_PROTOBUF_VERSION < 3006001
+#if GOOGLE_PROTOBUF_VERSION < 3005000
 #error This file was generated by a newer version of protoc which is
 #error incompatible with your Protocol Buffer headers.  Please update
 #error your headers.
 #endif
-#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
 #error This file was generated by an older version of protoc which is
 #error incompatible with your Protocol Buffer headers.  Please
 #error regenerate this file with a newer version of protoc.
@@ -24,14 +24,12 @@
 #include <google/protobuf/arenastring.h>
 #include <google/protobuf/generated_message_table_driven.h>
 #include <google/protobuf/generated_message_util.h>
-#include <google/protobuf/inlined_string_field.h>
 #include <google/protobuf/metadata.h>
 #include <google/protobuf/message.h>
 #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
 #include <google/protobuf/extension_set.h>  // IWYU pragma: export
 #include <google/protobuf/unknown_field_set.h>
 // @@protoc_insertion_point(includes)
-#define PROTOBUF_INTERNAL_EXPORT_protobuf_communication_2eproto 
 
 namespace protobuf_communication_2eproto {
 // Internal implementation detail -- do not use these members.
@@ -44,6 +42,14 @@ struct TableStruct {
   static const ::google::protobuf::uint32 offsets[];
 };
 void AddDescriptors();
+void InitDefaultsCommunication_parameterImpl();
+void InitDefaultsCommunication_parameter();
+void InitDefaultsCommunication_parameter_allImpl();
+void InitDefaultsCommunication_parameter_all();
+inline void InitDefaults() {
+  InitDefaultsCommunication_parameter();
+  InitDefaultsCommunication_parameter_all();
+}
 }  // namespace protobuf_communication_2eproto
 namespace Communication_proto {
 class Communication_parameter;
@@ -53,12 +59,6 @@ class Communication_parameter_all;
 class Communication_parameter_allDefaultTypeInternal;
 extern Communication_parameter_allDefaultTypeInternal _Communication_parameter_all_default_instance_;
 }  // namespace Communication_proto
-namespace google {
-namespace protobuf {
-template<> ::Communication_proto::Communication_parameter* Arena::CreateMaybeMessage<::Communication_proto::Communication_parameter>(Arena*);
-template<> ::Communication_proto::Communication_parameter_all* Arena::CreateMaybeMessage<::Communication_proto::Communication_parameter_all>(Arena*);
-}  // namespace protobuf
-}  // namespace google
 namespace Communication_proto {
 
 // ===================================================================
@@ -104,7 +104,7 @@ class Communication_parameter : public ::google::protobuf::Message /* @@protoc_i
     return reinterpret_cast<const Communication_parameter*>(
                &_Communication_parameter_default_instance_);
   }
-  static constexpr int kIndexInFileMessages =
+  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
     0;
 
   void Swap(Communication_parameter* other);
@@ -114,33 +114,28 @@ class Communication_parameter : public ::google::protobuf::Message /* @@protoc_i
 
   // implements Message ----------------------------------------------
 
-  inline Communication_parameter* New() const final {
-    return CreateMaybeMessage<Communication_parameter>(NULL);
-  }
+  inline Communication_parameter* New() const PROTOBUF_FINAL { return New(NULL); }
 
-  Communication_parameter* New(::google::protobuf::Arena* arena) const final {
-    return CreateMaybeMessage<Communication_parameter>(arena);
-  }
-  void CopyFrom(const ::google::protobuf::Message& from) final;
-  void MergeFrom(const ::google::protobuf::Message& from) final;
+  Communication_parameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
+  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
+  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
   void CopyFrom(const Communication_parameter& from);
   void MergeFrom(const Communication_parameter& from);
-  void Clear() final;
-  bool IsInitialized() const final;
+  void Clear() PROTOBUF_FINAL;
+  bool IsInitialized() const PROTOBUF_FINAL;
 
-  size_t ByteSizeLong() const final;
+  size_t ByteSizeLong() const PROTOBUF_FINAL;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) final;
+      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const final;
+      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const final;
-  int GetCachedSize() const final { return _cached_size_.Get(); }
-
+      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
+  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const final;
+  void SetCachedSize(int size) const PROTOBUF_FINAL;
   void InternalSwap(Communication_parameter* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -151,7 +146,7 @@ class Communication_parameter : public ::google::protobuf::Message /* @@protoc_i
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const final;
+  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
 
   // nested types ----------------------------------------------------
 
@@ -201,10 +196,11 @@ class Communication_parameter : public ::google::protobuf::Message /* @@protoc_i
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable ::google::protobuf::internal::CachedSize _cached_size_;
+  mutable int _cached_size_;
   ::google::protobuf::RepeatedPtrField< ::std::string> connect_string_vector_;
   ::google::protobuf::internal::ArenaStringPtr bind_string_;
   friend struct ::protobuf_communication_2eproto::TableStruct;
+  friend void ::protobuf_communication_2eproto::InitDefaultsCommunication_parameterImpl();
 };
 // -------------------------------------------------------------------
 
@@ -249,7 +245,7 @@ class Communication_parameter_all : public ::google::protobuf::Message /* @@prot
     return reinterpret_cast<const Communication_parameter_all*>(
                &_Communication_parameter_all_default_instance_);
   }
-  static constexpr int kIndexInFileMessages =
+  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
     1;
 
   void Swap(Communication_parameter_all* other);
@@ -259,33 +255,28 @@ class Communication_parameter_all : public ::google::protobuf::Message /* @@prot
 
   // implements Message ----------------------------------------------
 
-  inline Communication_parameter_all* New() const final {
-    return CreateMaybeMessage<Communication_parameter_all>(NULL);
-  }
+  inline Communication_parameter_all* New() const PROTOBUF_FINAL { return New(NULL); }
 
-  Communication_parameter_all* New(::google::protobuf::Arena* arena) const final {
-    return CreateMaybeMessage<Communication_parameter_all>(arena);
-  }
-  void CopyFrom(const ::google::protobuf::Message& from) final;
-  void MergeFrom(const ::google::protobuf::Message& from) final;
+  Communication_parameter_all* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
+  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
+  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
   void CopyFrom(const Communication_parameter_all& from);
   void MergeFrom(const Communication_parameter_all& from);
-  void Clear() final;
-  bool IsInitialized() const final;
+  void Clear() PROTOBUF_FINAL;
+  bool IsInitialized() const PROTOBUF_FINAL;
 
-  size_t ByteSizeLong() const final;
+  size_t ByteSizeLong() const PROTOBUF_FINAL;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) final;
+      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const final;
+      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const final;
-  int GetCachedSize() const final { return _cached_size_.Get(); }
-
+      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
+  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const final;
+  void SetCachedSize(int size) const PROTOBUF_FINAL;
   void InternalSwap(Communication_parameter_all* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -296,7 +287,7 @@ class Communication_parameter_all : public ::google::protobuf::Message /* @@prot
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const final;
+  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
 
   // nested types ----------------------------------------------------
 
@@ -306,9 +297,6 @@ class Communication_parameter_all : public ::google::protobuf::Message /* @@prot
   bool has_communication_parameters() const;
   void clear_communication_parameters();
   static const int kCommunicationParametersFieldNumber = 1;
-  private:
-  const ::Communication_proto::Communication_parameter& _internal_communication_parameters() const;
-  public:
   const ::Communication_proto::Communication_parameter& communication_parameters() const;
   ::Communication_proto::Communication_parameter* release_communication_parameters();
   ::Communication_proto::Communication_parameter* mutable_communication_parameters();
@@ -321,9 +309,10 @@ class Communication_parameter_all : public ::google::protobuf::Message /* @@prot
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable ::google::protobuf::internal::CachedSize _cached_size_;
+  mutable int _cached_size_;
   ::Communication_proto::Communication_parameter* communication_parameters_;
   friend struct ::protobuf_communication_2eproto::TableStruct;
+  friend void ::protobuf_communication_2eproto::InitDefaultsCommunication_parameter_allImpl();
 };
 // ===================================================================
 
@@ -386,11 +375,8 @@ inline ::std::string* Communication_parameter::mutable_bind_string() {
 }
 inline ::std::string* Communication_parameter::release_bind_string() {
   // @@protoc_insertion_point(field_release:Communication_proto.Communication_parameter.bind_string)
-  if (!has_bind_string()) {
-    return NULL;
-  }
   clear_has_bind_string();
-  return bind_string_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return bind_string_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Communication_parameter::set_allocated_bind_string(::std::string* bind_string) {
   if (bind_string != NULL) {
@@ -489,9 +475,6 @@ inline void Communication_parameter_all::clear_communication_parameters() {
   if (communication_parameters_ != NULL) communication_parameters_->Clear();
   clear_has_communication_parameters();
 }
-inline const ::Communication_proto::Communication_parameter& Communication_parameter_all::_internal_communication_parameters() const {
-  return *communication_parameters_;
-}
 inline const ::Communication_proto::Communication_parameter& Communication_parameter_all::communication_parameters() const {
   const ::Communication_proto::Communication_parameter* p = communication_parameters_;
   // @@protoc_insertion_point(field_get:Communication_proto.Communication_parameter_all.communication_parameters)
@@ -508,8 +491,7 @@ inline ::Communication_proto::Communication_parameter* Communication_parameter_a
 inline ::Communication_proto::Communication_parameter* Communication_parameter_all::mutable_communication_parameters() {
   set_has_communication_parameters();
   if (communication_parameters_ == NULL) {
-    auto* p = CreateMaybeMessage<::Communication_proto::Communication_parameter>(GetArenaNoVirtual());
-    communication_parameters_ = p;
+    communication_parameters_ = new ::Communication_proto::Communication_parameter;
   }
   // @@protoc_insertion_point(field_mutable:Communication_proto.Communication_parameter_all.communication_parameters)
   return communication_parameters_;
@@ -545,4 +527,4 @@ inline void Communication_parameter_all::set_allocated_communication_parameters(
 
 // @@protoc_insertion_point(global_scope)
 
-#endif  // PROTOBUF_INCLUDED_communication_2eproto
+#endif  // PROTOBUF_communication_2eproto__INCLUDED

+ 22 - 5
dispatch/dispatch_communication.cpp

@@ -89,8 +89,15 @@ Error_manager Dispatch_communication::communication_init(int plc_id)
 	t_index += sizeof(unsigned char)*20;
 	t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_car_type", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
 	t_index += sizeof(unsigned char)*1;
-	t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved189_209", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 21 });
-	t_index += sizeof(unsigned char)*21;
+	t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved189_192", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 3 });
+	t_index += sizeof(unsigned char)*3;
+	t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_uniformed_car_x", typeid(float).name(), t_index,sizeof(float), 1 });
+	t_index += sizeof(float)*1;
+	t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_uniformed_car_y", typeid(float).name(), t_index,sizeof(float), 1 });
+	t_index += sizeof(float)*1;
+	t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved200_209", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 10 });
+	t_index += sizeof(unsigned char)*10;
+
 	t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_anticollision_lidar_flag", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
 	t_index += sizeof(unsigned char)*1;
 	t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved211_215", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 5 });
@@ -172,8 +179,14 @@ Error_manager Dispatch_communication::communication_init(int plc_id)
 	t_index += sizeof(unsigned char)*20;
 	t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_car_type", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
 	t_index += sizeof(unsigned char)*1;
-	t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved189_209", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 21 });
-	t_index += sizeof(unsigned char)*21;
+	t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved189_192", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 3 });
+	t_index += sizeof(unsigned char)*3;
+	t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_uniformed_car_x", typeid(float).name(), t_index,sizeof(float), 1 });
+	t_index += sizeof(float)*1;
+	t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_uniformed_car_y", typeid(float).name(), t_index,sizeof(float), 1 });
+	t_index += sizeof(float)*1;
+	t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved200_209", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 10 });
+	t_index += sizeof(unsigned char)*10;
 	t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_anticollision_lidar_flag", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
 	t_index += sizeof(unsigned char)*1;
 	t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved211_215", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 5 });
@@ -227,9 +240,13 @@ Error_manager Dispatch_communication::communication_init(int plc_id)
 	t_index += sizeof(float)*1;
 	t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_car_wheel_width", typeid(float).name(), t_index,sizeof(float), 1 });
 	t_index += sizeof(float)*1;
+	t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_uniformed_car_x", typeid(float).name(), t_index,sizeof(float), 1 });
+	t_index += sizeof(float)*1;
+	t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_request_uniformed_car_y", typeid(float).name(), t_index,sizeof(float), 1 });
+	t_index += sizeof(float)*1;
 	t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_response_locate_correct", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
 	t_index += sizeof(unsigned char)*1;
-	t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved37_40", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 3 });
+	t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_reserved45_48", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 3 });
 	t_index += sizeof(unsigned char)*3;
 	t_variable_information_vector.push_back(Snap7_buf::Variable_information{"m_heartbeat", typeid(unsigned char).name(), t_index,sizeof(unsigned char), 1 });
 	t_index += sizeof(unsigned char)*1;

+ 12 - 3
dispatch/dispatch_communication.h

@@ -329,7 +329,11 @@ public:
 		unsigned char			m_reserved168_187[20] = {0};							//预留
 
 		unsigned char			m_request_car_type = 0;						//0=未知,1=小车,2=中车,3=大车 ..188
-		unsigned char			m_reserved189_209[21] = {0};							//预留
+		unsigned char			m_reserved189_192[3] = {0};							//预留
+
+		float					m_request_uniformed_car_x = 0;					//转角复位后,车辆中心点x
+		float					m_request_uniformed_car_y = 0;					//转角复位后,车辆中心点y
+		unsigned char			m_reserved200_209[10] = {0};							//预留
 
 		//防撞雷达 ..210
 		unsigned char			m_request_anticollision_lidar_flag = 0;		//汽车是否停到正确的位置, 防撞雷达	预留, 楚天暂时不用,0=未知,1=位置正常,2=位置异常
@@ -384,8 +388,11 @@ public:
 		unsigned char			m_reserved168_187[20] = {0};							//预留
 
 		unsigned char			m_response_car_type = 0;						//0=未知,1=小车,2=中车,3=大车 ..188
-		unsigned char			m_reserved189_209[21] = {0};							//预留
+		unsigned char			m_reserved189_192[3] = {0};							//预留
 
+		float					m_response_uniformed_car_x = 0;					//转角复位后,车辆中心点x
+		float					m_response_uniformed_car_y = 0;					//转角复位后,车辆中心点y
+		unsigned char			m_reserved200_209[10] = {0};							//预留
 		//防撞雷达 ..210
 		unsigned char			m_response_anticollision_lidar_flag = 0;		//汽车是否停到正确的位置, 防撞雷达	预留, 楚天暂时不用,0=未知,1=位置正常,2=位置异常
 		unsigned char			m_reserved211_215[5] = {0};							//预留
@@ -443,9 +450,11 @@ public:
 		float  					m_response_car_height = 0;					//整车的高度, 用于规避碰撞, 单位:米 m
 		float  					m_response_car_wheel_base = 0;				//整车的轮距, 前后轮的距离, 用于机器人或agv的抓车, 单位:米 m
 		float  					m_response_car_wheel_width = 0;				//整车的轮距, 左右轮的距离, 用于机器人或agv的抓车, 单位:米 m
+		float					m_response_uniformed_car_x = 0;					//转角复位后,车辆中心点x
+		float					m_response_uniformed_car_y = 0;					//转角复位后,车辆中心点y
 		unsigned char			m_response_locate_correct = 0;				//数据是否有效, 0=无效, 1=有效
 			
-		unsigned char			m_reserved37_40[3] = {0};							//预留
+		unsigned char			m_reserved45_48[3] = {0};							//预留
 		unsigned char			m_response_heartbeat = 0;							//心跳位, 0-255循环
 		unsigned char			m_response_communication_mode = 0;					//通信模式	0 = 未知, 1=自动循环模式,2=手动刷新模式
 		unsigned char			m_response_refresh_command = 0;						//刷新指令 0-255任意数字,与上一次不同即可

+ 16 - 2
dispatch/dispatch_ground_lidar.cpp

@@ -115,13 +115,20 @@ void Dispatch_ground_lidar::execute_thread_fun()
 
 					p_response_data->m_response_car_center_x = m_ground_status_msg.locate_information_realtime().locate_x();
 					p_response_data->m_response_car_center_y = m_ground_status_msg.locate_information_realtime().locate_y();
-					p_response_data->m_response_car_angle = m_ground_status_msg.locate_information_realtime().locate_angle()-90+0.5;
+#ifdef MEASURE_TO_PLC_CORRECTION
+					p_response_data->m_response_car_angle = m_ground_status_msg.locate_information_realtime().locate_angle()-90+0.3;
+#endif
+#ifndef MEASURE_TO_PLC_CORRECTION
+					p_response_data->m_response_car_angle = m_ground_status_msg.locate_information_realtime().locate_angle();
+#endif
 					p_response_data->m_response_car_front_theta = m_ground_status_msg.locate_information_realtime().locate_front_theta();
 					p_response_data->m_response_car_length = m_ground_status_msg.locate_information_realtime().locate_length();
 					p_response_data->m_response_car_width = m_ground_status_msg.locate_information_realtime().locate_width();
 					p_response_data->m_response_car_height = m_ground_status_msg.locate_information_realtime().locate_height();
 					p_response_data->m_response_car_wheel_base = m_ground_status_msg.locate_information_realtime().locate_wheel_base();
 					p_response_data->m_response_car_wheel_width = m_ground_status_msg.locate_information_realtime().locate_wheel_width();
+					p_response_data->m_response_uniformed_car_x = m_ground_status_msg.locate_information_realtime().uniformed_car_x();
+					p_response_data->m_response_uniformed_car_y = m_ground_status_msg.locate_information_realtime().uniformed_car_y();
 					p_response_data->m_response_locate_correct = m_ground_status_msg.locate_information_realtime().locate_correct();
 				}
 				else if (p_response_data->m_response_refresh_command == p_request->m_request_refresh_command)
@@ -138,13 +145,20 @@ void Dispatch_ground_lidar::execute_thread_fun()
 
 					p_response_data->m_response_car_center_x = m_ground_status_msg.locate_information_realtime().locate_x();
 					p_response_data->m_response_car_center_y = m_ground_status_msg.locate_information_realtime().locate_y();
-					p_response_data->m_response_car_angle = m_ground_status_msg.locate_information_realtime().locate_angle()-90+0.5;
+#ifdef MEASURE_TO_PLC_CORRECTION
+					p_response_data->m_response_car_angle = m_ground_status_msg.locate_information_realtime().locate_angle()-90+0.3;
+#endif
+#ifndef MEASURE_TO_PLC_CORRECTION
+					p_response_data->m_response_car_angle = m_ground_status_msg.locate_information_realtime().locate_angle();
+#endif
 					p_response_data->m_response_car_front_theta = m_ground_status_msg.locate_information_realtime().locate_front_theta();
 					p_response_data->m_response_car_length = m_ground_status_msg.locate_information_realtime().locate_length();
 					p_response_data->m_response_car_width = m_ground_status_msg.locate_information_realtime().locate_width();
 					p_response_data->m_response_car_height = m_ground_status_msg.locate_information_realtime().locate_height();
 					p_response_data->m_response_car_wheel_base = m_ground_status_msg.locate_information_realtime().locate_wheel_base();
 					p_response_data->m_response_car_wheel_width = m_ground_status_msg.locate_information_realtime().locate_wheel_width();
+					p_response_data->m_response_uniformed_car_x = m_ground_status_msg.locate_information_realtime().uniformed_car_x();
+					p_response_data->m_response_uniformed_car_y = m_ground_status_msg.locate_information_realtime().uniformed_car_y();
 					p_response_data->m_response_locate_correct = m_ground_status_msg.locate_information_realtime().locate_correct();
 				}
 

Datei-Diff unterdrückt, da er zu groß ist
+ 461 - 266
dispatch/dispatch_parameter.pb.cc


Datei-Diff unterdrückt, da er zu groß ist
+ 328 - 379
dispatch/dispatch_parameter.pb.h


+ 22 - 2
dispatch/dispatch_plc.cpp

@@ -254,25 +254,39 @@ Error_manager Dispatch_plc::encapsulate_dispatch_request_to_plc()
 	{
 		m_request_car_center_x = m_dispatch_request_msg.locate_information().locate_x();
 		m_request_car_center_y = m_dispatch_request_msg.locate_information().locate_y();
-		m_request_car_angle = m_dispatch_request_msg.locate_information().locate_angle()-90+0.5;//80~100改为-10~+10
+#ifdef MEASURE_TO_PLC_CORRECTION
+		m_request_car_angle = m_dispatch_request_msg.locate_information().locate_angle()-90+0.3;//80~100改为-10~+10
+#endif
+#ifndef MEASURE_TO_PLC_CORRECTION
+		m_request_car_angle = m_dispatch_request_msg.locate_information().locate_angle();
+#endif
 		m_request_car_front_theta = m_dispatch_request_msg.locate_information().locate_front_theta();
 		m_request_car_length = m_dispatch_request_msg.locate_information().locate_length();
 		m_request_car_width = m_dispatch_request_msg.locate_information().locate_width();
 		m_request_car_height = m_dispatch_request_msg.locate_information().locate_height();
 		m_request_car_wheel_base = m_dispatch_request_msg.locate_information().locate_wheel_base();
 		m_request_car_wheel_width = m_dispatch_request_msg.locate_information().locate_wheel_width();
+		m_request_uniformed_car_x = m_dispatch_request_msg.locate_information().uniformed_car_x();
+		m_request_uniformed_car_x = m_dispatch_request_msg.locate_information().uniformed_car_y();
 	}
 	else
 	{
 		m_request_car_center_x = m_dispatch_request_msg.locate_information().locate_x();
 		m_request_car_center_y = m_dispatch_request_msg.locate_information().locate_y();
-		m_request_car_angle = m_dispatch_request_msg.locate_information().locate_angle()-90+0.5;//80~100改为-10~+10
+#ifdef MEASURE_TO_PLC_CORRECTION
+		m_request_car_angle = m_dispatch_request_msg.locate_information().locate_angle()-90+0.3;//80~100改为-10~+10
+#endif
+#ifndef MEASURE_TO_PLC_CORRECTION
+		m_request_car_angle = m_dispatch_request_msg.locate_information().locate_angle();
+#endif
 		m_request_car_front_theta = m_dispatch_request_msg.locate_information().locate_front_theta();
 		m_request_car_length = m_dispatch_request_msg.locate_information().locate_length();
 		m_request_car_width = m_dispatch_request_msg.locate_information().locate_width();
 		m_request_car_height = m_dispatch_request_msg.locate_information().locate_height();
 		m_request_car_wheel_base = m_dispatch_request_msg.locate_information().locate_wheel_base();
 		m_request_car_wheel_width = m_dispatch_request_msg.locate_information().locate_wheel_width();
+		m_request_uniformed_car_x = m_dispatch_request_msg.locate_information().uniformed_car_x();
+		m_request_uniformed_car_x = m_dispatch_request_msg.locate_information().uniformed_car_y();
 	}
 
 	if ( m_dispatch_request_msg.parkspace_info_ex_size() ==1 )
@@ -372,6 +386,9 @@ Error_manager Dispatch_plc::update_dispatch_plc_communication()
 	int t_size2 = m_request_key.size()<=20 ? m_request_key.size() : 20 ;
 	memcpy(tp_dispatch_request_from_manager_to_plc_for_data->m_request_car_license, m_request_car_license.c_str(), t_size2);
  	tp_dispatch_request_from_manager_to_plc_for_data->m_request_car_type = m_request_car_type;
+	tp_dispatch_request_from_manager_to_plc_for_data->m_request_uniformed_car_x = m_request_uniformed_car_x;
+	tp_dispatch_request_from_manager_to_plc_for_data->m_request_uniformed_car_y = m_request_uniformed_car_y;
+
 	tp_dispatch_request_from_manager_to_plc_for_data->m_request_anticollision_lidar_flag = m_request_anticollision_lidar_flag;
 	tp_dispatch_request_from_manager_to_plc_for_data->m_request_car_wheel_base_exact_value = m_request_car_wheel_base_exact_value;
 
@@ -404,6 +421,9 @@ Error_manager Dispatch_plc::update_dispatch_plc_communication()
 	m_response_car_wheel_width = tp_dispatch_response_from_plc_to_manager->m_response_car_wheel_width;
 	m_response_car_license = (char*) tp_dispatch_response_from_plc_to_manager->m_response_car_license;
 	m_response_car_type = (Common_data::Car_type) tp_dispatch_response_from_plc_to_manager->m_response_car_type;
+	m_response_uniformed_car_x = tp_dispatch_response_from_plc_to_manager->m_response_uniformed_car_x;
+	m_response_uniformed_car_y = tp_dispatch_response_from_plc_to_manager->m_response_uniformed_car_y;
+
 	m_response_anticollision_lidar_flag = (Common_data::Anticollision_lidar_flag)tp_dispatch_response_from_plc_to_manager->m_response_anticollision_lidar_flag;
 	m_response_car_wheel_base_exact_value = tp_dispatch_response_from_plc_to_manager->m_response_car_wheel_base_exact_value;
 /*

+ 6 - 0
dispatch/dispatch_plc.h

@@ -131,6 +131,9 @@ protected://member variable
 	std::string										m_request_car_license;					//车牌号(汽车唯一标示)	例如: 鄂A12345
 
 	Common_data::Car_type							m_request_car_type;					//车的大小
+	float 											m_request_uniformed_car_x = 0;				//转角复位后,车辆中心点x
+	float  											m_request_uniformed_car_y = 0;				//转角复位后,车辆中心点y
+
 	//防撞雷达
 	Common_data::Anticollision_lidar_flag			m_request_anticollision_lidar_flag ;		//汽车是否停到正确的位置, 防撞雷达	预留, 楚天暂时不用,0=未知,1=位置正常,2=位置异常
 	//轮距雷达
@@ -162,6 +165,9 @@ protected://member variable
 	std::string										m_response_car_license;					//车牌号(汽车唯一标示)	例如: 鄂A12345
 
 	Common_data::Car_type							m_response_car_type;					//车的大小
+	float 											m_response_uniformed_car_x = 0;				//转角复位后,车辆中心点x
+	float  											m_response_uniformed_car_y = 0;				//转角复位后,车辆中心点y
+
 	//防撞雷达
 	Common_data::Anticollision_lidar_flag			m_response_anticollision_lidar_flag ;	//汽车是否停到正确的位置, 防撞雷达	预留, 楚天暂时不用,0=未知,1=位置正常,2=位置异常
 	//轮距雷达

+ 1 - 1
error_code/error_code.h

@@ -5,7 +5,7 @@
 
 #define PLC_S7_COMMUNICATION 1	//是否开启plc的通信
 #define WAIT_PLC_RESPONSE 1		//是否等待plc的答复
-//#define MEASURE_TO_PLC_CORRECTION 1		//修正感测数据
+#define MEASURE_TO_PLC_CORRECTION 1		//修正感测数据
 
 
 //Error_code是错误码的底层通用模块,

+ 4 - 4
hulitest.sh

@@ -1,14 +1,14 @@
 #!/bin/bash
  
-/home/zx/huli/chutian_dispatch/build
+
 {
-gnome-terminal -x bash -c "cd /home/zx/huli/chutian_dispatch/build/&&./terminal 0; exec bash"
+gnome-terminal -x bash -c "cd /home/huli/huli/chutian_project/chutian_dispatch/chutian_dispatch/cmake-build-debug/&&./terminal 0; exec bash"
 }&
  
 {
-gnome-terminal -x bash -c "cd /home/zx/huli/chutian_dispatch/build/&&./terminal 1; exec bash"
+gnome-terminal -x bash -c "cd /home/huli/huli/chutian_project/chutian_dispatch/chutian_dispatch/cmake-build-debug/&&./terminal 1; exec bash"
 }&
 
 {
-gnome-terminal -x bash -c "cd /home/zx/huli/chutian_dispatch/build/&&./terminal 2; exec bash"
+gnome-terminal -x bash -c "cd /home/huli/huli/chutian_project/chutian_dispatch/chutian_dispatch/cmake-build-debug/&&./terminal 2; exec bash"
 }&

+ 182 - 120
message/dispatch_control.pb.cc

@@ -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)

+ 98 - 178
message/dispatch_control.pb.h

@@ -1,19 +1,19 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: dispatch_control.proto
 
-#ifndef PROTOBUF_INCLUDED_dispatch_5fcontrol_2eproto
-#define PROTOBUF_INCLUDED_dispatch_5fcontrol_2eproto
+#ifndef PROTOBUF_dispatch_5fcontrol_2eproto__INCLUDED
+#define PROTOBUF_dispatch_5fcontrol_2eproto__INCLUDED
 
 #include <string>
 
 #include <google/protobuf/stubs/common.h>
 
-#if GOOGLE_PROTOBUF_VERSION < 3006001
+#if GOOGLE_PROTOBUF_VERSION < 3005000
 #error This file was generated by a newer version of protoc which is
 #error incompatible with your Protocol Buffer headers.  Please update
 #error your headers.
 #endif
-#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
 #error This file was generated by an older version of protoc which is
 #error incompatible with your Protocol Buffer headers.  Please
 #error regenerate this file with a newer version of protoc.
@@ -24,7 +24,6 @@
 #include <google/protobuf/arenastring.h>
 #include <google/protobuf/generated_message_table_driven.h>
 #include <google/protobuf/generated_message_util.h>
-#include <google/protobuf/inlined_string_field.h>
 #include <google/protobuf/metadata.h>
 #include <google/protobuf/message.h>
 #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
@@ -33,7 +32,6 @@
 #include <google/protobuf/unknown_field_set.h>
 #include "message_base.pb.h"
 // @@protoc_insertion_point(includes)
-#define PROTOBUF_INTERNAL_EXPORT_protobuf_dispatch_5fcontrol_2eproto 
 
 namespace protobuf_dispatch_5fcontrol_2eproto {
 // Internal implementation detail -- do not use these members.
@@ -46,6 +44,20 @@ struct TableStruct {
   static const ::google::protobuf::uint32 offsets[];
 };
 void AddDescriptors();
+void InitDefaultsDispatch_plan_request_msgImpl();
+void InitDefaultsDispatch_plan_request_msg();
+void InitDefaultsDispatch_plan_response_msgImpl();
+void InitDefaultsDispatch_plan_response_msg();
+void InitDefaultsDispatch_control_request_msgImpl();
+void InitDefaultsDispatch_control_request_msg();
+void InitDefaultsDispatch_control_response_msgImpl();
+void InitDefaultsDispatch_control_response_msg();
+inline void InitDefaults() {
+  InitDefaultsDispatch_plan_request_msg();
+  InitDefaultsDispatch_plan_response_msg();
+  InitDefaultsDispatch_control_request_msg();
+  InitDefaultsDispatch_control_response_msg();
+}
 }  // namespace protobuf_dispatch_5fcontrol_2eproto
 namespace message {
 class Dispatch_control_request_msg;
@@ -61,14 +73,6 @@ class Dispatch_plan_response_msg;
 class Dispatch_plan_response_msgDefaultTypeInternal;
 extern Dispatch_plan_response_msgDefaultTypeInternal _Dispatch_plan_response_msg_default_instance_;
 }  // namespace message
-namespace google {
-namespace protobuf {
-template<> ::message::Dispatch_control_request_msg* Arena::CreateMaybeMessage<::message::Dispatch_control_request_msg>(Arena*);
-template<> ::message::Dispatch_control_response_msg* Arena::CreateMaybeMessage<::message::Dispatch_control_response_msg>(Arena*);
-template<> ::message::Dispatch_plan_request_msg* Arena::CreateMaybeMessage<::message::Dispatch_plan_request_msg>(Arena*);
-template<> ::message::Dispatch_plan_response_msg* Arena::CreateMaybeMessage<::message::Dispatch_plan_response_msg>(Arena*);
-}  // namespace protobuf
-}  // namespace google
 namespace message {
 
 enum Dispatch_task_type {
@@ -206,7 +210,7 @@ class Dispatch_plan_request_msg : public ::google::protobuf::Message /* @@protoc
     return reinterpret_cast<const Dispatch_plan_request_msg*>(
                &_Dispatch_plan_request_msg_default_instance_);
   }
-  static constexpr int kIndexInFileMessages =
+  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
     0;
 
   void Swap(Dispatch_plan_request_msg* other);
@@ -216,33 +220,28 @@ class Dispatch_plan_request_msg : public ::google::protobuf::Message /* @@protoc
 
   // implements Message ----------------------------------------------
 
-  inline Dispatch_plan_request_msg* New() const final {
-    return CreateMaybeMessage<Dispatch_plan_request_msg>(NULL);
-  }
+  inline Dispatch_plan_request_msg* New() const PROTOBUF_FINAL { return New(NULL); }
 
-  Dispatch_plan_request_msg* New(::google::protobuf::Arena* arena) const final {
-    return CreateMaybeMessage<Dispatch_plan_request_msg>(arena);
-  }
-  void CopyFrom(const ::google::protobuf::Message& from) final;
-  void MergeFrom(const ::google::protobuf::Message& from) final;
+  Dispatch_plan_request_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
+  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
+  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
   void CopyFrom(const Dispatch_plan_request_msg& from);
   void MergeFrom(const Dispatch_plan_request_msg& from);
-  void Clear() final;
-  bool IsInitialized() const final;
+  void Clear() PROTOBUF_FINAL;
+  bool IsInitialized() const PROTOBUF_FINAL;
 
-  size_t ByteSizeLong() const final;
+  size_t ByteSizeLong() const PROTOBUF_FINAL;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) final;
+      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const final;
+      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const final;
-  int GetCachedSize() const final { return _cached_size_.Get(); }
-
+      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
+  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const final;
+  void SetCachedSize(int size) const PROTOBUF_FINAL;
   void InternalSwap(Dispatch_plan_request_msg* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -253,7 +252,7 @@ class Dispatch_plan_request_msg : public ::google::protobuf::Message /* @@protoc
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const final;
+  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
 
   // nested types ----------------------------------------------------
 
@@ -278,9 +277,6 @@ class Dispatch_plan_request_msg : public ::google::protobuf::Message /* @@protoc
   bool has_base_info() const;
   void clear_base_info();
   static const int kBaseInfoFieldNumber = 1;
-  private:
-  const ::message::Base_info& _internal_base_info() const;
-  public:
   const ::message::Base_info& base_info() const;
   ::message::Base_info* release_base_info();
   ::message::Base_info* mutable_base_info();
@@ -290,9 +286,6 @@ class Dispatch_plan_request_msg : public ::google::protobuf::Message /* @@protoc
   bool has_error_manager() const;
   void clear_error_manager();
   static const int kErrorManagerFieldNumber = 6;
-  private:
-  const ::message::Error_manager& _internal_error_manager() const;
-  public:
   const ::message::Error_manager& error_manager() const;
   ::message::Error_manager* release_error_manager();
   ::message::Error_manager* mutable_error_manager();
@@ -339,7 +332,7 @@ class Dispatch_plan_request_msg : public ::google::protobuf::Message /* @@protoc
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable ::google::protobuf::internal::CachedSize _cached_size_;
+  mutable int _cached_size_;
   ::google::protobuf::internal::ArenaStringPtr command_key_;
   ::message::Base_info* base_info_;
   ::message::Error_manager* error_manager_;
@@ -347,6 +340,7 @@ class Dispatch_plan_request_msg : public ::google::protobuf::Message /* @@protoc
   ::google::protobuf::int32 dispatch_source_;
   ::google::protobuf::int32 dispatch_destination_;
   friend struct ::protobuf_dispatch_5fcontrol_2eproto::TableStruct;
+  friend void ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_plan_request_msgImpl();
 };
 // -------------------------------------------------------------------
 
@@ -391,7 +385,7 @@ class Dispatch_plan_response_msg : public ::google::protobuf::Message /* @@proto
     return reinterpret_cast<const Dispatch_plan_response_msg*>(
                &_Dispatch_plan_response_msg_default_instance_);
   }
-  static constexpr int kIndexInFileMessages =
+  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
     1;
 
   void Swap(Dispatch_plan_response_msg* other);
@@ -401,33 +395,28 @@ class Dispatch_plan_response_msg : public ::google::protobuf::Message /* @@proto
 
   // implements Message ----------------------------------------------
 
-  inline Dispatch_plan_response_msg* New() const final {
-    return CreateMaybeMessage<Dispatch_plan_response_msg>(NULL);
-  }
+  inline Dispatch_plan_response_msg* New() const PROTOBUF_FINAL { return New(NULL); }
 
-  Dispatch_plan_response_msg* New(::google::protobuf::Arena* arena) const final {
-    return CreateMaybeMessage<Dispatch_plan_response_msg>(arena);
-  }
-  void CopyFrom(const ::google::protobuf::Message& from) final;
-  void MergeFrom(const ::google::protobuf::Message& from) final;
+  Dispatch_plan_response_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
+  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
+  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
   void CopyFrom(const Dispatch_plan_response_msg& from);
   void MergeFrom(const Dispatch_plan_response_msg& from);
-  void Clear() final;
-  bool IsInitialized() const final;
+  void Clear() PROTOBUF_FINAL;
+  bool IsInitialized() const PROTOBUF_FINAL;
 
-  size_t ByteSizeLong() const final;
+  size_t ByteSizeLong() const PROTOBUF_FINAL;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) final;
+      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const final;
+      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const final;
-  int GetCachedSize() const final { return _cached_size_.Get(); }
-
+      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
+  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const final;
+  void SetCachedSize(int size) const PROTOBUF_FINAL;
   void InternalSwap(Dispatch_plan_response_msg* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -438,7 +427,7 @@ class Dispatch_plan_response_msg : public ::google::protobuf::Message /* @@proto
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const final;
+  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
 
   // nested types ----------------------------------------------------
 
@@ -463,9 +452,6 @@ class Dispatch_plan_response_msg : public ::google::protobuf::Message /* @@proto
   bool has_base_info() const;
   void clear_base_info();
   static const int kBaseInfoFieldNumber = 1;
-  private:
-  const ::message::Base_info& _internal_base_info() const;
-  public:
   const ::message::Base_info& base_info() const;
   ::message::Base_info* release_base_info();
   ::message::Base_info* mutable_base_info();
@@ -475,9 +461,6 @@ class Dispatch_plan_response_msg : public ::google::protobuf::Message /* @@proto
   bool has_error_manager() const;
   void clear_error_manager();
   static const int kErrorManagerFieldNumber = 6;
-  private:
-  const ::message::Error_manager& _internal_error_manager() const;
-  public:
   const ::message::Error_manager& error_manager() const;
   ::message::Error_manager* release_error_manager();
   ::message::Error_manager* mutable_error_manager();
@@ -524,7 +507,7 @@ class Dispatch_plan_response_msg : public ::google::protobuf::Message /* @@proto
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable ::google::protobuf::internal::CachedSize _cached_size_;
+  mutable int _cached_size_;
   ::google::protobuf::internal::ArenaStringPtr command_key_;
   ::message::Base_info* base_info_;
   ::message::Error_manager* error_manager_;
@@ -532,6 +515,7 @@ class Dispatch_plan_response_msg : public ::google::protobuf::Message /* @@proto
   ::google::protobuf::int32 dispatch_source_;
   ::google::protobuf::int32 dispatch_destination_;
   friend struct ::protobuf_dispatch_5fcontrol_2eproto::TableStruct;
+  friend void ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_plan_response_msgImpl();
 };
 // -------------------------------------------------------------------
 
@@ -576,7 +560,7 @@ class Dispatch_control_request_msg : public ::google::protobuf::Message /* @@pro
     return reinterpret_cast<const Dispatch_control_request_msg*>(
                &_Dispatch_control_request_msg_default_instance_);
   }
-  static constexpr int kIndexInFileMessages =
+  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
     2;
 
   void Swap(Dispatch_control_request_msg* other);
@@ -586,33 +570,28 @@ class Dispatch_control_request_msg : public ::google::protobuf::Message /* @@pro
 
   // implements Message ----------------------------------------------
 
-  inline Dispatch_control_request_msg* New() const final {
-    return CreateMaybeMessage<Dispatch_control_request_msg>(NULL);
-  }
+  inline Dispatch_control_request_msg* New() const PROTOBUF_FINAL { return New(NULL); }
 
-  Dispatch_control_request_msg* New(::google::protobuf::Arena* arena) const final {
-    return CreateMaybeMessage<Dispatch_control_request_msg>(arena);
-  }
-  void CopyFrom(const ::google::protobuf::Message& from) final;
-  void MergeFrom(const ::google::protobuf::Message& from) final;
+  Dispatch_control_request_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
+  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
+  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
   void CopyFrom(const Dispatch_control_request_msg& from);
   void MergeFrom(const Dispatch_control_request_msg& from);
-  void Clear() final;
-  bool IsInitialized() const final;
+  void Clear() PROTOBUF_FINAL;
+  bool IsInitialized() const PROTOBUF_FINAL;
 
-  size_t ByteSizeLong() const final;
+  size_t ByteSizeLong() const PROTOBUF_FINAL;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) final;
+      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const final;
+      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const final;
-  int GetCachedSize() const final { return _cached_size_.Get(); }
-
+      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
+  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const final;
+  void SetCachedSize(int size) const PROTOBUF_FINAL;
   void InternalSwap(Dispatch_control_request_msg* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -623,7 +602,7 @@ class Dispatch_control_request_msg : public ::google::protobuf::Message /* @@pro
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const final;
+  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
 
   // nested types ----------------------------------------------------
 
@@ -648,9 +627,6 @@ class Dispatch_control_request_msg : public ::google::protobuf::Message /* @@pro
   bool has_base_info() const;
   void clear_base_info();
   static const int kBaseInfoFieldNumber = 1;
-  private:
-  const ::message::Base_info& _internal_base_info() const;
-  public:
   const ::message::Base_info& base_info() const;
   ::message::Base_info* release_base_info();
   ::message::Base_info* mutable_base_info();
@@ -660,9 +636,6 @@ class Dispatch_control_request_msg : public ::google::protobuf::Message /* @@pro
   bool has_error_manager() const;
   void clear_error_manager();
   static const int kErrorManagerFieldNumber = 7;
-  private:
-  const ::message::Error_manager& _internal_error_manager() const;
-  public:
   const ::message::Error_manager& error_manager() const;
   ::message::Error_manager* release_error_manager();
   ::message::Error_manager* mutable_error_manager();
@@ -736,7 +709,7 @@ class Dispatch_control_request_msg : public ::google::protobuf::Message /* @@pro
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable ::google::protobuf::internal::CachedSize _cached_size_;
+  mutable int _cached_size_;
   ::google::protobuf::internal::ArenaStringPtr command_key_;
   ::message::Base_info* base_info_;
   ::message::Error_manager* error_manager_;
@@ -747,6 +720,7 @@ class Dispatch_control_request_msg : public ::google::protobuf::Message /* @@pro
   int dispatch_device_task_status_;
   int dispatch_device_type_;
   friend struct ::protobuf_dispatch_5fcontrol_2eproto::TableStruct;
+  friend void ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_control_request_msgImpl();
 };
 // -------------------------------------------------------------------
 
@@ -791,7 +765,7 @@ class Dispatch_control_response_msg : public ::google::protobuf::Message /* @@pr
     return reinterpret_cast<const Dispatch_control_response_msg*>(
                &_Dispatch_control_response_msg_default_instance_);
   }
-  static constexpr int kIndexInFileMessages =
+  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
     3;
 
   void Swap(Dispatch_control_response_msg* other);
@@ -801,33 +775,28 @@ class Dispatch_control_response_msg : public ::google::protobuf::Message /* @@pr
 
   // implements Message ----------------------------------------------
 
-  inline Dispatch_control_response_msg* New() const final {
-    return CreateMaybeMessage<Dispatch_control_response_msg>(NULL);
-  }
+  inline Dispatch_control_response_msg* New() const PROTOBUF_FINAL { return New(NULL); }
 
-  Dispatch_control_response_msg* New(::google::protobuf::Arena* arena) const final {
-    return CreateMaybeMessage<Dispatch_control_response_msg>(arena);
-  }
-  void CopyFrom(const ::google::protobuf::Message& from) final;
-  void MergeFrom(const ::google::protobuf::Message& from) final;
+  Dispatch_control_response_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
+  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
+  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
   void CopyFrom(const Dispatch_control_response_msg& from);
   void MergeFrom(const Dispatch_control_response_msg& from);
-  void Clear() final;
-  bool IsInitialized() const final;
+  void Clear() PROTOBUF_FINAL;
+  bool IsInitialized() const PROTOBUF_FINAL;
 
-  size_t ByteSizeLong() const final;
+  size_t ByteSizeLong() const PROTOBUF_FINAL;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) final;
+      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const final;
+      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const final;
-  int GetCachedSize() const final { return _cached_size_.Get(); }
-
+      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
+  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const final;
+  void SetCachedSize(int size) const PROTOBUF_FINAL;
   void InternalSwap(Dispatch_control_response_msg* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -838,7 +807,7 @@ class Dispatch_control_response_msg : public ::google::protobuf::Message /* @@pr
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const final;
+  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
 
   // nested types ----------------------------------------------------
 
@@ -863,9 +832,6 @@ class Dispatch_control_response_msg : public ::google::protobuf::Message /* @@pr
   bool has_base_info() const;
   void clear_base_info();
   static const int kBaseInfoFieldNumber = 1;
-  private:
-  const ::message::Base_info& _internal_base_info() const;
-  public:
   const ::message::Base_info& base_info() const;
   ::message::Base_info* release_base_info();
   ::message::Base_info* mutable_base_info();
@@ -875,9 +841,6 @@ class Dispatch_control_response_msg : public ::google::protobuf::Message /* @@pr
   bool has_error_manager() const;
   void clear_error_manager();
   static const int kErrorManagerFieldNumber = 7;
-  private:
-  const ::message::Error_manager& _internal_error_manager() const;
-  public:
   const ::message::Error_manager& error_manager() const;
   ::message::Error_manager* release_error_manager();
   ::message::Error_manager* mutable_error_manager();
@@ -951,7 +914,7 @@ class Dispatch_control_response_msg : public ::google::protobuf::Message /* @@pr
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable ::google::protobuf::internal::CachedSize _cached_size_;
+  mutable int _cached_size_;
   ::google::protobuf::internal::ArenaStringPtr command_key_;
   ::message::Base_info* base_info_;
   ::message::Error_manager* error_manager_;
@@ -962,6 +925,7 @@ class Dispatch_control_response_msg : public ::google::protobuf::Message /* @@pr
   int dispatch_device_task_status_;
   int dispatch_device_type_;
   friend struct ::protobuf_dispatch_5fcontrol_2eproto::TableStruct;
+  friend void ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_control_response_msgImpl();
 };
 // ===================================================================
 
@@ -984,9 +948,6 @@ inline void Dispatch_plan_request_msg::set_has_base_info() {
 inline void Dispatch_plan_request_msg::clear_has_base_info() {
   _has_bits_[0] &= ~0x00000002u;
 }
-inline const ::message::Base_info& Dispatch_plan_request_msg::_internal_base_info() const {
-  return *base_info_;
-}
 inline const ::message::Base_info& Dispatch_plan_request_msg::base_info() const {
   const ::message::Base_info* p = base_info_;
   // @@protoc_insertion_point(field_get:message.Dispatch_plan_request_msg.base_info)
@@ -1003,8 +964,7 @@ inline ::message::Base_info* Dispatch_plan_request_msg::release_base_info() {
 inline ::message::Base_info* Dispatch_plan_request_msg::mutable_base_info() {
   set_has_base_info();
   if (base_info_ == NULL) {
-    auto* p = CreateMaybeMessage<::message::Base_info>(GetArenaNoVirtual());
-    base_info_ = p;
+    base_info_ = new ::message::Base_info;
   }
   // @@protoc_insertion_point(field_mutable:message.Dispatch_plan_request_msg.base_info)
   return base_info_;
@@ -1078,11 +1038,8 @@ inline ::std::string* Dispatch_plan_request_msg::mutable_command_key() {
 }
 inline ::std::string* Dispatch_plan_request_msg::release_command_key() {
   // @@protoc_insertion_point(field_release:message.Dispatch_plan_request_msg.command_key)
-  if (!has_command_key()) {
-    return NULL;
-  }
   clear_has_command_key();
-  return command_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return command_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Dispatch_plan_request_msg::set_allocated_command_key(::std::string* command_key) {
   if (command_key != NULL) {
@@ -1177,9 +1134,6 @@ inline void Dispatch_plan_request_msg::set_has_error_manager() {
 inline void Dispatch_plan_request_msg::clear_has_error_manager() {
   _has_bits_[0] &= ~0x00000004u;
 }
-inline const ::message::Error_manager& Dispatch_plan_request_msg::_internal_error_manager() const {
-  return *error_manager_;
-}
 inline const ::message::Error_manager& Dispatch_plan_request_msg::error_manager() const {
   const ::message::Error_manager* p = error_manager_;
   // @@protoc_insertion_point(field_get:message.Dispatch_plan_request_msg.error_manager)
@@ -1196,8 +1150,7 @@ inline ::message::Error_manager* Dispatch_plan_request_msg::release_error_manage
 inline ::message::Error_manager* Dispatch_plan_request_msg::mutable_error_manager() {
   set_has_error_manager();
   if (error_manager_ == NULL) {
-    auto* p = CreateMaybeMessage<::message::Error_manager>(GetArenaNoVirtual());
-    error_manager_ = p;
+    error_manager_ = new ::message::Error_manager;
   }
   // @@protoc_insertion_point(field_mutable:message.Dispatch_plan_request_msg.error_manager)
   return error_manager_;
@@ -1235,9 +1188,6 @@ inline void Dispatch_plan_response_msg::set_has_base_info() {
 inline void Dispatch_plan_response_msg::clear_has_base_info() {
   _has_bits_[0] &= ~0x00000002u;
 }
-inline const ::message::Base_info& Dispatch_plan_response_msg::_internal_base_info() const {
-  return *base_info_;
-}
 inline const ::message::Base_info& Dispatch_plan_response_msg::base_info() const {
   const ::message::Base_info* p = base_info_;
   // @@protoc_insertion_point(field_get:message.Dispatch_plan_response_msg.base_info)
@@ -1254,8 +1204,7 @@ inline ::message::Base_info* Dispatch_plan_response_msg::release_base_info() {
 inline ::message::Base_info* Dispatch_plan_response_msg::mutable_base_info() {
   set_has_base_info();
   if (base_info_ == NULL) {
-    auto* p = CreateMaybeMessage<::message::Base_info>(GetArenaNoVirtual());
-    base_info_ = p;
+    base_info_ = new ::message::Base_info;
   }
   // @@protoc_insertion_point(field_mutable:message.Dispatch_plan_response_msg.base_info)
   return base_info_;
@@ -1329,11 +1278,8 @@ inline ::std::string* Dispatch_plan_response_msg::mutable_command_key() {
 }
 inline ::std::string* Dispatch_plan_response_msg::release_command_key() {
   // @@protoc_insertion_point(field_release:message.Dispatch_plan_response_msg.command_key)
-  if (!has_command_key()) {
-    return NULL;
-  }
   clear_has_command_key();
-  return command_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return command_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Dispatch_plan_response_msg::set_allocated_command_key(::std::string* command_key) {
   if (command_key != NULL) {
@@ -1428,9 +1374,6 @@ inline void Dispatch_plan_response_msg::set_has_error_manager() {
 inline void Dispatch_plan_response_msg::clear_has_error_manager() {
   _has_bits_[0] &= ~0x00000004u;
 }
-inline const ::message::Error_manager& Dispatch_plan_response_msg::_internal_error_manager() const {
-  return *error_manager_;
-}
 inline const ::message::Error_manager& Dispatch_plan_response_msg::error_manager() const {
   const ::message::Error_manager* p = error_manager_;
   // @@protoc_insertion_point(field_get:message.Dispatch_plan_response_msg.error_manager)
@@ -1447,8 +1390,7 @@ inline ::message::Error_manager* Dispatch_plan_response_msg::release_error_manag
 inline ::message::Error_manager* Dispatch_plan_response_msg::mutable_error_manager() {
   set_has_error_manager();
   if (error_manager_ == NULL) {
-    auto* p = CreateMaybeMessage<::message::Error_manager>(GetArenaNoVirtual());
-    error_manager_ = p;
+    error_manager_ = new ::message::Error_manager;
   }
   // @@protoc_insertion_point(field_mutable:message.Dispatch_plan_response_msg.error_manager)
   return error_manager_;
@@ -1486,9 +1428,6 @@ inline void Dispatch_control_request_msg::set_has_base_info() {
 inline void Dispatch_control_request_msg::clear_has_base_info() {
   _has_bits_[0] &= ~0x00000002u;
 }
-inline const ::message::Base_info& Dispatch_control_request_msg::_internal_base_info() const {
-  return *base_info_;
-}
 inline const ::message::Base_info& Dispatch_control_request_msg::base_info() const {
   const ::message::Base_info* p = base_info_;
   // @@protoc_insertion_point(field_get:message.Dispatch_control_request_msg.base_info)
@@ -1505,8 +1444,7 @@ inline ::message::Base_info* Dispatch_control_request_msg::release_base_info() {
 inline ::message::Base_info* Dispatch_control_request_msg::mutable_base_info() {
   set_has_base_info();
   if (base_info_ == NULL) {
-    auto* p = CreateMaybeMessage<::message::Base_info>(GetArenaNoVirtual());
-    base_info_ = p;
+    base_info_ = new ::message::Base_info;
   }
   // @@protoc_insertion_point(field_mutable:message.Dispatch_control_request_msg.base_info)
   return base_info_;
@@ -1580,11 +1518,8 @@ inline ::std::string* Dispatch_control_request_msg::mutable_command_key() {
 }
 inline ::std::string* Dispatch_control_request_msg::release_command_key() {
   // @@protoc_insertion_point(field_release:message.Dispatch_control_request_msg.command_key)
-  if (!has_command_key()) {
-    return NULL;
-  }
   clear_has_command_key();
-  return command_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return command_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Dispatch_control_request_msg::set_allocated_command_key(::std::string* command_key) {
   if (command_key != NULL) {
@@ -1704,9 +1639,6 @@ inline void Dispatch_control_request_msg::set_has_error_manager() {
 inline void Dispatch_control_request_msg::clear_has_error_manager() {
   _has_bits_[0] &= ~0x00000004u;
 }
-inline const ::message::Error_manager& Dispatch_control_request_msg::_internal_error_manager() const {
-  return *error_manager_;
-}
 inline const ::message::Error_manager& Dispatch_control_request_msg::error_manager() const {
   const ::message::Error_manager* p = error_manager_;
   // @@protoc_insertion_point(field_get:message.Dispatch_control_request_msg.error_manager)
@@ -1723,8 +1655,7 @@ inline ::message::Error_manager* Dispatch_control_request_msg::release_error_man
 inline ::message::Error_manager* Dispatch_control_request_msg::mutable_error_manager() {
   set_has_error_manager();
   if (error_manager_ == NULL) {
-    auto* p = CreateMaybeMessage<::message::Error_manager>(GetArenaNoVirtual());
-    error_manager_ = p;
+    error_manager_ = new ::message::Error_manager;
   }
   // @@protoc_insertion_point(field_mutable:message.Dispatch_control_request_msg.error_manager)
   return error_manager_;
@@ -1812,9 +1743,6 @@ inline void Dispatch_control_response_msg::set_has_base_info() {
 inline void Dispatch_control_response_msg::clear_has_base_info() {
   _has_bits_[0] &= ~0x00000002u;
 }
-inline const ::message::Base_info& Dispatch_control_response_msg::_internal_base_info() const {
-  return *base_info_;
-}
 inline const ::message::Base_info& Dispatch_control_response_msg::base_info() const {
   const ::message::Base_info* p = base_info_;
   // @@protoc_insertion_point(field_get:message.Dispatch_control_response_msg.base_info)
@@ -1831,8 +1759,7 @@ inline ::message::Base_info* Dispatch_control_response_msg::release_base_info()
 inline ::message::Base_info* Dispatch_control_response_msg::mutable_base_info() {
   set_has_base_info();
   if (base_info_ == NULL) {
-    auto* p = CreateMaybeMessage<::message::Base_info>(GetArenaNoVirtual());
-    base_info_ = p;
+    base_info_ = new ::message::Base_info;
   }
   // @@protoc_insertion_point(field_mutable:message.Dispatch_control_response_msg.base_info)
   return base_info_;
@@ -1906,11 +1833,8 @@ inline ::std::string* Dispatch_control_response_msg::mutable_command_key() {
 }
 inline ::std::string* Dispatch_control_response_msg::release_command_key() {
   // @@protoc_insertion_point(field_release:message.Dispatch_control_response_msg.command_key)
-  if (!has_command_key()) {
-    return NULL;
-  }
   clear_has_command_key();
-  return command_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return command_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Dispatch_control_response_msg::set_allocated_command_key(::std::string* command_key) {
   if (command_key != NULL) {
@@ -2030,9 +1954,6 @@ inline void Dispatch_control_response_msg::set_has_error_manager() {
 inline void Dispatch_control_response_msg::clear_has_error_manager() {
   _has_bits_[0] &= ~0x00000004u;
 }
-inline const ::message::Error_manager& Dispatch_control_response_msg::_internal_error_manager() const {
-  return *error_manager_;
-}
 inline const ::message::Error_manager& Dispatch_control_response_msg::error_manager() const {
   const ::message::Error_manager* p = error_manager_;
   // @@protoc_insertion_point(field_get:message.Dispatch_control_response_msg.error_manager)
@@ -2049,8 +1970,7 @@ inline ::message::Error_manager* Dispatch_control_response_msg::release_error_ma
 inline ::message::Error_manager* Dispatch_control_response_msg::mutable_error_manager() {
   set_has_error_manager();
   if (error_manager_ == NULL) {
-    auto* p = CreateMaybeMessage<::message::Error_manager>(GetArenaNoVirtual());
-    error_manager_ = p;
+    error_manager_ = new ::message::Error_manager;
   }
   // @@protoc_insertion_point(field_mutable:message.Dispatch_control_response_msg.error_manager)
   return error_manager_;
@@ -2141,17 +2061,17 @@ inline void Dispatch_control_response_msg::set_dispatch_device_task_status(::mes
 namespace google {
 namespace protobuf {
 
-template <> struct is_proto_enum< ::message::Dispatch_task_type> : ::std::true_type {};
+template <> struct is_proto_enum< ::message::Dispatch_task_type> : ::google::protobuf::internal::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Dispatch_task_type>() {
   return ::message::Dispatch_task_type_descriptor();
 }
-template <> struct is_proto_enum< ::message::Dispatch_device_target_status> : ::std::true_type {};
+template <> struct is_proto_enum< ::message::Dispatch_device_target_status> : ::google::protobuf::internal::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Dispatch_device_target_status>() {
   return ::message::Dispatch_device_target_status_descriptor();
 }
-template <> struct is_proto_enum< ::message::Dispatch_device_task_status> : ::std::true_type {};
+template <> struct is_proto_enum< ::message::Dispatch_device_task_status> : ::google::protobuf::internal::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Dispatch_device_task_status>() {
   return ::message::Dispatch_device_task_status_descriptor();
@@ -2162,4 +2082,4 @@ inline const EnumDescriptor* GetEnumDescriptor< ::message::Dispatch_device_task_
 
 // @@protoc_insertion_point(global_scope)
 
-#endif  // PROTOBUF_INCLUDED_dispatch_5fcontrol_2eproto
+#endif  // PROTOBUF_dispatch_5fcontrol_2eproto__INCLUDED

Datei-Diff unterdrückt, da er zu groß ist
+ 344 - 232
message/dispatch_message.pb.cc


Datei-Diff unterdrückt, da er zu groß ist
+ 242 - 344
message/dispatch_message.pb.h


Datei-Diff unterdrückt, da er zu groß ist
+ 430 - 274
message/measure_message.pb.cc


Datei-Diff unterdrückt, da er zu groß ist
+ 256 - 410
message/measure_message.pb.h


+ 218 - 120
message/message_base.pb.cc

@@ -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_Car_info;
-}  // namespace protobuf_message_5fbase_2eproto
 namespace message {
 class Base_infoDefaultTypeInternal {
  public:
@@ -56,9 +52,14 @@ class Parkspace_infoDefaultTypeInternal {
 } _Parkspace_info_default_instance_;
 }  // namespace message
 namespace protobuf_message_5fbase_2eproto {
-static void InitDefaultsBase_info() {
+void InitDefaultsBase_infoImpl() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+  ::google::protobuf::internal::InitProtobufDefaults();
+#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
   {
     void* ptr = &::message::_Base_info_default_instance_;
     new (ptr) ::message::Base_info();
@@ -67,12 +68,20 @@ static void InitDefaultsBase_info() {
   ::message::Base_info::InitAsDefaultInstance();
 }
 
-::google::protobuf::internal::SCCInfo<0> scc_info_Base_info =
-    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBase_info}, {}};
+void InitDefaultsBase_info() {
+  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBase_infoImpl);
+}
 
-static void InitDefaultsBase_msg() {
+void InitDefaultsBase_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();
   {
     void* ptr = &::message::_Base_msg_default_instance_;
     new (ptr) ::message::Base_msg();
@@ -81,13 +90,19 @@ static void InitDefaultsBase_msg() {
   ::message::Base_msg::InitAsDefaultInstance();
 }
 
-::google::protobuf::internal::SCCInfo<1> scc_info_Base_msg =
-    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsBase_msg}, {
-      &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,}};
+void InitDefaultsBase_msg() {
+  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBase_msgImpl);
+}
 
-static void InitDefaultsError_manager() {
+void InitDefaultsError_managerImpl() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+  ::google::protobuf::internal::InitProtobufDefaults();
+#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
   {
     void* ptr = &::message::_Error_manager_default_instance_;
     new (ptr) ::message::Error_manager();
@@ -96,12 +111,19 @@ static void InitDefaultsError_manager() {
   ::message::Error_manager::InitAsDefaultInstance();
 }
 
-::google::protobuf::internal::SCCInfo<0> scc_info_Error_manager =
-    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsError_manager}, {}};
+void InitDefaultsError_manager() {
+  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsError_managerImpl);
+}
 
-static void InitDefaultsLocate_information() {
+void InitDefaultsLocate_informationImpl() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+  ::google::protobuf::internal::InitProtobufDefaults();
+#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
   {
     void* ptr = &::message::_Locate_information_default_instance_;
     new (ptr) ::message::Locate_information();
@@ -110,12 +132,19 @@ static void InitDefaultsLocate_information() {
   ::message::Locate_information::InitAsDefaultInstance();
 }
 
-::google::protobuf::internal::SCCInfo<0> scc_info_Locate_information =
-    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLocate_information}, {}};
+void InitDefaultsLocate_information() {
+  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLocate_informationImpl);
+}
 
-static void InitDefaultsCar_info() {
+void InitDefaultsCar_infoImpl() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+  ::google::protobuf::internal::InitProtobufDefaults();
+#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
   {
     void* ptr = &::message::_Car_info_default_instance_;
     new (ptr) ::message::Car_info();
@@ -124,12 +153,20 @@ static void InitDefaultsCar_info() {
   ::message::Car_info::InitAsDefaultInstance();
 }
 
-::google::protobuf::internal::SCCInfo<0> scc_info_Car_info =
-    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCar_info}, {}};
+void InitDefaultsCar_info() {
+  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCar_infoImpl);
+}
 
-static void InitDefaultsParkspace_info() {
+void InitDefaultsParkspace_infoImpl() {
   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::InitDefaultsCar_info();
   {
     void* ptr = &::message::_Parkspace_info_default_instance_;
     new (ptr) ::message::Parkspace_info();
@@ -138,17 +175,9 @@ static void InitDefaultsParkspace_info() {
   ::message::Parkspace_info::InitAsDefaultInstance();
 }
 
-::google::protobuf::internal::SCCInfo<1> scc_info_Parkspace_info =
-    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParkspace_info}, {
-      &protobuf_message_5fbase_2eproto::scc_info_Car_info.base,}};
-
-void InitDefaults() {
-  ::google::protobuf::internal::InitSCC(&scc_info_Base_info.base);
-  ::google::protobuf::internal::InitSCC(&scc_info_Base_msg.base);
-  ::google::protobuf::internal::InitSCC(&scc_info_Error_manager.base);
-  ::google::protobuf::internal::InitSCC(&scc_info_Locate_information.base);
-  ::google::protobuf::internal::InitSCC(&scc_info_Car_info.base);
-  ::google::protobuf::internal::InitSCC(&scc_info_Parkspace_info.base);
+void InitDefaultsParkspace_info() {
+  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_infoImpl);
 }
 
 ::google::protobuf::Metadata file_level_metadata[6];
@@ -292,14 +321,15 @@ static ::google::protobuf::Message const * const file_default_instances[] = {
 
 void protobuf_AssignDescriptors() {
   AddDescriptors();
+  ::google::protobuf::MessageFactory* factory = NULL;
   AssignDescriptors(
-      "message_base.proto", schemas, file_default_instances, TableStruct::offsets,
+      "message_base.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;
@@ -430,8 +460,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 {
@@ -712,15 +742,17 @@ const int Base_info::kReceiverFieldNumber;
 
 Base_info::Base_info()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  ::google::protobuf::internal::InitSCC(
-      &protobuf_message_5fbase_2eproto::scc_info_Base_info.base);
+  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+    ::protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
+  }
   SharedCtor();
   // @@protoc_insertion_point(constructor:message.Base_info)
 }
 Base_info::Base_info(const Base_info& 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_);
   ::memcpy(&msg_type_, &from.msg_type_,
     static_cast<size_t>(reinterpret_cast<char*>(&receiver_) -
@@ -729,6 +761,7 @@ Base_info::Base_info(const Base_info& from)
 }
 
 void Base_info::SharedCtor() {
+  _cached_size_ = 0;
   ::memset(&msg_type_, 0, static_cast<size_t>(
       reinterpret_cast<char*>(&receiver_) -
       reinterpret_cast<char*>(&msg_type_)) + sizeof(receiver_));
@@ -743,7 +776,9 @@ void Base_info::SharedDtor() {
 }
 
 void Base_info::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* Base_info::descriptor() {
   ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
@@ -751,10 +786,17 @@ const ::google::protobuf::Descriptor* Base_info::descriptor() {
 }
 
 const Base_info& Base_info::default_instance() {
-  ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Base_info.base);
+  ::protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
   return *internal_default_instance();
 }
 
+Base_info* Base_info::New(::google::protobuf::Arena* arena) const {
+  Base_info* n = new Base_info;
+  if (arena != NULL) {
+    arena->Own(n);
+  }
+  return n;
+}
 
 void Base_info::Clear() {
 // @@protoc_insertion_point(message_clear_start:message.Base_info)
@@ -778,7 +820,7 @@ bool Base_info::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:message.Base_info)
   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)) {
@@ -1009,7 +1051,9 @@ size_t Base_info::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;
 }
 
@@ -1084,6 +1128,7 @@ void Base_info::InternalSwap(Base_info* other) {
   swap(receiver_, other->receiver_);
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
+  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata Base_info::GetMetadata() const {
@@ -1104,15 +1149,17 @@ const int Base_msg::kBaseInfoFieldNumber;
 
 Base_msg::Base_msg()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  ::google::protobuf::internal::InitSCC(
-      &protobuf_message_5fbase_2eproto::scc_info_Base_msg.base);
+  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+    ::protobuf_message_5fbase_2eproto::InitDefaultsBase_msg();
+  }
   SharedCtor();
   // @@protoc_insertion_point(constructor:message.Base_msg)
 }
 Base_msg::Base_msg(const Base_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_);
   if (from.has_base_info()) {
     base_info_ = new ::message::Base_info(*from.base_info_);
@@ -1123,6 +1170,7 @@ Base_msg::Base_msg(const Base_msg& from)
 }
 
 void Base_msg::SharedCtor() {
+  _cached_size_ = 0;
   base_info_ = NULL;
 }
 
@@ -1136,7 +1184,9 @@ void Base_msg::SharedDtor() {
 }
 
 void Base_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* Base_msg::descriptor() {
   ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
@@ -1144,10 +1194,17 @@ const ::google::protobuf::Descriptor* Base_msg::descriptor() {
 }
 
 const Base_msg& Base_msg::default_instance() {
-  ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Base_msg.base);
+  ::protobuf_message_5fbase_2eproto::InitDefaultsBase_msg();
   return *internal_default_instance();
 }
 
+Base_msg* Base_msg::New(::google::protobuf::Arena* arena) const {
+  Base_msg* n = new Base_msg;
+  if (arena != NULL) {
+    arena->Own(n);
+  }
+  return n;
+}
 
 void Base_msg::Clear() {
 // @@protoc_insertion_point(message_clear_start:message.Base_msg)
@@ -1170,7 +1227,7 @@ bool Base_msg::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:message.Base_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)) {
@@ -1216,7 +1273,7 @@ void Base_msg::SerializeWithCachedSizes(
   // required .message.Base_info base_info = 1;
   if (cached_has_bits & 0x00000001u) {
     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
-      1, this->_internal_base_info(), output);
+      1, *this->base_info_, output);
   }
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -1238,7 +1295,7 @@ void Base_msg::SerializeWithCachedSizes(
   if (cached_has_bits & 0x00000001u) {
     target = ::google::protobuf::internal::WireFormatLite::
       InternalWriteMessageToArray(
-        1, this->_internal_base_info(), deterministic, target);
+        1, *this->base_info_, deterministic, target);
   }
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -1262,10 +1319,12 @@ size_t Base_msg::ByteSizeLong() const {
   if (has_base_info()) {
     total_size += 1 +
       ::google::protobuf::internal::WireFormatLite::MessageSize(
-        *base_info_);
+        *this->base_info_);
   }
   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;
 }
 
@@ -1327,6 +1386,7 @@ void Base_msg::InternalSwap(Base_msg* other) {
   swap(base_info_, other->base_info_);
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
+  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata Base_msg::GetMetadata() const {
@@ -1347,15 +1407,17 @@ const int Error_manager::kErrorDescriptionFieldNumber;
 
 Error_manager::Error_manager()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  ::google::protobuf::internal::InitSCC(
-      &protobuf_message_5fbase_2eproto::scc_info_Error_manager.base);
+  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+    ::protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
+  }
   SharedCtor();
   // @@protoc_insertion_point(constructor:message.Error_manager)
 }
 Error_manager::Error_manager(const Error_manager& 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_);
   error_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   if (from.has_error_description()) {
@@ -1368,6 +1430,7 @@ Error_manager::Error_manager(const Error_manager& from)
 }
 
 void Error_manager::SharedCtor() {
+  _cached_size_ = 0;
   error_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   ::memset(&error_code_, 0, static_cast<size_t>(
       reinterpret_cast<char*>(&error_level_) -
@@ -1384,7 +1447,9 @@ void Error_manager::SharedDtor() {
 }
 
 void Error_manager::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* Error_manager::descriptor() {
   ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
@@ -1392,10 +1457,17 @@ const ::google::protobuf::Descriptor* Error_manager::descriptor() {
 }
 
 const Error_manager& Error_manager::default_instance() {
-  ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Error_manager.base);
+  ::protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
   return *internal_default_instance();
 }
 
+Error_manager* Error_manager::New(::google::protobuf::Arena* arena) const {
+  Error_manager* n = new Error_manager;
+  if (arena != NULL) {
+    arena->Own(n);
+  }
+  return n;
+}
 
 void Error_manager::Clear() {
 // @@protoc_insertion_point(message_clear_start:message.Error_manager)
@@ -1405,7 +1477,8 @@ void Error_manager::Clear() {
 
   cached_has_bits = _has_bits_[0];
   if (cached_has_bits & 0x00000001u) {
-    error_description_.ClearNonDefaultToEmptyNoArena();
+    GOOGLE_DCHECK(!error_description_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
+    (*error_description_.UnsafeRawStringPointer())->clear();
   }
   if (cached_has_bits & 6u) {
     ::memset(&error_code_, 0, static_cast<size_t>(
@@ -1422,7 +1495,7 @@ bool Error_manager::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:message.Error_manager)
   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)) {
@@ -1598,7 +1671,9 @@ size_t Error_manager::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;
 }
 
@@ -1665,12 +1740,12 @@ void Error_manager::Swap(Error_manager* other) {
 }
 void Error_manager::InternalSwap(Error_manager* other) {
   using std::swap;
-  error_description_.Swap(&other->error_description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
-    GetArenaNoVirtual());
+  error_description_.Swap(&other->error_description_);
   swap(error_code_, other->error_code_);
   swap(error_level_, other->error_level_);
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
+  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata Error_manager::GetMetadata() const {
@@ -1700,15 +1775,17 @@ const int Locate_information::kUniformedCarYFieldNumber;
 
 Locate_information::Locate_information()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  ::google::protobuf::internal::InitSCC(
-      &protobuf_message_5fbase_2eproto::scc_info_Locate_information.base);
+  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+    ::protobuf_message_5fbase_2eproto::InitDefaultsLocate_information();
+  }
   SharedCtor();
   // @@protoc_insertion_point(constructor:message.Locate_information)
 }
 Locate_information::Locate_information(const Locate_information& 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_);
   ::memcpy(&locate_x_, &from.locate_x_,
     static_cast<size_t>(reinterpret_cast<char*>(&uniformed_car_y_) -
@@ -1717,6 +1794,7 @@ Locate_information::Locate_information(const Locate_information& from)
 }
 
 void Locate_information::SharedCtor() {
+  _cached_size_ = 0;
   ::memset(&locate_x_, 0, static_cast<size_t>(
       reinterpret_cast<char*>(&uniformed_car_y_) -
       reinterpret_cast<char*>(&locate_x_)) + sizeof(uniformed_car_y_));
@@ -1731,7 +1809,9 @@ void Locate_information::SharedDtor() {
 }
 
 void Locate_information::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* Locate_information::descriptor() {
   ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
@@ -1739,10 +1819,17 @@ const ::google::protobuf::Descriptor* Locate_information::descriptor() {
 }
 
 const Locate_information& Locate_information::default_instance() {
-  ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Locate_information.base);
+  ::protobuf_message_5fbase_2eproto::InitDefaultsLocate_information();
   return *internal_default_instance();
 }
 
+Locate_information* Locate_information::New(::google::protobuf::Arena* arena) const {
+  Locate_information* n = new Locate_information;
+  if (arena != NULL) {
+    arena->Own(n);
+  }
+  return n;
+}
 
 void Locate_information::Clear() {
 // @@protoc_insertion_point(message_clear_start:message.Locate_information)
@@ -1771,7 +1858,7 @@ bool Locate_information::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:message.Locate_information)
   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)) {
@@ -2187,7 +2274,9 @@ size_t Locate_information::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;
 }
 
@@ -2296,6 +2385,7 @@ void Locate_information::InternalSwap(Locate_information* other) {
   swap(uniformed_car_y_, other->uniformed_car_y_);
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
+  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata Locate_information::GetMetadata() const {
@@ -2319,15 +2409,17 @@ const int Car_info::kCarWheelWidthFieldNumber;
 
 Car_info::Car_info()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  ::google::protobuf::internal::InitSCC(
-      &protobuf_message_5fbase_2eproto::scc_info_Car_info.base);
+  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+    ::protobuf_message_5fbase_2eproto::InitDefaultsCar_info();
+  }
   SharedCtor();
   // @@protoc_insertion_point(constructor:message.Car_info)
 }
 Car_info::Car_info(const Car_info& 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_);
   license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   if (from.has_license()) {
@@ -2340,6 +2432,7 @@ Car_info::Car_info(const Car_info& from)
 }
 
 void Car_info::SharedCtor() {
+  _cached_size_ = 0;
   license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   ::memset(&car_length_, 0, static_cast<size_t>(
       reinterpret_cast<char*>(&car_wheel_width_) -
@@ -2356,7 +2449,9 @@ void Car_info::SharedDtor() {
 }
 
 void Car_info::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* Car_info::descriptor() {
   ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
@@ -2364,10 +2459,17 @@ const ::google::protobuf::Descriptor* Car_info::descriptor() {
 }
 
 const Car_info& Car_info::default_instance() {
-  ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Car_info.base);
+  ::protobuf_message_5fbase_2eproto::InitDefaultsCar_info();
   return *internal_default_instance();
 }
 
+Car_info* Car_info::New(::google::protobuf::Arena* arena) const {
+  Car_info* n = new Car_info;
+  if (arena != NULL) {
+    arena->Own(n);
+  }
+  return n;
+}
 
 void Car_info::Clear() {
 // @@protoc_insertion_point(message_clear_start:message.Car_info)
@@ -2377,7 +2479,8 @@ void Car_info::Clear() {
 
   cached_has_bits = _has_bits_[0];
   if (cached_has_bits & 0x00000001u) {
-    license_.ClearNonDefaultToEmptyNoArena();
+    GOOGLE_DCHECK(!license_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
+    (*license_.UnsafeRawStringPointer())->clear();
   }
   if (cached_has_bits & 62u) {
     ::memset(&car_length_, 0, static_cast<size_t>(
@@ -2394,7 +2497,7 @@ bool Car_info::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:message.Car_info)
   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)) {
@@ -2649,7 +2752,9 @@ size_t Car_info::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;
 }
 
@@ -2724,8 +2829,7 @@ void Car_info::Swap(Car_info* other) {
 }
 void Car_info::InternalSwap(Car_info* other) {
   using std::swap;
-  license_.Swap(&other->license_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
-    GetArenaNoVirtual());
+  license_.Swap(&other->license_);
   swap(car_length_, other->car_length_);
   swap(car_width_, other->car_width_);
   swap(car_height_, other->car_height_);
@@ -2733,6 +2837,7 @@ void Car_info::InternalSwap(Car_info* other) {
   swap(car_wheel_width_, other->car_wheel_width_);
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
+  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata Car_info::GetMetadata() const {
@@ -2769,15 +2874,17 @@ const int Parkspace_info::kCarTypeFieldNumber;
 
 Parkspace_info::Parkspace_info()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  ::google::protobuf::internal::InitSCC(
-      &protobuf_message_5fbase_2eproto::scc_info_Parkspace_info.base);
+  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+    ::protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info();
+  }
   SharedCtor();
   // @@protoc_insertion_point(constructor:message.Parkspace_info)
 }
 Parkspace_info::Parkspace_info(const Parkspace_info& 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_);
   entry_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   if (from.has_entry_time()) {
@@ -2799,6 +2906,7 @@ Parkspace_info::Parkspace_info(const Parkspace_info& from)
 }
 
 void Parkspace_info::SharedCtor() {
+  _cached_size_ = 0;
   entry_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   leave_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   ::memset(&car_info_, 0, static_cast<size_t>(
@@ -2818,7 +2926,9 @@ void Parkspace_info::SharedDtor() {
 }
 
 void Parkspace_info::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* Parkspace_info::descriptor() {
   ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
@@ -2826,10 +2936,17 @@ const ::google::protobuf::Descriptor* Parkspace_info::descriptor() {
 }
 
 const Parkspace_info& Parkspace_info::default_instance() {
-  ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Parkspace_info.base);
+  ::protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info();
   return *internal_default_instance();
 }
 
+Parkspace_info* Parkspace_info::New(::google::protobuf::Arena* arena) const {
+  Parkspace_info* n = new Parkspace_info;
+  if (arena != NULL) {
+    arena->Own(n);
+  }
+  return n;
+}
 
 void Parkspace_info::Clear() {
 // @@protoc_insertion_point(message_clear_start:message.Parkspace_info)
@@ -2840,10 +2957,12 @@ void Parkspace_info::Clear() {
   cached_has_bits = _has_bits_[0];
   if (cached_has_bits & 7u) {
     if (cached_has_bits & 0x00000001u) {
-      entry_time_.ClearNonDefaultToEmptyNoArena();
+      GOOGLE_DCHECK(!entry_time_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
+      (*entry_time_.UnsafeRawStringPointer())->clear();
     }
     if (cached_has_bits & 0x00000002u) {
-      leave_time_.ClearNonDefaultToEmptyNoArena();
+      GOOGLE_DCHECK(!leave_time_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
+      (*leave_time_.UnsafeRawStringPointer())->clear();
     }
     if (cached_has_bits & 0x00000004u) {
       GOOGLE_DCHECK(car_info_ != NULL);
@@ -2871,7 +2990,7 @@ bool Parkspace_info::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:message.Parkspace_info)
   for (;;) {
-    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
+    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
     tag = p.first;
     if (!p.second) goto handle_unusual;
     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
@@ -3234,7 +3353,7 @@ void Parkspace_info::SerializeWithCachedSizes(
   // optional .message.Car_info car_info = 11;
   if (cached_has_bits & 0x00000004u) {
     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
-      11, this->_internal_car_info(), output);
+      11, *this->car_info_, output);
   }
 
   // optional string entry_time = 12;
@@ -3352,7 +3471,7 @@ void Parkspace_info::SerializeWithCachedSizes(
   if (cached_has_bits & 0x00000004u) {
     target = ::google::protobuf::internal::WireFormatLite::
       InternalWriteMessageToArray(
-        11, this->_internal_car_info(), deterministic, target);
+        11, *this->car_info_, deterministic, target);
   }
 
   // optional string entry_time = 12;
@@ -3436,7 +3555,7 @@ size_t Parkspace_info::ByteSizeLong() const {
     if (has_car_info()) {
       total_size += 1 +
         ::google::protobuf::internal::WireFormatLite::MessageSize(
-          *car_info_);
+          *this->car_info_);
     }
 
     // optional int32 parkingspace_index_id = 1;
@@ -3529,7 +3648,9 @@ size_t Parkspace_info::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;
 }
 
@@ -3641,10 +3762,8 @@ void Parkspace_info::Swap(Parkspace_info* other) {
 }
 void Parkspace_info::InternalSwap(Parkspace_info* other) {
   using std::swap;
-  entry_time_.Swap(&other->entry_time_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
-    GetArenaNoVirtual());
-  leave_time_.Swap(&other->leave_time_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
-    GetArenaNoVirtual());
+  entry_time_.Swap(&other->entry_time_);
+  leave_time_.Swap(&other->leave_time_);
   swap(car_info_, other->car_info_);
   swap(parkingspace_index_id_, other->parkingspace_index_id_);
   swap(parkingspace_type_, other->parkingspace_type_);
@@ -3662,6 +3781,7 @@ void Parkspace_info::InternalSwap(Parkspace_info* other) {
   swap(car_type_, other->car_type_);
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
+  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata Parkspace_info::GetMetadata() const {
@@ -3672,27 +3792,5 @@ void Parkspace_info::InternalSwap(Parkspace_info* other) {
 
 // @@protoc_insertion_point(namespace_scope)
 }  // namespace message
-namespace google {
-namespace protobuf {
-template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Base_info* Arena::CreateMaybeMessage< ::message::Base_info >(Arena* arena) {
-  return Arena::CreateInternal< ::message::Base_info >(arena);
-}
-template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Base_msg* Arena::CreateMaybeMessage< ::message::Base_msg >(Arena* arena) {
-  return Arena::CreateInternal< ::message::Base_msg >(arena);
-}
-template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Error_manager* Arena::CreateMaybeMessage< ::message::Error_manager >(Arena* arena) {
-  return Arena::CreateInternal< ::message::Error_manager >(arena);
-}
-template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Locate_information* Arena::CreateMaybeMessage< ::message::Locate_information >(Arena* arena) {
-  return Arena::CreateInternal< ::message::Locate_information >(arena);
-}
-template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Car_info* Arena::CreateMaybeMessage< ::message::Car_info >(Arena* arena) {
-  return Arena::CreateInternal< ::message::Car_info >(arena);
-}
-template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Parkspace_info* Arena::CreateMaybeMessage< ::message::Parkspace_info >(Arena* arena) {
-  return Arena::CreateInternal< ::message::Parkspace_info >(arena);
-}
-}  // namespace protobuf
-}  // namespace google
 
 // @@protoc_insertion_point(global_scope)

+ 139 - 181
message/message_base.pb.h

@@ -1,19 +1,19 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: message_base.proto
 
-#ifndef PROTOBUF_INCLUDED_message_5fbase_2eproto
-#define PROTOBUF_INCLUDED_message_5fbase_2eproto
+#ifndef PROTOBUF_message_5fbase_2eproto__INCLUDED
+#define PROTOBUF_message_5fbase_2eproto__INCLUDED
 
 #include <string>
 
 #include <google/protobuf/stubs/common.h>
 
-#if GOOGLE_PROTOBUF_VERSION < 3006001
+#if GOOGLE_PROTOBUF_VERSION < 3005000
 #error This file was generated by a newer version of protoc which is
 #error incompatible with your Protocol Buffer headers.  Please update
 #error your headers.
 #endif
-#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
 #error This file was generated by an older version of protoc which is
 #error incompatible with your Protocol Buffer headers.  Please
 #error regenerate this file with a newer version of protoc.
@@ -24,7 +24,6 @@
 #include <google/protobuf/arenastring.h>
 #include <google/protobuf/generated_message_table_driven.h>
 #include <google/protobuf/generated_message_util.h>
-#include <google/protobuf/inlined_string_field.h>
 #include <google/protobuf/metadata.h>
 #include <google/protobuf/message.h>
 #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
@@ -32,7 +31,6 @@
 #include <google/protobuf/generated_enum_reflection.h>
 #include <google/protobuf/unknown_field_set.h>
 // @@protoc_insertion_point(includes)
-#define PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto 
 
 namespace protobuf_message_5fbase_2eproto {
 // Internal implementation detail -- do not use these members.
@@ -45,6 +43,26 @@ struct TableStruct {
   static const ::google::protobuf::uint32 offsets[];
 };
 void AddDescriptors();
+void InitDefaultsBase_infoImpl();
+void InitDefaultsBase_info();
+void InitDefaultsBase_msgImpl();
+void InitDefaultsBase_msg();
+void InitDefaultsError_managerImpl();
+void InitDefaultsError_manager();
+void InitDefaultsLocate_informationImpl();
+void InitDefaultsLocate_information();
+void InitDefaultsCar_infoImpl();
+void InitDefaultsCar_info();
+void InitDefaultsParkspace_infoImpl();
+void InitDefaultsParkspace_info();
+inline void InitDefaults() {
+  InitDefaultsBase_info();
+  InitDefaultsBase_msg();
+  InitDefaultsError_manager();
+  InitDefaultsLocate_information();
+  InitDefaultsCar_info();
+  InitDefaultsParkspace_info();
+}
 }  // namespace protobuf_message_5fbase_2eproto
 namespace message {
 class Base_info;
@@ -66,16 +84,6 @@ class Parkspace_info;
 class Parkspace_infoDefaultTypeInternal;
 extern Parkspace_infoDefaultTypeInternal _Parkspace_info_default_instance_;
 }  // namespace message
-namespace google {
-namespace protobuf {
-template<> ::message::Base_info* Arena::CreateMaybeMessage<::message::Base_info>(Arena*);
-template<> ::message::Base_msg* Arena::CreateMaybeMessage<::message::Base_msg>(Arena*);
-template<> ::message::Car_info* Arena::CreateMaybeMessage<::message::Car_info>(Arena*);
-template<> ::message::Error_manager* Arena::CreateMaybeMessage<::message::Error_manager>(Arena*);
-template<> ::message::Locate_information* Arena::CreateMaybeMessage<::message::Locate_information>(Arena*);
-template<> ::message::Parkspace_info* Arena::CreateMaybeMessage<::message::Parkspace_info>(Arena*);
-}  // namespace protobuf
-}  // namespace google
 namespace message {
 
 enum Message_type {
@@ -438,7 +446,7 @@ class Base_info : public ::google::protobuf::Message /* @@protoc_insertion_point
     return reinterpret_cast<const Base_info*>(
                &_Base_info_default_instance_);
   }
-  static constexpr int kIndexInFileMessages =
+  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
     0;
 
   void Swap(Base_info* other);
@@ -448,33 +456,28 @@ class Base_info : public ::google::protobuf::Message /* @@protoc_insertion_point
 
   // implements Message ----------------------------------------------
 
-  inline Base_info* New() const final {
-    return CreateMaybeMessage<Base_info>(NULL);
-  }
+  inline Base_info* New() const PROTOBUF_FINAL { return New(NULL); }
 
-  Base_info* New(::google::protobuf::Arena* arena) const final {
-    return CreateMaybeMessage<Base_info>(arena);
-  }
-  void CopyFrom(const ::google::protobuf::Message& from) final;
-  void MergeFrom(const ::google::protobuf::Message& from) final;
+  Base_info* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
+  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
+  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
   void CopyFrom(const Base_info& from);
   void MergeFrom(const Base_info& from);
-  void Clear() final;
-  bool IsInitialized() const final;
+  void Clear() PROTOBUF_FINAL;
+  bool IsInitialized() const PROTOBUF_FINAL;
 
-  size_t ByteSizeLong() const final;
+  size_t ByteSizeLong() const PROTOBUF_FINAL;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) final;
+      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const final;
+      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const final;
-  int GetCachedSize() const final { return _cached_size_.Get(); }
-
+      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
+  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const final;
+  void SetCachedSize(int size) const PROTOBUF_FINAL;
   void InternalSwap(Base_info* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -485,7 +488,7 @@ class Base_info : public ::google::protobuf::Message /* @@protoc_insertion_point
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const final;
+  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
 
   // nested types ----------------------------------------------------
 
@@ -535,12 +538,13 @@ class Base_info : public ::google::protobuf::Message /* @@protoc_insertion_point
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable ::google::protobuf::internal::CachedSize _cached_size_;
+  mutable int _cached_size_;
   int msg_type_;
   ::google::protobuf::int32 timeout_ms_;
   int sender_;
   int receiver_;
   friend struct ::protobuf_message_5fbase_2eproto::TableStruct;
+  friend void ::protobuf_message_5fbase_2eproto::InitDefaultsBase_infoImpl();
 };
 // -------------------------------------------------------------------
 
@@ -585,7 +589,7 @@ class Base_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(
     return reinterpret_cast<const Base_msg*>(
                &_Base_msg_default_instance_);
   }
-  static constexpr int kIndexInFileMessages =
+  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
     1;
 
   void Swap(Base_msg* other);
@@ -595,33 +599,28 @@ class Base_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(
 
   // implements Message ----------------------------------------------
 
-  inline Base_msg* New() const final {
-    return CreateMaybeMessage<Base_msg>(NULL);
-  }
+  inline Base_msg* New() const PROTOBUF_FINAL { return New(NULL); }
 
-  Base_msg* New(::google::protobuf::Arena* arena) const final {
-    return CreateMaybeMessage<Base_msg>(arena);
-  }
-  void CopyFrom(const ::google::protobuf::Message& from) final;
-  void MergeFrom(const ::google::protobuf::Message& from) final;
+  Base_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
+  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
+  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
   void CopyFrom(const Base_msg& from);
   void MergeFrom(const Base_msg& from);
-  void Clear() final;
-  bool IsInitialized() const final;
+  void Clear() PROTOBUF_FINAL;
+  bool IsInitialized() const PROTOBUF_FINAL;
 
-  size_t ByteSizeLong() const final;
+  size_t ByteSizeLong() const PROTOBUF_FINAL;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) final;
+      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const final;
+      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const final;
-  int GetCachedSize() const final { return _cached_size_.Get(); }
-
+      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
+  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const final;
+  void SetCachedSize(int size) const PROTOBUF_FINAL;
   void InternalSwap(Base_msg* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -632,7 +631,7 @@ class Base_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const final;
+  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
 
   // nested types ----------------------------------------------------
 
@@ -642,9 +641,6 @@ class Base_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(
   bool has_base_info() const;
   void clear_base_info();
   static const int kBaseInfoFieldNumber = 1;
-  private:
-  const ::message::Base_info& _internal_base_info() const;
-  public:
   const ::message::Base_info& base_info() const;
   ::message::Base_info* release_base_info();
   ::message::Base_info* mutable_base_info();
@@ -657,9 +653,10 @@ class Base_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable ::google::protobuf::internal::CachedSize _cached_size_;
+  mutable int _cached_size_;
   ::message::Base_info* base_info_;
   friend struct ::protobuf_message_5fbase_2eproto::TableStruct;
+  friend void ::protobuf_message_5fbase_2eproto::InitDefaultsBase_msgImpl();
 };
 // -------------------------------------------------------------------
 
@@ -704,7 +701,7 @@ class Error_manager : public ::google::protobuf::Message /* @@protoc_insertion_p
     return reinterpret_cast<const Error_manager*>(
                &_Error_manager_default_instance_);
   }
-  static constexpr int kIndexInFileMessages =
+  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
     2;
 
   void Swap(Error_manager* other);
@@ -714,33 +711,28 @@ class Error_manager : public ::google::protobuf::Message /* @@protoc_insertion_p
 
   // implements Message ----------------------------------------------
 
-  inline Error_manager* New() const final {
-    return CreateMaybeMessage<Error_manager>(NULL);
-  }
+  inline Error_manager* New() const PROTOBUF_FINAL { return New(NULL); }
 
-  Error_manager* New(::google::protobuf::Arena* arena) const final {
-    return CreateMaybeMessage<Error_manager>(arena);
-  }
-  void CopyFrom(const ::google::protobuf::Message& from) final;
-  void MergeFrom(const ::google::protobuf::Message& from) final;
+  Error_manager* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
+  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
+  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
   void CopyFrom(const Error_manager& from);
   void MergeFrom(const Error_manager& from);
-  void Clear() final;
-  bool IsInitialized() const final;
+  void Clear() PROTOBUF_FINAL;
+  bool IsInitialized() const PROTOBUF_FINAL;
 
-  size_t ByteSizeLong() const final;
+  size_t ByteSizeLong() const PROTOBUF_FINAL;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) final;
+      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const final;
+      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const final;
-  int GetCachedSize() const final { return _cached_size_.Get(); }
-
+      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
+  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const final;
+  void SetCachedSize(int size) const PROTOBUF_FINAL;
   void InternalSwap(Error_manager* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -751,7 +743,7 @@ class Error_manager : public ::google::protobuf::Message /* @@protoc_insertion_p
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const final;
+  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
 
   // nested types ----------------------------------------------------
 
@@ -797,11 +789,12 @@ class Error_manager : public ::google::protobuf::Message /* @@protoc_insertion_p
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable ::google::protobuf::internal::CachedSize _cached_size_;
+  mutable int _cached_size_;
   ::google::protobuf::internal::ArenaStringPtr error_description_;
   ::google::protobuf::int32 error_code_;
   int error_level_;
   friend struct ::protobuf_message_5fbase_2eproto::TableStruct;
+  friend void ::protobuf_message_5fbase_2eproto::InitDefaultsError_managerImpl();
 };
 // -------------------------------------------------------------------
 
@@ -846,7 +839,7 @@ class Locate_information : public ::google::protobuf::Message /* @@protoc_insert
     return reinterpret_cast<const Locate_information*>(
                &_Locate_information_default_instance_);
   }
-  static constexpr int kIndexInFileMessages =
+  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
     3;
 
   void Swap(Locate_information* other);
@@ -856,33 +849,28 @@ class Locate_information : public ::google::protobuf::Message /* @@protoc_insert
 
   // implements Message ----------------------------------------------
 
-  inline Locate_information* New() const final {
-    return CreateMaybeMessage<Locate_information>(NULL);
-  }
+  inline Locate_information* New() const PROTOBUF_FINAL { return New(NULL); }
 
-  Locate_information* New(::google::protobuf::Arena* arena) const final {
-    return CreateMaybeMessage<Locate_information>(arena);
-  }
-  void CopyFrom(const ::google::protobuf::Message& from) final;
-  void MergeFrom(const ::google::protobuf::Message& from) final;
+  Locate_information* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
+  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
+  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
   void CopyFrom(const Locate_information& from);
   void MergeFrom(const Locate_information& from);
-  void Clear() final;
-  bool IsInitialized() const final;
+  void Clear() PROTOBUF_FINAL;
+  bool IsInitialized() const PROTOBUF_FINAL;
 
-  size_t ByteSizeLong() const final;
+  size_t ByteSizeLong() const PROTOBUF_FINAL;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) final;
+      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const final;
+      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const final;
-  int GetCachedSize() const final { return _cached_size_.Get(); }
-
+      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
+  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const final;
+  void SetCachedSize(int size) const PROTOBUF_FINAL;
   void InternalSwap(Locate_information* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -893,7 +881,7 @@ class Locate_information : public ::google::protobuf::Message /* @@protoc_insert
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const final;
+  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
 
   // nested types ----------------------------------------------------
 
@@ -1012,7 +1000,7 @@ class Locate_information : public ::google::protobuf::Message /* @@protoc_insert
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable ::google::protobuf::internal::CachedSize _cached_size_;
+  mutable int _cached_size_;
   float locate_x_;
   float locate_y_;
   float locate_angle_;
@@ -1026,6 +1014,7 @@ class Locate_information : public ::google::protobuf::Message /* @@protoc_insert
   float uniformed_car_x_;
   float uniformed_car_y_;
   friend struct ::protobuf_message_5fbase_2eproto::TableStruct;
+  friend void ::protobuf_message_5fbase_2eproto::InitDefaultsLocate_informationImpl();
 };
 // -------------------------------------------------------------------
 
@@ -1070,7 +1059,7 @@ class Car_info : public ::google::protobuf::Message /* @@protoc_insertion_point(
     return reinterpret_cast<const Car_info*>(
                &_Car_info_default_instance_);
   }
-  static constexpr int kIndexInFileMessages =
+  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
     4;
 
   void Swap(Car_info* other);
@@ -1080,33 +1069,28 @@ class Car_info : public ::google::protobuf::Message /* @@protoc_insertion_point(
 
   // implements Message ----------------------------------------------
 
-  inline Car_info* New() const final {
-    return CreateMaybeMessage<Car_info>(NULL);
-  }
+  inline Car_info* New() const PROTOBUF_FINAL { return New(NULL); }
 
-  Car_info* New(::google::protobuf::Arena* arena) const final {
-    return CreateMaybeMessage<Car_info>(arena);
-  }
-  void CopyFrom(const ::google::protobuf::Message& from) final;
-  void MergeFrom(const ::google::protobuf::Message& from) final;
+  Car_info* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
+  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
+  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
   void CopyFrom(const Car_info& from);
   void MergeFrom(const Car_info& from);
-  void Clear() final;
-  bool IsInitialized() const final;
+  void Clear() PROTOBUF_FINAL;
+  bool IsInitialized() const PROTOBUF_FINAL;
 
-  size_t ByteSizeLong() const final;
+  size_t ByteSizeLong() const PROTOBUF_FINAL;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) final;
+      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const final;
+      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const final;
-  int GetCachedSize() const final { return _cached_size_.Get(); }
-
+      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
+  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const final;
+  void SetCachedSize(int size) const PROTOBUF_FINAL;
   void InternalSwap(Car_info* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -1117,7 +1101,7 @@ class Car_info : public ::google::protobuf::Message /* @@protoc_insertion_point(
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const final;
+  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
 
   // nested types ----------------------------------------------------
 
@@ -1190,7 +1174,7 @@ class Car_info : public ::google::protobuf::Message /* @@protoc_insertion_point(
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable ::google::protobuf::internal::CachedSize _cached_size_;
+  mutable int _cached_size_;
   ::google::protobuf::internal::ArenaStringPtr license_;
   float car_length_;
   float car_width_;
@@ -1198,6 +1182,7 @@ class Car_info : public ::google::protobuf::Message /* @@protoc_insertion_point(
   float car_wheel_base_;
   float car_wheel_width_;
   friend struct ::protobuf_message_5fbase_2eproto::TableStruct;
+  friend void ::protobuf_message_5fbase_2eproto::InitDefaultsCar_infoImpl();
 };
 // -------------------------------------------------------------------
 
@@ -1242,7 +1227,7 @@ class Parkspace_info : public ::google::protobuf::Message /* @@protoc_insertion_
     return reinterpret_cast<const Parkspace_info*>(
                &_Parkspace_info_default_instance_);
   }
-  static constexpr int kIndexInFileMessages =
+  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
     5;
 
   void Swap(Parkspace_info* other);
@@ -1252,33 +1237,28 @@ class Parkspace_info : public ::google::protobuf::Message /* @@protoc_insertion_
 
   // implements Message ----------------------------------------------
 
-  inline Parkspace_info* New() const final {
-    return CreateMaybeMessage<Parkspace_info>(NULL);
-  }
+  inline Parkspace_info* New() const PROTOBUF_FINAL { return New(NULL); }
 
-  Parkspace_info* New(::google::protobuf::Arena* arena) const final {
-    return CreateMaybeMessage<Parkspace_info>(arena);
-  }
-  void CopyFrom(const ::google::protobuf::Message& from) final;
-  void MergeFrom(const ::google::protobuf::Message& from) final;
+  Parkspace_info* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
+  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
+  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
   void CopyFrom(const Parkspace_info& from);
   void MergeFrom(const Parkspace_info& from);
-  void Clear() final;
-  bool IsInitialized() const final;
+  void Clear() PROTOBUF_FINAL;
+  bool IsInitialized() const PROTOBUF_FINAL;
 
-  size_t ByteSizeLong() const final;
+  size_t ByteSizeLong() const PROTOBUF_FINAL;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) final;
+      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const final;
+      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const final;
-  int GetCachedSize() const final { return _cached_size_.Get(); }
-
+      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
+  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const final;
+  void SetCachedSize(int size) const PROTOBUF_FINAL;
   void InternalSwap(Parkspace_info* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -1289,7 +1269,7 @@ class Parkspace_info : public ::google::protobuf::Message /* @@protoc_insertion_
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const final;
+  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
 
   // nested types ----------------------------------------------------
 
@@ -1329,9 +1309,6 @@ class Parkspace_info : public ::google::protobuf::Message /* @@protoc_insertion_
   bool has_car_info() const;
   void clear_car_info();
   static const int kCarInfoFieldNumber = 11;
-  private:
-  const ::message::Car_info& _internal_car_info() const;
-  public:
   const ::message::Car_info& car_info() const;
   ::message::Car_info* release_car_info();
   ::message::Car_info* mutable_car_info();
@@ -1474,7 +1451,7 @@ class Parkspace_info : public ::google::protobuf::Message /* @@protoc_insertion_
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable ::google::protobuf::internal::CachedSize _cached_size_;
+  mutable int _cached_size_;
   ::google::protobuf::internal::ArenaStringPtr entry_time_;
   ::google::protobuf::internal::ArenaStringPtr leave_time_;
   ::message::Car_info* car_info_;
@@ -1493,6 +1470,7 @@ class Parkspace_info : public ::google::protobuf::Message /* @@protoc_insertion_
   int parkspace_status_target_;
   int car_type_;
   friend struct ::protobuf_message_5fbase_2eproto::TableStruct;
+  friend void ::protobuf_message_5fbase_2eproto::InitDefaultsParkspace_infoImpl();
 };
 // ===================================================================
 
@@ -1622,9 +1600,6 @@ inline void Base_msg::clear_base_info() {
   if (base_info_ != NULL) base_info_->Clear();
   clear_has_base_info();
 }
-inline const ::message::Base_info& Base_msg::_internal_base_info() const {
-  return *base_info_;
-}
 inline const ::message::Base_info& Base_msg::base_info() const {
   const ::message::Base_info* p = base_info_;
   // @@protoc_insertion_point(field_get:message.Base_msg.base_info)
@@ -1641,8 +1616,7 @@ inline ::message::Base_info* Base_msg::release_base_info() {
 inline ::message::Base_info* Base_msg::mutable_base_info() {
   set_has_base_info();
   if (base_info_ == NULL) {
-    auto* p = CreateMaybeMessage<::message::Base_info>(GetArenaNoVirtual());
-    base_info_ = p;
+    base_info_ = new ::message::Base_info;
   }
   // @@protoc_insertion_point(field_mutable:message.Base_msg.base_info)
   return base_info_;
@@ -1769,11 +1743,8 @@ inline ::std::string* Error_manager::mutable_error_description() {
 }
 inline ::std::string* Error_manager::release_error_description() {
   // @@protoc_insertion_point(field_release:message.Error_manager.error_description)
-  if (!has_error_description()) {
-    return NULL;
-  }
   clear_has_error_description();
-  return error_description_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return error_description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Error_manager::set_allocated_error_description(::std::string* error_description) {
   if (error_description != NULL) {
@@ -2203,11 +2174,8 @@ inline ::std::string* Car_info::mutable_license() {
 }
 inline ::std::string* Car_info::release_license() {
   // @@protoc_insertion_point(field_release:message.Car_info.license)
-  if (!has_license()) {
-    return NULL;
-  }
   clear_has_license();
-  return license_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return license_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Car_info::set_allocated_license(::std::string* license) {
   if (license != NULL) {
@@ -2528,9 +2496,6 @@ inline void Parkspace_info::clear_car_info() {
   if (car_info_ != NULL) car_info_->Clear();
   clear_has_car_info();
 }
-inline const ::message::Car_info& Parkspace_info::_internal_car_info() const {
-  return *car_info_;
-}
 inline const ::message::Car_info& Parkspace_info::car_info() const {
   const ::message::Car_info* p = car_info_;
   // @@protoc_insertion_point(field_get:message.Parkspace_info.car_info)
@@ -2547,8 +2512,7 @@ inline ::message::Car_info* Parkspace_info::release_car_info() {
 inline ::message::Car_info* Parkspace_info::mutable_car_info() {
   set_has_car_info();
   if (car_info_ == NULL) {
-    auto* p = CreateMaybeMessage<::message::Car_info>(GetArenaNoVirtual());
-    car_info_ = p;
+    car_info_ = new ::message::Car_info;
   }
   // @@protoc_insertion_point(field_mutable:message.Parkspace_info.car_info)
   return car_info_;
@@ -2622,11 +2586,8 @@ inline ::std::string* Parkspace_info::mutable_entry_time() {
 }
 inline ::std::string* Parkspace_info::release_entry_time() {
   // @@protoc_insertion_point(field_release:message.Parkspace_info.entry_time)
-  if (!has_entry_time()) {
-    return NULL;
-  }
   clear_has_entry_time();
-  return entry_time_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return entry_time_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Parkspace_info::set_allocated_entry_time(::std::string* entry_time) {
   if (entry_time != NULL) {
@@ -2688,11 +2649,8 @@ inline ::std::string* Parkspace_info::mutable_leave_time() {
 }
 inline ::std::string* Parkspace_info::release_leave_time() {
   // @@protoc_insertion_point(field_release:message.Parkspace_info.leave_time)
-  if (!has_leave_time()) {
-    return NULL;
-  }
   clear_has_leave_time();
-  return leave_time_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return leave_time_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Parkspace_info::set_allocated_leave_time(::std::string* leave_time) {
   if (leave_time != NULL) {
@@ -2824,62 +2782,62 @@ inline void Parkspace_info::set_car_type(::message::Car_type value) {
 namespace google {
 namespace protobuf {
 
-template <> struct is_proto_enum< ::message::Message_type> : ::std::true_type {};
+template <> struct is_proto_enum< ::message::Message_type> : ::google::protobuf::internal::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Message_type>() {
   return ::message::Message_type_descriptor();
 }
-template <> struct is_proto_enum< ::message::Communicator> : ::std::true_type {};
+template <> struct is_proto_enum< ::message::Communicator> : ::google::protobuf::internal::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Communicator>() {
   return ::message::Communicator_descriptor();
 }
-template <> struct is_proto_enum< ::message::Process_type> : ::std::true_type {};
+template <> struct is_proto_enum< ::message::Process_type> : ::google::protobuf::internal::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Process_type>() {
   return ::message::Process_type_descriptor();
 }
-template <> struct is_proto_enum< ::message::Error_level> : ::std::true_type {};
+template <> struct is_proto_enum< ::message::Error_level> : ::google::protobuf::internal::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Error_level>() {
   return ::message::Error_level_descriptor();
 }
-template <> struct is_proto_enum< ::message::Parkspace_status> : ::std::true_type {};
+template <> struct is_proto_enum< ::message::Parkspace_status> : ::google::protobuf::internal::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Parkspace_status>() {
   return ::message::Parkspace_status_descriptor();
 }
-template <> struct is_proto_enum< ::message::Direction> : ::std::true_type {};
+template <> struct is_proto_enum< ::message::Direction> : ::google::protobuf::internal::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Direction>() {
   return ::message::Direction_descriptor();
 }
-template <> struct is_proto_enum< ::message::Parkspace_path> : ::std::true_type {};
+template <> struct is_proto_enum< ::message::Parkspace_path> : ::google::protobuf::internal::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Parkspace_path>() {
   return ::message::Parkspace_path_descriptor();
 }
-template <> struct is_proto_enum< ::message::Parkspace_type> : ::std::true_type {};
+template <> struct is_proto_enum< ::message::Parkspace_type> : ::google::protobuf::internal::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Parkspace_type>() {
   return ::message::Parkspace_type_descriptor();
 }
-template <> struct is_proto_enum< ::message::Car_type> : ::std::true_type {};
+template <> struct is_proto_enum< ::message::Car_type> : ::google::protobuf::internal::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Car_type>() {
   return ::message::Car_type_descriptor();
 }
-template <> struct is_proto_enum< ::message::Step_type> : ::std::true_type {};
+template <> struct is_proto_enum< ::message::Step_type> : ::google::protobuf::internal::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Step_type>() {
   return ::message::Step_type_descriptor();
 }
-template <> struct is_proto_enum< ::message::Step_statu> : ::std::true_type {};
+template <> struct is_proto_enum< ::message::Step_statu> : ::google::protobuf::internal::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Step_statu>() {
   return ::message::Step_statu_descriptor();
 }
-template <> struct is_proto_enum< ::message::Dispatch_device_type> : ::std::true_type {};
+template <> struct is_proto_enum< ::message::Dispatch_device_type> : ::google::protobuf::internal::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Dispatch_device_type>() {
   return ::message::Dispatch_device_type_descriptor();
@@ -2890,4 +2848,4 @@ inline const EnumDescriptor* GetEnumDescriptor< ::message::Dispatch_device_type>
 
 // @@protoc_insertion_point(global_scope)
 
-#endif  // PROTOBUF_INCLUDED_message_5fbase_2eproto
+#endif  // PROTOBUF_message_5fbase_2eproto__INCLUDED

Datei-Diff unterdrückt, da er zu groß ist
+ 588 - 393
message/parkspace_allocation_message.pb.cc


Datei-Diff unterdrückt, da er zu groß ist
+ 379 - 593
message/parkspace_allocation_message.pb.h


+ 1 - 0
setting/communication.prototxt

@@ -31,6 +31,7 @@ communication_parameters
 
 #    connect_string_vector:"tcp://192.168.2.174:30002"
 
+
     connect_string_vector:"tcp://192.168.1.233:30000"
     connect_string_vector:"tcp://192.168.1.233:30010"
 

+ 86 - 59
snap7_communication/snap7_communication.pb.cc

@@ -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,10 +19,6 @@
 #include "third_party/protobuf/version.h"
 #endif
 // @@protoc_insertion_point(includes)
-
-namespace protobuf_snap7_5fcommunication_2eproto {
-extern PROTOBUF_INTERNAL_EXPORT_protobuf_snap7_5fcommunication_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Snap7_communication_parameter;
-}  // namespace protobuf_snap7_5fcommunication_2eproto
 namespace Snap7_communication_proto {
 class Snap7_communication_parameterDefaultTypeInternal {
  public:
@@ -35,13 +32,18 @@ class Snap7_communication_parameter_allDefaultTypeInternal {
 } _Snap7_communication_parameter_all_default_instance_;
 }  // namespace Snap7_communication_proto
 namespace protobuf_snap7_5fcommunication_2eproto {
-static void InitDefaultsSnap7_communication_parameter() {
+void InitDefaultsSnap7_communication_parameterImpl() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
-  ::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.DefaultConstruct();
-  *::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get_mutable() = ::std::string("192.168.0.1", 11);
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+  ::google::protobuf::internal::InitProtobufDefaults();
+#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+  ::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.DefaultConstruct();
+  *::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.get_mutable() = ::std::string("192.168.0.1", 11);
   ::google::protobuf::internal::OnShutdownDestroyString(
-      ::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get_mutable());
+      ::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.get_mutable());
   {
     void* ptr = &::Snap7_communication_proto::_Snap7_communication_parameter_default_instance_;
     new (ptr) ::Snap7_communication_proto::Snap7_communication_parameter();
@@ -50,12 +52,20 @@ static void InitDefaultsSnap7_communication_parameter() {
   ::Snap7_communication_proto::Snap7_communication_parameter::InitAsDefaultInstance();
 }
 
-::google::protobuf::internal::SCCInfo<0> scc_info_Snap7_communication_parameter =
-    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSnap7_communication_parameter}, {}};
+void InitDefaultsSnap7_communication_parameter() {
+  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSnap7_communication_parameterImpl);
+}
 
-static void InitDefaultsSnap7_communication_parameter_all() {
+void InitDefaultsSnap7_communication_parameter_allImpl() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+  ::google::protobuf::internal::InitProtobufDefaults();
+#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+  protobuf_snap7_5fcommunication_2eproto::InitDefaultsSnap7_communication_parameter();
   {
     void* ptr = &::Snap7_communication_proto::_Snap7_communication_parameter_all_default_instance_;
     new (ptr) ::Snap7_communication_proto::Snap7_communication_parameter_all();
@@ -64,13 +74,9 @@ static void InitDefaultsSnap7_communication_parameter_all() {
   ::Snap7_communication_proto::Snap7_communication_parameter_all::InitAsDefaultInstance();
 }
 
-::google::protobuf::internal::SCCInfo<1> scc_info_Snap7_communication_parameter_all =
-    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSnap7_communication_parameter_all}, {
-      &protobuf_snap7_5fcommunication_2eproto::scc_info_Snap7_communication_parameter.base,}};
-
-void InitDefaults() {
-  ::google::protobuf::internal::InitSCC(&scc_info_Snap7_communication_parameter.base);
-  ::google::protobuf::internal::InitSCC(&scc_info_Snap7_communication_parameter_all.base);
+void InitDefaultsSnap7_communication_parameter_all() {
+  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSnap7_communication_parameter_allImpl);
 }
 
 ::google::protobuf::Metadata file_level_metadata[2];
@@ -103,14 +109,15 @@ static ::google::protobuf::Message const * const file_default_instances[] = {
 
 void protobuf_AssignDescriptors() {
   AddDescriptors();
+  ::google::protobuf::MessageFactory* factory = NULL;
   AssignDescriptors(
-      "snap7_communication.proto", schemas, file_default_instances, TableStruct::offsets,
+      "snap7_communication.proto", schemas, file_default_instances, TableStruct::offsets, factory,
       file_level_metadata, NULL, 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;
@@ -137,8 +144,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 {
@@ -153,32 +160,35 @@ namespace Snap7_communication_proto {
 
 void Snap7_communication_parameter::InitAsDefaultInstance() {
 }
-::google::protobuf::internal::ExplicitlyConstructed<::std::string> Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_;
+::google::protobuf::internal::ExplicitlyConstructed< ::std::string> Snap7_communication_parameter::_default_ip_string_;
 #if !defined(_MSC_VER) || _MSC_VER >= 1900
 const int Snap7_communication_parameter::kIpStringFieldNumber;
 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
 
 Snap7_communication_parameter::Snap7_communication_parameter()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  ::google::protobuf::internal::InitSCC(
-      &protobuf_snap7_5fcommunication_2eproto::scc_info_Snap7_communication_parameter.base);
+  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+    ::protobuf_snap7_5fcommunication_2eproto::InitDefaultsSnap7_communication_parameter();
+  }
   SharedCtor();
   // @@protoc_insertion_point(constructor:Snap7_communication_proto.Snap7_communication_parameter)
 }
 Snap7_communication_parameter::Snap7_communication_parameter(const Snap7_communication_parameter& 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_);
-  ip_string_.UnsafeSetDefault(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get());
+  ip_string_.UnsafeSetDefault(&::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.get());
   if (from.has_ip_string()) {
-    ip_string_.AssignWithDefault(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get(), from.ip_string_);
+    ip_string_.AssignWithDefault(&::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.get(), from.ip_string_);
   }
   // @@protoc_insertion_point(copy_constructor:Snap7_communication_proto.Snap7_communication_parameter)
 }
 
 void Snap7_communication_parameter::SharedCtor() {
-  ip_string_.UnsafeSetDefault(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get());
+  _cached_size_ = 0;
+  ip_string_.UnsafeSetDefault(&::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.get());
 }
 
 Snap7_communication_parameter::~Snap7_communication_parameter() {
@@ -187,11 +197,13 @@ Snap7_communication_parameter::~Snap7_communication_parameter() {
 }
 
 void Snap7_communication_parameter::SharedDtor() {
-  ip_string_.DestroyNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get());
+  ip_string_.DestroyNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.get());
 }
 
 void Snap7_communication_parameter::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* Snap7_communication_parameter::descriptor() {
   ::protobuf_snap7_5fcommunication_2eproto::protobuf_AssignDescriptorsOnce();
@@ -199,10 +211,17 @@ const ::google::protobuf::Descriptor* Snap7_communication_parameter::descriptor(
 }
 
 const Snap7_communication_parameter& Snap7_communication_parameter::default_instance() {
-  ::google::protobuf::internal::InitSCC(&protobuf_snap7_5fcommunication_2eproto::scc_info_Snap7_communication_parameter.base);
+  ::protobuf_snap7_5fcommunication_2eproto::InitDefaultsSnap7_communication_parameter();
   return *internal_default_instance();
 }
 
+Snap7_communication_parameter* Snap7_communication_parameter::New(::google::protobuf::Arena* arena) const {
+  Snap7_communication_parameter* n = new Snap7_communication_parameter;
+  if (arena != NULL) {
+    arena->Own(n);
+  }
+  return n;
+}
 
 void Snap7_communication_parameter::Clear() {
 // @@protoc_insertion_point(message_clear_start:Snap7_communication_proto.Snap7_communication_parameter)
@@ -212,7 +231,8 @@ void Snap7_communication_parameter::Clear() {
 
   cached_has_bits = _has_bits_[0];
   if (cached_has_bits & 0x00000001u) {
-    ip_string_.UnsafeMutablePointer()->assign(*&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get());
+    GOOGLE_DCHECK(!ip_string_.IsDefault(&::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.get()));
+    (*ip_string_.UnsafeRawStringPointer())->assign(*&::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.get());
   }
   _has_bits_.Clear();
   _internal_metadata_.Clear();
@@ -224,7 +244,7 @@ bool Snap7_communication_parameter::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:Snap7_communication_proto.Snap7_communication_parameter)
   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)) {
@@ -331,7 +351,9 @@ size_t Snap7_communication_parameter::ByteSizeLong() const {
         this->ip_string());
   }
   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;
 }
 
@@ -359,7 +381,7 @@ void Snap7_communication_parameter::MergeFrom(const Snap7_communication_paramete
 
   if (from.has_ip_string()) {
     set_has_ip_string();
-    ip_string_.AssignWithDefault(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get(), from.ip_string_);
+    ip_string_.AssignWithDefault(&::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.get(), from.ip_string_);
   }
 }
 
@@ -388,10 +410,10 @@ void Snap7_communication_parameter::Swap(Snap7_communication_parameter* other) {
 }
 void Snap7_communication_parameter::InternalSwap(Snap7_communication_parameter* other) {
   using std::swap;
-  ip_string_.Swap(&other->ip_string_, &::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get(),
-    GetArenaNoVirtual());
+  ip_string_.Swap(&other->ip_string_);
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
+  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata Snap7_communication_parameter::GetMetadata() const {
@@ -412,15 +434,17 @@ const int Snap7_communication_parameter_all::kSnap7CommunicationParametersFieldN
 
 Snap7_communication_parameter_all::Snap7_communication_parameter_all()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  ::google::protobuf::internal::InitSCC(
-      &protobuf_snap7_5fcommunication_2eproto::scc_info_Snap7_communication_parameter_all.base);
+  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+    ::protobuf_snap7_5fcommunication_2eproto::InitDefaultsSnap7_communication_parameter_all();
+  }
   SharedCtor();
   // @@protoc_insertion_point(constructor:Snap7_communication_proto.Snap7_communication_parameter_all)
 }
 Snap7_communication_parameter_all::Snap7_communication_parameter_all(const Snap7_communication_parameter_all& 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_);
   if (from.has_snap7_communication_parameters()) {
     snap7_communication_parameters_ = new ::Snap7_communication_proto::Snap7_communication_parameter(*from.snap7_communication_parameters_);
@@ -431,6 +455,7 @@ Snap7_communication_parameter_all::Snap7_communication_parameter_all(const Snap7
 }
 
 void Snap7_communication_parameter_all::SharedCtor() {
+  _cached_size_ = 0;
   snap7_communication_parameters_ = NULL;
 }
 
@@ -444,7 +469,9 @@ void Snap7_communication_parameter_all::SharedDtor() {
 }
 
 void Snap7_communication_parameter_all::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* Snap7_communication_parameter_all::descriptor() {
   ::protobuf_snap7_5fcommunication_2eproto::protobuf_AssignDescriptorsOnce();
@@ -452,10 +479,17 @@ const ::google::protobuf::Descriptor* Snap7_communication_parameter_all::descrip
 }
 
 const Snap7_communication_parameter_all& Snap7_communication_parameter_all::default_instance() {
-  ::google::protobuf::internal::InitSCC(&protobuf_snap7_5fcommunication_2eproto::scc_info_Snap7_communication_parameter_all.base);
+  ::protobuf_snap7_5fcommunication_2eproto::InitDefaultsSnap7_communication_parameter_all();
   return *internal_default_instance();
 }
 
+Snap7_communication_parameter_all* Snap7_communication_parameter_all::New(::google::protobuf::Arena* arena) const {
+  Snap7_communication_parameter_all* n = new Snap7_communication_parameter_all;
+  if (arena != NULL) {
+    arena->Own(n);
+  }
+  return n;
+}
 
 void Snap7_communication_parameter_all::Clear() {
 // @@protoc_insertion_point(message_clear_start:Snap7_communication_proto.Snap7_communication_parameter_all)
@@ -478,7 +512,7 @@ bool Snap7_communication_parameter_all::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:Snap7_communication_proto.Snap7_communication_parameter_all)
   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)) {
@@ -524,7 +558,7 @@ void Snap7_communication_parameter_all::SerializeWithCachedSizes(
   // required .Snap7_communication_proto.Snap7_communication_parameter snap7_communication_parameters = 1;
   if (cached_has_bits & 0x00000001u) {
     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
-      1, this->_internal_snap7_communication_parameters(), output);
+      1, *this->snap7_communication_parameters_, output);
   }
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -546,7 +580,7 @@ void Snap7_communication_parameter_all::SerializeWithCachedSizes(
   if (cached_has_bits & 0x00000001u) {
     target = ::google::protobuf::internal::WireFormatLite::
       InternalWriteMessageToArray(
-        1, this->_internal_snap7_communication_parameters(), deterministic, target);
+        1, *this->snap7_communication_parameters_, deterministic, target);
   }
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -570,10 +604,12 @@ size_t Snap7_communication_parameter_all::ByteSizeLong() const {
   if (has_snap7_communication_parameters()) {
     total_size += 1 +
       ::google::protobuf::internal::WireFormatLite::MessageSize(
-        *snap7_communication_parameters_);
+        *this->snap7_communication_parameters_);
   }
   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;
 }
 
@@ -635,6 +671,7 @@ void Snap7_communication_parameter_all::InternalSwap(Snap7_communication_paramet
   swap(snap7_communication_parameters_, other->snap7_communication_parameters_);
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
+  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata Snap7_communication_parameter_all::GetMetadata() const {
@@ -645,15 +682,5 @@ void Snap7_communication_parameter_all::InternalSwap(Snap7_communication_paramet
 
 // @@protoc_insertion_point(namespace_scope)
 }  // namespace Snap7_communication_proto
-namespace google {
-namespace protobuf {
-template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Snap7_communication_proto::Snap7_communication_parameter* Arena::CreateMaybeMessage< ::Snap7_communication_proto::Snap7_communication_parameter >(Arena* arena) {
-  return Arena::CreateInternal< ::Snap7_communication_proto::Snap7_communication_parameter >(arena);
-}
-template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Snap7_communication_proto::Snap7_communication_parameter_all* Arena::CreateMaybeMessage< ::Snap7_communication_proto::Snap7_communication_parameter_all >(Arena* arena) {
-  return Arena::CreateInternal< ::Snap7_communication_proto::Snap7_communication_parameter_all >(arena);
-}
-}  // namespace protobuf
-}  // namespace google
 
 // @@protoc_insertion_point(global_scope)

+ 55 - 75
snap7_communication/snap7_communication.pb.h

@@ -1,19 +1,19 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: snap7_communication.proto
 
-#ifndef PROTOBUF_INCLUDED_snap7_5fcommunication_2eproto
-#define PROTOBUF_INCLUDED_snap7_5fcommunication_2eproto
+#ifndef PROTOBUF_snap7_5fcommunication_2eproto__INCLUDED
+#define PROTOBUF_snap7_5fcommunication_2eproto__INCLUDED
 
 #include <string>
 
 #include <google/protobuf/stubs/common.h>
 
-#if GOOGLE_PROTOBUF_VERSION < 3006001
+#if GOOGLE_PROTOBUF_VERSION < 3005000
 #error This file was generated by a newer version of protoc which is
 #error incompatible with your Protocol Buffer headers.  Please update
 #error your headers.
 #endif
-#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
 #error This file was generated by an older version of protoc which is
 #error incompatible with your Protocol Buffer headers.  Please
 #error regenerate this file with a newer version of protoc.
@@ -24,14 +24,12 @@
 #include <google/protobuf/arenastring.h>
 #include <google/protobuf/generated_message_table_driven.h>
 #include <google/protobuf/generated_message_util.h>
-#include <google/protobuf/inlined_string_field.h>
 #include <google/protobuf/metadata.h>
 #include <google/protobuf/message.h>
 #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
 #include <google/protobuf/extension_set.h>  // IWYU pragma: export
 #include <google/protobuf/unknown_field_set.h>
 // @@protoc_insertion_point(includes)
-#define PROTOBUF_INTERNAL_EXPORT_protobuf_snap7_5fcommunication_2eproto 
 
 namespace protobuf_snap7_5fcommunication_2eproto {
 // Internal implementation detail -- do not use these members.
@@ -44,6 +42,14 @@ struct TableStruct {
   static const ::google::protobuf::uint32 offsets[];
 };
 void AddDescriptors();
+void InitDefaultsSnap7_communication_parameterImpl();
+void InitDefaultsSnap7_communication_parameter();
+void InitDefaultsSnap7_communication_parameter_allImpl();
+void InitDefaultsSnap7_communication_parameter_all();
+inline void InitDefaults() {
+  InitDefaultsSnap7_communication_parameter();
+  InitDefaultsSnap7_communication_parameter_all();
+}
 }  // namespace protobuf_snap7_5fcommunication_2eproto
 namespace Snap7_communication_proto {
 class Snap7_communication_parameter;
@@ -53,12 +59,6 @@ class Snap7_communication_parameter_all;
 class Snap7_communication_parameter_allDefaultTypeInternal;
 extern Snap7_communication_parameter_allDefaultTypeInternal _Snap7_communication_parameter_all_default_instance_;
 }  // namespace Snap7_communication_proto
-namespace google {
-namespace protobuf {
-template<> ::Snap7_communication_proto::Snap7_communication_parameter* Arena::CreateMaybeMessage<::Snap7_communication_proto::Snap7_communication_parameter>(Arena*);
-template<> ::Snap7_communication_proto::Snap7_communication_parameter_all* Arena::CreateMaybeMessage<::Snap7_communication_proto::Snap7_communication_parameter_all>(Arena*);
-}  // namespace protobuf
-}  // namespace google
 namespace Snap7_communication_proto {
 
 // ===================================================================
@@ -104,7 +104,7 @@ class Snap7_communication_parameter : public ::google::protobuf::Message /* @@pr
     return reinterpret_cast<const Snap7_communication_parameter*>(
                &_Snap7_communication_parameter_default_instance_);
   }
-  static constexpr int kIndexInFileMessages =
+  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
     0;
 
   void Swap(Snap7_communication_parameter* other);
@@ -114,33 +114,28 @@ class Snap7_communication_parameter : public ::google::protobuf::Message /* @@pr
 
   // implements Message ----------------------------------------------
 
-  inline Snap7_communication_parameter* New() const final {
-    return CreateMaybeMessage<Snap7_communication_parameter>(NULL);
-  }
+  inline Snap7_communication_parameter* New() const PROTOBUF_FINAL { return New(NULL); }
 
-  Snap7_communication_parameter* New(::google::protobuf::Arena* arena) const final {
-    return CreateMaybeMessage<Snap7_communication_parameter>(arena);
-  }
-  void CopyFrom(const ::google::protobuf::Message& from) final;
-  void MergeFrom(const ::google::protobuf::Message& from) final;
+  Snap7_communication_parameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
+  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
+  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
   void CopyFrom(const Snap7_communication_parameter& from);
   void MergeFrom(const Snap7_communication_parameter& from);
-  void Clear() final;
-  bool IsInitialized() const final;
+  void Clear() PROTOBUF_FINAL;
+  bool IsInitialized() const PROTOBUF_FINAL;
 
-  size_t ByteSizeLong() const final;
+  size_t ByteSizeLong() const PROTOBUF_FINAL;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) final;
+      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const final;
+      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const final;
-  int GetCachedSize() const final { return _cached_size_.Get(); }
-
+      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
+  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const final;
+  void SetCachedSize(int size) const PROTOBUF_FINAL;
   void InternalSwap(Snap7_communication_parameter* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -151,7 +146,7 @@ class Snap7_communication_parameter : public ::google::protobuf::Message /* @@pr
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const final;
+  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
 
   // nested types ----------------------------------------------------
 
@@ -179,12 +174,11 @@ class Snap7_communication_parameter : public ::google::protobuf::Message /* @@pr
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable ::google::protobuf::internal::CachedSize _cached_size_;
-  public:
-  static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_ip_string_;
-  private:
+  mutable int _cached_size_;
+  static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _default_ip_string_;
   ::google::protobuf::internal::ArenaStringPtr ip_string_;
   friend struct ::protobuf_snap7_5fcommunication_2eproto::TableStruct;
+  friend void ::protobuf_snap7_5fcommunication_2eproto::InitDefaultsSnap7_communication_parameterImpl();
 };
 // -------------------------------------------------------------------
 
@@ -229,7 +223,7 @@ class Snap7_communication_parameter_all : public ::google::protobuf::Message /*
     return reinterpret_cast<const Snap7_communication_parameter_all*>(
                &_Snap7_communication_parameter_all_default_instance_);
   }
-  static constexpr int kIndexInFileMessages =
+  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
     1;
 
   void Swap(Snap7_communication_parameter_all* other);
@@ -239,33 +233,28 @@ class Snap7_communication_parameter_all : public ::google::protobuf::Message /*
 
   // implements Message ----------------------------------------------
 
-  inline Snap7_communication_parameter_all* New() const final {
-    return CreateMaybeMessage<Snap7_communication_parameter_all>(NULL);
-  }
+  inline Snap7_communication_parameter_all* New() const PROTOBUF_FINAL { return New(NULL); }
 
-  Snap7_communication_parameter_all* New(::google::protobuf::Arena* arena) const final {
-    return CreateMaybeMessage<Snap7_communication_parameter_all>(arena);
-  }
-  void CopyFrom(const ::google::protobuf::Message& from) final;
-  void MergeFrom(const ::google::protobuf::Message& from) final;
+  Snap7_communication_parameter_all* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
+  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
+  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
   void CopyFrom(const Snap7_communication_parameter_all& from);
   void MergeFrom(const Snap7_communication_parameter_all& from);
-  void Clear() final;
-  bool IsInitialized() const final;
+  void Clear() PROTOBUF_FINAL;
+  bool IsInitialized() const PROTOBUF_FINAL;
 
-  size_t ByteSizeLong() const final;
+  size_t ByteSizeLong() const PROTOBUF_FINAL;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) final;
+      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const final;
+      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const final;
-  int GetCachedSize() const final { return _cached_size_.Get(); }
-
+      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
+  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const final;
+  void SetCachedSize(int size) const PROTOBUF_FINAL;
   void InternalSwap(Snap7_communication_parameter_all* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -276,7 +265,7 @@ class Snap7_communication_parameter_all : public ::google::protobuf::Message /*
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const final;
+  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
 
   // nested types ----------------------------------------------------
 
@@ -286,9 +275,6 @@ class Snap7_communication_parameter_all : public ::google::protobuf::Message /*
   bool has_snap7_communication_parameters() const;
   void clear_snap7_communication_parameters();
   static const int kSnap7CommunicationParametersFieldNumber = 1;
-  private:
-  const ::Snap7_communication_proto::Snap7_communication_parameter& _internal_snap7_communication_parameters() const;
-  public:
   const ::Snap7_communication_proto::Snap7_communication_parameter& snap7_communication_parameters() const;
   ::Snap7_communication_proto::Snap7_communication_parameter* release_snap7_communication_parameters();
   ::Snap7_communication_proto::Snap7_communication_parameter* mutable_snap7_communication_parameters();
@@ -301,9 +287,10 @@ class Snap7_communication_parameter_all : public ::google::protobuf::Message /*
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable ::google::protobuf::internal::CachedSize _cached_size_;
+  mutable int _cached_size_;
   ::Snap7_communication_proto::Snap7_communication_parameter* snap7_communication_parameters_;
   friend struct ::protobuf_snap7_5fcommunication_2eproto::TableStruct;
+  friend void ::protobuf_snap7_5fcommunication_2eproto::InitDefaultsSnap7_communication_parameter_allImpl();
 };
 // ===================================================================
 
@@ -327,7 +314,7 @@ inline void Snap7_communication_parameter::clear_has_ip_string() {
   _has_bits_[0] &= ~0x00000001u;
 }
 inline void Snap7_communication_parameter::clear_ip_string() {
-  ip_string_.ClearToDefaultNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get());
+  ip_string_.ClearToDefaultNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.get());
   clear_has_ip_string();
 }
 inline const ::std::string& Snap7_communication_parameter::ip_string() const {
@@ -336,41 +323,38 @@ inline const ::std::string& Snap7_communication_parameter::ip_string() const {
 }
 inline void Snap7_communication_parameter::set_ip_string(const ::std::string& value) {
   set_has_ip_string();
-  ip_string_.SetNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get(), value);
+  ip_string_.SetNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.get(), value);
   // @@protoc_insertion_point(field_set:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
 }
 #if LANG_CXX11
 inline void Snap7_communication_parameter::set_ip_string(::std::string&& value) {
   set_has_ip_string();
   ip_string_.SetNoArena(
-    &::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get(), ::std::move(value));
+    &::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.get(), ::std::move(value));
   // @@protoc_insertion_point(field_set_rvalue:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
 }
 #endif
 inline void Snap7_communication_parameter::set_ip_string(const char* value) {
   GOOGLE_DCHECK(value != NULL);
   set_has_ip_string();
-  ip_string_.SetNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get(), ::std::string(value));
+  ip_string_.SetNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.get(), ::std::string(value));
   // @@protoc_insertion_point(field_set_char:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
 }
 inline void Snap7_communication_parameter::set_ip_string(const char* value, size_t size) {
   set_has_ip_string();
-  ip_string_.SetNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get(),
+  ip_string_.SetNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.get(),
       ::std::string(reinterpret_cast<const char*>(value), size));
   // @@protoc_insertion_point(field_set_pointer:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
 }
 inline ::std::string* Snap7_communication_parameter::mutable_ip_string() {
   set_has_ip_string();
   // @@protoc_insertion_point(field_mutable:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
-  return ip_string_.MutableNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get());
+  return ip_string_.MutableNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.get());
 }
 inline ::std::string* Snap7_communication_parameter::release_ip_string() {
   // @@protoc_insertion_point(field_release:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
-  if (!has_ip_string()) {
-    return NULL;
-  }
   clear_has_ip_string();
-  return ip_string_.ReleaseNonDefaultNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get());
+  return ip_string_.ReleaseNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.get());
 }
 inline void Snap7_communication_parameter::set_allocated_ip_string(::std::string* ip_string) {
   if (ip_string != NULL) {
@@ -378,7 +362,7 @@ inline void Snap7_communication_parameter::set_allocated_ip_string(::std::string
   } else {
     clear_has_ip_string();
   }
-  ip_string_.SetAllocatedNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get(), ip_string);
+  ip_string_.SetAllocatedNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.get(), ip_string);
   // @@protoc_insertion_point(field_set_allocated:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
 }
 
@@ -400,9 +384,6 @@ inline void Snap7_communication_parameter_all::clear_snap7_communication_paramet
   if (snap7_communication_parameters_ != NULL) snap7_communication_parameters_->Clear();
   clear_has_snap7_communication_parameters();
 }
-inline const ::Snap7_communication_proto::Snap7_communication_parameter& Snap7_communication_parameter_all::_internal_snap7_communication_parameters() const {
-  return *snap7_communication_parameters_;
-}
 inline const ::Snap7_communication_proto::Snap7_communication_parameter& Snap7_communication_parameter_all::snap7_communication_parameters() const {
   const ::Snap7_communication_proto::Snap7_communication_parameter* p = snap7_communication_parameters_;
   // @@protoc_insertion_point(field_get:Snap7_communication_proto.Snap7_communication_parameter_all.snap7_communication_parameters)
@@ -419,8 +400,7 @@ inline ::Snap7_communication_proto::Snap7_communication_parameter* Snap7_communi
 inline ::Snap7_communication_proto::Snap7_communication_parameter* Snap7_communication_parameter_all::mutable_snap7_communication_parameters() {
   set_has_snap7_communication_parameters();
   if (snap7_communication_parameters_ == NULL) {
-    auto* p = CreateMaybeMessage<::Snap7_communication_proto::Snap7_communication_parameter>(GetArenaNoVirtual());
-    snap7_communication_parameters_ = p;
+    snap7_communication_parameters_ = new ::Snap7_communication_proto::Snap7_communication_parameter;
   }
   // @@protoc_insertion_point(field_mutable:Snap7_communication_proto.Snap7_communication_parameter_all.snap7_communication_parameters)
   return snap7_communication_parameters_;
@@ -456,4 +436,4 @@ inline void Snap7_communication_parameter_all::set_allocated_snap7_communication
 
 // @@protoc_insertion_point(global_scope)
 
-#endif  // PROTOBUF_INCLUDED_snap7_5fcommunication_2eproto
+#endif  // PROTOBUF_snap7_5fcommunication_2eproto__INCLUDED

+ 14 - 0
zzw_test.sh

@@ -0,0 +1,14 @@
+#!/bin/bash
+ 
+/home/zx/huli/chutian_dispatch/build
+{
+gnome-terminal -x bash -c "cd /home/zx/huli/chutian_dispatch/build/&&./terminal 0; exec bash"
+}&
+ 
+{
+gnome-terminal -x bash -c "cd /home/zx/huli/chutian_dispatch/build/&&./terminal 1; exec bash"
+}&
+
+{
+gnome-terminal -x bash -c "cd /home/zx/huli/chutian_dispatch/build/&&./terminal 2; exec bash"
+}&