Просмотр исходного кода

repair check_node measure info not update in 2 seconds,
repair measure width compare diff too short ,change to 0.15

yct 2 лет назад
Родитель
Сommit
256a16096a
25 измененных файлов с 3436 добавлено и 3042 удалено
  1. 50 77
      plc调度节点/communication/communication.pb.cc
  2. 65 47
      plc调度节点/communication/communication.pb.h
  3. 59 86
      plc调度节点/dispatch/database_communication_configuration.pb.cc
  4. 77 50
      plc调度节点/dispatch/database_communication_configuration.pb.h
  5. 266 461
      plc调度节点/dispatch/dispatch_parameter.pb.cc
  6. 379 328
      plc调度节点/dispatch/dispatch_parameter.pb.h
  7. 219 377
      plc调度节点/message/message.pb.cc
  8. 321 220
      plc调度节点/message/message.pb.h
  9. 137 253
      plc调度节点/message/message_base.pb.cc
  10. 206 159
      plc调度节点/message/message_base.pb.h
  11. 111 186
      plc调度节点/message/singlechip_msg.pb.cc
  12. 162 113
      plc调度节点/message/singlechip_msg.pb.h
  13. 71 112
      plc调度节点/network_communication/network.pb.cc
  14. 97 77
      plc调度节点/network_communication/network.pb.h
  15. 2 1
      plc调度节点/network_communication/network_base.cpp
  16. 1 1
      plc调度节点/network_communication/network_base.h
  17. 104 139
      plc调度节点/rabbitmq/rabbitmq.pb.cc
  18. 144 103
      plc调度节点/rabbitmq/rabbitmq.pb.h
  19. 59 86
      plc调度节点/snap7_communication/snap7_communication.pb.cc
  20. 75 55
      plc调度节点/snap7_communication/snap7_communication.pb.h
  21. 15 6
      指令检查节点/CheckEntrance.py
  22. 1 1
      指令检查节点/async_communication.py
  23. 805 94
      指令检查节点/message_pb2.py
  24. 7 7
      指令检查节点/node.py
  25. 3 3
      测量节点/system/system_communication mq.cpp

+ 50 - 77
plc调度节点/communication/communication.pb.cc

@@ -7,7 +7,6 @@
 
 #include <google/protobuf/stubs/common.h>
 #include <google/protobuf/stubs/port.h>
-#include <google/protobuf/stubs/once.h>
 #include <google/protobuf/io/coded_stream.h>
 #include <google/protobuf/wire_format_lite_inl.h>
 #include <google/protobuf/descriptor.h>
@@ -19,6 +18,10 @@
 #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:
@@ -32,14 +35,9 @@ class Communication_parameter_allDefaultTypeInternal {
 } _Communication_parameter_all_default_instance_;
 }  // namespace Communication_proto
 namespace protobuf_communication_2eproto {
-void InitDefaultsCommunication_parameterImpl() {
+static void InitDefaultsCommunication_parameter() {
   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();
@@ -48,20 +46,12 @@ void InitDefaultsCommunication_parameterImpl() {
   ::Communication_proto::Communication_parameter::InitAsDefaultInstance();
 }
 
-void InitDefaultsCommunication_parameter() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCommunication_parameterImpl);
-}
+::google::protobuf::internal::SCCInfo<0> scc_info_Communication_parameter =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCommunication_parameter}, {}};
 
-void InitDefaultsCommunication_parameter_allImpl() {
+static void InitDefaultsCommunication_parameter_all() {
   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();
@@ -70,9 +60,13 @@ void InitDefaultsCommunication_parameter_allImpl() {
   ::Communication_proto::Communication_parameter_all::InitAsDefaultInstance();
 }
 
-void InitDefaultsCommunication_parameter_all() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCommunication_parameter_allImpl);
+::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);
 }
 
 ::google::protobuf::Metadata file_level_metadata[2];
@@ -107,15 +101,14 @@ 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, factory,
+      "communication.proto", schemas, file_default_instances, TableStruct::offsets,
       file_level_metadata, NULL, NULL);
 }
 
 void protobuf_AssignDescriptorsOnce() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+  static ::google::protobuf::internal::once_flag once;
+  ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
 }
 
 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
@@ -141,8 +134,8 @@ void AddDescriptorsImpl() {
 }
 
 void AddDescriptors() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+  static ::google::protobuf::internal::once_flag once;
+  ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
 }
 // Force AddDescriptors() to be called at dynamic initialization time.
 struct StaticDescriptorInitializer {
@@ -164,9 +157,8 @@ const int Communication_parameter::kConnectStringVectorFieldNumber;
 
 Communication_parameter::Communication_parameter()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_communication_2eproto::InitDefaultsCommunication_parameter();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_communication_2eproto::scc_info_Communication_parameter.base);
   SharedCtor();
   // @@protoc_insertion_point(constructor:Communication_proto.Communication_parameter)
 }
@@ -174,7 +166,6 @@ 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());
@@ -185,7 +176,6 @@ Communication_parameter::Communication_parameter(const Communication_parameter&
 }
 
 void Communication_parameter::SharedCtor() {
-  _cached_size_ = 0;
   bind_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 
@@ -199,9 +189,7 @@ void Communication_parameter::SharedDtor() {
 }
 
 void Communication_parameter::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* Communication_parameter::descriptor() {
   ::protobuf_communication_2eproto::protobuf_AssignDescriptorsOnce();
@@ -209,17 +197,10 @@ const ::google::protobuf::Descriptor* Communication_parameter::descriptor() {
 }
 
 const Communication_parameter& Communication_parameter::default_instance() {
-  ::protobuf_communication_2eproto::InitDefaultsCommunication_parameter();
+  ::google::protobuf::internal::InitSCC(&protobuf_communication_2eproto::scc_info_Communication_parameter.base);
   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)
@@ -230,8 +211,7 @@ void Communication_parameter::Clear() {
   connect_string_vector_.Clear();
   cached_has_bits = _has_bits_[0];
   if (cached_has_bits & 0x00000001u) {
-    GOOGLE_DCHECK(!bind_string_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-    (*bind_string_.UnsafeRawStringPointer())->clear();
+    bind_string_.ClearNonDefaultToEmptyNoArena();
   }
   _has_bits_.Clear();
   _internal_metadata_.Clear();
@@ -243,7 +223,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)) {
@@ -396,9 +376,7 @@ size_t Communication_parameter::ByteSizeLong() const {
   }
 
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -455,11 +433,11 @@ void Communication_parameter::Swap(Communication_parameter* other) {
 }
 void Communication_parameter::InternalSwap(Communication_parameter* other) {
   using std::swap;
-  connect_string_vector_.InternalSwap(&other->connect_string_vector_);
-  bind_string_.Swap(&other->bind_string_);
+  connect_string_vector_.InternalSwap(CastToBase(&other->connect_string_vector_));
+  bind_string_.Swap(&other->bind_string_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+    GetArenaNoVirtual());
   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 {
@@ -480,17 +458,15 @@ const int Communication_parameter_all::kCommunicationParametersFieldNumber;
 
 Communication_parameter_all::Communication_parameter_all()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_communication_2eproto::InitDefaultsCommunication_parameter_all();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_communication_2eproto::scc_info_Communication_parameter_all.base);
   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_),
-      _cached_size_(0) {
+      _has_bits_(from._has_bits_) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   if (from.has_communication_parameters()) {
     communication_parameters_ = new ::Communication_proto::Communication_parameter(*from.communication_parameters_);
@@ -501,7 +477,6 @@ Communication_parameter_all::Communication_parameter_all(const Communication_par
 }
 
 void Communication_parameter_all::SharedCtor() {
-  _cached_size_ = 0;
   communication_parameters_ = NULL;
 }
 
@@ -515,9 +490,7 @@ void Communication_parameter_all::SharedDtor() {
 }
 
 void Communication_parameter_all::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* Communication_parameter_all::descriptor() {
   ::protobuf_communication_2eproto::protobuf_AssignDescriptorsOnce();
@@ -525,17 +498,10 @@ const ::google::protobuf::Descriptor* Communication_parameter_all::descriptor()
 }
 
 const Communication_parameter_all& Communication_parameter_all::default_instance() {
-  ::protobuf_communication_2eproto::InitDefaultsCommunication_parameter_all();
+  ::google::protobuf::internal::InitSCC(&protobuf_communication_2eproto::scc_info_Communication_parameter_all.base);
   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)
@@ -558,7 +524,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)) {
@@ -604,7 +570,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->communication_parameters_, output);
+      1, this->_internal_communication_parameters(), output);
   }
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -626,7 +592,7 @@ void Communication_parameter_all::SerializeWithCachedSizes(
   if (cached_has_bits & 0x00000001u) {
     target = ::google::protobuf::internal::WireFormatLite::
       InternalWriteMessageToArray(
-        1, *this->communication_parameters_, deterministic, target);
+        1, this->_internal_communication_parameters(), deterministic, target);
   }
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -650,13 +616,11 @@ size_t Communication_parameter_all::ByteSizeLong() const {
   if (has_communication_parameters()) {
     total_size += 1 +
       ::google::protobuf::internal::WireFormatLite::MessageSize(
-        *this->communication_parameters_);
+        *communication_parameters_);
   }
 
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -714,7 +678,6 @@ 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 {
@@ -725,5 +688,15 @@ 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)

+ 65 - 47
plc调度节点/communication/communication.pb.h

@@ -1,19 +1,19 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: communication.proto
 
-#ifndef PROTOBUF_communication_2eproto__INCLUDED
-#define PROTOBUF_communication_2eproto__INCLUDED
+#ifndef PROTOBUF_INCLUDED_communication_2eproto
+#define PROTOBUF_INCLUDED_communication_2eproto
 
 #include <string>
 
 #include <google/protobuf/stubs/common.h>
 
-#if GOOGLE_PROTOBUF_VERSION < 3005000
+#if GOOGLE_PROTOBUF_VERSION < 3006001
 #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 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#if 3006001 < 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,12 +24,14 @@
 #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.
@@ -42,14 +44,6 @@ 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;
@@ -59,6 +53,12 @@ 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 PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     0;
 
   void Swap(Communication_parameter* other);
@@ -114,28 +114,33 @@ class Communication_parameter : public ::google::protobuf::Message /* @@protoc_i
 
   // implements Message ----------------------------------------------
 
-  inline Communication_parameter* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline Communication_parameter* New() const final {
+    return CreateMaybeMessage<Communication_parameter>(NULL);
+  }
 
-  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;
+  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;
   void CopyFrom(const Communication_parameter& from);
   void MergeFrom(const Communication_parameter& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(Communication_parameter* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -146,7 +151,7 @@ class Communication_parameter : public ::google::protobuf::Message /* @@protoc_i
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -196,11 +201,10 @@ class Communication_parameter : public ::google::protobuf::Message /* @@protoc_i
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
+  mutable ::google::protobuf::internal::CachedSize _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();
 };
 // -------------------------------------------------------------------
 
@@ -245,7 +249,7 @@ class Communication_parameter_all : public ::google::protobuf::Message /* @@prot
     return reinterpret_cast<const Communication_parameter_all*>(
                &_Communication_parameter_all_default_instance_);
   }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     1;
 
   void Swap(Communication_parameter_all* other);
@@ -255,28 +259,33 @@ class Communication_parameter_all : public ::google::protobuf::Message /* @@prot
 
   // implements Message ----------------------------------------------
 
-  inline Communication_parameter_all* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline Communication_parameter_all* New() const final {
+    return CreateMaybeMessage<Communication_parameter_all>(NULL);
+  }
 
-  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;
+  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;
   void CopyFrom(const Communication_parameter_all& from);
   void MergeFrom(const Communication_parameter_all& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(Communication_parameter_all* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -287,7 +296,7 @@ class Communication_parameter_all : public ::google::protobuf::Message /* @@prot
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -297,6 +306,9 @@ 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();
@@ -309,10 +321,9 @@ class Communication_parameter_all : public ::google::protobuf::Message /* @@prot
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
   ::Communication_proto::Communication_parameter* communication_parameters_;
   friend struct ::protobuf_communication_2eproto::TableStruct;
-  friend void ::protobuf_communication_2eproto::InitDefaultsCommunication_parameter_allImpl();
 };
 // ===================================================================
 
@@ -375,8 +386,11 @@ 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_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return bind_string_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Communication_parameter::set_allocated_bind_string(::std::string* bind_string) {
   if (bind_string != NULL) {
@@ -475,6 +489,9 @@ 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)
@@ -491,7 +508,8 @@ 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) {
-    communication_parameters_ = new ::Communication_proto::Communication_parameter;
+    auto* p = CreateMaybeMessage<::Communication_proto::Communication_parameter>(GetArenaNoVirtual());
+    communication_parameters_ = p;
   }
   // @@protoc_insertion_point(field_mutable:Communication_proto.Communication_parameter_all.communication_parameters)
   return communication_parameters_;
@@ -527,4 +545,4 @@ inline void Communication_parameter_all::set_allocated_communication_parameters(
 
 // @@protoc_insertion_point(global_scope)
 
-#endif  // PROTOBUF_communication_2eproto__INCLUDED
+#endif  // PROTOBUF_INCLUDED_communication_2eproto

+ 59 - 86
plc调度节点/dispatch/database_communication_configuration.pb.cc

@@ -7,7 +7,6 @@
 
 #include <google/protobuf/stubs/common.h>
 #include <google/protobuf/stubs/port.h>
-#include <google/protobuf/stubs/once.h>
 #include <google/protobuf/io/coded_stream.h>
 #include <google/protobuf/wire_format_lite_inl.h>
 #include <google/protobuf/descriptor.h>
@@ -19,6 +18,10 @@
 #include "third_party/protobuf/version.h"
 #endif
 // @@protoc_insertion_point(includes)
+
+namespace protobuf_database_5fcommunication_5fconfiguration_2eproto {
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_database_5fcommunication_5fconfiguration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Database_communication_configuration;
+}  // namespace protobuf_database_5fcommunication_5fconfiguration_2eproto
 namespace parkspace_proto {
 class Database_communication_configurationDefaultTypeInternal {
  public:
@@ -32,14 +35,9 @@ class Database_communication_configuration_allDefaultTypeInternal {
 } _Database_communication_configuration_all_default_instance_;
 }  // namespace parkspace_proto
 namespace protobuf_database_5fcommunication_5fconfiguration_2eproto {
-void InitDefaultsDatabase_communication_configurationImpl() {
+static void InitDefaultsDatabase_communication_configuration() {
   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 = &::parkspace_proto::_Database_communication_configuration_default_instance_;
     new (ptr) ::parkspace_proto::Database_communication_configuration();
@@ -48,20 +46,12 @@ void InitDefaultsDatabase_communication_configurationImpl() {
   ::parkspace_proto::Database_communication_configuration::InitAsDefaultInstance();
 }
 
-void InitDefaultsDatabase_communication_configuration() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDatabase_communication_configurationImpl);
-}
+::google::protobuf::internal::SCCInfo<0> scc_info_Database_communication_configuration =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDatabase_communication_configuration}, {}};
 
-void InitDefaultsDatabase_communication_configuration_allImpl() {
+static void InitDefaultsDatabase_communication_configuration_all() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
-  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
-#else
-  ::google::protobuf::internal::InitProtobufDefaults();
-#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
-  protobuf_database_5fcommunication_5fconfiguration_2eproto::InitDefaultsDatabase_communication_configuration();
   {
     void* ptr = &::parkspace_proto::_Database_communication_configuration_all_default_instance_;
     new (ptr) ::parkspace_proto::Database_communication_configuration_all();
@@ -70,9 +60,13 @@ void InitDefaultsDatabase_communication_configuration_allImpl() {
   ::parkspace_proto::Database_communication_configuration_all::InitAsDefaultInstance();
 }
 
-void InitDefaultsDatabase_communication_configuration_all() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDatabase_communication_configuration_allImpl);
+::google::protobuf::internal::SCCInfo<1> scc_info_Database_communication_configuration_all =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDatabase_communication_configuration_all}, {
+      &protobuf_database_5fcommunication_5fconfiguration_2eproto::scc_info_Database_communication_configuration.base,}};
+
+void InitDefaults() {
+  ::google::protobuf::internal::InitSCC(&scc_info_Database_communication_configuration.base);
+  ::google::protobuf::internal::InitSCC(&scc_info_Database_communication_configuration_all.base);
 }
 
 ::google::protobuf::Metadata file_level_metadata[2];
@@ -115,15 +109,14 @@ static ::google::protobuf::Message const * const file_default_instances[] = {
 
 void protobuf_AssignDescriptors() {
   AddDescriptors();
-  ::google::protobuf::MessageFactory* factory = NULL;
   AssignDescriptors(
-      "database_communication_configuration.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+      "database_communication_configuration.proto", schemas, file_default_instances, TableStruct::offsets,
       file_level_metadata, NULL, NULL);
 }
 
 void protobuf_AssignDescriptorsOnce() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+  static ::google::protobuf::internal::once_flag once;
+  ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
 }
 
 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
@@ -153,8 +146,8 @@ void AddDescriptorsImpl() {
 }
 
 void AddDescriptors() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+  static ::google::protobuf::internal::once_flag once;
+  ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
 }
 // Force AddDescriptors() to be called at dynamic initialization time.
 struct StaticDescriptorInitializer {
@@ -180,17 +173,15 @@ const int Database_communication_configuration::kDbConnPoolSizeFieldNumber;
 
 Database_communication_configuration::Database_communication_configuration()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_database_5fcommunication_5fconfiguration_2eproto::InitDefaultsDatabase_communication_configuration();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_database_5fcommunication_5fconfiguration_2eproto::scc_info_Database_communication_configuration.base);
   SharedCtor();
   // @@protoc_insertion_point(constructor:parkspace_proto.Database_communication_configuration)
 }
 Database_communication_configuration::Database_communication_configuration(const Database_communication_configuration& from)
   : ::google::protobuf::Message(),
       _internal_metadata_(NULL),
-      _has_bits_(from._has_bits_),
-      _cached_size_(0) {
+      _has_bits_(from._has_bits_) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   db_ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   if (from.has_db_ip()) {
@@ -215,7 +206,6 @@ Database_communication_configuration::Database_communication_configuration(const
 }
 
 void Database_communication_configuration::SharedCtor() {
-  _cached_size_ = 0;
   db_ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   db_username_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   db_passwd_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
@@ -238,9 +228,7 @@ void Database_communication_configuration::SharedDtor() {
 }
 
 void Database_communication_configuration::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* Database_communication_configuration::descriptor() {
   ::protobuf_database_5fcommunication_5fconfiguration_2eproto::protobuf_AssignDescriptorsOnce();
@@ -248,17 +236,10 @@ const ::google::protobuf::Descriptor* Database_communication_configuration::desc
 }
 
 const Database_communication_configuration& Database_communication_configuration::default_instance() {
-  ::protobuf_database_5fcommunication_5fconfiguration_2eproto::InitDefaultsDatabase_communication_configuration();
+  ::google::protobuf::internal::InitSCC(&protobuf_database_5fcommunication_5fconfiguration_2eproto::scc_info_Database_communication_configuration.base);
   return *internal_default_instance();
 }
 
-Database_communication_configuration* Database_communication_configuration::New(::google::protobuf::Arena* arena) const {
-  Database_communication_configuration* n = new Database_communication_configuration;
-  if (arena != NULL) {
-    arena->Own(n);
-  }
-  return n;
-}
 
 void Database_communication_configuration::Clear() {
 // @@protoc_insertion_point(message_clear_start:parkspace_proto.Database_communication_configuration)
@@ -269,20 +250,16 @@ void Database_communication_configuration::Clear() {
   cached_has_bits = _has_bits_[0];
   if (cached_has_bits & 15u) {
     if (cached_has_bits & 0x00000001u) {
-      GOOGLE_DCHECK(!db_ip_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-      (*db_ip_.UnsafeRawStringPointer())->clear();
+      db_ip_.ClearNonDefaultToEmptyNoArena();
     }
     if (cached_has_bits & 0x00000002u) {
-      GOOGLE_DCHECK(!db_username_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-      (*db_username_.UnsafeRawStringPointer())->clear();
+      db_username_.ClearNonDefaultToEmptyNoArena();
     }
     if (cached_has_bits & 0x00000004u) {
-      GOOGLE_DCHECK(!db_passwd_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-      (*db_passwd_.UnsafeRawStringPointer())->clear();
+      db_passwd_.ClearNonDefaultToEmptyNoArena();
     }
     if (cached_has_bits & 0x00000008u) {
-      GOOGLE_DCHECK(!db_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-      (*db_name_.UnsafeRawStringPointer())->clear();
+      db_name_.ClearNonDefaultToEmptyNoArena();
     }
   }
   if (cached_has_bits & 48u) {
@@ -300,7 +277,7 @@ bool Database_communication_configuration::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:parkspace_proto.Database_communication_configuration)
   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)) {
@@ -632,9 +609,7 @@ size_t Database_communication_configuration::ByteSizeLong() const {
   }
 
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -713,15 +688,18 @@ void Database_communication_configuration::Swap(Database_communication_configura
 }
 void Database_communication_configuration::InternalSwap(Database_communication_configuration* other) {
   using std::swap;
-  db_ip_.Swap(&other->db_ip_);
-  db_username_.Swap(&other->db_username_);
-  db_passwd_.Swap(&other->db_passwd_);
-  db_name_.Swap(&other->db_name_);
+  db_ip_.Swap(&other->db_ip_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+    GetArenaNoVirtual());
+  db_username_.Swap(&other->db_username_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+    GetArenaNoVirtual());
+  db_passwd_.Swap(&other->db_passwd_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+    GetArenaNoVirtual());
+  db_name_.Swap(&other->db_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+    GetArenaNoVirtual());
   swap(db_port_, other->db_port_);
   swap(db_conn_pool_size_, other->db_conn_pool_size_);
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
-  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata Database_communication_configuration::GetMetadata() const {
@@ -742,17 +720,15 @@ const int Database_communication_configuration_all::kDatabaseCommunicationConfig
 
 Database_communication_configuration_all::Database_communication_configuration_all()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_database_5fcommunication_5fconfiguration_2eproto::InitDefaultsDatabase_communication_configuration_all();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_database_5fcommunication_5fconfiguration_2eproto::scc_info_Database_communication_configuration_all.base);
   SharedCtor();
   // @@protoc_insertion_point(constructor:parkspace_proto.Database_communication_configuration_all)
 }
 Database_communication_configuration_all::Database_communication_configuration_all(const Database_communication_configuration_all& from)
   : ::google::protobuf::Message(),
       _internal_metadata_(NULL),
-      _has_bits_(from._has_bits_),
-      _cached_size_(0) {
+      _has_bits_(from._has_bits_) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   if (from.has_database_communication_configurations()) {
     database_communication_configurations_ = new ::parkspace_proto::Database_communication_configuration(*from.database_communication_configurations_);
@@ -763,7 +739,6 @@ Database_communication_configuration_all::Database_communication_configuration_a
 }
 
 void Database_communication_configuration_all::SharedCtor() {
-  _cached_size_ = 0;
   database_communication_configurations_ = NULL;
 }
 
@@ -777,9 +752,7 @@ void Database_communication_configuration_all::SharedDtor() {
 }
 
 void Database_communication_configuration_all::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* Database_communication_configuration_all::descriptor() {
   ::protobuf_database_5fcommunication_5fconfiguration_2eproto::protobuf_AssignDescriptorsOnce();
@@ -787,17 +760,10 @@ const ::google::protobuf::Descriptor* Database_communication_configuration_all::
 }
 
 const Database_communication_configuration_all& Database_communication_configuration_all::default_instance() {
-  ::protobuf_database_5fcommunication_5fconfiguration_2eproto::InitDefaultsDatabase_communication_configuration_all();
+  ::google::protobuf::internal::InitSCC(&protobuf_database_5fcommunication_5fconfiguration_2eproto::scc_info_Database_communication_configuration_all.base);
   return *internal_default_instance();
 }
 
-Database_communication_configuration_all* Database_communication_configuration_all::New(::google::protobuf::Arena* arena) const {
-  Database_communication_configuration_all* n = new Database_communication_configuration_all;
-  if (arena != NULL) {
-    arena->Own(n);
-  }
-  return n;
-}
 
 void Database_communication_configuration_all::Clear() {
 // @@protoc_insertion_point(message_clear_start:parkspace_proto.Database_communication_configuration_all)
@@ -820,7 +786,7 @@ bool Database_communication_configuration_all::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:parkspace_proto.Database_communication_configuration_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)) {
@@ -866,7 +832,7 @@ void Database_communication_configuration_all::SerializeWithCachedSizes(
   // optional .parkspace_proto.Database_communication_configuration database_communication_configurations = 1;
   if (cached_has_bits & 0x00000001u) {
     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
-      1, *this->database_communication_configurations_, output);
+      1, this->_internal_database_communication_configurations(), output);
   }
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -888,7 +854,7 @@ void Database_communication_configuration_all::SerializeWithCachedSizes(
   if (cached_has_bits & 0x00000001u) {
     target = ::google::protobuf::internal::WireFormatLite::
       InternalWriteMessageToArray(
-        1, *this->database_communication_configurations_, deterministic, target);
+        1, this->_internal_database_communication_configurations(), deterministic, target);
   }
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -912,13 +878,11 @@ size_t Database_communication_configuration_all::ByteSizeLong() const {
   if (has_database_communication_configurations()) {
     total_size += 1 +
       ::google::protobuf::internal::WireFormatLite::MessageSize(
-        *this->database_communication_configurations_);
+        *database_communication_configurations_);
   }
 
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -979,7 +943,6 @@ void Database_communication_configuration_all::InternalSwap(Database_communicati
   swap(database_communication_configurations_, other->database_communication_configurations_);
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
-  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata Database_communication_configuration_all::GetMetadata() const {
@@ -990,5 +953,15 @@ void Database_communication_configuration_all::InternalSwap(Database_communicati
 
 // @@protoc_insertion_point(namespace_scope)
 }  // namespace parkspace_proto
+namespace google {
+namespace protobuf {
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::parkspace_proto::Database_communication_configuration* Arena::CreateMaybeMessage< ::parkspace_proto::Database_communication_configuration >(Arena* arena) {
+  return Arena::CreateInternal< ::parkspace_proto::Database_communication_configuration >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::parkspace_proto::Database_communication_configuration_all* Arena::CreateMaybeMessage< ::parkspace_proto::Database_communication_configuration_all >(Arena* arena) {
+  return Arena::CreateInternal< ::parkspace_proto::Database_communication_configuration_all >(arena);
+}
+}  // namespace protobuf
+}  // namespace google
 
 // @@protoc_insertion_point(global_scope)

+ 77 - 50
plc调度节点/dispatch/database_communication_configuration.pb.h

@@ -1,19 +1,19 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: database_communication_configuration.proto
 
-#ifndef PROTOBUF_database_5fcommunication_5fconfiguration_2eproto__INCLUDED
-#define PROTOBUF_database_5fcommunication_5fconfiguration_2eproto__INCLUDED
+#ifndef PROTOBUF_INCLUDED_database_5fcommunication_5fconfiguration_2eproto
+#define PROTOBUF_INCLUDED_database_5fcommunication_5fconfiguration_2eproto
 
 #include <string>
 
 #include <google/protobuf/stubs/common.h>
 
-#if GOOGLE_PROTOBUF_VERSION < 3005000
+#if GOOGLE_PROTOBUF_VERSION < 3006001
 #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 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#if 3006001 < 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,12 +24,14 @@
 #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_database_5fcommunication_5fconfiguration_2eproto 
 
 namespace protobuf_database_5fcommunication_5fconfiguration_2eproto {
 // Internal implementation detail -- do not use these members.
@@ -42,14 +44,6 @@ struct TableStruct {
   static const ::google::protobuf::uint32 offsets[];
 };
 void AddDescriptors();
-void InitDefaultsDatabase_communication_configurationImpl();
-void InitDefaultsDatabase_communication_configuration();
-void InitDefaultsDatabase_communication_configuration_allImpl();
-void InitDefaultsDatabase_communication_configuration_all();
-inline void InitDefaults() {
-  InitDefaultsDatabase_communication_configuration();
-  InitDefaultsDatabase_communication_configuration_all();
-}
 }  // namespace protobuf_database_5fcommunication_5fconfiguration_2eproto
 namespace parkspace_proto {
 class Database_communication_configuration;
@@ -59,6 +53,12 @@ class Database_communication_configuration_all;
 class Database_communication_configuration_allDefaultTypeInternal;
 extern Database_communication_configuration_allDefaultTypeInternal _Database_communication_configuration_all_default_instance_;
 }  // namespace parkspace_proto
+namespace google {
+namespace protobuf {
+template<> ::parkspace_proto::Database_communication_configuration* Arena::CreateMaybeMessage<::parkspace_proto::Database_communication_configuration>(Arena*);
+template<> ::parkspace_proto::Database_communication_configuration_all* Arena::CreateMaybeMessage<::parkspace_proto::Database_communication_configuration_all>(Arena*);
+}  // namespace protobuf
+}  // namespace google
 namespace parkspace_proto {
 
 // ===================================================================
@@ -104,7 +104,7 @@ class Database_communication_configuration : public ::google::protobuf::Message
     return reinterpret_cast<const Database_communication_configuration*>(
                &_Database_communication_configuration_default_instance_);
   }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     0;
 
   void Swap(Database_communication_configuration* other);
@@ -114,28 +114,33 @@ class Database_communication_configuration : public ::google::protobuf::Message
 
   // implements Message ----------------------------------------------
 
-  inline Database_communication_configuration* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline Database_communication_configuration* New() const final {
+    return CreateMaybeMessage<Database_communication_configuration>(NULL);
+  }
 
-  Database_communication_configuration* 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;
+  Database_communication_configuration* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage<Database_communication_configuration>(arena);
+  }
+  void CopyFrom(const ::google::protobuf::Message& from) final;
+  void MergeFrom(const ::google::protobuf::Message& from) final;
   void CopyFrom(const Database_communication_configuration& from);
   void MergeFrom(const Database_communication_configuration& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(Database_communication_configuration* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -146,7 +151,7 @@ class Database_communication_configuration : public ::google::protobuf::Message
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -246,7 +251,7 @@ class Database_communication_configuration : public ::google::protobuf::Message
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
   ::google::protobuf::internal::ArenaStringPtr db_ip_;
   ::google::protobuf::internal::ArenaStringPtr db_username_;
   ::google::protobuf::internal::ArenaStringPtr db_passwd_;
@@ -254,7 +259,6 @@ class Database_communication_configuration : public ::google::protobuf::Message
   ::google::protobuf::int64 db_port_;
   ::google::protobuf::int64 db_conn_pool_size_;
   friend struct ::protobuf_database_5fcommunication_5fconfiguration_2eproto::TableStruct;
-  friend void ::protobuf_database_5fcommunication_5fconfiguration_2eproto::InitDefaultsDatabase_communication_configurationImpl();
 };
 // -------------------------------------------------------------------
 
@@ -299,7 +303,7 @@ class Database_communication_configuration_all : public ::google::protobuf::Mess
     return reinterpret_cast<const Database_communication_configuration_all*>(
                &_Database_communication_configuration_all_default_instance_);
   }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     1;
 
   void Swap(Database_communication_configuration_all* other);
@@ -309,28 +313,33 @@ class Database_communication_configuration_all : public ::google::protobuf::Mess
 
   // implements Message ----------------------------------------------
 
-  inline Database_communication_configuration_all* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline Database_communication_configuration_all* New() const final {
+    return CreateMaybeMessage<Database_communication_configuration_all>(NULL);
+  }
 
-  Database_communication_configuration_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;
+  Database_communication_configuration_all* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage<Database_communication_configuration_all>(arena);
+  }
+  void CopyFrom(const ::google::protobuf::Message& from) final;
+  void MergeFrom(const ::google::protobuf::Message& from) final;
   void CopyFrom(const Database_communication_configuration_all& from);
   void MergeFrom(const Database_communication_configuration_all& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(Database_communication_configuration_all* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -341,7 +350,7 @@ class Database_communication_configuration_all : public ::google::protobuf::Mess
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -351,6 +360,9 @@ class Database_communication_configuration_all : public ::google::protobuf::Mess
   bool has_database_communication_configurations() const;
   void clear_database_communication_configurations();
   static const int kDatabaseCommunicationConfigurationsFieldNumber = 1;
+  private:
+  const ::parkspace_proto::Database_communication_configuration& _internal_database_communication_configurations() const;
+  public:
   const ::parkspace_proto::Database_communication_configuration& database_communication_configurations() const;
   ::parkspace_proto::Database_communication_configuration* release_database_communication_configurations();
   ::parkspace_proto::Database_communication_configuration* mutable_database_communication_configurations();
@@ -363,10 +375,9 @@ class Database_communication_configuration_all : public ::google::protobuf::Mess
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
   ::parkspace_proto::Database_communication_configuration* database_communication_configurations_;
   friend struct ::protobuf_database_5fcommunication_5fconfiguration_2eproto::TableStruct;
-  friend void ::protobuf_database_5fcommunication_5fconfiguration_2eproto::InitDefaultsDatabase_communication_configuration_allImpl();
 };
 // ===================================================================
 
@@ -429,8 +440,11 @@ inline ::std::string* Database_communication_configuration::mutable_db_ip() {
 }
 inline ::std::string* Database_communication_configuration::release_db_ip() {
   // @@protoc_insertion_point(field_release:parkspace_proto.Database_communication_configuration.db_ip)
+  if (!has_db_ip()) {
+    return NULL;
+  }
   clear_has_db_ip();
-  return db_ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return db_ip_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Database_communication_configuration::set_allocated_db_ip(::std::string* db_ip) {
   if (db_ip != NULL) {
@@ -516,8 +530,11 @@ inline ::std::string* Database_communication_configuration::mutable_db_username(
 }
 inline ::std::string* Database_communication_configuration::release_db_username() {
   // @@protoc_insertion_point(field_release:parkspace_proto.Database_communication_configuration.db_username)
+  if (!has_db_username()) {
+    return NULL;
+  }
   clear_has_db_username();
-  return db_username_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return db_username_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Database_communication_configuration::set_allocated_db_username(::std::string* db_username) {
   if (db_username != NULL) {
@@ -579,8 +596,11 @@ inline ::std::string* Database_communication_configuration::mutable_db_passwd()
 }
 inline ::std::string* Database_communication_configuration::release_db_passwd() {
   // @@protoc_insertion_point(field_release:parkspace_proto.Database_communication_configuration.db_passwd)
+  if (!has_db_passwd()) {
+    return NULL;
+  }
   clear_has_db_passwd();
-  return db_passwd_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return db_passwd_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Database_communication_configuration::set_allocated_db_passwd(::std::string* db_passwd) {
   if (db_passwd != NULL) {
@@ -642,8 +662,11 @@ inline ::std::string* Database_communication_configuration::mutable_db_name() {
 }
 inline ::std::string* Database_communication_configuration::release_db_name() {
   // @@protoc_insertion_point(field_release:parkspace_proto.Database_communication_configuration.db_name)
+  if (!has_db_name()) {
+    return NULL;
+  }
   clear_has_db_name();
-  return db_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return db_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Database_communication_configuration::set_allocated_db_name(::std::string* db_name) {
   if (db_name != NULL) {
@@ -697,6 +720,9 @@ inline void Database_communication_configuration_all::clear_database_communicati
   if (database_communication_configurations_ != NULL) database_communication_configurations_->Clear();
   clear_has_database_communication_configurations();
 }
+inline const ::parkspace_proto::Database_communication_configuration& Database_communication_configuration_all::_internal_database_communication_configurations() const {
+  return *database_communication_configurations_;
+}
 inline const ::parkspace_proto::Database_communication_configuration& Database_communication_configuration_all::database_communication_configurations() const {
   const ::parkspace_proto::Database_communication_configuration* p = database_communication_configurations_;
   // @@protoc_insertion_point(field_get:parkspace_proto.Database_communication_configuration_all.database_communication_configurations)
@@ -713,7 +739,8 @@ inline ::parkspace_proto::Database_communication_configuration* Database_communi
 inline ::parkspace_proto::Database_communication_configuration* Database_communication_configuration_all::mutable_database_communication_configurations() {
   set_has_database_communication_configurations();
   if (database_communication_configurations_ == NULL) {
-    database_communication_configurations_ = new ::parkspace_proto::Database_communication_configuration;
+    auto* p = CreateMaybeMessage<::parkspace_proto::Database_communication_configuration>(GetArenaNoVirtual());
+    database_communication_configurations_ = p;
   }
   // @@protoc_insertion_point(field_mutable:parkspace_proto.Database_communication_configuration_all.database_communication_configurations)
   return database_communication_configurations_;
@@ -749,4 +776,4 @@ inline void Database_communication_configuration_all::set_allocated_database_com
 
 // @@protoc_insertion_point(global_scope)
 
-#endif  // PROTOBUF_database_5fcommunication_5fconfiguration_2eproto__INCLUDED
+#endif  // PROTOBUF_INCLUDED_database_5fcommunication_5fconfiguration_2eproto

Разница между файлами не показана из-за своего большого размера
+ 266 - 461
plc调度节点/dispatch/dispatch_parameter.pb.cc


Разница между файлами не показана из-за своего большого размера
+ 379 - 328
plc调度节点/dispatch/dispatch_parameter.pb.h


Разница между файлами не показана из-за своего большого размера
+ 219 - 377
plc调度节点/message/message.pb.cc


Разница между файлами не показана из-за своего большого размера
+ 321 - 220
plc调度节点/message/message.pb.h


+ 137 - 253
plc调度节点/message/message_base.pb.cc

@@ -7,7 +7,6 @@
 
 #include <google/protobuf/stubs/common.h>
 #include <google/protobuf/stubs/port.h>
-#include <google/protobuf/stubs/once.h>
 #include <google/protobuf/io/coded_stream.h>
 #include <google/protobuf/wire_format_lite_inl.h>
 #include <google/protobuf/descriptor.h>
@@ -19,6 +18,11 @@
 #include "third_party/protobuf/version.h"
 #endif
 // @@protoc_insertion_point(includes)
+
+namespace protobuf_message_5fbase_2eproto {
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Base_info;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Car_info;
+}  // namespace protobuf_message_5fbase_2eproto
 namespace message {
 class Base_infoDefaultTypeInternal {
  public:
@@ -57,14 +61,9 @@ class Id_structDefaultTypeInternal {
 } _Id_struct_default_instance_;
 }  // namespace message
 namespace protobuf_message_5fbase_2eproto {
-void InitDefaultsBase_infoImpl() {
+static void InitDefaultsBase_info() {
   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();
@@ -73,20 +72,12 @@ void InitDefaultsBase_infoImpl() {
   ::message::Base_info::InitAsDefaultInstance();
 }
 
-void InitDefaultsBase_info() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBase_infoImpl);
-}
+::google::protobuf::internal::SCCInfo<0> scc_info_Base_info =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBase_info}, {}};
 
-void InitDefaultsBase_msgImpl() {
+static void InitDefaultsBase_msg() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
-  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
-#else
-  ::google::protobuf::internal::InitProtobufDefaults();
-#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
-  protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
   {
     void* ptr = &::message::_Base_msg_default_instance_;
     new (ptr) ::message::Base_msg();
@@ -95,19 +86,13 @@ void InitDefaultsBase_msgImpl() {
   ::message::Base_msg::InitAsDefaultInstance();
 }
 
-void InitDefaultsBase_msg() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBase_msgImpl);
-}
+::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 InitDefaultsError_managerImpl() {
+static void InitDefaultsError_manager() {
   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();
@@ -116,19 +101,12 @@ void InitDefaultsError_managerImpl() {
   ::message::Error_manager::InitAsDefaultInstance();
 }
 
-void InitDefaultsError_manager() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsError_managerImpl);
-}
+::google::protobuf::internal::SCCInfo<0> scc_info_Error_manager =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsError_manager}, {}};
 
-void InitDefaultsLocate_informationImpl() {
+static void InitDefaultsLocate_information() {
   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();
@@ -137,19 +115,12 @@ void InitDefaultsLocate_informationImpl() {
   ::message::Locate_information::InitAsDefaultInstance();
 }
 
-void InitDefaultsLocate_information() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLocate_informationImpl);
-}
+::google::protobuf::internal::SCCInfo<0> scc_info_Locate_information =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLocate_information}, {}};
 
-void InitDefaultsCar_infoImpl() {
+static void InitDefaultsCar_info() {
   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();
@@ -158,20 +129,12 @@ void InitDefaultsCar_infoImpl() {
   ::message::Car_info::InitAsDefaultInstance();
 }
 
-void InitDefaultsCar_info() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCar_infoImpl);
-}
+::google::protobuf::internal::SCCInfo<0> scc_info_Car_info =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCar_info}, {}};
 
-void InitDefaultsParkspace_infoImpl() {
+static void InitDefaultsParkspace_info() {
   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();
@@ -180,19 +143,13 @@ void InitDefaultsParkspace_infoImpl() {
   ::message::Parkspace_info::InitAsDefaultInstance();
 }
 
-void InitDefaultsParkspace_info() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_infoImpl);
-}
+::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 InitDefaultsId_structImpl() {
+static void InitDefaultsId_struct() {
   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::_Id_struct_default_instance_;
     new (ptr) ::message::Id_struct();
@@ -201,9 +158,17 @@ void InitDefaultsId_structImpl() {
   ::message::Id_struct::InitAsDefaultInstance();
 }
 
-void InitDefaultsId_struct() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsId_structImpl);
+::google::protobuf::internal::SCCInfo<0> scc_info_Id_struct =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsId_struct}, {}};
+
+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);
+  ::google::protobuf::internal::InitSCC(&scc_info_Id_struct.base);
 }
 
 ::google::protobuf::Metadata file_level_metadata[7];
@@ -360,15 +325,14 @@ 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, factory,
+      "message_base.proto", schemas, file_default_instances, TableStruct::offsets,
       file_level_metadata, file_level_enum_descriptors, NULL);
 }
 
 void protobuf_AssignDescriptorsOnce() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+  static ::google::protobuf::internal::once_flag once;
+  ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
 }
 
 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
@@ -507,8 +471,8 @@ void AddDescriptorsImpl() {
 }
 
 void AddDescriptors() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+  static ::google::protobuf::internal::once_flag once;
+  ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
 }
 // Force AddDescriptors() to be called at dynamic initialization time.
 struct StaticDescriptorInitializer {
@@ -797,17 +761,15 @@ const int Base_info::kReceiverFieldNumber;
 
 Base_info::Base_info()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_message_5fbase_2eproto::scc_info_Base_info.base);
   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_),
-      _cached_size_(0) {
+      _has_bits_(from._has_bits_) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   ::memcpy(&msg_type_, &from.msg_type_,
     static_cast<size_t>(reinterpret_cast<char*>(&receiver_) -
@@ -816,7 +778,6 @@ 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_));
@@ -831,9 +792,7 @@ void Base_info::SharedDtor() {
 }
 
 void Base_info::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* Base_info::descriptor() {
   ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
@@ -841,17 +800,10 @@ const ::google::protobuf::Descriptor* Base_info::descriptor() {
 }
 
 const Base_info& Base_info::default_instance() {
-  ::protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
+  ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Base_info.base);
   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)
@@ -875,7 +827,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)) {
@@ -1106,9 +1058,7 @@ size_t Base_info::ByteSizeLong() const {
   }
 
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -1183,7 +1133,6 @@ 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 {
@@ -1204,17 +1153,15 @@ const int Base_msg::kBaseInfoFieldNumber;
 
 Base_msg::Base_msg()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_message_5fbase_2eproto::InitDefaultsBase_msg();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_message_5fbase_2eproto::scc_info_Base_msg.base);
   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_),
-      _cached_size_(0) {
+      _has_bits_(from._has_bits_) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   if (from.has_base_info()) {
     base_info_ = new ::message::Base_info(*from.base_info_);
@@ -1225,7 +1172,6 @@ Base_msg::Base_msg(const Base_msg& from)
 }
 
 void Base_msg::SharedCtor() {
-  _cached_size_ = 0;
   base_info_ = NULL;
 }
 
@@ -1239,9 +1185,7 @@ void Base_msg::SharedDtor() {
 }
 
 void Base_msg::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* Base_msg::descriptor() {
   ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
@@ -1249,17 +1193,10 @@ const ::google::protobuf::Descriptor* Base_msg::descriptor() {
 }
 
 const Base_msg& Base_msg::default_instance() {
-  ::protobuf_message_5fbase_2eproto::InitDefaultsBase_msg();
+  ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Base_msg.base);
   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)
@@ -1282,7 +1219,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)) {
@@ -1328,7 +1265,7 @@ void Base_msg::SerializeWithCachedSizes(
   // required .message.Base_info base_info = 1;
   if (cached_has_bits & 0x00000001u) {
     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
-      1, *this->base_info_, output);
+      1, this->_internal_base_info(), output);
   }
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -1350,7 +1287,7 @@ void Base_msg::SerializeWithCachedSizes(
   if (cached_has_bits & 0x00000001u) {
     target = ::google::protobuf::internal::WireFormatLite::
       InternalWriteMessageToArray(
-        1, *this->base_info_, deterministic, target);
+        1, this->_internal_base_info(), deterministic, target);
   }
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -1374,12 +1311,10 @@ size_t Base_msg::ByteSizeLong() const {
   if (has_base_info()) {
     total_size += 1 +
       ::google::protobuf::internal::WireFormatLite::MessageSize(
-        *this->base_info_);
+        *base_info_);
   }
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -1441,7 +1376,6 @@ 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 {
@@ -1462,17 +1396,15 @@ const int Error_manager::kErrorDescriptionFieldNumber;
 
 Error_manager::Error_manager()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_message_5fbase_2eproto::scc_info_Error_manager.base);
   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_),
-      _cached_size_(0) {
+      _has_bits_(from._has_bits_) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   error_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   if (from.has_error_description()) {
@@ -1485,7 +1417,6 @@ 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_) -
@@ -1502,9 +1433,7 @@ void Error_manager::SharedDtor() {
 }
 
 void Error_manager::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* Error_manager::descriptor() {
   ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
@@ -1512,17 +1441,10 @@ const ::google::protobuf::Descriptor* Error_manager::descriptor() {
 }
 
 const Error_manager& Error_manager::default_instance() {
-  ::protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
+  ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Error_manager.base);
   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)
@@ -1532,8 +1454,7 @@ void Error_manager::Clear() {
 
   cached_has_bits = _has_bits_[0];
   if (cached_has_bits & 0x00000001u) {
-    GOOGLE_DCHECK(!error_description_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-    (*error_description_.UnsafeRawStringPointer())->clear();
+    error_description_.ClearNonDefaultToEmptyNoArena();
   }
   if (cached_has_bits & 6u) {
     ::memset(&error_code_, 0, static_cast<size_t>(
@@ -1550,7 +1471,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)) {
@@ -1726,9 +1647,7 @@ size_t Error_manager::ByteSizeLong() const {
   }
 
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -1795,12 +1714,12 @@ void Error_manager::Swap(Error_manager* other) {
 }
 void Error_manager::InternalSwap(Error_manager* other) {
   using std::swap;
-  error_description_.Swap(&other->error_description_);
+  error_description_.Swap(&other->error_description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+    GetArenaNoVirtual());
   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 {
@@ -1830,17 +1749,15 @@ const int Locate_information::kUniformedCarYFieldNumber;
 
 Locate_information::Locate_information()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_message_5fbase_2eproto::InitDefaultsLocate_information();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_message_5fbase_2eproto::scc_info_Locate_information.base);
   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_),
-      _cached_size_(0) {
+      _has_bits_(from._has_bits_) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   ::memcpy(&locate_x_, &from.locate_x_,
     static_cast<size_t>(reinterpret_cast<char*>(&uniformed_car_y_) -
@@ -1849,7 +1766,6 @@ 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_));
@@ -1864,9 +1780,7 @@ void Locate_information::SharedDtor() {
 }
 
 void Locate_information::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* Locate_information::descriptor() {
   ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
@@ -1874,17 +1788,10 @@ const ::google::protobuf::Descriptor* Locate_information::descriptor() {
 }
 
 const Locate_information& Locate_information::default_instance() {
-  ::protobuf_message_5fbase_2eproto::InitDefaultsLocate_information();
+  ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Locate_information.base);
   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)
@@ -1913,7 +1820,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)) {
@@ -2329,9 +2236,7 @@ size_t Locate_information::ByteSizeLong() const {
 
   }
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -2440,7 +2345,6 @@ 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 {
@@ -2465,17 +2369,15 @@ const int Car_info::kCarWheelWidthFieldNumber;
 
 Car_info::Car_info()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_message_5fbase_2eproto::InitDefaultsCar_info();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_message_5fbase_2eproto::scc_info_Car_info.base);
   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_),
-      _cached_size_(0) {
+      _has_bits_(from._has_bits_) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   if (from.has_license()) {
@@ -2492,7 +2394,6 @@ Car_info::Car_info(const Car_info& from)
 }
 
 void Car_info::SharedCtor() {
-  _cached_size_ = 0;
   license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   car_numberplate_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   ::memset(&car_length_, 0, static_cast<size_t>(
@@ -2511,9 +2412,7 @@ void Car_info::SharedDtor() {
 }
 
 void Car_info::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* Car_info::descriptor() {
   ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
@@ -2521,17 +2420,10 @@ const ::google::protobuf::Descriptor* Car_info::descriptor() {
 }
 
 const Car_info& Car_info::default_instance() {
-  ::protobuf_message_5fbase_2eproto::InitDefaultsCar_info();
+  ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Car_info.base);
   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)
@@ -2542,12 +2434,10 @@ void Car_info::Clear() {
   cached_has_bits = _has_bits_[0];
   if (cached_has_bits & 3u) {
     if (cached_has_bits & 0x00000001u) {
-      GOOGLE_DCHECK(!license_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-      (*license_.UnsafeRawStringPointer())->clear();
+      license_.ClearNonDefaultToEmptyNoArena();
     }
     if (cached_has_bits & 0x00000002u) {
-      GOOGLE_DCHECK(!car_numberplate_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-      (*car_numberplate_.UnsafeRawStringPointer())->clear();
+      car_numberplate_.ClearNonDefaultToEmptyNoArena();
     }
   }
   if (cached_has_bits & 124u) {
@@ -2565,7 +2455,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)) {
@@ -2864,9 +2754,7 @@ size_t Car_info::ByteSizeLong() const {
 
   }
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -2945,8 +2833,10 @@ void Car_info::Swap(Car_info* other) {
 }
 void Car_info::InternalSwap(Car_info* other) {
   using std::swap;
-  license_.Swap(&other->license_);
-  car_numberplate_.Swap(&other->car_numberplate_);
+  license_.Swap(&other->license_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+    GetArenaNoVirtual());
+  car_numberplate_.Swap(&other->car_numberplate_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+    GetArenaNoVirtual());
   swap(car_length_, other->car_length_);
   swap(car_width_, other->car_width_);
   swap(car_height_, other->car_height_);
@@ -2954,7 +2844,6 @@ 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 {
@@ -2991,17 +2880,15 @@ const int Parkspace_info::kCarTypeFieldNumber;
 
 Parkspace_info::Parkspace_info()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_message_5fbase_2eproto::scc_info_Parkspace_info.base);
   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_),
-      _cached_size_(0) {
+      _has_bits_(from._has_bits_) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   entry_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   if (from.has_entry_time()) {
@@ -3023,7 +2910,6 @@ 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>(
@@ -3043,9 +2929,7 @@ void Parkspace_info::SharedDtor() {
 }
 
 void Parkspace_info::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* Parkspace_info::descriptor() {
   ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
@@ -3053,17 +2937,10 @@ const ::google::protobuf::Descriptor* Parkspace_info::descriptor() {
 }
 
 const Parkspace_info& Parkspace_info::default_instance() {
-  ::protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info();
+  ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Parkspace_info.base);
   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)
@@ -3074,12 +2951,10 @@ void Parkspace_info::Clear() {
   cached_has_bits = _has_bits_[0];
   if (cached_has_bits & 7u) {
     if (cached_has_bits & 0x00000001u) {
-      GOOGLE_DCHECK(!entry_time_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-      (*entry_time_.UnsafeRawStringPointer())->clear();
+      entry_time_.ClearNonDefaultToEmptyNoArena();
     }
     if (cached_has_bits & 0x00000002u) {
-      GOOGLE_DCHECK(!leave_time_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-      (*leave_time_.UnsafeRawStringPointer())->clear();
+      leave_time_.ClearNonDefaultToEmptyNoArena();
     }
     if (cached_has_bits & 0x00000004u) {
       GOOGLE_DCHECK(car_info_ != NULL);
@@ -3107,7 +2982,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)) {
@@ -3470,7 +3345,7 @@ void Parkspace_info::SerializeWithCachedSizes(
   // optional .message.Car_info car_info = 11;
   if (cached_has_bits & 0x00000004u) {
     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
-      11, *this->car_info_, output);
+      11, this->_internal_car_info(), output);
   }
 
   // optional string entry_time = 12;
@@ -3588,7 +3463,7 @@ void Parkspace_info::SerializeWithCachedSizes(
   if (cached_has_bits & 0x00000004u) {
     target = ::google::protobuf::internal::WireFormatLite::
       InternalWriteMessageToArray(
-        11, *this->car_info_, deterministic, target);
+        11, this->_internal_car_info(), deterministic, target);
   }
 
   // optional string entry_time = 12;
@@ -3672,7 +3547,7 @@ size_t Parkspace_info::ByteSizeLong() const {
     if (has_car_info()) {
       total_size += 1 +
         ::google::protobuf::internal::WireFormatLite::MessageSize(
-          *this->car_info_);
+          *car_info_);
     }
 
     // optional int32 parkingspace_index_id = 1;
@@ -3765,9 +3640,7 @@ size_t Parkspace_info::ByteSizeLong() const {
   }
 
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -3879,8 +3752,10 @@ void Parkspace_info::Swap(Parkspace_info* other) {
 }
 void Parkspace_info::InternalSwap(Parkspace_info* other) {
   using std::swap;
-  entry_time_.Swap(&other->entry_time_);
-  leave_time_.Swap(&other->leave_time_);
+  entry_time_.Swap(&other->entry_time_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+    GetArenaNoVirtual());
+  leave_time_.Swap(&other->leave_time_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+    GetArenaNoVirtual());
   swap(car_info_, other->car_info_);
   swap(parkingspace_index_id_, other->parkingspace_index_id_);
   swap(parkingspace_type_, other->parkingspace_type_);
@@ -3898,7 +3773,6 @@ 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 {
@@ -3918,17 +3792,15 @@ const int Id_struct::kUnitIdFieldNumber;
 
 Id_struct::Id_struct()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_message_5fbase_2eproto::InitDefaultsId_struct();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_message_5fbase_2eproto::scc_info_Id_struct.base);
   SharedCtor();
   // @@protoc_insertion_point(constructor:message.Id_struct)
 }
 Id_struct::Id_struct(const Id_struct& from)
   : ::google::protobuf::Message(),
       _internal_metadata_(NULL),
-      _has_bits_(from._has_bits_),
-      _cached_size_(0) {
+      _has_bits_(from._has_bits_) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   ::memcpy(&terminal_id_, &from.terminal_id_,
     static_cast<size_t>(reinterpret_cast<char*>(&unit_id_) -
@@ -3937,7 +3809,6 @@ Id_struct::Id_struct(const Id_struct& from)
 }
 
 void Id_struct::SharedCtor() {
-  _cached_size_ = 0;
   ::memset(&terminal_id_, 0, static_cast<size_t>(
       reinterpret_cast<char*>(&unit_id_) -
       reinterpret_cast<char*>(&terminal_id_)) + sizeof(unit_id_));
@@ -3952,9 +3823,7 @@ void Id_struct::SharedDtor() {
 }
 
 void Id_struct::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* Id_struct::descriptor() {
   ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
@@ -3962,17 +3831,10 @@ const ::google::protobuf::Descriptor* Id_struct::descriptor() {
 }
 
 const Id_struct& Id_struct::default_instance() {
-  ::protobuf_message_5fbase_2eproto::InitDefaultsId_struct();
+  ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Id_struct.base);
   return *internal_default_instance();
 }
 
-Id_struct* Id_struct::New(::google::protobuf::Arena* arena) const {
-  Id_struct* n = new Id_struct;
-  if (arena != NULL) {
-    arena->Own(n);
-  }
-  return n;
-}
 
 void Id_struct::Clear() {
 // @@protoc_insertion_point(message_clear_start:message.Id_struct)
@@ -3996,7 +3858,7 @@ bool Id_struct::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:message.Id_struct)
   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)) {
@@ -4124,9 +3986,7 @@ size_t Id_struct::ByteSizeLong() const {
 
   }
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -4192,7 +4052,6 @@ void Id_struct::InternalSwap(Id_struct* other) {
   swap(unit_id_, other->unit_id_);
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
-  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata Id_struct::GetMetadata() const {
@@ -4203,5 +4062,30 @@ void Id_struct::InternalSwap(Id_struct* 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);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Id_struct* Arena::CreateMaybeMessage< ::message::Id_struct >(Arena* arena) {
+  return Arena::CreateInternal< ::message::Id_struct >(arena);
+}
+}  // namespace protobuf
+}  // namespace google
 
 // @@protoc_insertion_point(global_scope)

+ 206 - 159
plc调度节点/message/message_base.pb.h

@@ -1,19 +1,19 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: message_base.proto
 
-#ifndef PROTOBUF_message_5fbase_2eproto__INCLUDED
-#define PROTOBUF_message_5fbase_2eproto__INCLUDED
+#ifndef PROTOBUF_INCLUDED_message_5fbase_2eproto
+#define PROTOBUF_INCLUDED_message_5fbase_2eproto
 
 #include <string>
 
 #include <google/protobuf/stubs/common.h>
 
-#if GOOGLE_PROTOBUF_VERSION < 3005000
+#if GOOGLE_PROTOBUF_VERSION < 3006001
 #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 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#if 3006001 < 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,6 +24,7 @@
 #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
@@ -31,6 +32,7 @@
 #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.
@@ -43,29 +45,6 @@ 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();
-void InitDefaultsId_structImpl();
-void InitDefaultsId_struct();
-inline void InitDefaults() {
-  InitDefaultsBase_info();
-  InitDefaultsBase_msg();
-  InitDefaultsError_manager();
-  InitDefaultsLocate_information();
-  InitDefaultsCar_info();
-  InitDefaultsParkspace_info();
-  InitDefaultsId_struct();
-}
 }  // namespace protobuf_message_5fbase_2eproto
 namespace message {
 class Base_info;
@@ -90,6 +69,17 @@ 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::Id_struct* Arena::CreateMaybeMessage<::message::Id_struct>(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 {
@@ -460,7 +450,7 @@ class Base_info : public ::google::protobuf::Message /* @@protoc_insertion_point
     return reinterpret_cast<const Base_info*>(
                &_Base_info_default_instance_);
   }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     0;
 
   void Swap(Base_info* other);
@@ -470,28 +460,33 @@ class Base_info : public ::google::protobuf::Message /* @@protoc_insertion_point
 
   // implements Message ----------------------------------------------
 
-  inline Base_info* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline Base_info* New() const final {
+    return CreateMaybeMessage<Base_info>(NULL);
+  }
 
-  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;
+  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;
   void CopyFrom(const Base_info& from);
   void MergeFrom(const Base_info& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(Base_info* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -502,7 +497,7 @@ class Base_info : public ::google::protobuf::Message /* @@protoc_insertion_point
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -552,13 +547,12 @@ class Base_info : public ::google::protobuf::Message /* @@protoc_insertion_point
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
+  mutable ::google::protobuf::internal::CachedSize _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();
 };
 // -------------------------------------------------------------------
 
@@ -603,7 +597,7 @@ class Base_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(
     return reinterpret_cast<const Base_msg*>(
                &_Base_msg_default_instance_);
   }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     1;
 
   void Swap(Base_msg* other);
@@ -613,28 +607,33 @@ class Base_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(
 
   // implements Message ----------------------------------------------
 
-  inline Base_msg* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline Base_msg* New() const final {
+    return CreateMaybeMessage<Base_msg>(NULL);
+  }
 
-  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;
+  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;
   void CopyFrom(const Base_msg& from);
   void MergeFrom(const Base_msg& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(Base_msg* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -645,7 +644,7 @@ class Base_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -655,6 +654,9 @@ 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();
@@ -667,10 +669,9 @@ class Base_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
   ::message::Base_info* base_info_;
   friend struct ::protobuf_message_5fbase_2eproto::TableStruct;
-  friend void ::protobuf_message_5fbase_2eproto::InitDefaultsBase_msgImpl();
 };
 // -------------------------------------------------------------------
 
@@ -715,7 +716,7 @@ class Error_manager : public ::google::protobuf::Message /* @@protoc_insertion_p
     return reinterpret_cast<const Error_manager*>(
                &_Error_manager_default_instance_);
   }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     2;
 
   void Swap(Error_manager* other);
@@ -725,28 +726,33 @@ class Error_manager : public ::google::protobuf::Message /* @@protoc_insertion_p
 
   // implements Message ----------------------------------------------
 
-  inline Error_manager* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline Error_manager* New() const final {
+    return CreateMaybeMessage<Error_manager>(NULL);
+  }
 
-  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;
+  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;
   void CopyFrom(const Error_manager& from);
   void MergeFrom(const Error_manager& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(Error_manager* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -757,7 +763,7 @@ class Error_manager : public ::google::protobuf::Message /* @@protoc_insertion_p
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -803,12 +809,11 @@ class Error_manager : public ::google::protobuf::Message /* @@protoc_insertion_p
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
+  mutable ::google::protobuf::internal::CachedSize _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();
 };
 // -------------------------------------------------------------------
 
@@ -853,7 +858,7 @@ class Locate_information : public ::google::protobuf::Message /* @@protoc_insert
     return reinterpret_cast<const Locate_information*>(
                &_Locate_information_default_instance_);
   }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     3;
 
   void Swap(Locate_information* other);
@@ -863,28 +868,33 @@ class Locate_information : public ::google::protobuf::Message /* @@protoc_insert
 
   // implements Message ----------------------------------------------
 
-  inline Locate_information* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline Locate_information* New() const final {
+    return CreateMaybeMessage<Locate_information>(NULL);
+  }
 
-  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;
+  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;
   void CopyFrom(const Locate_information& from);
   void MergeFrom(const Locate_information& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(Locate_information* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -895,7 +905,7 @@ class Locate_information : public ::google::protobuf::Message /* @@protoc_insert
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -1014,7 +1024,7 @@ class Locate_information : public ::google::protobuf::Message /* @@protoc_insert
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
   float locate_x_;
   float locate_y_;
   float locate_angle_;
@@ -1028,7 +1038,6 @@ 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();
 };
 // -------------------------------------------------------------------
 
@@ -1073,7 +1082,7 @@ class Car_info : public ::google::protobuf::Message /* @@protoc_insertion_point(
     return reinterpret_cast<const Car_info*>(
                &_Car_info_default_instance_);
   }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     4;
 
   void Swap(Car_info* other);
@@ -1083,28 +1092,33 @@ class Car_info : public ::google::protobuf::Message /* @@protoc_insertion_point(
 
   // implements Message ----------------------------------------------
 
-  inline Car_info* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline Car_info* New() const final {
+    return CreateMaybeMessage<Car_info>(NULL);
+  }
 
-  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;
+  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;
   void CopyFrom(const Car_info& from);
   void MergeFrom(const Car_info& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(Car_info* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -1115,7 +1129,7 @@ class Car_info : public ::google::protobuf::Message /* @@protoc_insertion_point(
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -1205,7 +1219,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 int _cached_size_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
   ::google::protobuf::internal::ArenaStringPtr license_;
   ::google::protobuf::internal::ArenaStringPtr car_numberplate_;
   float car_length_;
@@ -1214,7 +1228,6 @@ 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();
 };
 // -------------------------------------------------------------------
 
@@ -1259,7 +1272,7 @@ class Parkspace_info : public ::google::protobuf::Message /* @@protoc_insertion_
     return reinterpret_cast<const Parkspace_info*>(
                &_Parkspace_info_default_instance_);
   }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     5;
 
   void Swap(Parkspace_info* other);
@@ -1269,28 +1282,33 @@ class Parkspace_info : public ::google::protobuf::Message /* @@protoc_insertion_
 
   // implements Message ----------------------------------------------
 
-  inline Parkspace_info* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline Parkspace_info* New() const final {
+    return CreateMaybeMessage<Parkspace_info>(NULL);
+  }
 
-  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;
+  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;
   void CopyFrom(const Parkspace_info& from);
   void MergeFrom(const Parkspace_info& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(Parkspace_info* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -1301,7 +1319,7 @@ class Parkspace_info : public ::google::protobuf::Message /* @@protoc_insertion_
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -1341,6 +1359,9 @@ 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();
@@ -1483,7 +1504,7 @@ class Parkspace_info : public ::google::protobuf::Message /* @@protoc_insertion_
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
   ::google::protobuf::internal::ArenaStringPtr entry_time_;
   ::google::protobuf::internal::ArenaStringPtr leave_time_;
   ::message::Car_info* car_info_;
@@ -1502,7 +1523,6 @@ 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();
 };
 // -------------------------------------------------------------------
 
@@ -1547,7 +1567,7 @@ class Id_struct : public ::google::protobuf::Message /* @@protoc_insertion_point
     return reinterpret_cast<const Id_struct*>(
                &_Id_struct_default_instance_);
   }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     6;
 
   void Swap(Id_struct* other);
@@ -1557,28 +1577,33 @@ class Id_struct : public ::google::protobuf::Message /* @@protoc_insertion_point
 
   // implements Message ----------------------------------------------
 
-  inline Id_struct* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline Id_struct* New() const final {
+    return CreateMaybeMessage<Id_struct>(NULL);
+  }
 
-  Id_struct* 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;
+  Id_struct* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage<Id_struct>(arena);
+  }
+  void CopyFrom(const ::google::protobuf::Message& from) final;
+  void MergeFrom(const ::google::protobuf::Message& from) final;
   void CopyFrom(const Id_struct& from);
   void MergeFrom(const Id_struct& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(Id_struct* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -1589,7 +1614,7 @@ class Id_struct : public ::google::protobuf::Message /* @@protoc_insertion_point
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -1618,11 +1643,10 @@ class Id_struct : public ::google::protobuf::Message /* @@protoc_insertion_point
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
   ::google::protobuf::int32 terminal_id_;
   ::google::protobuf::int32 unit_id_;
   friend struct ::protobuf_message_5fbase_2eproto::TableStruct;
-  friend void ::protobuf_message_5fbase_2eproto::InitDefaultsId_structImpl();
 };
 // ===================================================================
 
@@ -1752,6 +1776,9 @@ 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)
@@ -1768,7 +1795,8 @@ 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) {
-    base_info_ = new ::message::Base_info;
+    auto* p = CreateMaybeMessage<::message::Base_info>(GetArenaNoVirtual());
+    base_info_ = p;
   }
   // @@protoc_insertion_point(field_mutable:message.Base_msg.base_info)
   return base_info_;
@@ -1895,8 +1923,11 @@ 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_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return error_description_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Error_manager::set_allocated_error_description(::std::string* error_description) {
   if (error_description != NULL) {
@@ -2326,8 +2357,11 @@ 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_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return license_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Car_info::set_allocated_license(::std::string* license) {
   if (license != NULL) {
@@ -2389,8 +2423,11 @@ inline ::std::string* Car_info::mutable_car_numberplate() {
 }
 inline ::std::string* Car_info::release_car_numberplate() {
   // @@protoc_insertion_point(field_release:message.Car_info.car_numberPlate)
+  if (!has_car_numberplate()) {
+    return NULL;
+  }
   clear_has_car_numberplate();
-  return car_numberplate_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return car_numberplate_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Car_info::set_allocated_car_numberplate(::std::string* car_numberplate) {
   if (car_numberplate != NULL) {
@@ -2711,6 +2748,9 @@ 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)
@@ -2727,7 +2767,8 @@ 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) {
-    car_info_ = new ::message::Car_info;
+    auto* p = CreateMaybeMessage<::message::Car_info>(GetArenaNoVirtual());
+    car_info_ = p;
   }
   // @@protoc_insertion_point(field_mutable:message.Parkspace_info.car_info)
   return car_info_;
@@ -2801,8 +2842,11 @@ 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_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return entry_time_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Parkspace_info::set_allocated_entry_time(::std::string* entry_time) {
   if (entry_time != NULL) {
@@ -2864,8 +2908,11 @@ 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_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return leave_time_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Parkspace_info::set_allocated_leave_time(::std::string* leave_time) {
   if (leave_time != NULL) {
@@ -3051,62 +3098,62 @@ inline void Id_struct::set_unit_id(::google::protobuf::int32 value) {
 namespace google {
 namespace protobuf {
 
-template <> struct is_proto_enum< ::message::Message_type> : ::google::protobuf::internal::true_type {};
+template <> struct is_proto_enum< ::message::Message_type> : ::std::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Message_type>() {
   return ::message::Message_type_descriptor();
 }
-template <> struct is_proto_enum< ::message::Communicator> : ::google::protobuf::internal::true_type {};
+template <> struct is_proto_enum< ::message::Communicator> : ::std::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Communicator>() {
   return ::message::Communicator_descriptor();
 }
-template <> struct is_proto_enum< ::message::Process_type> : ::google::protobuf::internal::true_type {};
+template <> struct is_proto_enum< ::message::Process_type> : ::std::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Process_type>() {
   return ::message::Process_type_descriptor();
 }
-template <> struct is_proto_enum< ::message::Error_level> : ::google::protobuf::internal::true_type {};
+template <> struct is_proto_enum< ::message::Error_level> : ::std::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Error_level>() {
   return ::message::Error_level_descriptor();
 }
-template <> struct is_proto_enum< ::message::Parkspace_status> : ::google::protobuf::internal::true_type {};
+template <> struct is_proto_enum< ::message::Parkspace_status> : ::std::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Parkspace_status>() {
   return ::message::Parkspace_status_descriptor();
 }
-template <> struct is_proto_enum< ::message::Direction> : ::google::protobuf::internal::true_type {};
+template <> struct is_proto_enum< ::message::Direction> : ::std::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Direction>() {
   return ::message::Direction_descriptor();
 }
-template <> struct is_proto_enum< ::message::Parkspace_path> : ::google::protobuf::internal::true_type {};
+template <> struct is_proto_enum< ::message::Parkspace_path> : ::std::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Parkspace_path>() {
   return ::message::Parkspace_path_descriptor();
 }
-template <> struct is_proto_enum< ::message::Parkspace_type> : ::google::protobuf::internal::true_type {};
+template <> struct is_proto_enum< ::message::Parkspace_type> : ::std::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Parkspace_type>() {
   return ::message::Parkspace_type_descriptor();
 }
-template <> struct is_proto_enum< ::message::Car_type> : ::google::protobuf::internal::true_type {};
+template <> struct is_proto_enum< ::message::Car_type> : ::std::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Car_type>() {
   return ::message::Car_type_descriptor();
 }
-template <> struct is_proto_enum< ::message::Step_type> : ::google::protobuf::internal::true_type {};
+template <> struct is_proto_enum< ::message::Step_type> : ::std::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Step_type>() {
   return ::message::Step_type_descriptor();
 }
-template <> struct is_proto_enum< ::message::Step_statu> : ::google::protobuf::internal::true_type {};
+template <> struct is_proto_enum< ::message::Step_statu> : ::std::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Step_statu>() {
   return ::message::Step_statu_descriptor();
 }
-template <> struct is_proto_enum< ::message::Dispatch_device_type> : ::google::protobuf::internal::true_type {};
+template <> struct is_proto_enum< ::message::Dispatch_device_type> : ::std::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Dispatch_device_type>() {
   return ::message::Dispatch_device_type_descriptor();
@@ -3117,4 +3164,4 @@ inline const EnumDescriptor* GetEnumDescriptor< ::message::Dispatch_device_type>
 
 // @@protoc_insertion_point(global_scope)
 
-#endif  // PROTOBUF_message_5fbase_2eproto__INCLUDED
+#endif  // PROTOBUF_INCLUDED_message_5fbase_2eproto

+ 111 - 186
plc调度节点/message/singlechip_msg.pb.cc

@@ -7,7 +7,6 @@
 
 #include <google/protobuf/stubs/common.h>
 #include <google/protobuf/stubs/port.h>
-#include <google/protobuf/stubs/once.h>
 #include <google/protobuf/io/coded_stream.h>
 #include <google/protobuf/wire_format_lite_inl.h>
 #include <google/protobuf/descriptor.h>
@@ -19,6 +18,16 @@
 #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_Id_struct;
+}  // namespace protobuf_message_5fbase_2eproto
+namespace protobuf_singlechip_5fmsg_2eproto {
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_singlechip_5fmsg_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_InputDi;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_singlechip_5fmsg_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_OutputDo;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_singlechip_5fmsg_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Singlechip_data;
+}  // namespace protobuf_singlechip_5fmsg_2eproto
 namespace message {
 class InputDiDefaultTypeInternal {
  public:
@@ -47,14 +56,9 @@ class Terminal_status_msgDefaultTypeInternal {
 } _Terminal_status_msg_default_instance_;
 }  // namespace message
 namespace protobuf_singlechip_5fmsg_2eproto {
-void InitDefaultsInputDiImpl() {
+static void InitDefaultsInputDi() {
   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::_InputDi_default_instance_;
     new (ptr) ::message::InputDi();
@@ -63,19 +67,12 @@ void InitDefaultsInputDiImpl() {
   ::message::InputDi::InitAsDefaultInstance();
 }
 
-void InitDefaultsInputDi() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsInputDiImpl);
-}
+::google::protobuf::internal::SCCInfo<0> scc_info_InputDi =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsInputDi}, {}};
 
-void InitDefaultsOutputDoImpl() {
+static void InitDefaultsOutputDo() {
   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::_OutputDo_default_instance_;
     new (ptr) ::message::OutputDo();
@@ -84,20 +81,12 @@ void InitDefaultsOutputDoImpl() {
   ::message::OutputDo::InitAsDefaultInstance();
 }
 
-void InitDefaultsOutputDo() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsOutputDoImpl);
-}
+::google::protobuf::internal::SCCInfo<0> scc_info_OutputDo =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsOutputDo}, {}};
 
-void InitDefaultsterminal_msgImpl() {
+static void InitDefaultsterminal_msg() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
-  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
-#else
-  ::google::protobuf::internal::InitProtobufDefaults();
-#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
-  protobuf_singlechip_5fmsg_2eproto::InitDefaultsOutputDo();
   {
     void* ptr = &::message::_terminal_msg_default_instance_;
     new (ptr) ::message::terminal_msg();
@@ -106,20 +95,13 @@ void InitDefaultsterminal_msgImpl() {
   ::message::terminal_msg::InitAsDefaultInstance();
 }
 
-void InitDefaultsterminal_msg() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsterminal_msgImpl);
-}
+::google::protobuf::internal::SCCInfo<1> scc_info_terminal_msg =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsterminal_msg}, {
+      &protobuf_singlechip_5fmsg_2eproto::scc_info_OutputDo.base,}};
 
-void InitDefaultsSinglechip_dataImpl() {
+static void InitDefaultsSinglechip_data() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
-  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
-#else
-  ::google::protobuf::internal::InitProtobufDefaults();
-#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
-  protobuf_singlechip_5fmsg_2eproto::InitDefaultsInputDi();
   {
     void* ptr = &::message::_Singlechip_data_default_instance_;
     new (ptr) ::message::Singlechip_data();
@@ -128,22 +110,13 @@ void InitDefaultsSinglechip_dataImpl() {
   ::message::Singlechip_data::InitAsDefaultInstance();
 }
 
-void InitDefaultsSinglechip_data() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSinglechip_dataImpl);
-}
+::google::protobuf::internal::SCCInfo<1> scc_info_Singlechip_data =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSinglechip_data}, {
+      &protobuf_singlechip_5fmsg_2eproto::scc_info_InputDi.base,}};
 
-void InitDefaultsTerminal_status_msgImpl() {
+static void InitDefaultsTerminal_status_msg() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
-  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
-#else
-  ::google::protobuf::internal::InitProtobufDefaults();
-#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
-  protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
-  protobuf_message_5fbase_2eproto::InitDefaultsId_struct();
-  protobuf_singlechip_5fmsg_2eproto::InitDefaultsSinglechip_data();
   {
     void* ptr = &::message::_Terminal_status_msg_default_instance_;
     new (ptr) ::message::Terminal_status_msg();
@@ -152,9 +125,18 @@ void InitDefaultsTerminal_status_msgImpl() {
   ::message::Terminal_status_msg::InitAsDefaultInstance();
 }
 
-void InitDefaultsTerminal_status_msg() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTerminal_status_msgImpl);
+::google::protobuf::internal::SCCInfo<3> scc_info_Terminal_status_msg =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsTerminal_status_msg}, {
+      &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,
+      &protobuf_message_5fbase_2eproto::scc_info_Id_struct.base,
+      &protobuf_singlechip_5fmsg_2eproto::scc_info_Singlechip_data.base,}};
+
+void InitDefaults() {
+  ::google::protobuf::internal::InitSCC(&scc_info_InputDi.base);
+  ::google::protobuf::internal::InitSCC(&scc_info_OutputDo.base);
+  ::google::protobuf::internal::InitSCC(&scc_info_terminal_msg.base);
+  ::google::protobuf::internal::InitSCC(&scc_info_Singlechip_data.base);
+  ::google::protobuf::internal::InitSCC(&scc_info_Terminal_status_msg.base);
 }
 
 ::google::protobuf::Metadata file_level_metadata[5];
@@ -299,15 +281,14 @@ static ::google::protobuf::Message const * const file_default_instances[] = {
 
 void protobuf_AssignDescriptors() {
   AddDescriptors();
-  ::google::protobuf::MessageFactory* factory = NULL;
   AssignDescriptors(
-      "singlechip_msg.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+      "singlechip_msg.proto", schemas, file_default_instances, TableStruct::offsets,
       file_level_metadata, file_level_enum_descriptors, NULL);
 }
 
 void protobuf_AssignDescriptorsOnce() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+  static ::google::protobuf::internal::once_flag once;
+  ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
 }
 
 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
@@ -436,8 +417,8 @@ void AddDescriptorsImpl() {
 }
 
 void AddDescriptors() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+  static ::google::protobuf::internal::once_flag once;
+  ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
 }
 // Force AddDescriptors() to be called at dynamic initialization time.
 struct StaticDescriptorInitializer {
@@ -643,17 +624,15 @@ const int InputDi::kDi15FieldNumber;
 
 InputDi::InputDi()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsInputDi();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_singlechip_5fmsg_2eproto::scc_info_InputDi.base);
   SharedCtor();
   // @@protoc_insertion_point(constructor:message.InputDi)
 }
 InputDi::InputDi(const InputDi& from)
   : ::google::protobuf::Message(),
       _internal_metadata_(NULL),
-      _has_bits_(from._has_bits_),
-      _cached_size_(0) {
+      _has_bits_(from._has_bits_) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   ::memcpy(&di0_, &from.di0_,
     static_cast<size_t>(reinterpret_cast<char*>(&di15_) -
@@ -662,7 +641,6 @@ InputDi::InputDi(const InputDi& from)
 }
 
 void InputDi::SharedCtor() {
-  _cached_size_ = 0;
   ::memset(&di0_, 0, static_cast<size_t>(
       reinterpret_cast<char*>(&di15_) -
       reinterpret_cast<char*>(&di0_)) + sizeof(di15_));
@@ -677,9 +655,7 @@ void InputDi::SharedDtor() {
 }
 
 void InputDi::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* InputDi::descriptor() {
   ::protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
@@ -687,17 +663,10 @@ const ::google::protobuf::Descriptor* InputDi::descriptor() {
 }
 
 const InputDi& InputDi::default_instance() {
-  ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsInputDi();
+  ::google::protobuf::internal::InitSCC(&protobuf_singlechip_5fmsg_2eproto::scc_info_InputDi.base);
   return *internal_default_instance();
 }
 
-InputDi* InputDi::New(::google::protobuf::Arena* arena) const {
-  InputDi* n = new InputDi;
-  if (arena != NULL) {
-    arena->Own(n);
-  }
-  return n;
-}
 
 void InputDi::Clear() {
 // @@protoc_insertion_point(message_clear_start:message.InputDi)
@@ -726,7 +695,7 @@ bool InputDi::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:message.InputDi)
   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)) {
@@ -1290,9 +1259,7 @@ size_t InputDi::ByteSizeLong() const {
 
   }
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -1417,7 +1384,6 @@ void InputDi::InternalSwap(InputDi* other) {
   swap(di15_, other->di15_);
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
-  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata InputDi::GetMetadata() const {
@@ -1443,17 +1409,15 @@ const int OutputDo::kDo7FieldNumber;
 
 OutputDo::OutputDo()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsOutputDo();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_singlechip_5fmsg_2eproto::scc_info_OutputDo.base);
   SharedCtor();
   // @@protoc_insertion_point(constructor:message.OutputDo)
 }
 OutputDo::OutputDo(const OutputDo& from)
   : ::google::protobuf::Message(),
       _internal_metadata_(NULL),
-      _has_bits_(from._has_bits_),
-      _cached_size_(0) {
+      _has_bits_(from._has_bits_) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   ::memcpy(&do0_, &from.do0_,
     static_cast<size_t>(reinterpret_cast<char*>(&do7_) -
@@ -1462,7 +1426,6 @@ OutputDo::OutputDo(const OutputDo& from)
 }
 
 void OutputDo::SharedCtor() {
-  _cached_size_ = 0;
   ::memset(&do0_, 0, static_cast<size_t>(
       reinterpret_cast<char*>(&do7_) -
       reinterpret_cast<char*>(&do0_)) + sizeof(do7_));
@@ -1477,9 +1440,7 @@ void OutputDo::SharedDtor() {
 }
 
 void OutputDo::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* OutputDo::descriptor() {
   ::protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
@@ -1487,17 +1448,10 @@ const ::google::protobuf::Descriptor* OutputDo::descriptor() {
 }
 
 const OutputDo& OutputDo::default_instance() {
-  ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsOutputDo();
+  ::google::protobuf::internal::InitSCC(&protobuf_singlechip_5fmsg_2eproto::scc_info_OutputDo.base);
   return *internal_default_instance();
 }
 
-OutputDo* OutputDo::New(::google::protobuf::Arena* arena) const {
-  OutputDo* n = new OutputDo;
-  if (arena != NULL) {
-    arena->Own(n);
-  }
-  return n;
-}
 
 void OutputDo::Clear() {
 // @@protoc_insertion_point(message_clear_start:message.OutputDo)
@@ -1521,7 +1475,7 @@ bool OutputDo::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:message.OutputDo)
   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)) {
@@ -1835,9 +1789,7 @@ size_t OutputDo::ByteSizeLong() const {
 
   }
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -1927,7 +1879,6 @@ void OutputDo::InternalSwap(OutputDo* other) {
   swap(do7_, other->do7_);
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
-  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata OutputDo::GetMetadata() const {
@@ -1951,17 +1902,15 @@ const int terminal_msg::kOutPutDoFieldNumber;
 
 terminal_msg::terminal_msg()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsterminal_msg();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_singlechip_5fmsg_2eproto::scc_info_terminal_msg.base);
   SharedCtor();
   // @@protoc_insertion_point(constructor:message.terminal_msg)
 }
 terminal_msg::terminal_msg(const terminal_msg& from)
   : ::google::protobuf::Message(),
       _internal_metadata_(NULL),
-      _has_bits_(from._has_bits_),
-      _cached_size_(0) {
+      _has_bits_(from._has_bits_) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   if (from.has_outputdo()) {
     outputdo_ = new ::message::OutputDo(*from.outputdo_);
@@ -1975,7 +1924,6 @@ terminal_msg::terminal_msg(const terminal_msg& from)
 }
 
 void terminal_msg::SharedCtor() {
-  _cached_size_ = 0;
   ::memset(&outputdo_, 0, static_cast<size_t>(
       reinterpret_cast<char*>(&processcontrol_) -
       reinterpret_cast<char*>(&outputdo_)) + sizeof(processcontrol_));
@@ -1991,9 +1939,7 @@ void terminal_msg::SharedDtor() {
 }
 
 void terminal_msg::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* terminal_msg::descriptor() {
   ::protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
@@ -2001,17 +1947,10 @@ const ::google::protobuf::Descriptor* terminal_msg::descriptor() {
 }
 
 const terminal_msg& terminal_msg::default_instance() {
-  ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsterminal_msg();
+  ::google::protobuf::internal::InitSCC(&protobuf_singlechip_5fmsg_2eproto::scc_info_terminal_msg.base);
   return *internal_default_instance();
 }
 
-terminal_msg* terminal_msg::New(::google::protobuf::Arena* arena) const {
-  terminal_msg* n = new terminal_msg;
-  if (arena != NULL) {
-    arena->Own(n);
-  }
-  return n;
-}
 
 void terminal_msg::Clear() {
 // @@protoc_insertion_point(message_clear_start:message.terminal_msg)
@@ -2039,7 +1978,7 @@ bool terminal_msg::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:message.terminal_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)) {
@@ -2142,7 +2081,7 @@ void terminal_msg::SerializeWithCachedSizes(
   // optional .message.OutputDo OutPutDo = 4;
   if (cached_has_bits & 0x00000001u) {
     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
-      4, *this->outputdo_, output);
+      4, this->_internal_outputdo(), output);
   }
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -2179,7 +2118,7 @@ void terminal_msg::SerializeWithCachedSizes(
   if (cached_has_bits & 0x00000001u) {
     target = ::google::protobuf::internal::WireFormatLite::
       InternalWriteMessageToArray(
-        4, *this->outputdo_, deterministic, target);
+        4, this->_internal_outputdo(), deterministic, target);
   }
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -2204,7 +2143,7 @@ size_t terminal_msg::ByteSizeLong() const {
     if (has_outputdo()) {
       total_size += 1 +
         ::google::protobuf::internal::WireFormatLite::MessageSize(
-          *this->outputdo_);
+          *outputdo_);
     }
 
     // optional int32 TerminalID = 1;
@@ -2230,9 +2169,7 @@ size_t terminal_msg::ByteSizeLong() const {
 
   }
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -2306,7 +2243,6 @@ void terminal_msg::InternalSwap(terminal_msg* other) {
   swap(processcontrol_, other->processcontrol_);
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
-  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata terminal_msg::GetMetadata() const {
@@ -2341,17 +2277,15 @@ const int Singlechip_data::kOutsideExistenceFlagFieldNumber;
 
 Singlechip_data::Singlechip_data()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsSinglechip_data();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_singlechip_5fmsg_2eproto::scc_info_Singlechip_data.base);
   SharedCtor();
   // @@protoc_insertion_point(constructor:message.Singlechip_data)
 }
 Singlechip_data::Singlechip_data(const Singlechip_data& from)
   : ::google::protobuf::Message(),
       _internal_metadata_(NULL),
-      _has_bits_(from._has_bits_),
-      _cached_size_(0) {
+      _has_bits_(from._has_bits_) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   if (from.has_inputdi()) {
     inputdi_ = new ::message::InputDi(*from.inputdi_);
@@ -2365,7 +2299,6 @@ Singlechip_data::Singlechip_data(const Singlechip_data& from)
 }
 
 void Singlechip_data::SharedCtor() {
-  _cached_size_ = 0;
   ::memset(&inputdi_, 0, static_cast<size_t>(
       reinterpret_cast<char*>(&outsideexistenceflag_) -
       reinterpret_cast<char*>(&inputdi_)) + sizeof(outsideexistenceflag_));
@@ -2381,9 +2314,7 @@ void Singlechip_data::SharedDtor() {
 }
 
 void Singlechip_data::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* Singlechip_data::descriptor() {
   ::protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
@@ -2391,17 +2322,10 @@ const ::google::protobuf::Descriptor* Singlechip_data::descriptor() {
 }
 
 const Singlechip_data& Singlechip_data::default_instance() {
-  ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsSinglechip_data();
+  ::google::protobuf::internal::InitSCC(&protobuf_singlechip_5fmsg_2eproto::scc_info_Singlechip_data.base);
   return *internal_default_instance();
 }
 
-Singlechip_data* Singlechip_data::New(::google::protobuf::Arena* arena) const {
-  Singlechip_data* n = new Singlechip_data;
-  if (arena != NULL) {
-    arena->Own(n);
-  }
-  return n;
-}
 
 void Singlechip_data::Clear() {
 // @@protoc_insertion_point(message_clear_start:message.Singlechip_data)
@@ -2434,7 +2358,7 @@ bool Singlechip_data::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:message.Singlechip_data)
   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)) {
@@ -2734,7 +2658,7 @@ void Singlechip_data::SerializeWithCachedSizes(
   // optional .message.InputDi InPutDi = 4;
   if (cached_has_bits & 0x00000001u) {
     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
-      4, *this->inputdi_, output);
+      4, this->_internal_inputdi(), output);
   }
 
   // optional int32 ResetFlag = 5;
@@ -2833,7 +2757,7 @@ void Singlechip_data::SerializeWithCachedSizes(
   if (cached_has_bits & 0x00000001u) {
     target = ::google::protobuf::internal::WireFormatLite::
       InternalWriteMessageToArray(
-        4, *this->inputdi_, deterministic, target);
+        4, this->_internal_inputdi(), deterministic, target);
   }
 
   // optional int32 ResetFlag = 5;
@@ -2919,7 +2843,7 @@ size_t Singlechip_data::ByteSizeLong() const {
     if (has_inputdi()) {
       total_size += 1 +
         ::google::protobuf::internal::WireFormatLite::MessageSize(
-          *this->inputdi_);
+          *inputdi_);
     }
 
     // optional int32 TerminalID = 1;
@@ -3017,9 +2941,7 @@ size_t Singlechip_data::ByteSizeLong() const {
 
   }
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -3140,7 +3062,6 @@ void Singlechip_data::InternalSwap(Singlechip_data* other) {
   swap(outsideexistenceflag_, other->outsideexistenceflag_);
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
-  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata Singlechip_data::GetMetadata() const {
@@ -3176,17 +3097,15 @@ const int Terminal_status_msg::kSinglechipValidityFieldNumber;
 
 Terminal_status_msg::Terminal_status_msg()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsTerminal_status_msg();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_singlechip_5fmsg_2eproto::scc_info_Terminal_status_msg.base);
   SharedCtor();
   // @@protoc_insertion_point(constructor:message.Terminal_status_msg)
 }
 Terminal_status_msg::Terminal_status_msg(const Terminal_status_msg& from)
   : ::google::protobuf::Message(),
       _internal_metadata_(NULL),
-      _has_bits_(from._has_bits_),
-      _cached_size_(0) {
+      _has_bits_(from._has_bits_) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   if (from.has_base_info()) {
     base_info_ = new ::message::Base_info(*from.base_info_);
@@ -3208,7 +3127,6 @@ Terminal_status_msg::Terminal_status_msg(const Terminal_status_msg& from)
 }
 
 void Terminal_status_msg::SharedCtor() {
-  _cached_size_ = 0;
   ::memset(&base_info_, 0, static_cast<size_t>(
       reinterpret_cast<char*>(&singlechip_validity_) -
       reinterpret_cast<char*>(&base_info_)) + sizeof(singlechip_validity_));
@@ -3226,9 +3144,7 @@ void Terminal_status_msg::SharedDtor() {
 }
 
 void Terminal_status_msg::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* Terminal_status_msg::descriptor() {
   ::protobuf_singlechip_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
@@ -3236,17 +3152,10 @@ const ::google::protobuf::Descriptor* Terminal_status_msg::descriptor() {
 }
 
 const Terminal_status_msg& Terminal_status_msg::default_instance() {
-  ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsTerminal_status_msg();
+  ::google::protobuf::internal::InitSCC(&protobuf_singlechip_5fmsg_2eproto::scc_info_Terminal_status_msg.base);
   return *internal_default_instance();
 }
 
-Terminal_status_msg* Terminal_status_msg::New(::google::protobuf::Arena* arena) const {
-  Terminal_status_msg* n = new Terminal_status_msg;
-  if (arena != NULL) {
-    arena->Own(n);
-  }
-  return n;
-}
 
 void Terminal_status_msg::Clear() {
 // @@protoc_insertion_point(message_clear_start:message.Terminal_status_msg)
@@ -3280,7 +3189,7 @@ bool Terminal_status_msg::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:message.Terminal_status_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)) {
@@ -3364,19 +3273,19 @@ void Terminal_status_msg::SerializeWithCachedSizes(
   // required .message.Base_info base_info = 1;
   if (cached_has_bits & 0x00000001u) {
     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
-      1, *this->base_info_, output);
+      1, this->_internal_base_info(), output);
   }
 
   // optional .message.Id_struct id_struct = 2;
   if (cached_has_bits & 0x00000002u) {
     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
-      2, *this->id_struct_, output);
+      2, this->_internal_id_struct(), output);
   }
 
   // optional .message.Singlechip_data singlechipData = 3;
   if (cached_has_bits & 0x00000004u) {
     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
-      3, *this->singlechipdata_, output);
+      3, this->_internal_singlechipdata(), output);
   }
 
   // optional bool singlechip_validity = 4;
@@ -3403,21 +3312,21 @@ void Terminal_status_msg::SerializeWithCachedSizes(
   if (cached_has_bits & 0x00000001u) {
     target = ::google::protobuf::internal::WireFormatLite::
       InternalWriteMessageToArray(
-        1, *this->base_info_, deterministic, target);
+        1, this->_internal_base_info(), deterministic, target);
   }
 
   // optional .message.Id_struct id_struct = 2;
   if (cached_has_bits & 0x00000002u) {
     target = ::google::protobuf::internal::WireFormatLite::
       InternalWriteMessageToArray(
-        2, *this->id_struct_, deterministic, target);
+        2, this->_internal_id_struct(), deterministic, target);
   }
 
   // optional .message.Singlechip_data singlechipData = 3;
   if (cached_has_bits & 0x00000004u) {
     target = ::google::protobuf::internal::WireFormatLite::
       InternalWriteMessageToArray(
-        3, *this->singlechipdata_, deterministic, target);
+        3, this->_internal_singlechipdata(), deterministic, target);
   }
 
   // optional bool singlechip_validity = 4;
@@ -3446,21 +3355,21 @@ size_t Terminal_status_msg::ByteSizeLong() const {
   if (has_base_info()) {
     total_size += 1 +
       ::google::protobuf::internal::WireFormatLite::MessageSize(
-        *this->base_info_);
+        *base_info_);
   }
   if (_has_bits_[0 / 32] & 14u) {
     // optional .message.Id_struct id_struct = 2;
     if (has_id_struct()) {
       total_size += 1 +
         ::google::protobuf::internal::WireFormatLite::MessageSize(
-          *this->id_struct_);
+          *id_struct_);
     }
 
     // optional .message.Singlechip_data singlechipData = 3;
     if (has_singlechipdata()) {
       total_size += 1 +
         ::google::protobuf::internal::WireFormatLite::MessageSize(
-          *this->singlechipdata_);
+          *singlechipdata_);
     }
 
     // optional bool singlechip_validity = 4;
@@ -3470,9 +3379,7 @@ size_t Terminal_status_msg::ByteSizeLong() const {
 
   }
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -3550,7 +3457,6 @@ void Terminal_status_msg::InternalSwap(Terminal_status_msg* other) {
   swap(singlechip_validity_, other->singlechip_validity_);
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
-  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata Terminal_status_msg::GetMetadata() const {
@@ -3561,5 +3467,24 @@ void Terminal_status_msg::InternalSwap(Terminal_status_msg* other) {
 
 // @@protoc_insertion_point(namespace_scope)
 }  // namespace message
+namespace google {
+namespace protobuf {
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::InputDi* Arena::CreateMaybeMessage< ::message::InputDi >(Arena* arena) {
+  return Arena::CreateInternal< ::message::InputDi >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::OutputDo* Arena::CreateMaybeMessage< ::message::OutputDo >(Arena* arena) {
+  return Arena::CreateInternal< ::message::OutputDo >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::terminal_msg* Arena::CreateMaybeMessage< ::message::terminal_msg >(Arena* arena) {
+  return Arena::CreateInternal< ::message::terminal_msg >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Singlechip_data* Arena::CreateMaybeMessage< ::message::Singlechip_data >(Arena* arena) {
+  return Arena::CreateInternal< ::message::Singlechip_data >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Terminal_status_msg* Arena::CreateMaybeMessage< ::message::Terminal_status_msg >(Arena* arena) {
+  return Arena::CreateInternal< ::message::Terminal_status_msg >(arena);
+}
+}  // namespace protobuf
+}  // namespace google
 
 // @@protoc_insertion_point(global_scope)

+ 162 - 113
plc调度节点/message/singlechip_msg.pb.h

@@ -1,19 +1,19 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: singlechip_msg.proto
 
-#ifndef PROTOBUF_singlechip_5fmsg_2eproto__INCLUDED
-#define PROTOBUF_singlechip_5fmsg_2eproto__INCLUDED
+#ifndef PROTOBUF_INCLUDED_singlechip_5fmsg_2eproto
+#define PROTOBUF_INCLUDED_singlechip_5fmsg_2eproto
 
 #include <string>
 
 #include <google/protobuf/stubs/common.h>
 
-#if GOOGLE_PROTOBUF_VERSION < 3005000
+#if GOOGLE_PROTOBUF_VERSION < 3006001
 #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 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#if 3006001 < 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,6 +24,7 @@
 #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,6 +33,7 @@
 #include <google/protobuf/unknown_field_set.h>
 #include "message_base.pb.h"
 // @@protoc_insertion_point(includes)
+#define PROTOBUF_INTERNAL_EXPORT_protobuf_singlechip_5fmsg_2eproto 
 
 namespace protobuf_singlechip_5fmsg_2eproto {
 // Internal implementation detail -- do not use these members.
@@ -44,23 +46,6 @@ struct TableStruct {
   static const ::google::protobuf::uint32 offsets[];
 };
 void AddDescriptors();
-void InitDefaultsInputDiImpl();
-void InitDefaultsInputDi();
-void InitDefaultsOutputDoImpl();
-void InitDefaultsOutputDo();
-void InitDefaultsterminal_msgImpl();
-void InitDefaultsterminal_msg();
-void InitDefaultsSinglechip_dataImpl();
-void InitDefaultsSinglechip_data();
-void InitDefaultsTerminal_status_msgImpl();
-void InitDefaultsTerminal_status_msg();
-inline void InitDefaults() {
-  InitDefaultsInputDi();
-  InitDefaultsOutputDo();
-  InitDefaultsterminal_msg();
-  InitDefaultsSinglechip_data();
-  InitDefaultsTerminal_status_msg();
-}
 }  // namespace protobuf_singlechip_5fmsg_2eproto
 namespace message {
 class InputDi;
@@ -79,6 +64,15 @@ class terminal_msg;
 class terminal_msgDefaultTypeInternal;
 extern terminal_msgDefaultTypeInternal _terminal_msg_default_instance_;
 }  // namespace message
+namespace google {
+namespace protobuf {
+template<> ::message::InputDi* Arena::CreateMaybeMessage<::message::InputDi>(Arena*);
+template<> ::message::OutputDo* Arena::CreateMaybeMessage<::message::OutputDo>(Arena*);
+template<> ::message::Singlechip_data* Arena::CreateMaybeMessage<::message::Singlechip_data>(Arena*);
+template<> ::message::Terminal_status_msg* Arena::CreateMaybeMessage<::message::Terminal_status_msg>(Arena*);
+template<> ::message::terminal_msg* Arena::CreateMaybeMessage<::message::terminal_msg>(Arena*);
+}  // namespace protobuf
+}  // namespace google
 namespace message {
 
 enum Process_control {
@@ -324,7 +318,7 @@ class InputDi : public ::google::protobuf::Message /* @@protoc_insertion_point(c
     return reinterpret_cast<const InputDi*>(
                &_InputDi_default_instance_);
   }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     0;
 
   void Swap(InputDi* other);
@@ -334,28 +328,33 @@ class InputDi : public ::google::protobuf::Message /* @@protoc_insertion_point(c
 
   // implements Message ----------------------------------------------
 
-  inline InputDi* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline InputDi* New() const final {
+    return CreateMaybeMessage<InputDi>(NULL);
+  }
 
-  InputDi* 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;
+  InputDi* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage<InputDi>(arena);
+  }
+  void CopyFrom(const ::google::protobuf::Message& from) final;
+  void MergeFrom(const ::google::protobuf::Message& from) final;
   void CopyFrom(const InputDi& from);
   void MergeFrom(const InputDi& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(InputDi* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -366,7 +365,7 @@ class InputDi : public ::google::protobuf::Message /* @@protoc_insertion_point(c
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -521,7 +520,7 @@ class InputDi : public ::google::protobuf::Message /* @@protoc_insertion_point(c
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
   ::google::protobuf::int32 di0_;
   ::google::protobuf::int32 di1_;
   ::google::protobuf::int32 di2_;
@@ -539,7 +538,6 @@ class InputDi : public ::google::protobuf::Message /* @@protoc_insertion_point(c
   ::google::protobuf::int32 di14_;
   ::google::protobuf::int32 di15_;
   friend struct ::protobuf_singlechip_5fmsg_2eproto::TableStruct;
-  friend void ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsInputDiImpl();
 };
 // -------------------------------------------------------------------
 
@@ -584,7 +582,7 @@ class OutputDo : public ::google::protobuf::Message /* @@protoc_insertion_point(
     return reinterpret_cast<const OutputDo*>(
                &_OutputDo_default_instance_);
   }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     1;
 
   void Swap(OutputDo* other);
@@ -594,28 +592,33 @@ class OutputDo : public ::google::protobuf::Message /* @@protoc_insertion_point(
 
   // implements Message ----------------------------------------------
 
-  inline OutputDo* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline OutputDo* New() const final {
+    return CreateMaybeMessage<OutputDo>(NULL);
+  }
 
-  OutputDo* 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;
+  OutputDo* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage<OutputDo>(arena);
+  }
+  void CopyFrom(const ::google::protobuf::Message& from) final;
+  void MergeFrom(const ::google::protobuf::Message& from) final;
   void CopyFrom(const OutputDo& from);
   void MergeFrom(const OutputDo& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(OutputDo* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -626,7 +629,7 @@ class OutputDo : public ::google::protobuf::Message /* @@protoc_insertion_point(
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -709,7 +712,7 @@ class OutputDo : public ::google::protobuf::Message /* @@protoc_insertion_point(
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
   ::google::protobuf::int32 do0_;
   ::google::protobuf::int32 do1_;
   ::google::protobuf::int32 do2_;
@@ -719,7 +722,6 @@ class OutputDo : public ::google::protobuf::Message /* @@protoc_insertion_point(
   ::google::protobuf::int32 do6_;
   ::google::protobuf::int32 do7_;
   friend struct ::protobuf_singlechip_5fmsg_2eproto::TableStruct;
-  friend void ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsOutputDoImpl();
 };
 // -------------------------------------------------------------------
 
@@ -764,7 +766,7 @@ class terminal_msg : public ::google::protobuf::Message /* @@protoc_insertion_po
     return reinterpret_cast<const terminal_msg*>(
                &_terminal_msg_default_instance_);
   }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     2;
 
   void Swap(terminal_msg* other);
@@ -774,28 +776,33 @@ class terminal_msg : public ::google::protobuf::Message /* @@protoc_insertion_po
 
   // implements Message ----------------------------------------------
 
-  inline terminal_msg* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline terminal_msg* New() const final {
+    return CreateMaybeMessage<terminal_msg>(NULL);
+  }
 
-  terminal_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;
+  terminal_msg* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage<terminal_msg>(arena);
+  }
+  void CopyFrom(const ::google::protobuf::Message& from) final;
+  void MergeFrom(const ::google::protobuf::Message& from) final;
   void CopyFrom(const terminal_msg& from);
   void MergeFrom(const terminal_msg& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(terminal_msg* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -806,7 +813,7 @@ class terminal_msg : public ::google::protobuf::Message /* @@protoc_insertion_po
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -816,6 +823,9 @@ class terminal_msg : public ::google::protobuf::Message /* @@protoc_insertion_po
   bool has_outputdo() const;
   void clear_outputdo();
   static const int kOutPutDoFieldNumber = 4;
+  private:
+  const ::message::OutputDo& _internal_outputdo() const;
+  public:
   const ::message::OutputDo& outputdo() const;
   ::message::OutputDo* release_outputdo();
   ::message::OutputDo* mutable_outputdo();
@@ -855,13 +865,12 @@ class terminal_msg : public ::google::protobuf::Message /* @@protoc_insertion_po
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
   ::message::OutputDo* outputdo_;
   ::google::protobuf::int32 terminalid_;
   ::google::protobuf::int32 dispatchdirection_;
   ::google::protobuf::int32 processcontrol_;
   friend struct ::protobuf_singlechip_5fmsg_2eproto::TableStruct;
-  friend void ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsterminal_msgImpl();
 };
 // -------------------------------------------------------------------
 
@@ -906,7 +915,7 @@ class Singlechip_data : public ::google::protobuf::Message /* @@protoc_insertion
     return reinterpret_cast<const Singlechip_data*>(
                &_Singlechip_data_default_instance_);
   }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     3;
 
   void Swap(Singlechip_data* other);
@@ -916,28 +925,33 @@ class Singlechip_data : public ::google::protobuf::Message /* @@protoc_insertion
 
   // implements Message ----------------------------------------------
 
-  inline Singlechip_data* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline Singlechip_data* New() const final {
+    return CreateMaybeMessage<Singlechip_data>(NULL);
+  }
 
-  Singlechip_data* 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;
+  Singlechip_data* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage<Singlechip_data>(arena);
+  }
+  void CopyFrom(const ::google::protobuf::Message& from) final;
+  void MergeFrom(const ::google::protobuf::Message& from) final;
   void CopyFrom(const Singlechip_data& from);
   void MergeFrom(const Singlechip_data& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(Singlechip_data* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -948,7 +962,7 @@ class Singlechip_data : public ::google::protobuf::Message /* @@protoc_insertion
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -958,6 +972,9 @@ class Singlechip_data : public ::google::protobuf::Message /* @@protoc_insertion
   bool has_inputdi() const;
   void clear_inputdi();
   static const int kInPutDiFieldNumber = 4;
+  private:
+  const ::message::InputDi& _internal_inputdi() const;
+  public:
   const ::message::InputDi& inputdi() const;
   ::message::InputDi* release_inputdi();
   ::message::InputDi* mutable_inputdi();
@@ -1096,7 +1113,7 @@ class Singlechip_data : public ::google::protobuf::Message /* @@protoc_insertion
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
   ::message::InputDi* inputdi_;
   ::google::protobuf::int32 terminalid_;
   ::google::protobuf::int32 dispatchdirection_;
@@ -1113,7 +1130,6 @@ class Singlechip_data : public ::google::protobuf::Message /* @@protoc_insertion
   ::google::protobuf::int32 dispatchfinishflag_;
   ::google::protobuf::int32 outsideexistenceflag_;
   friend struct ::protobuf_singlechip_5fmsg_2eproto::TableStruct;
-  friend void ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsSinglechip_dataImpl();
 };
 // -------------------------------------------------------------------
 
@@ -1158,7 +1174,7 @@ class Terminal_status_msg : public ::google::protobuf::Message /* @@protoc_inser
     return reinterpret_cast<const Terminal_status_msg*>(
                &_Terminal_status_msg_default_instance_);
   }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     4;
 
   void Swap(Terminal_status_msg* other);
@@ -1168,28 +1184,33 @@ class Terminal_status_msg : public ::google::protobuf::Message /* @@protoc_inser
 
   // implements Message ----------------------------------------------
 
-  inline Terminal_status_msg* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline Terminal_status_msg* New() const final {
+    return CreateMaybeMessage<Terminal_status_msg>(NULL);
+  }
 
-  Terminal_status_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;
+  Terminal_status_msg* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage<Terminal_status_msg>(arena);
+  }
+  void CopyFrom(const ::google::protobuf::Message& from) final;
+  void MergeFrom(const ::google::protobuf::Message& from) final;
   void CopyFrom(const Terminal_status_msg& from);
   void MergeFrom(const Terminal_status_msg& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(Terminal_status_msg* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -1200,7 +1221,7 @@ class Terminal_status_msg : public ::google::protobuf::Message /* @@protoc_inser
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -1210,6 +1231,9 @@ class Terminal_status_msg : public ::google::protobuf::Message /* @@protoc_inser
   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();
@@ -1219,6 +1243,9 @@ class Terminal_status_msg : public ::google::protobuf::Message /* @@protoc_inser
   bool has_id_struct() const;
   void clear_id_struct();
   static const int kIdStructFieldNumber = 2;
+  private:
+  const ::message::Id_struct& _internal_id_struct() const;
+  public:
   const ::message::Id_struct& id_struct() const;
   ::message::Id_struct* release_id_struct();
   ::message::Id_struct* mutable_id_struct();
@@ -1228,6 +1255,9 @@ class Terminal_status_msg : public ::google::protobuf::Message /* @@protoc_inser
   bool has_singlechipdata() const;
   void clear_singlechipdata();
   static const int kSinglechipDataFieldNumber = 3;
+  private:
+  const ::message::Singlechip_data& _internal_singlechipdata() const;
+  public:
   const ::message::Singlechip_data& singlechipdata() const;
   ::message::Singlechip_data* release_singlechipdata();
   ::message::Singlechip_data* mutable_singlechipdata();
@@ -1253,13 +1283,12 @@ class Terminal_status_msg : public ::google::protobuf::Message /* @@protoc_inser
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
   ::message::Base_info* base_info_;
   ::message::Id_struct* id_struct_;
   ::message::Singlechip_data* singlechipdata_;
   bool singlechip_validity_;
   friend struct ::protobuf_singlechip_5fmsg_2eproto::TableStruct;
-  friend void ::protobuf_singlechip_5fmsg_2eproto::InitDefaultsTerminal_status_msgImpl();
 };
 // ===================================================================
 
@@ -1942,6 +1971,9 @@ inline void terminal_msg::clear_outputdo() {
   if (outputdo_ != NULL) outputdo_->Clear();
   clear_has_outputdo();
 }
+inline const ::message::OutputDo& terminal_msg::_internal_outputdo() const {
+  return *outputdo_;
+}
 inline const ::message::OutputDo& terminal_msg::outputdo() const {
   const ::message::OutputDo* p = outputdo_;
   // @@protoc_insertion_point(field_get:message.terminal_msg.OutPutDo)
@@ -1958,7 +1990,8 @@ inline ::message::OutputDo* terminal_msg::release_outputdo() {
 inline ::message::OutputDo* terminal_msg::mutable_outputdo() {
   set_has_outputdo();
   if (outputdo_ == NULL) {
-    outputdo_ = new ::message::OutputDo;
+    auto* p = CreateMaybeMessage<::message::OutputDo>(GetArenaNoVirtual());
+    outputdo_ = p;
   }
   // @@protoc_insertion_point(field_mutable:message.terminal_msg.OutPutDo)
   return outputdo_;
@@ -2073,6 +2106,9 @@ inline void Singlechip_data::clear_inputdi() {
   if (inputdi_ != NULL) inputdi_->Clear();
   clear_has_inputdi();
 }
+inline const ::message::InputDi& Singlechip_data::_internal_inputdi() const {
+  return *inputdi_;
+}
 inline const ::message::InputDi& Singlechip_data::inputdi() const {
   const ::message::InputDi* p = inputdi_;
   // @@protoc_insertion_point(field_get:message.Singlechip_data.InPutDi)
@@ -2089,7 +2125,8 @@ inline ::message::InputDi* Singlechip_data::release_inputdi() {
 inline ::message::InputDi* Singlechip_data::mutable_inputdi() {
   set_has_inputdi();
   if (inputdi_ == NULL) {
-    inputdi_ = new ::message::InputDi;
+    auto* p = CreateMaybeMessage<::message::InputDi>(GetArenaNoVirtual());
+    inputdi_ = p;
   }
   // @@protoc_insertion_point(field_mutable:message.Singlechip_data.InPutDi)
   return inputdi_;
@@ -2397,6 +2434,9 @@ inline void Terminal_status_msg::set_has_base_info() {
 inline void Terminal_status_msg::clear_has_base_info() {
   _has_bits_[0] &= ~0x00000001u;
 }
+inline const ::message::Base_info& Terminal_status_msg::_internal_base_info() const {
+  return *base_info_;
+}
 inline const ::message::Base_info& Terminal_status_msg::base_info() const {
   const ::message::Base_info* p = base_info_;
   // @@protoc_insertion_point(field_get:message.Terminal_status_msg.base_info)
@@ -2413,7 +2453,8 @@ inline ::message::Base_info* Terminal_status_msg::release_base_info() {
 inline ::message::Base_info* Terminal_status_msg::mutable_base_info() {
   set_has_base_info();
   if (base_info_ == NULL) {
-    base_info_ = new ::message::Base_info;
+    auto* p = CreateMaybeMessage<::message::Base_info>(GetArenaNoVirtual());
+    base_info_ = p;
   }
   // @@protoc_insertion_point(field_mutable:message.Terminal_status_msg.base_info)
   return base_info_;
@@ -2447,6 +2488,9 @@ inline void Terminal_status_msg::set_has_id_struct() {
 inline void Terminal_status_msg::clear_has_id_struct() {
   _has_bits_[0] &= ~0x00000002u;
 }
+inline const ::message::Id_struct& Terminal_status_msg::_internal_id_struct() const {
+  return *id_struct_;
+}
 inline const ::message::Id_struct& Terminal_status_msg::id_struct() const {
   const ::message::Id_struct* p = id_struct_;
   // @@protoc_insertion_point(field_get:message.Terminal_status_msg.id_struct)
@@ -2463,7 +2507,8 @@ inline ::message::Id_struct* Terminal_status_msg::release_id_struct() {
 inline ::message::Id_struct* Terminal_status_msg::mutable_id_struct() {
   set_has_id_struct();
   if (id_struct_ == NULL) {
-    id_struct_ = new ::message::Id_struct;
+    auto* p = CreateMaybeMessage<::message::Id_struct>(GetArenaNoVirtual());
+    id_struct_ = p;
   }
   // @@protoc_insertion_point(field_mutable:message.Terminal_status_msg.id_struct)
   return id_struct_;
@@ -2501,6 +2546,9 @@ inline void Terminal_status_msg::clear_singlechipdata() {
   if (singlechipdata_ != NULL) singlechipdata_->Clear();
   clear_has_singlechipdata();
 }
+inline const ::message::Singlechip_data& Terminal_status_msg::_internal_singlechipdata() const {
+  return *singlechipdata_;
+}
 inline const ::message::Singlechip_data& Terminal_status_msg::singlechipdata() const {
   const ::message::Singlechip_data* p = singlechipdata_;
   // @@protoc_insertion_point(field_get:message.Terminal_status_msg.singlechipData)
@@ -2517,7 +2565,8 @@ inline ::message::Singlechip_data* Terminal_status_msg::release_singlechipdata()
 inline ::message::Singlechip_data* Terminal_status_msg::mutable_singlechipdata() {
   set_has_singlechipdata();
   if (singlechipdata_ == NULL) {
-    singlechipdata_ = new ::message::Singlechip_data;
+    auto* p = CreateMaybeMessage<::message::Singlechip_data>(GetArenaNoVirtual());
+    singlechipdata_ = p;
   }
   // @@protoc_insertion_point(field_mutable:message.Terminal_status_msg.singlechipData)
   return singlechipdata_;
@@ -2584,32 +2633,32 @@ inline void Terminal_status_msg::set_singlechip_validity(bool value) {
 namespace google {
 namespace protobuf {
 
-template <> struct is_proto_enum< ::message::Process_control> : ::google::protobuf::internal::true_type {};
+template <> struct is_proto_enum< ::message::Process_control> : ::std::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Process_control>() {
   return ::message::Process_control_descriptor();
 }
-template <> struct is_proto_enum< ::message::Over_border_status> : ::google::protobuf::internal::true_type {};
+template <> struct is_proto_enum< ::message::Over_border_status> : ::std::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Over_border_status>() {
   return ::message::Over_border_status_descriptor();
 }
-template <> struct is_proto_enum< ::message::Car_height_status> : ::google::protobuf::internal::true_type {};
+template <> struct is_proto_enum< ::message::Car_height_status> : ::std::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Car_height_status>() {
   return ::message::Car_height_status_descriptor();
 }
-template <> struct is_proto_enum< ::message::Outside_door_status> : ::google::protobuf::internal::true_type {};
+template <> struct is_proto_enum< ::message::Outside_door_status> : ::std::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Outside_door_status>() {
   return ::message::Outside_door_status_descriptor();
 }
-template <> struct is_proto_enum< ::message::Outside_door_control> : ::google::protobuf::internal::true_type {};
+template <> struct is_proto_enum< ::message::Outside_door_control> : ::std::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Outside_door_control>() {
   return ::message::Outside_door_control_descriptor();
 }
-template <> struct is_proto_enum< ::message::Process_status> : ::google::protobuf::internal::true_type {};
+template <> struct is_proto_enum< ::message::Process_status> : ::std::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::message::Process_status>() {
   return ::message::Process_status_descriptor();
@@ -2620,4 +2669,4 @@ inline const EnumDescriptor* GetEnumDescriptor< ::message::Process_status>() {
 
 // @@protoc_insertion_point(global_scope)
 
-#endif  // PROTOBUF_singlechip_5fmsg_2eproto__INCLUDED
+#endif  // PROTOBUF_INCLUDED_singlechip_5fmsg_2eproto

+ 71 - 112
plc调度节点/network_communication/network.pb.cc

@@ -7,7 +7,6 @@
 
 #include <google/protobuf/stubs/common.h>
 #include <google/protobuf/stubs/port.h>
-#include <google/protobuf/stubs/once.h>
 #include <google/protobuf/io/coded_stream.h>
 #include <google/protobuf/wire_format_lite_inl.h>
 #include <google/protobuf/descriptor.h>
@@ -19,6 +18,11 @@
 #include "third_party/protobuf/version.h"
 #endif
 // @@protoc_insertion_point(includes)
+
+namespace protobuf_network_2eproto {
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_network_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Network_information;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_network_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Network_parameter;
+}  // namespace protobuf_network_2eproto
 namespace Network_proto {
 class Network_informationDefaultTypeInternal {
  public:
@@ -37,14 +41,9 @@ class Network_parameter_allDefaultTypeInternal {
 } _Network_parameter_all_default_instance_;
 }  // namespace Network_proto
 namespace protobuf_network_2eproto {
-void InitDefaultsNetwork_informationImpl() {
+static void InitDefaultsNetwork_information() {
   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 = &::Network_proto::_Network_information_default_instance_;
     new (ptr) ::Network_proto::Network_information();
@@ -53,20 +52,12 @@ void InitDefaultsNetwork_informationImpl() {
   ::Network_proto::Network_information::InitAsDefaultInstance();
 }
 
-void InitDefaultsNetwork_information() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNetwork_informationImpl);
-}
+::google::protobuf::internal::SCCInfo<0> scc_info_Network_information =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNetwork_information}, {}};
 
-void InitDefaultsNetwork_parameterImpl() {
+static void InitDefaultsNetwork_parameter() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
-  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
-#else
-  ::google::protobuf::internal::InitProtobufDefaults();
-#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
-  protobuf_network_2eproto::InitDefaultsNetwork_information();
   {
     void* ptr = &::Network_proto::_Network_parameter_default_instance_;
     new (ptr) ::Network_proto::Network_parameter();
@@ -75,20 +66,13 @@ void InitDefaultsNetwork_parameterImpl() {
   ::Network_proto::Network_parameter::InitAsDefaultInstance();
 }
 
-void InitDefaultsNetwork_parameter() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNetwork_parameterImpl);
-}
+::google::protobuf::internal::SCCInfo<1> scc_info_Network_parameter =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNetwork_parameter}, {
+      &protobuf_network_2eproto::scc_info_Network_information.base,}};
 
-void InitDefaultsNetwork_parameter_allImpl() {
+static void InitDefaultsNetwork_parameter_all() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
-  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
-#else
-  ::google::protobuf::internal::InitProtobufDefaults();
-#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
-  protobuf_network_2eproto::InitDefaultsNetwork_parameter();
   {
     void* ptr = &::Network_proto::_Network_parameter_all_default_instance_;
     new (ptr) ::Network_proto::Network_parameter_all();
@@ -97,9 +81,14 @@ void InitDefaultsNetwork_parameter_allImpl() {
   ::Network_proto::Network_parameter_all::InitAsDefaultInstance();
 }
 
-void InitDefaultsNetwork_parameter_all() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNetwork_parameter_allImpl);
+::google::protobuf::internal::SCCInfo<1> scc_info_Network_parameter_all =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNetwork_parameter_all}, {
+      &protobuf_network_2eproto::scc_info_Network_parameter.base,}};
+
+void InitDefaults() {
+  ::google::protobuf::internal::InitSCC(&scc_info_Network_information.base);
+  ::google::protobuf::internal::InitSCC(&scc_info_Network_parameter.base);
+  ::google::protobuf::internal::InitSCC(&scc_info_Network_parameter_all.base);
 }
 
 ::google::protobuf::Metadata file_level_metadata[3];
@@ -148,15 +137,14 @@ static ::google::protobuf::Message const * const file_default_instances[] = {
 
 void protobuf_AssignDescriptors() {
   AddDescriptors();
-  ::google::protobuf::MessageFactory* factory = NULL;
   AssignDescriptors(
-      "network.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+      "network.proto", schemas, file_default_instances, TableStruct::offsets,
       file_level_metadata, file_level_enum_descriptors, NULL);
 }
 
 void protobuf_AssignDescriptorsOnce() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+  static ::google::protobuf::internal::once_flag once;
+  ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
 }
 
 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
@@ -187,8 +175,8 @@ void AddDescriptorsImpl() {
 }
 
 void AddDescriptors() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+  static ::google::protobuf::internal::once_flag once;
+  ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
 }
 // Force AddDescriptors() to be called at dynamic initialization time.
 struct StaticDescriptorInitializer {
@@ -228,17 +216,15 @@ const int Network_information::kPortFieldNumber;
 
 Network_information::Network_information()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_network_2eproto::InitDefaultsNetwork_information();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_network_2eproto::scc_info_Network_information.base);
   SharedCtor();
   // @@protoc_insertion_point(constructor:Network_proto.Network_information)
 }
 Network_information::Network_information(const Network_information& from)
   : ::google::protobuf::Message(),
       _internal_metadata_(NULL),
-      _has_bits_(from._has_bits_),
-      _cached_size_(0) {
+      _has_bits_(from._has_bits_) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   if (from.has_ip()) {
@@ -251,7 +237,6 @@ Network_information::Network_information(const Network_information& from)
 }
 
 void Network_information::SharedCtor() {
-  _cached_size_ = 0;
   ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   ::memset(&network_mode_, 0, static_cast<size_t>(
       reinterpret_cast<char*>(&port_) -
@@ -268,9 +253,7 @@ void Network_information::SharedDtor() {
 }
 
 void Network_information::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* Network_information::descriptor() {
   ::protobuf_network_2eproto::protobuf_AssignDescriptorsOnce();
@@ -278,17 +261,10 @@ const ::google::protobuf::Descriptor* Network_information::descriptor() {
 }
 
 const Network_information& Network_information::default_instance() {
-  ::protobuf_network_2eproto::InitDefaultsNetwork_information();
+  ::google::protobuf::internal::InitSCC(&protobuf_network_2eproto::scc_info_Network_information.base);
   return *internal_default_instance();
 }
 
-Network_information* Network_information::New(::google::protobuf::Arena* arena) const {
-  Network_information* n = new Network_information;
-  if (arena != NULL) {
-    arena->Own(n);
-  }
-  return n;
-}
 
 void Network_information::Clear() {
 // @@protoc_insertion_point(message_clear_start:Network_proto.Network_information)
@@ -298,8 +274,7 @@ void Network_information::Clear() {
 
   cached_has_bits = _has_bits_[0];
   if (cached_has_bits & 0x00000001u) {
-    GOOGLE_DCHECK(!ip_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-    (*ip_.UnsafeRawStringPointer())->clear();
+    ip_.ClearNonDefaultToEmptyNoArena();
   }
   if (cached_has_bits & 14u) {
     ::memset(&network_mode_, 0, static_cast<size_t>(
@@ -316,7 +291,7 @@ bool Network_information::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:Network_proto.Network_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)) {
@@ -526,9 +501,7 @@ size_t Network_information::ByteSizeLong() const {
 
   }
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -597,13 +570,13 @@ void Network_information::Swap(Network_information* other) {
 }
 void Network_information::InternalSwap(Network_information* other) {
   using std::swap;
-  ip_.Swap(&other->ip_);
+  ip_.Swap(&other->ip_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+    GetArenaNoVirtual());
   swap(network_mode_, other->network_mode_);
   swap(socket_id_, other->socket_id_);
   swap(port_, other->port_);
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
-  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata Network_information::GetMetadata() const {
@@ -622,9 +595,8 @@ const int Network_parameter::kNetworkInformationVectorFieldNumber;
 
 Network_parameter::Network_parameter()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_network_2eproto::InitDefaultsNetwork_parameter();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_network_2eproto::scc_info_Network_parameter.base);
   SharedCtor();
   // @@protoc_insertion_point(constructor:Network_proto.Network_parameter)
 }
@@ -632,14 +604,12 @@ Network_parameter::Network_parameter(const Network_parameter& from)
   : ::google::protobuf::Message(),
       _internal_metadata_(NULL),
       _has_bits_(from._has_bits_),
-      _cached_size_(0),
       network_information_vector_(from.network_information_vector_) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   // @@protoc_insertion_point(copy_constructor:Network_proto.Network_parameter)
 }
 
 void Network_parameter::SharedCtor() {
-  _cached_size_ = 0;
 }
 
 Network_parameter::~Network_parameter() {
@@ -651,9 +621,7 @@ void Network_parameter::SharedDtor() {
 }
 
 void Network_parameter::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* Network_parameter::descriptor() {
   ::protobuf_network_2eproto::protobuf_AssignDescriptorsOnce();
@@ -661,17 +629,10 @@ const ::google::protobuf::Descriptor* Network_parameter::descriptor() {
 }
 
 const Network_parameter& Network_parameter::default_instance() {
-  ::protobuf_network_2eproto::InitDefaultsNetwork_parameter();
+  ::google::protobuf::internal::InitSCC(&protobuf_network_2eproto::scc_info_Network_parameter.base);
   return *internal_default_instance();
 }
 
-Network_parameter* Network_parameter::New(::google::protobuf::Arena* arena) const {
-  Network_parameter* n = new Network_parameter;
-  if (arena != NULL) {
-    arena->Own(n);
-  }
-  return n;
-}
 
 void Network_parameter::Clear() {
 // @@protoc_insertion_point(message_clear_start:Network_proto.Network_parameter)
@@ -690,7 +651,7 @@ bool Network_parameter::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:Network_proto.Network_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)) {
@@ -698,7 +659,8 @@ bool Network_parameter::MergePartialFromCodedStream(
       case 1: {
         if (static_cast< ::google::protobuf::uint8>(tag) ==
             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
-          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_network_information_vector()));
+          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+                input, add_network_information_vector()));
         } else {
           goto handle_unusual;
         }
@@ -735,7 +697,9 @@ void Network_parameter::SerializeWithCachedSizes(
   for (unsigned int i = 0,
       n = static_cast<unsigned int>(this->network_information_vector_size()); i < n; i++) {
     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
-      1, this->network_information_vector(static_cast<int>(i)), output);
+      1,
+      this->network_information_vector(static_cast<int>(i)),
+      output);
   }
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -789,9 +753,7 @@ size_t Network_parameter::ByteSizeLong() const {
   }
 
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -844,10 +806,9 @@ void Network_parameter::Swap(Network_parameter* other) {
 }
 void Network_parameter::InternalSwap(Network_parameter* other) {
   using std::swap;
-  network_information_vector_.InternalSwap(&other->network_information_vector_);
+  CastToBase(&network_information_vector_)->InternalSwap(CastToBase(&other->network_information_vector_));
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
-  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata Network_parameter::GetMetadata() const {
@@ -868,17 +829,15 @@ const int Network_parameter_all::kNetworkParametersFieldNumber;
 
 Network_parameter_all::Network_parameter_all()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_network_2eproto::InitDefaultsNetwork_parameter_all();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_network_2eproto::scc_info_Network_parameter_all.base);
   SharedCtor();
   // @@protoc_insertion_point(constructor:Network_proto.Network_parameter_all)
 }
 Network_parameter_all::Network_parameter_all(const Network_parameter_all& from)
   : ::google::protobuf::Message(),
       _internal_metadata_(NULL),
-      _has_bits_(from._has_bits_),
-      _cached_size_(0) {
+      _has_bits_(from._has_bits_) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   if (from.has_network_parameters()) {
     network_parameters_ = new ::Network_proto::Network_parameter(*from.network_parameters_);
@@ -889,7 +848,6 @@ Network_parameter_all::Network_parameter_all(const Network_parameter_all& from)
 }
 
 void Network_parameter_all::SharedCtor() {
-  _cached_size_ = 0;
   network_parameters_ = NULL;
 }
 
@@ -903,9 +861,7 @@ void Network_parameter_all::SharedDtor() {
 }
 
 void Network_parameter_all::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* Network_parameter_all::descriptor() {
   ::protobuf_network_2eproto::protobuf_AssignDescriptorsOnce();
@@ -913,17 +869,10 @@ const ::google::protobuf::Descriptor* Network_parameter_all::descriptor() {
 }
 
 const Network_parameter_all& Network_parameter_all::default_instance() {
-  ::protobuf_network_2eproto::InitDefaultsNetwork_parameter_all();
+  ::google::protobuf::internal::InitSCC(&protobuf_network_2eproto::scc_info_Network_parameter_all.base);
   return *internal_default_instance();
 }
 
-Network_parameter_all* Network_parameter_all::New(::google::protobuf::Arena* arena) const {
-  Network_parameter_all* n = new Network_parameter_all;
-  if (arena != NULL) {
-    arena->Own(n);
-  }
-  return n;
-}
 
 void Network_parameter_all::Clear() {
 // @@protoc_insertion_point(message_clear_start:Network_proto.Network_parameter_all)
@@ -946,7 +895,7 @@ bool Network_parameter_all::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:Network_proto.Network_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)) {
@@ -992,7 +941,7 @@ void Network_parameter_all::SerializeWithCachedSizes(
   // optional .Network_proto.Network_parameter network_parameters = 1;
   if (cached_has_bits & 0x00000001u) {
     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
-      1, *this->network_parameters_, output);
+      1, this->_internal_network_parameters(), output);
   }
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -1014,7 +963,7 @@ void Network_parameter_all::SerializeWithCachedSizes(
   if (cached_has_bits & 0x00000001u) {
     target = ::google::protobuf::internal::WireFormatLite::
       InternalWriteMessageToArray(
-        1, *this->network_parameters_, deterministic, target);
+        1, this->_internal_network_parameters(), deterministic, target);
   }
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -1038,13 +987,11 @@ size_t Network_parameter_all::ByteSizeLong() const {
   if (has_network_parameters()) {
     total_size += 1 +
       ::google::protobuf::internal::WireFormatLite::MessageSize(
-        *this->network_parameters_);
+        *network_parameters_);
   }
 
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -1102,7 +1049,6 @@ void Network_parameter_all::InternalSwap(Network_parameter_all* other) {
   swap(network_parameters_, other->network_parameters_);
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
-  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata Network_parameter_all::GetMetadata() const {
@@ -1113,5 +1059,18 @@ void Network_parameter_all::InternalSwap(Network_parameter_all* other) {
 
 // @@protoc_insertion_point(namespace_scope)
 }  // namespace Network_proto
+namespace google {
+namespace protobuf {
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Network_proto::Network_information* Arena::CreateMaybeMessage< ::Network_proto::Network_information >(Arena* arena) {
+  return Arena::CreateInternal< ::Network_proto::Network_information >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Network_proto::Network_parameter* Arena::CreateMaybeMessage< ::Network_proto::Network_parameter >(Arena* arena) {
+  return Arena::CreateInternal< ::Network_proto::Network_parameter >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Network_proto::Network_parameter_all* Arena::CreateMaybeMessage< ::Network_proto::Network_parameter_all >(Arena* arena) {
+  return Arena::CreateInternal< ::Network_proto::Network_parameter_all >(arena);
+}
+}  // namespace protobuf
+}  // namespace google
 
 // @@protoc_insertion_point(global_scope)

+ 97 - 77
plc调度节点/network_communication/network.pb.h

@@ -1,19 +1,19 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: network.proto
 
-#ifndef PROTOBUF_network_2eproto__INCLUDED
-#define PROTOBUF_network_2eproto__INCLUDED
+#ifndef PROTOBUF_INCLUDED_network_2eproto
+#define PROTOBUF_INCLUDED_network_2eproto
 
 #include <string>
 
 #include <google/protobuf/stubs/common.h>
 
-#if GOOGLE_PROTOBUF_VERSION < 3005000
+#if GOOGLE_PROTOBUF_VERSION < 3006001
 #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 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#if 3006001 < 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,6 +24,7 @@
 #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
@@ -31,6 +32,7 @@
 #include <google/protobuf/generated_enum_reflection.h>
 #include <google/protobuf/unknown_field_set.h>
 // @@protoc_insertion_point(includes)
+#define PROTOBUF_INTERNAL_EXPORT_protobuf_network_2eproto 
 
 namespace protobuf_network_2eproto {
 // Internal implementation detail -- do not use these members.
@@ -43,17 +45,6 @@ struct TableStruct {
   static const ::google::protobuf::uint32 offsets[];
 };
 void AddDescriptors();
-void InitDefaultsNetwork_informationImpl();
-void InitDefaultsNetwork_information();
-void InitDefaultsNetwork_parameterImpl();
-void InitDefaultsNetwork_parameter();
-void InitDefaultsNetwork_parameter_allImpl();
-void InitDefaultsNetwork_parameter_all();
-inline void InitDefaults() {
-  InitDefaultsNetwork_information();
-  InitDefaultsNetwork_parameter();
-  InitDefaultsNetwork_parameter_all();
-}
 }  // namespace protobuf_network_2eproto
 namespace Network_proto {
 class Network_information;
@@ -66,6 +57,13 @@ class Network_parameter_all;
 class Network_parameter_allDefaultTypeInternal;
 extern Network_parameter_allDefaultTypeInternal _Network_parameter_all_default_instance_;
 }  // namespace Network_proto
+namespace google {
+namespace protobuf {
+template<> ::Network_proto::Network_information* Arena::CreateMaybeMessage<::Network_proto::Network_information>(Arena*);
+template<> ::Network_proto::Network_parameter* Arena::CreateMaybeMessage<::Network_proto::Network_parameter>(Arena*);
+template<> ::Network_proto::Network_parameter_all* Arena::CreateMaybeMessage<::Network_proto::Network_parameter_all>(Arena*);
+}  // namespace protobuf
+}  // namespace google
 namespace Network_proto {
 
 enum Network_mode {
@@ -132,7 +130,7 @@ class Network_information : public ::google::protobuf::Message /* @@protoc_inser
     return reinterpret_cast<const Network_information*>(
                &_Network_information_default_instance_);
   }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     0;
 
   void Swap(Network_information* other);
@@ -142,28 +140,33 @@ class Network_information : public ::google::protobuf::Message /* @@protoc_inser
 
   // implements Message ----------------------------------------------
 
-  inline Network_information* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline Network_information* New() const final {
+    return CreateMaybeMessage<Network_information>(NULL);
+  }
 
-  Network_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;
+  Network_information* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage<Network_information>(arena);
+  }
+  void CopyFrom(const ::google::protobuf::Message& from) final;
+  void MergeFrom(const ::google::protobuf::Message& from) final;
   void CopyFrom(const Network_information& from);
   void MergeFrom(const Network_information& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(Network_information* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -174,7 +177,7 @@ class Network_information : public ::google::protobuf::Message /* @@protoc_inser
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -229,13 +232,12 @@ class Network_information : public ::google::protobuf::Message /* @@protoc_inser
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
   ::google::protobuf::internal::ArenaStringPtr ip_;
   int network_mode_;
   ::google::protobuf::int32 socket_id_;
   ::google::protobuf::int32 port_;
   friend struct ::protobuf_network_2eproto::TableStruct;
-  friend void ::protobuf_network_2eproto::InitDefaultsNetwork_informationImpl();
 };
 // -------------------------------------------------------------------
 
@@ -280,7 +282,7 @@ class Network_parameter : public ::google::protobuf::Message /* @@protoc_inserti
     return reinterpret_cast<const Network_parameter*>(
                &_Network_parameter_default_instance_);
   }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     1;
 
   void Swap(Network_parameter* other);
@@ -290,28 +292,33 @@ class Network_parameter : public ::google::protobuf::Message /* @@protoc_inserti
 
   // implements Message ----------------------------------------------
 
-  inline Network_parameter* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline Network_parameter* New() const final {
+    return CreateMaybeMessage<Network_parameter>(NULL);
+  }
 
-  Network_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;
+  Network_parameter* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage<Network_parameter>(arena);
+  }
+  void CopyFrom(const ::google::protobuf::Message& from) final;
+  void MergeFrom(const ::google::protobuf::Message& from) final;
   void CopyFrom(const Network_parameter& from);
   void MergeFrom(const Network_parameter& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(Network_parameter* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -322,7 +329,7 @@ class Network_parameter : public ::google::protobuf::Message /* @@protoc_inserti
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -332,11 +339,11 @@ class Network_parameter : public ::google::protobuf::Message /* @@protoc_inserti
   int network_information_vector_size() const;
   void clear_network_information_vector();
   static const int kNetworkInformationVectorFieldNumber = 1;
-  const ::Network_proto::Network_information& network_information_vector(int index) const;
   ::Network_proto::Network_information* mutable_network_information_vector(int index);
-  ::Network_proto::Network_information* add_network_information_vector();
   ::google::protobuf::RepeatedPtrField< ::Network_proto::Network_information >*
       mutable_network_information_vector();
+  const ::Network_proto::Network_information& network_information_vector(int index) const;
+  ::Network_proto::Network_information* add_network_information_vector();
   const ::google::protobuf::RepeatedPtrField< ::Network_proto::Network_information >&
       network_information_vector() const;
 
@@ -345,10 +352,9 @@ class Network_parameter : public ::google::protobuf::Message /* @@protoc_inserti
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
   ::google::protobuf::RepeatedPtrField< ::Network_proto::Network_information > network_information_vector_;
   friend struct ::protobuf_network_2eproto::TableStruct;
-  friend void ::protobuf_network_2eproto::InitDefaultsNetwork_parameterImpl();
 };
 // -------------------------------------------------------------------
 
@@ -393,7 +399,7 @@ class Network_parameter_all : public ::google::protobuf::Message /* @@protoc_ins
     return reinterpret_cast<const Network_parameter_all*>(
                &_Network_parameter_all_default_instance_);
   }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     2;
 
   void Swap(Network_parameter_all* other);
@@ -403,28 +409,33 @@ class Network_parameter_all : public ::google::protobuf::Message /* @@protoc_ins
 
   // implements Message ----------------------------------------------
 
-  inline Network_parameter_all* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline Network_parameter_all* New() const final {
+    return CreateMaybeMessage<Network_parameter_all>(NULL);
+  }
 
-  Network_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;
+  Network_parameter_all* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage<Network_parameter_all>(arena);
+  }
+  void CopyFrom(const ::google::protobuf::Message& from) final;
+  void MergeFrom(const ::google::protobuf::Message& from) final;
   void CopyFrom(const Network_parameter_all& from);
   void MergeFrom(const Network_parameter_all& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(Network_parameter_all* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -435,7 +446,7 @@ class Network_parameter_all : public ::google::protobuf::Message /* @@protoc_ins
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -445,6 +456,9 @@ class Network_parameter_all : public ::google::protobuf::Message /* @@protoc_ins
   bool has_network_parameters() const;
   void clear_network_parameters();
   static const int kNetworkParametersFieldNumber = 1;
+  private:
+  const ::Network_proto::Network_parameter& _internal_network_parameters() const;
+  public:
   const ::Network_proto::Network_parameter& network_parameters() const;
   ::Network_proto::Network_parameter* release_network_parameters();
   ::Network_proto::Network_parameter* mutable_network_parameters();
@@ -457,10 +471,9 @@ class Network_parameter_all : public ::google::protobuf::Message /* @@protoc_ins
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
   ::Network_proto::Network_parameter* network_parameters_;
   friend struct ::protobuf_network_2eproto::TableStruct;
-  friend void ::protobuf_network_2eproto::InitDefaultsNetwork_parameter_allImpl();
 };
 // ===================================================================
 
@@ -572,8 +585,11 @@ inline ::std::string* Network_information::mutable_ip() {
 }
 inline ::std::string* Network_information::release_ip() {
   // @@protoc_insertion_point(field_release:Network_proto.Network_information.ip)
+  if (!has_ip()) {
+    return NULL;
+  }
   clear_has_ip();
-  return ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return ip_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Network_information::set_allocated_ip(::std::string* ip) {
   if (ip != NULL) {
@@ -620,23 +636,23 @@ inline int Network_parameter::network_information_vector_size() const {
 inline void Network_parameter::clear_network_information_vector() {
   network_information_vector_.Clear();
 }
-inline const ::Network_proto::Network_information& Network_parameter::network_information_vector(int index) const {
-  // @@protoc_insertion_point(field_get:Network_proto.Network_parameter.network_information_vector)
-  return network_information_vector_.Get(index);
-}
 inline ::Network_proto::Network_information* Network_parameter::mutable_network_information_vector(int index) {
   // @@protoc_insertion_point(field_mutable:Network_proto.Network_parameter.network_information_vector)
   return network_information_vector_.Mutable(index);
 }
-inline ::Network_proto::Network_information* Network_parameter::add_network_information_vector() {
-  // @@protoc_insertion_point(field_add:Network_proto.Network_parameter.network_information_vector)
-  return network_information_vector_.Add();
-}
 inline ::google::protobuf::RepeatedPtrField< ::Network_proto::Network_information >*
 Network_parameter::mutable_network_information_vector() {
   // @@protoc_insertion_point(field_mutable_list:Network_proto.Network_parameter.network_information_vector)
   return &network_information_vector_;
 }
+inline const ::Network_proto::Network_information& Network_parameter::network_information_vector(int index) const {
+  // @@protoc_insertion_point(field_get:Network_proto.Network_parameter.network_information_vector)
+  return network_information_vector_.Get(index);
+}
+inline ::Network_proto::Network_information* Network_parameter::add_network_information_vector() {
+  // @@protoc_insertion_point(field_add:Network_proto.Network_parameter.network_information_vector)
+  return network_information_vector_.Add();
+}
 inline const ::google::protobuf::RepeatedPtrField< ::Network_proto::Network_information >&
 Network_parameter::network_information_vector() const {
   // @@protoc_insertion_point(field_list:Network_proto.Network_parameter.network_information_vector)
@@ -661,6 +677,9 @@ inline void Network_parameter_all::clear_network_parameters() {
   if (network_parameters_ != NULL) network_parameters_->Clear();
   clear_has_network_parameters();
 }
+inline const ::Network_proto::Network_parameter& Network_parameter_all::_internal_network_parameters() const {
+  return *network_parameters_;
+}
 inline const ::Network_proto::Network_parameter& Network_parameter_all::network_parameters() const {
   const ::Network_proto::Network_parameter* p = network_parameters_;
   // @@protoc_insertion_point(field_get:Network_proto.Network_parameter_all.network_parameters)
@@ -677,7 +696,8 @@ inline ::Network_proto::Network_parameter* Network_parameter_all::release_networ
 inline ::Network_proto::Network_parameter* Network_parameter_all::mutable_network_parameters() {
   set_has_network_parameters();
   if (network_parameters_ == NULL) {
-    network_parameters_ = new ::Network_proto::Network_parameter;
+    auto* p = CreateMaybeMessage<::Network_proto::Network_parameter>(GetArenaNoVirtual());
+    network_parameters_ = p;
   }
   // @@protoc_insertion_point(field_mutable:Network_proto.Network_parameter_all.network_parameters)
   return network_parameters_;
@@ -716,7 +736,7 @@ inline void Network_parameter_all::set_allocated_network_parameters(::Network_pr
 namespace google {
 namespace protobuf {
 
-template <> struct is_proto_enum< ::Network_proto::Network_mode> : ::google::protobuf::internal::true_type {};
+template <> struct is_proto_enum< ::Network_proto::Network_mode> : ::std::true_type {};
 template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::Network_proto::Network_mode>() {
   return ::Network_proto::Network_mode_descriptor();
@@ -727,4 +747,4 @@ inline const EnumDescriptor* GetEnumDescriptor< ::Network_proto::Network_mode>()
 
 // @@protoc_insertion_point(global_scope)
 
-#endif  // PROTOBUF_network_2eproto__INCLUDED
+#endif  // PROTOBUF_INCLUDED_network_2eproto

+ 2 - 1
plc调度节点/network_communication/network_base.cpp

@@ -280,7 +280,8 @@ bool Network_base::is_connected(int socket_fd)
 Error_manager Network_base::check_and_reconnect(int socket_id)
 {
 	int t_socket_fd = m_network_socket_map[socket_id].m_socket_fd;
-	if ( is_connected(t_socket_fd) == false )
+    //if ( is_connected(t_socket_fd) == false )
+        if ( true)
 	{
 		//关闭连接
 		close(t_socket_fd);

+ 1 - 1
plc调度节点/network_communication/network_base.h

@@ -38,7 +38,7 @@ public:
 #define NETKORK_PARAMETER_PATH_C "../setting/network_c.prototxt"
 
 #define NETKORK_CONNECT_TIME 	5		//连接时间, 单位秒
-#define NETKORK_RECONNECT_OVER_TIME 	2		//重连超时判断的时间, 单位秒
+#define NETKORK_RECONNECT_OVER_TIME 	5		//重连超时判断的时间, 单位秒
 #define NETWORK_BUFFER_SIZE		1024	//接受缓存, 每帧最多 1024 byte
 
 	//通信状态

+ 104 - 139
plc调度节点/rabbitmq/rabbitmq.pb.cc

@@ -7,7 +7,6 @@
 
 #include <google/protobuf/stubs/common.h>
 #include <google/protobuf/stubs/port.h>
-#include <google/protobuf/stubs/once.h>
 #include <google/protobuf/io/coded_stream.h>
 #include <google/protobuf/wire_format_lite_inl.h>
 #include <google/protobuf/descriptor.h>
@@ -19,6 +18,11 @@
 #include "third_party/protobuf/version.h"
 #endif
 // @@protoc_insertion_point(includes)
+
+namespace protobuf_rabbitmq_2eproto {
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_rabbitmq_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Rabbitmq_channel_queue_consume;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_rabbitmq_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Rabbitmq_parameter;
+}  // namespace protobuf_rabbitmq_2eproto
 namespace Rabbitmq_proto {
 class Rabbitmq_channel_queue_consumeDefaultTypeInternal {
  public:
@@ -37,14 +41,9 @@ class Rabbitmq_parameter_allDefaultTypeInternal {
 } _Rabbitmq_parameter_all_default_instance_;
 }  // namespace Rabbitmq_proto
 namespace protobuf_rabbitmq_2eproto {
-void InitDefaultsRabbitmq_channel_queue_consumeImpl() {
+static void InitDefaultsRabbitmq_channel_queue_consume() {
   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 = &::Rabbitmq_proto::_Rabbitmq_channel_queue_consume_default_instance_;
     new (ptr) ::Rabbitmq_proto::Rabbitmq_channel_queue_consume();
@@ -53,20 +52,12 @@ void InitDefaultsRabbitmq_channel_queue_consumeImpl() {
   ::Rabbitmq_proto::Rabbitmq_channel_queue_consume::InitAsDefaultInstance();
 }
 
-void InitDefaultsRabbitmq_channel_queue_consume() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRabbitmq_channel_queue_consumeImpl);
-}
+::google::protobuf::internal::SCCInfo<0> scc_info_Rabbitmq_channel_queue_consume =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRabbitmq_channel_queue_consume}, {}};
 
-void InitDefaultsRabbitmq_parameterImpl() {
+static void InitDefaultsRabbitmq_parameter() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
-  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
-#else
-  ::google::protobuf::internal::InitProtobufDefaults();
-#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
-  protobuf_rabbitmq_2eproto::InitDefaultsRabbitmq_channel_queue_consume();
   {
     void* ptr = &::Rabbitmq_proto::_Rabbitmq_parameter_default_instance_;
     new (ptr) ::Rabbitmq_proto::Rabbitmq_parameter();
@@ -75,20 +66,13 @@ void InitDefaultsRabbitmq_parameterImpl() {
   ::Rabbitmq_proto::Rabbitmq_parameter::InitAsDefaultInstance();
 }
 
-void InitDefaultsRabbitmq_parameter() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRabbitmq_parameterImpl);
-}
+::google::protobuf::internal::SCCInfo<1> scc_info_Rabbitmq_parameter =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRabbitmq_parameter}, {
+      &protobuf_rabbitmq_2eproto::scc_info_Rabbitmq_channel_queue_consume.base,}};
 
-void InitDefaultsRabbitmq_parameter_allImpl() {
+static void InitDefaultsRabbitmq_parameter_all() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
-  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
-#else
-  ::google::protobuf::internal::InitProtobufDefaults();
-#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
-  protobuf_rabbitmq_2eproto::InitDefaultsRabbitmq_parameter();
   {
     void* ptr = &::Rabbitmq_proto::_Rabbitmq_parameter_all_default_instance_;
     new (ptr) ::Rabbitmq_proto::Rabbitmq_parameter_all();
@@ -97,9 +81,14 @@ void InitDefaultsRabbitmq_parameter_allImpl() {
   ::Rabbitmq_proto::Rabbitmq_parameter_all::InitAsDefaultInstance();
 }
 
-void InitDefaultsRabbitmq_parameter_all() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRabbitmq_parameter_allImpl);
+::google::protobuf::internal::SCCInfo<1> scc_info_Rabbitmq_parameter_all =
+    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRabbitmq_parameter_all}, {
+      &protobuf_rabbitmq_2eproto::scc_info_Rabbitmq_parameter.base,}};
+
+void InitDefaults() {
+  ::google::protobuf::internal::InitSCC(&scc_info_Rabbitmq_channel_queue_consume.base);
+  ::google::protobuf::internal::InitSCC(&scc_info_Rabbitmq_parameter.base);
+  ::google::protobuf::internal::InitSCC(&scc_info_Rabbitmq_parameter_all.base);
 }
 
 ::google::protobuf::Metadata file_level_metadata[3];
@@ -181,15 +170,14 @@ static ::google::protobuf::Message const * const file_default_instances[] = {
 
 void protobuf_AssignDescriptors() {
   AddDescriptors();
-  ::google::protobuf::MessageFactory* factory = NULL;
   AssignDescriptors(
-      "rabbitmq.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+      "rabbitmq.proto", schemas, file_default_instances, TableStruct::offsets,
       file_level_metadata, NULL, NULL);
 }
 
 void protobuf_AssignDescriptorsOnce() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+  static ::google::protobuf::internal::once_flag once;
+  ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
 }
 
 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
@@ -231,8 +219,8 @@ void AddDescriptorsImpl() {
 }
 
 void AddDescriptors() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+  static ::google::protobuf::internal::once_flag once;
+  ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
 }
 // Force AddDescriptors() to be called at dynamic initialization time.
 struct StaticDescriptorInitializer {
@@ -267,17 +255,15 @@ const int Rabbitmq_channel_queue_consume::kConsumeExclusiveFieldNumber;
 
 Rabbitmq_channel_queue_consume::Rabbitmq_channel_queue_consume()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_rabbitmq_2eproto::InitDefaultsRabbitmq_channel_queue_consume();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_rabbitmq_2eproto::scc_info_Rabbitmq_channel_queue_consume.base);
   SharedCtor();
   // @@protoc_insertion_point(constructor:Rabbitmq_proto.Rabbitmq_channel_queue_consume)
 }
 Rabbitmq_channel_queue_consume::Rabbitmq_channel_queue_consume(const Rabbitmq_channel_queue_consume& from)
   : ::google::protobuf::Message(),
       _internal_metadata_(NULL),
-      _has_bits_(from._has_bits_),
-      _cached_size_(0) {
+      _has_bits_(from._has_bits_) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   exchange_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   if (from.has_exchange_name()) {
@@ -306,7 +292,6 @@ Rabbitmq_channel_queue_consume::Rabbitmq_channel_queue_consume(const Rabbitmq_ch
 }
 
 void Rabbitmq_channel_queue_consume::SharedCtor() {
-  _cached_size_ = 0;
   exchange_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   routing_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   binding_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
@@ -331,9 +316,7 @@ void Rabbitmq_channel_queue_consume::SharedDtor() {
 }
 
 void Rabbitmq_channel_queue_consume::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* Rabbitmq_channel_queue_consume::descriptor() {
   ::protobuf_rabbitmq_2eproto::protobuf_AssignDescriptorsOnce();
@@ -341,17 +324,10 @@ const ::google::protobuf::Descriptor* Rabbitmq_channel_queue_consume::descriptor
 }
 
 const Rabbitmq_channel_queue_consume& Rabbitmq_channel_queue_consume::default_instance() {
-  ::protobuf_rabbitmq_2eproto::InitDefaultsRabbitmq_channel_queue_consume();
+  ::google::protobuf::internal::InitSCC(&protobuf_rabbitmq_2eproto::scc_info_Rabbitmq_channel_queue_consume.base);
   return *internal_default_instance();
 }
 
-Rabbitmq_channel_queue_consume* Rabbitmq_channel_queue_consume::New(::google::protobuf::Arena* arena) const {
-  Rabbitmq_channel_queue_consume* n = new Rabbitmq_channel_queue_consume;
-  if (arena != NULL) {
-    arena->Own(n);
-  }
-  return n;
-}
 
 void Rabbitmq_channel_queue_consume::Clear() {
 // @@protoc_insertion_point(message_clear_start:Rabbitmq_proto.Rabbitmq_channel_queue_consume)
@@ -362,24 +338,19 @@ void Rabbitmq_channel_queue_consume::Clear() {
   cached_has_bits = _has_bits_[0];
   if (cached_has_bits & 31u) {
     if (cached_has_bits & 0x00000001u) {
-      GOOGLE_DCHECK(!exchange_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-      (*exchange_name_.UnsafeRawStringPointer())->clear();
+      exchange_name_.ClearNonDefaultToEmptyNoArena();
     }
     if (cached_has_bits & 0x00000002u) {
-      GOOGLE_DCHECK(!routing_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-      (*routing_key_.UnsafeRawStringPointer())->clear();
+      routing_key_.ClearNonDefaultToEmptyNoArena();
     }
     if (cached_has_bits & 0x00000004u) {
-      GOOGLE_DCHECK(!binding_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-      (*binding_key_.UnsafeRawStringPointer())->clear();
+      binding_key_.ClearNonDefaultToEmptyNoArena();
     }
     if (cached_has_bits & 0x00000008u) {
-      GOOGLE_DCHECK(!queue_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-      (*queue_name_.UnsafeRawStringPointer())->clear();
+      queue_name_.ClearNonDefaultToEmptyNoArena();
     }
     if (cached_has_bits & 0x00000010u) {
-      GOOGLE_DCHECK(!consume_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-      (*consume_name_.UnsafeRawStringPointer())->clear();
+      consume_name_.ClearNonDefaultToEmptyNoArena();
     }
   }
   if (cached_has_bits & 224u) {
@@ -402,7 +373,7 @@ bool Rabbitmq_channel_queue_consume::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:Rabbitmq_proto.Rabbitmq_channel_queue_consume)
   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)) {
@@ -1000,9 +971,7 @@ size_t Rabbitmq_channel_queue_consume::ByteSizeLong() const {
 
   }
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -1111,11 +1080,16 @@ void Rabbitmq_channel_queue_consume::Swap(Rabbitmq_channel_queue_consume* other)
 }
 void Rabbitmq_channel_queue_consume::InternalSwap(Rabbitmq_channel_queue_consume* other) {
   using std::swap;
-  exchange_name_.Swap(&other->exchange_name_);
-  routing_key_.Swap(&other->routing_key_);
-  binding_key_.Swap(&other->binding_key_);
-  queue_name_.Swap(&other->queue_name_);
-  consume_name_.Swap(&other->consume_name_);
+  exchange_name_.Swap(&other->exchange_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+    GetArenaNoVirtual());
+  routing_key_.Swap(&other->routing_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+    GetArenaNoVirtual());
+  binding_key_.Swap(&other->binding_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+    GetArenaNoVirtual());
+  queue_name_.Swap(&other->queue_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+    GetArenaNoVirtual());
+  consume_name_.Swap(&other->consume_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+    GetArenaNoVirtual());
   swap(channel_, other->channel_);
   swap(timeout_ms_, other->timeout_ms_);
   swap(queue_passive_, other->queue_passive_);
@@ -1128,7 +1102,6 @@ void Rabbitmq_channel_queue_consume::InternalSwap(Rabbitmq_channel_queue_consume
   swap(consume_exclusive_, other->consume_exclusive_);
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
-  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata Rabbitmq_channel_queue_consume::GetMetadata() const {
@@ -1153,9 +1126,8 @@ const int Rabbitmq_parameter::kRabbitmqSenderStatusVectorFieldNumber;
 
 Rabbitmq_parameter::Rabbitmq_parameter()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_rabbitmq_2eproto::InitDefaultsRabbitmq_parameter();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_rabbitmq_2eproto::scc_info_Rabbitmq_parameter.base);
   SharedCtor();
   // @@protoc_insertion_point(constructor:Rabbitmq_proto.Rabbitmq_parameter)
 }
@@ -1163,7 +1135,6 @@ Rabbitmq_parameter::Rabbitmq_parameter(const Rabbitmq_parameter& from)
   : ::google::protobuf::Message(),
       _internal_metadata_(NULL),
       _has_bits_(from._has_bits_),
-      _cached_size_(0),
       rabbitmq_reciever_vector_(from.rabbitmq_reciever_vector_),
       rabbitmq_sender_request_vector_(from.rabbitmq_sender_request_vector_),
       rabbitmq_sender_status_vector_(from.rabbitmq_sender_status_vector_) {
@@ -1185,7 +1156,6 @@ Rabbitmq_parameter::Rabbitmq_parameter(const Rabbitmq_parameter& from)
 }
 
 void Rabbitmq_parameter::SharedCtor() {
-  _cached_size_ = 0;
   ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   user_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
@@ -1204,9 +1174,7 @@ void Rabbitmq_parameter::SharedDtor() {
 }
 
 void Rabbitmq_parameter::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* Rabbitmq_parameter::descriptor() {
   ::protobuf_rabbitmq_2eproto::protobuf_AssignDescriptorsOnce();
@@ -1214,17 +1182,10 @@ const ::google::protobuf::Descriptor* Rabbitmq_parameter::descriptor() {
 }
 
 const Rabbitmq_parameter& Rabbitmq_parameter::default_instance() {
-  ::protobuf_rabbitmq_2eproto::InitDefaultsRabbitmq_parameter();
+  ::google::protobuf::internal::InitSCC(&protobuf_rabbitmq_2eproto::scc_info_Rabbitmq_parameter.base);
   return *internal_default_instance();
 }
 
-Rabbitmq_parameter* Rabbitmq_parameter::New(::google::protobuf::Arena* arena) const {
-  Rabbitmq_parameter* n = new Rabbitmq_parameter;
-  if (arena != NULL) {
-    arena->Own(n);
-  }
-  return n;
-}
 
 void Rabbitmq_parameter::Clear() {
 // @@protoc_insertion_point(message_clear_start:Rabbitmq_proto.Rabbitmq_parameter)
@@ -1238,16 +1199,13 @@ void Rabbitmq_parameter::Clear() {
   cached_has_bits = _has_bits_[0];
   if (cached_has_bits & 7u) {
     if (cached_has_bits & 0x00000001u) {
-      GOOGLE_DCHECK(!ip_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-      (*ip_.UnsafeRawStringPointer())->clear();
+      ip_.ClearNonDefaultToEmptyNoArena();
     }
     if (cached_has_bits & 0x00000002u) {
-      GOOGLE_DCHECK(!user_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-      (*user_.UnsafeRawStringPointer())->clear();
+      user_.ClearNonDefaultToEmptyNoArena();
     }
     if (cached_has_bits & 0x00000004u) {
-      GOOGLE_DCHECK(!password_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-      (*password_.UnsafeRawStringPointer())->clear();
+      password_.ClearNonDefaultToEmptyNoArena();
     }
   }
   port_ = 0;
@@ -1261,7 +1219,7 @@ bool Rabbitmq_parameter::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:Rabbitmq_proto.Rabbitmq_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)) {
@@ -1331,7 +1289,8 @@ bool Rabbitmq_parameter::MergePartialFromCodedStream(
       case 5: {
         if (static_cast< ::google::protobuf::uint8>(tag) ==
             static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
-          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_rabbitmq_reciever_vector()));
+          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+                input, add_rabbitmq_reciever_vector()));
         } else {
           goto handle_unusual;
         }
@@ -1342,7 +1301,8 @@ bool Rabbitmq_parameter::MergePartialFromCodedStream(
       case 6: {
         if (static_cast< ::google::protobuf::uint8>(tag) ==
             static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
-          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_rabbitmq_sender_request_vector()));
+          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+                input, add_rabbitmq_sender_request_vector()));
         } else {
           goto handle_unusual;
         }
@@ -1353,7 +1313,8 @@ bool Rabbitmq_parameter::MergePartialFromCodedStream(
       case 7: {
         if (static_cast< ::google::protobuf::uint8>(tag) ==
             static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
-          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_rabbitmq_sender_status_vector()));
+          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+                input, add_rabbitmq_sender_status_vector()));
         } else {
           goto handle_unusual;
         }
@@ -1426,21 +1387,27 @@ void Rabbitmq_parameter::SerializeWithCachedSizes(
   for (unsigned int i = 0,
       n = static_cast<unsigned int>(this->rabbitmq_reciever_vector_size()); i < n; i++) {
     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
-      5, this->rabbitmq_reciever_vector(static_cast<int>(i)), output);
+      5,
+      this->rabbitmq_reciever_vector(static_cast<int>(i)),
+      output);
   }
 
   // repeated .Rabbitmq_proto.Rabbitmq_channel_queue_consume rabbitmq_sender_request_vector = 6;
   for (unsigned int i = 0,
       n = static_cast<unsigned int>(this->rabbitmq_sender_request_vector_size()); i < n; i++) {
     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
-      6, this->rabbitmq_sender_request_vector(static_cast<int>(i)), output);
+      6,
+      this->rabbitmq_sender_request_vector(static_cast<int>(i)),
+      output);
   }
 
   // repeated .Rabbitmq_proto.Rabbitmq_channel_queue_consume rabbitmq_sender_status_vector = 7;
   for (unsigned int i = 0,
       n = static_cast<unsigned int>(this->rabbitmq_sender_status_vector_size()); i < n; i++) {
     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
-      7, this->rabbitmq_sender_status_vector(static_cast<int>(i)), output);
+      7,
+      this->rabbitmq_sender_status_vector(static_cast<int>(i)),
+      output);
   }
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -1601,9 +1568,7 @@ size_t Rabbitmq_parameter::ByteSizeLong() const {
 
   }
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -1677,16 +1642,18 @@ void Rabbitmq_parameter::Swap(Rabbitmq_parameter* other) {
 }
 void Rabbitmq_parameter::InternalSwap(Rabbitmq_parameter* other) {
   using std::swap;
-  rabbitmq_reciever_vector_.InternalSwap(&other->rabbitmq_reciever_vector_);
-  rabbitmq_sender_request_vector_.InternalSwap(&other->rabbitmq_sender_request_vector_);
-  rabbitmq_sender_status_vector_.InternalSwap(&other->rabbitmq_sender_status_vector_);
-  ip_.Swap(&other->ip_);
-  user_.Swap(&other->user_);
-  password_.Swap(&other->password_);
+  CastToBase(&rabbitmq_reciever_vector_)->InternalSwap(CastToBase(&other->rabbitmq_reciever_vector_));
+  CastToBase(&rabbitmq_sender_request_vector_)->InternalSwap(CastToBase(&other->rabbitmq_sender_request_vector_));
+  CastToBase(&rabbitmq_sender_status_vector_)->InternalSwap(CastToBase(&other->rabbitmq_sender_status_vector_));
+  ip_.Swap(&other->ip_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+    GetArenaNoVirtual());
+  user_.Swap(&other->user_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+    GetArenaNoVirtual());
+  password_.Swap(&other->password_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+    GetArenaNoVirtual());
   swap(port_, other->port_);
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
-  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata Rabbitmq_parameter::GetMetadata() const {
@@ -1707,17 +1674,15 @@ const int Rabbitmq_parameter_all::kRabbitmqParametersFieldNumber;
 
 Rabbitmq_parameter_all::Rabbitmq_parameter_all()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_rabbitmq_2eproto::InitDefaultsRabbitmq_parameter_all();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_rabbitmq_2eproto::scc_info_Rabbitmq_parameter_all.base);
   SharedCtor();
   // @@protoc_insertion_point(constructor:Rabbitmq_proto.Rabbitmq_parameter_all)
 }
 Rabbitmq_parameter_all::Rabbitmq_parameter_all(const Rabbitmq_parameter_all& from)
   : ::google::protobuf::Message(),
       _internal_metadata_(NULL),
-      _has_bits_(from._has_bits_),
-      _cached_size_(0) {
+      _has_bits_(from._has_bits_) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
   if (from.has_rabbitmq_parameters()) {
     rabbitmq_parameters_ = new ::Rabbitmq_proto::Rabbitmq_parameter(*from.rabbitmq_parameters_);
@@ -1728,7 +1693,6 @@ Rabbitmq_parameter_all::Rabbitmq_parameter_all(const Rabbitmq_parameter_all& fro
 }
 
 void Rabbitmq_parameter_all::SharedCtor() {
-  _cached_size_ = 0;
   rabbitmq_parameters_ = NULL;
 }
 
@@ -1742,9 +1706,7 @@ void Rabbitmq_parameter_all::SharedDtor() {
 }
 
 void Rabbitmq_parameter_all::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* Rabbitmq_parameter_all::descriptor() {
   ::protobuf_rabbitmq_2eproto::protobuf_AssignDescriptorsOnce();
@@ -1752,17 +1714,10 @@ const ::google::protobuf::Descriptor* Rabbitmq_parameter_all::descriptor() {
 }
 
 const Rabbitmq_parameter_all& Rabbitmq_parameter_all::default_instance() {
-  ::protobuf_rabbitmq_2eproto::InitDefaultsRabbitmq_parameter_all();
+  ::google::protobuf::internal::InitSCC(&protobuf_rabbitmq_2eproto::scc_info_Rabbitmq_parameter_all.base);
   return *internal_default_instance();
 }
 
-Rabbitmq_parameter_all* Rabbitmq_parameter_all::New(::google::protobuf::Arena* arena) const {
-  Rabbitmq_parameter_all* n = new Rabbitmq_parameter_all;
-  if (arena != NULL) {
-    arena->Own(n);
-  }
-  return n;
-}
 
 void Rabbitmq_parameter_all::Clear() {
 // @@protoc_insertion_point(message_clear_start:Rabbitmq_proto.Rabbitmq_parameter_all)
@@ -1785,7 +1740,7 @@ bool Rabbitmq_parameter_all::MergePartialFromCodedStream(
   ::google::protobuf::uint32 tag;
   // @@protoc_insertion_point(parse_start:Rabbitmq_proto.Rabbitmq_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)) {
@@ -1831,7 +1786,7 @@ void Rabbitmq_parameter_all::SerializeWithCachedSizes(
   // optional .Rabbitmq_proto.Rabbitmq_parameter rabbitmq_parameters = 1;
   if (cached_has_bits & 0x00000001u) {
     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
-      1, *this->rabbitmq_parameters_, output);
+      1, this->_internal_rabbitmq_parameters(), output);
   }
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -1853,7 +1808,7 @@ void Rabbitmq_parameter_all::SerializeWithCachedSizes(
   if (cached_has_bits & 0x00000001u) {
     target = ::google::protobuf::internal::WireFormatLite::
       InternalWriteMessageToArray(
-        1, *this->rabbitmq_parameters_, deterministic, target);
+        1, this->_internal_rabbitmq_parameters(), deterministic, target);
   }
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -1877,13 +1832,11 @@ size_t Rabbitmq_parameter_all::ByteSizeLong() const {
   if (has_rabbitmq_parameters()) {
     total_size += 1 +
       ::google::protobuf::internal::WireFormatLite::MessageSize(
-        *this->rabbitmq_parameters_);
+        *rabbitmq_parameters_);
   }
 
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -1941,7 +1894,6 @@ void Rabbitmq_parameter_all::InternalSwap(Rabbitmq_parameter_all* other) {
   swap(rabbitmq_parameters_, other->rabbitmq_parameters_);
   swap(_has_bits_[0], other->_has_bits_[0]);
   _internal_metadata_.Swap(&other->_internal_metadata_);
-  swap(_cached_size_, other->_cached_size_);
 }
 
 ::google::protobuf::Metadata Rabbitmq_parameter_all::GetMetadata() const {
@@ -1952,5 +1904,18 @@ void Rabbitmq_parameter_all::InternalSwap(Rabbitmq_parameter_all* other) {
 
 // @@protoc_insertion_point(namespace_scope)
 }  // namespace Rabbitmq_proto
+namespace google {
+namespace protobuf {
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Rabbitmq_proto::Rabbitmq_channel_queue_consume* Arena::CreateMaybeMessage< ::Rabbitmq_proto::Rabbitmq_channel_queue_consume >(Arena* arena) {
+  return Arena::CreateInternal< ::Rabbitmq_proto::Rabbitmq_channel_queue_consume >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Rabbitmq_proto::Rabbitmq_parameter* Arena::CreateMaybeMessage< ::Rabbitmq_proto::Rabbitmq_parameter >(Arena* arena) {
+  return Arena::CreateInternal< ::Rabbitmq_proto::Rabbitmq_parameter >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Rabbitmq_proto::Rabbitmq_parameter_all* Arena::CreateMaybeMessage< ::Rabbitmq_proto::Rabbitmq_parameter_all >(Arena* arena) {
+  return Arena::CreateInternal< ::Rabbitmq_proto::Rabbitmq_parameter_all >(arena);
+}
+}  // namespace protobuf
+}  // namespace google
 
 // @@protoc_insertion_point(global_scope)

+ 144 - 103
plc调度节点/rabbitmq/rabbitmq.pb.h

@@ -1,19 +1,19 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: rabbitmq.proto
 
-#ifndef PROTOBUF_rabbitmq_2eproto__INCLUDED
-#define PROTOBUF_rabbitmq_2eproto__INCLUDED
+#ifndef PROTOBUF_INCLUDED_rabbitmq_2eproto
+#define PROTOBUF_INCLUDED_rabbitmq_2eproto
 
 #include <string>
 
 #include <google/protobuf/stubs/common.h>
 
-#if GOOGLE_PROTOBUF_VERSION < 3005000
+#if GOOGLE_PROTOBUF_VERSION < 3006001
 #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 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#if 3006001 < 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,12 +24,14 @@
 #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_rabbitmq_2eproto 
 
 namespace protobuf_rabbitmq_2eproto {
 // Internal implementation detail -- do not use these members.
@@ -42,17 +44,6 @@ struct TableStruct {
   static const ::google::protobuf::uint32 offsets[];
 };
 void AddDescriptors();
-void InitDefaultsRabbitmq_channel_queue_consumeImpl();
-void InitDefaultsRabbitmq_channel_queue_consume();
-void InitDefaultsRabbitmq_parameterImpl();
-void InitDefaultsRabbitmq_parameter();
-void InitDefaultsRabbitmq_parameter_allImpl();
-void InitDefaultsRabbitmq_parameter_all();
-inline void InitDefaults() {
-  InitDefaultsRabbitmq_channel_queue_consume();
-  InitDefaultsRabbitmq_parameter();
-  InitDefaultsRabbitmq_parameter_all();
-}
 }  // namespace protobuf_rabbitmq_2eproto
 namespace Rabbitmq_proto {
 class Rabbitmq_channel_queue_consume;
@@ -65,6 +56,13 @@ class Rabbitmq_parameter_all;
 class Rabbitmq_parameter_allDefaultTypeInternal;
 extern Rabbitmq_parameter_allDefaultTypeInternal _Rabbitmq_parameter_all_default_instance_;
 }  // namespace Rabbitmq_proto
+namespace google {
+namespace protobuf {
+template<> ::Rabbitmq_proto::Rabbitmq_channel_queue_consume* Arena::CreateMaybeMessage<::Rabbitmq_proto::Rabbitmq_channel_queue_consume>(Arena*);
+template<> ::Rabbitmq_proto::Rabbitmq_parameter* Arena::CreateMaybeMessage<::Rabbitmq_proto::Rabbitmq_parameter>(Arena*);
+template<> ::Rabbitmq_proto::Rabbitmq_parameter_all* Arena::CreateMaybeMessage<::Rabbitmq_proto::Rabbitmq_parameter_all>(Arena*);
+}  // namespace protobuf
+}  // namespace google
 namespace Rabbitmq_proto {
 
 // ===================================================================
@@ -110,7 +108,7 @@ class Rabbitmq_channel_queue_consume : public ::google::protobuf::Message /* @@p
     return reinterpret_cast<const Rabbitmq_channel_queue_consume*>(
                &_Rabbitmq_channel_queue_consume_default_instance_);
   }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     0;
 
   void Swap(Rabbitmq_channel_queue_consume* other);
@@ -120,28 +118,33 @@ class Rabbitmq_channel_queue_consume : public ::google::protobuf::Message /* @@p
 
   // implements Message ----------------------------------------------
 
-  inline Rabbitmq_channel_queue_consume* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline Rabbitmq_channel_queue_consume* New() const final {
+    return CreateMaybeMessage<Rabbitmq_channel_queue_consume>(NULL);
+  }
 
-  Rabbitmq_channel_queue_consume* 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;
+  Rabbitmq_channel_queue_consume* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage<Rabbitmq_channel_queue_consume>(arena);
+  }
+  void CopyFrom(const ::google::protobuf::Message& from) final;
+  void MergeFrom(const ::google::protobuf::Message& from) final;
   void CopyFrom(const Rabbitmq_channel_queue_consume& from);
   void MergeFrom(const Rabbitmq_channel_queue_consume& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(Rabbitmq_channel_queue_consume* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -152,7 +155,7 @@ class Rabbitmq_channel_queue_consume : public ::google::protobuf::Message /* @@p
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -338,7 +341,7 @@ class Rabbitmq_channel_queue_consume : public ::google::protobuf::Message /* @@p
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
   ::google::protobuf::internal::ArenaStringPtr exchange_name_;
   ::google::protobuf::internal::ArenaStringPtr routing_key_;
   ::google::protobuf::internal::ArenaStringPtr binding_key_;
@@ -355,7 +358,6 @@ class Rabbitmq_channel_queue_consume : public ::google::protobuf::Message /* @@p
   ::google::protobuf::int32 consume_no_ack_;
   ::google::protobuf::int32 consume_exclusive_;
   friend struct ::protobuf_rabbitmq_2eproto::TableStruct;
-  friend void ::protobuf_rabbitmq_2eproto::InitDefaultsRabbitmq_channel_queue_consumeImpl();
 };
 // -------------------------------------------------------------------
 
@@ -400,7 +402,7 @@ class Rabbitmq_parameter : public ::google::protobuf::Message /* @@protoc_insert
     return reinterpret_cast<const Rabbitmq_parameter*>(
                &_Rabbitmq_parameter_default_instance_);
   }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     1;
 
   void Swap(Rabbitmq_parameter* other);
@@ -410,28 +412,33 @@ class Rabbitmq_parameter : public ::google::protobuf::Message /* @@protoc_insert
 
   // implements Message ----------------------------------------------
 
-  inline Rabbitmq_parameter* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline Rabbitmq_parameter* New() const final {
+    return CreateMaybeMessage<Rabbitmq_parameter>(NULL);
+  }
 
-  Rabbitmq_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;
+  Rabbitmq_parameter* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage<Rabbitmq_parameter>(arena);
+  }
+  void CopyFrom(const ::google::protobuf::Message& from) final;
+  void MergeFrom(const ::google::protobuf::Message& from) final;
   void CopyFrom(const Rabbitmq_parameter& from);
   void MergeFrom(const Rabbitmq_parameter& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(Rabbitmq_parameter* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -442,7 +449,7 @@ class Rabbitmq_parameter : public ::google::protobuf::Message /* @@protoc_insert
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -452,11 +459,11 @@ class Rabbitmq_parameter : public ::google::protobuf::Message /* @@protoc_insert
   int rabbitmq_reciever_vector_size() const;
   void clear_rabbitmq_reciever_vector();
   static const int kRabbitmqRecieverVectorFieldNumber = 5;
-  const ::Rabbitmq_proto::Rabbitmq_channel_queue_consume& rabbitmq_reciever_vector(int index) const;
   ::Rabbitmq_proto::Rabbitmq_channel_queue_consume* mutable_rabbitmq_reciever_vector(int index);
-  ::Rabbitmq_proto::Rabbitmq_channel_queue_consume* add_rabbitmq_reciever_vector();
   ::google::protobuf::RepeatedPtrField< ::Rabbitmq_proto::Rabbitmq_channel_queue_consume >*
       mutable_rabbitmq_reciever_vector();
+  const ::Rabbitmq_proto::Rabbitmq_channel_queue_consume& rabbitmq_reciever_vector(int index) const;
+  ::Rabbitmq_proto::Rabbitmq_channel_queue_consume* add_rabbitmq_reciever_vector();
   const ::google::protobuf::RepeatedPtrField< ::Rabbitmq_proto::Rabbitmq_channel_queue_consume >&
       rabbitmq_reciever_vector() const;
 
@@ -464,11 +471,11 @@ class Rabbitmq_parameter : public ::google::protobuf::Message /* @@protoc_insert
   int rabbitmq_sender_request_vector_size() const;
   void clear_rabbitmq_sender_request_vector();
   static const int kRabbitmqSenderRequestVectorFieldNumber = 6;
-  const ::Rabbitmq_proto::Rabbitmq_channel_queue_consume& rabbitmq_sender_request_vector(int index) const;
   ::Rabbitmq_proto::Rabbitmq_channel_queue_consume* mutable_rabbitmq_sender_request_vector(int index);
-  ::Rabbitmq_proto::Rabbitmq_channel_queue_consume* add_rabbitmq_sender_request_vector();
   ::google::protobuf::RepeatedPtrField< ::Rabbitmq_proto::Rabbitmq_channel_queue_consume >*
       mutable_rabbitmq_sender_request_vector();
+  const ::Rabbitmq_proto::Rabbitmq_channel_queue_consume& rabbitmq_sender_request_vector(int index) const;
+  ::Rabbitmq_proto::Rabbitmq_channel_queue_consume* add_rabbitmq_sender_request_vector();
   const ::google::protobuf::RepeatedPtrField< ::Rabbitmq_proto::Rabbitmq_channel_queue_consume >&
       rabbitmq_sender_request_vector() const;
 
@@ -476,11 +483,11 @@ class Rabbitmq_parameter : public ::google::protobuf::Message /* @@protoc_insert
   int rabbitmq_sender_status_vector_size() const;
   void clear_rabbitmq_sender_status_vector();
   static const int kRabbitmqSenderStatusVectorFieldNumber = 7;
-  const ::Rabbitmq_proto::Rabbitmq_channel_queue_consume& rabbitmq_sender_status_vector(int index) const;
   ::Rabbitmq_proto::Rabbitmq_channel_queue_consume* mutable_rabbitmq_sender_status_vector(int index);
-  ::Rabbitmq_proto::Rabbitmq_channel_queue_consume* add_rabbitmq_sender_status_vector();
   ::google::protobuf::RepeatedPtrField< ::Rabbitmq_proto::Rabbitmq_channel_queue_consume >*
       mutable_rabbitmq_sender_status_vector();
+  const ::Rabbitmq_proto::Rabbitmq_channel_queue_consume& rabbitmq_sender_status_vector(int index) const;
+  ::Rabbitmq_proto::Rabbitmq_channel_queue_consume* add_rabbitmq_sender_status_vector();
   const ::google::protobuf::RepeatedPtrField< ::Rabbitmq_proto::Rabbitmq_channel_queue_consume >&
       rabbitmq_sender_status_vector() const;
 
@@ -549,7 +556,7 @@ class Rabbitmq_parameter : public ::google::protobuf::Message /* @@protoc_insert
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
   ::google::protobuf::RepeatedPtrField< ::Rabbitmq_proto::Rabbitmq_channel_queue_consume > rabbitmq_reciever_vector_;
   ::google::protobuf::RepeatedPtrField< ::Rabbitmq_proto::Rabbitmq_channel_queue_consume > rabbitmq_sender_request_vector_;
   ::google::protobuf::RepeatedPtrField< ::Rabbitmq_proto::Rabbitmq_channel_queue_consume > rabbitmq_sender_status_vector_;
@@ -558,7 +565,6 @@ class Rabbitmq_parameter : public ::google::protobuf::Message /* @@protoc_insert
   ::google::protobuf::internal::ArenaStringPtr password_;
   ::google::protobuf::int32 port_;
   friend struct ::protobuf_rabbitmq_2eproto::TableStruct;
-  friend void ::protobuf_rabbitmq_2eproto::InitDefaultsRabbitmq_parameterImpl();
 };
 // -------------------------------------------------------------------
 
@@ -603,7 +609,7 @@ class Rabbitmq_parameter_all : public ::google::protobuf::Message /* @@protoc_in
     return reinterpret_cast<const Rabbitmq_parameter_all*>(
                &_Rabbitmq_parameter_all_default_instance_);
   }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     2;
 
   void Swap(Rabbitmq_parameter_all* other);
@@ -613,28 +619,33 @@ class Rabbitmq_parameter_all : public ::google::protobuf::Message /* @@protoc_in
 
   // implements Message ----------------------------------------------
 
-  inline Rabbitmq_parameter_all* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline Rabbitmq_parameter_all* New() const final {
+    return CreateMaybeMessage<Rabbitmq_parameter_all>(NULL);
+  }
 
-  Rabbitmq_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;
+  Rabbitmq_parameter_all* New(::google::protobuf::Arena* arena) const final {
+    return CreateMaybeMessage<Rabbitmq_parameter_all>(arena);
+  }
+  void CopyFrom(const ::google::protobuf::Message& from) final;
+  void MergeFrom(const ::google::protobuf::Message& from) final;
   void CopyFrom(const Rabbitmq_parameter_all& from);
   void MergeFrom(const Rabbitmq_parameter_all& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(Rabbitmq_parameter_all* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -645,7 +656,7 @@ class Rabbitmq_parameter_all : public ::google::protobuf::Message /* @@protoc_in
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -655,6 +666,9 @@ class Rabbitmq_parameter_all : public ::google::protobuf::Message /* @@protoc_in
   bool has_rabbitmq_parameters() const;
   void clear_rabbitmq_parameters();
   static const int kRabbitmqParametersFieldNumber = 1;
+  private:
+  const ::Rabbitmq_proto::Rabbitmq_parameter& _internal_rabbitmq_parameters() const;
+  public:
   const ::Rabbitmq_proto::Rabbitmq_parameter& rabbitmq_parameters() const;
   ::Rabbitmq_proto::Rabbitmq_parameter* release_rabbitmq_parameters();
   ::Rabbitmq_proto::Rabbitmq_parameter* mutable_rabbitmq_parameters();
@@ -667,10 +681,9 @@ class Rabbitmq_parameter_all : public ::google::protobuf::Message /* @@protoc_in
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
+  mutable ::google::protobuf::internal::CachedSize _cached_size_;
   ::Rabbitmq_proto::Rabbitmq_parameter* rabbitmq_parameters_;
   friend struct ::protobuf_rabbitmq_2eproto::TableStruct;
-  friend void ::protobuf_rabbitmq_2eproto::InitDefaultsRabbitmq_parameter_allImpl();
 };
 // ===================================================================
 
@@ -757,8 +770,11 @@ inline ::std::string* Rabbitmq_channel_queue_consume::mutable_exchange_name() {
 }
 inline ::std::string* Rabbitmq_channel_queue_consume::release_exchange_name() {
   // @@protoc_insertion_point(field_release:Rabbitmq_proto.Rabbitmq_channel_queue_consume.exchange_name)
+  if (!has_exchange_name()) {
+    return NULL;
+  }
   clear_has_exchange_name();
-  return exchange_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return exchange_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Rabbitmq_channel_queue_consume::set_allocated_exchange_name(::std::string* exchange_name) {
   if (exchange_name != NULL) {
@@ -820,8 +836,11 @@ inline ::std::string* Rabbitmq_channel_queue_consume::mutable_routing_key() {
 }
 inline ::std::string* Rabbitmq_channel_queue_consume::release_routing_key() {
   // @@protoc_insertion_point(field_release:Rabbitmq_proto.Rabbitmq_channel_queue_consume.routing_key)
+  if (!has_routing_key()) {
+    return NULL;
+  }
   clear_has_routing_key();
-  return routing_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return routing_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Rabbitmq_channel_queue_consume::set_allocated_routing_key(::std::string* routing_key) {
   if (routing_key != NULL) {
@@ -907,8 +926,11 @@ inline ::std::string* Rabbitmq_channel_queue_consume::mutable_binding_key() {
 }
 inline ::std::string* Rabbitmq_channel_queue_consume::release_binding_key() {
   // @@protoc_insertion_point(field_release:Rabbitmq_proto.Rabbitmq_channel_queue_consume.binding_key)
+  if (!has_binding_key()) {
+    return NULL;
+  }
   clear_has_binding_key();
-  return binding_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return binding_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Rabbitmq_channel_queue_consume::set_allocated_binding_key(::std::string* binding_key) {
   if (binding_key != NULL) {
@@ -970,8 +992,11 @@ inline ::std::string* Rabbitmq_channel_queue_consume::mutable_queue_name() {
 }
 inline ::std::string* Rabbitmq_channel_queue_consume::release_queue_name() {
   // @@protoc_insertion_point(field_release:Rabbitmq_proto.Rabbitmq_channel_queue_consume.queue_name)
+  if (!has_queue_name()) {
+    return NULL;
+  }
   clear_has_queue_name();
-  return queue_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return queue_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Rabbitmq_channel_queue_consume::set_allocated_queue_name(::std::string* queue_name) {
   if (queue_name != NULL) {
@@ -1153,8 +1178,11 @@ inline ::std::string* Rabbitmq_channel_queue_consume::mutable_consume_name() {
 }
 inline ::std::string* Rabbitmq_channel_queue_consume::release_consume_name() {
   // @@protoc_insertion_point(field_release:Rabbitmq_proto.Rabbitmq_channel_queue_consume.consume_name)
+  if (!has_consume_name()) {
+    return NULL;
+  }
   clear_has_consume_name();
-  return consume_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return consume_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Rabbitmq_channel_queue_consume::set_allocated_consume_name(::std::string* consume_name) {
   if (consume_name != NULL) {
@@ -1292,8 +1320,11 @@ inline ::std::string* Rabbitmq_parameter::mutable_ip() {
 }
 inline ::std::string* Rabbitmq_parameter::release_ip() {
   // @@protoc_insertion_point(field_release:Rabbitmq_proto.Rabbitmq_parameter.ip)
+  if (!has_ip()) {
+    return NULL;
+  }
   clear_has_ip();
-  return ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return ip_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Rabbitmq_parameter::set_allocated_ip(::std::string* ip) {
   if (ip != NULL) {
@@ -1379,8 +1410,11 @@ inline ::std::string* Rabbitmq_parameter::mutable_user() {
 }
 inline ::std::string* Rabbitmq_parameter::release_user() {
   // @@protoc_insertion_point(field_release:Rabbitmq_proto.Rabbitmq_parameter.user)
+  if (!has_user()) {
+    return NULL;
+  }
   clear_has_user();
-  return user_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return user_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Rabbitmq_parameter::set_allocated_user(::std::string* user) {
   if (user != NULL) {
@@ -1442,8 +1476,11 @@ inline ::std::string* Rabbitmq_parameter::mutable_password() {
 }
 inline ::std::string* Rabbitmq_parameter::release_password() {
   // @@protoc_insertion_point(field_release:Rabbitmq_proto.Rabbitmq_parameter.password)
+  if (!has_password()) {
+    return NULL;
+  }
   clear_has_password();
-  return password_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  return password_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
 }
 inline void Rabbitmq_parameter::set_allocated_password(::std::string* password) {
   if (password != NULL) {
@@ -1462,23 +1499,23 @@ inline int Rabbitmq_parameter::rabbitmq_reciever_vector_size() const {
 inline void Rabbitmq_parameter::clear_rabbitmq_reciever_vector() {
   rabbitmq_reciever_vector_.Clear();
 }
-inline const ::Rabbitmq_proto::Rabbitmq_channel_queue_consume& Rabbitmq_parameter::rabbitmq_reciever_vector(int index) const {
-  // @@protoc_insertion_point(field_get:Rabbitmq_proto.Rabbitmq_parameter.rabbitmq_reciever_vector)
-  return rabbitmq_reciever_vector_.Get(index);
-}
 inline ::Rabbitmq_proto::Rabbitmq_channel_queue_consume* Rabbitmq_parameter::mutable_rabbitmq_reciever_vector(int index) {
   // @@protoc_insertion_point(field_mutable:Rabbitmq_proto.Rabbitmq_parameter.rabbitmq_reciever_vector)
   return rabbitmq_reciever_vector_.Mutable(index);
 }
-inline ::Rabbitmq_proto::Rabbitmq_channel_queue_consume* Rabbitmq_parameter::add_rabbitmq_reciever_vector() {
-  // @@protoc_insertion_point(field_add:Rabbitmq_proto.Rabbitmq_parameter.rabbitmq_reciever_vector)
-  return rabbitmq_reciever_vector_.Add();
-}
 inline ::google::protobuf::RepeatedPtrField< ::Rabbitmq_proto::Rabbitmq_channel_queue_consume >*
 Rabbitmq_parameter::mutable_rabbitmq_reciever_vector() {
   // @@protoc_insertion_point(field_mutable_list:Rabbitmq_proto.Rabbitmq_parameter.rabbitmq_reciever_vector)
   return &rabbitmq_reciever_vector_;
 }
+inline const ::Rabbitmq_proto::Rabbitmq_channel_queue_consume& Rabbitmq_parameter::rabbitmq_reciever_vector(int index) const {
+  // @@protoc_insertion_point(field_get:Rabbitmq_proto.Rabbitmq_parameter.rabbitmq_reciever_vector)
+  return rabbitmq_reciever_vector_.Get(index);
+}
+inline ::Rabbitmq_proto::Rabbitmq_channel_queue_consume* Rabbitmq_parameter::add_rabbitmq_reciever_vector() {
+  // @@protoc_insertion_point(field_add:Rabbitmq_proto.Rabbitmq_parameter.rabbitmq_reciever_vector)
+  return rabbitmq_reciever_vector_.Add();
+}
 inline const ::google::protobuf::RepeatedPtrField< ::Rabbitmq_proto::Rabbitmq_channel_queue_consume >&
 Rabbitmq_parameter::rabbitmq_reciever_vector() const {
   // @@protoc_insertion_point(field_list:Rabbitmq_proto.Rabbitmq_parameter.rabbitmq_reciever_vector)
@@ -1492,23 +1529,23 @@ inline int Rabbitmq_parameter::rabbitmq_sender_request_vector_size() const {
 inline void Rabbitmq_parameter::clear_rabbitmq_sender_request_vector() {
   rabbitmq_sender_request_vector_.Clear();
 }
-inline const ::Rabbitmq_proto::Rabbitmq_channel_queue_consume& Rabbitmq_parameter::rabbitmq_sender_request_vector(int index) const {
-  // @@protoc_insertion_point(field_get:Rabbitmq_proto.Rabbitmq_parameter.rabbitmq_sender_request_vector)
-  return rabbitmq_sender_request_vector_.Get(index);
-}
 inline ::Rabbitmq_proto::Rabbitmq_channel_queue_consume* Rabbitmq_parameter::mutable_rabbitmq_sender_request_vector(int index) {
   // @@protoc_insertion_point(field_mutable:Rabbitmq_proto.Rabbitmq_parameter.rabbitmq_sender_request_vector)
   return rabbitmq_sender_request_vector_.Mutable(index);
 }
-inline ::Rabbitmq_proto::Rabbitmq_channel_queue_consume* Rabbitmq_parameter::add_rabbitmq_sender_request_vector() {
-  // @@protoc_insertion_point(field_add:Rabbitmq_proto.Rabbitmq_parameter.rabbitmq_sender_request_vector)
-  return rabbitmq_sender_request_vector_.Add();
-}
 inline ::google::protobuf::RepeatedPtrField< ::Rabbitmq_proto::Rabbitmq_channel_queue_consume >*
 Rabbitmq_parameter::mutable_rabbitmq_sender_request_vector() {
   // @@protoc_insertion_point(field_mutable_list:Rabbitmq_proto.Rabbitmq_parameter.rabbitmq_sender_request_vector)
   return &rabbitmq_sender_request_vector_;
 }
+inline const ::Rabbitmq_proto::Rabbitmq_channel_queue_consume& Rabbitmq_parameter::rabbitmq_sender_request_vector(int index) const {
+  // @@protoc_insertion_point(field_get:Rabbitmq_proto.Rabbitmq_parameter.rabbitmq_sender_request_vector)
+  return rabbitmq_sender_request_vector_.Get(index);
+}
+inline ::Rabbitmq_proto::Rabbitmq_channel_queue_consume* Rabbitmq_parameter::add_rabbitmq_sender_request_vector() {
+  // @@protoc_insertion_point(field_add:Rabbitmq_proto.Rabbitmq_parameter.rabbitmq_sender_request_vector)
+  return rabbitmq_sender_request_vector_.Add();
+}
 inline const ::google::protobuf::RepeatedPtrField< ::Rabbitmq_proto::Rabbitmq_channel_queue_consume >&
 Rabbitmq_parameter::rabbitmq_sender_request_vector() const {
   // @@protoc_insertion_point(field_list:Rabbitmq_proto.Rabbitmq_parameter.rabbitmq_sender_request_vector)
@@ -1522,23 +1559,23 @@ inline int Rabbitmq_parameter::rabbitmq_sender_status_vector_size() const {
 inline void Rabbitmq_parameter::clear_rabbitmq_sender_status_vector() {
   rabbitmq_sender_status_vector_.Clear();
 }
-inline const ::Rabbitmq_proto::Rabbitmq_channel_queue_consume& Rabbitmq_parameter::rabbitmq_sender_status_vector(int index) const {
-  // @@protoc_insertion_point(field_get:Rabbitmq_proto.Rabbitmq_parameter.rabbitmq_sender_status_vector)
-  return rabbitmq_sender_status_vector_.Get(index);
-}
 inline ::Rabbitmq_proto::Rabbitmq_channel_queue_consume* Rabbitmq_parameter::mutable_rabbitmq_sender_status_vector(int index) {
   // @@protoc_insertion_point(field_mutable:Rabbitmq_proto.Rabbitmq_parameter.rabbitmq_sender_status_vector)
   return rabbitmq_sender_status_vector_.Mutable(index);
 }
-inline ::Rabbitmq_proto::Rabbitmq_channel_queue_consume* Rabbitmq_parameter::add_rabbitmq_sender_status_vector() {
-  // @@protoc_insertion_point(field_add:Rabbitmq_proto.Rabbitmq_parameter.rabbitmq_sender_status_vector)
-  return rabbitmq_sender_status_vector_.Add();
-}
 inline ::google::protobuf::RepeatedPtrField< ::Rabbitmq_proto::Rabbitmq_channel_queue_consume >*
 Rabbitmq_parameter::mutable_rabbitmq_sender_status_vector() {
   // @@protoc_insertion_point(field_mutable_list:Rabbitmq_proto.Rabbitmq_parameter.rabbitmq_sender_status_vector)
   return &rabbitmq_sender_status_vector_;
 }
+inline const ::Rabbitmq_proto::Rabbitmq_channel_queue_consume& Rabbitmq_parameter::rabbitmq_sender_status_vector(int index) const {
+  // @@protoc_insertion_point(field_get:Rabbitmq_proto.Rabbitmq_parameter.rabbitmq_sender_status_vector)
+  return rabbitmq_sender_status_vector_.Get(index);
+}
+inline ::Rabbitmq_proto::Rabbitmq_channel_queue_consume* Rabbitmq_parameter::add_rabbitmq_sender_status_vector() {
+  // @@protoc_insertion_point(field_add:Rabbitmq_proto.Rabbitmq_parameter.rabbitmq_sender_status_vector)
+  return rabbitmq_sender_status_vector_.Add();
+}
 inline const ::google::protobuf::RepeatedPtrField< ::Rabbitmq_proto::Rabbitmq_channel_queue_consume >&
 Rabbitmq_parameter::rabbitmq_sender_status_vector() const {
   // @@protoc_insertion_point(field_list:Rabbitmq_proto.Rabbitmq_parameter.rabbitmq_sender_status_vector)
@@ -1563,6 +1600,9 @@ inline void Rabbitmq_parameter_all::clear_rabbitmq_parameters() {
   if (rabbitmq_parameters_ != NULL) rabbitmq_parameters_->Clear();
   clear_has_rabbitmq_parameters();
 }
+inline const ::Rabbitmq_proto::Rabbitmq_parameter& Rabbitmq_parameter_all::_internal_rabbitmq_parameters() const {
+  return *rabbitmq_parameters_;
+}
 inline const ::Rabbitmq_proto::Rabbitmq_parameter& Rabbitmq_parameter_all::rabbitmq_parameters() const {
   const ::Rabbitmq_proto::Rabbitmq_parameter* p = rabbitmq_parameters_;
   // @@protoc_insertion_point(field_get:Rabbitmq_proto.Rabbitmq_parameter_all.rabbitmq_parameters)
@@ -1579,7 +1619,8 @@ inline ::Rabbitmq_proto::Rabbitmq_parameter* Rabbitmq_parameter_all::release_rab
 inline ::Rabbitmq_proto::Rabbitmq_parameter* Rabbitmq_parameter_all::mutable_rabbitmq_parameters() {
   set_has_rabbitmq_parameters();
   if (rabbitmq_parameters_ == NULL) {
-    rabbitmq_parameters_ = new ::Rabbitmq_proto::Rabbitmq_parameter;
+    auto* p = CreateMaybeMessage<::Rabbitmq_proto::Rabbitmq_parameter>(GetArenaNoVirtual());
+    rabbitmq_parameters_ = p;
   }
   // @@protoc_insertion_point(field_mutable:Rabbitmq_proto.Rabbitmq_parameter_all.rabbitmq_parameters)
   return rabbitmq_parameters_;
@@ -1617,4 +1658,4 @@ inline void Rabbitmq_parameter_all::set_allocated_rabbitmq_parameters(::Rabbitmq
 
 // @@protoc_insertion_point(global_scope)
 
-#endif  // PROTOBUF_rabbitmq_2eproto__INCLUDED
+#endif  // PROTOBUF_INCLUDED_rabbitmq_2eproto

+ 59 - 86
plc调度节点/snap7_communication/snap7_communication.pb.cc

@@ -7,7 +7,6 @@
 
 #include <google/protobuf/stubs/common.h>
 #include <google/protobuf/stubs/port.h>
-#include <google/protobuf/stubs/once.h>
 #include <google/protobuf/io/coded_stream.h>
 #include <google/protobuf/wire_format_lite_inl.h>
 #include <google/protobuf/descriptor.h>
@@ -19,6 +18,10 @@
 #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:
@@ -32,18 +35,13 @@ class Snap7_communication_parameter_allDefaultTypeInternal {
 } _Snap7_communication_parameter_all_default_instance_;
 }  // namespace Snap7_communication_proto
 namespace protobuf_snap7_5fcommunication_2eproto {
-void InitDefaultsSnap7_communication_parameterImpl() {
+static void InitDefaultsSnap7_communication_parameter() {
   GOOGLE_PROTOBUF_VERIFY_VERSION;
 
-#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);
+  ::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);
   ::google::protobuf::internal::OnShutdownDestroyString(
-      ::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.get_mutable());
+      ::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get_mutable());
   {
     void* ptr = &::Snap7_communication_proto::_Snap7_communication_parameter_default_instance_;
     new (ptr) ::Snap7_communication_proto::Snap7_communication_parameter();
@@ -52,20 +50,12 @@ void InitDefaultsSnap7_communication_parameterImpl() {
   ::Snap7_communication_proto::Snap7_communication_parameter::InitAsDefaultInstance();
 }
 
-void InitDefaultsSnap7_communication_parameter() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSnap7_communication_parameterImpl);
-}
+::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_allImpl() {
+static void InitDefaultsSnap7_communication_parameter_all() {
   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();
@@ -74,9 +64,13 @@ void InitDefaultsSnap7_communication_parameter_allImpl() {
   ::Snap7_communication_proto::Snap7_communication_parameter_all::InitAsDefaultInstance();
 }
 
-void InitDefaultsSnap7_communication_parameter_all() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSnap7_communication_parameter_allImpl);
+::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);
 }
 
 ::google::protobuf::Metadata file_level_metadata[2];
@@ -109,15 +103,14 @@ 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, factory,
+      "snap7_communication.proto", schemas, file_default_instances, TableStruct::offsets,
       file_level_metadata, NULL, NULL);
 }
 
 void protobuf_AssignDescriptorsOnce() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+  static ::google::protobuf::internal::once_flag once;
+  ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
 }
 
 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
@@ -144,8 +137,8 @@ void AddDescriptorsImpl() {
 }
 
 void AddDescriptors() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+  static ::google::protobuf::internal::once_flag once;
+  ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
 }
 // Force AddDescriptors() to be called at dynamic initialization time.
 struct StaticDescriptorInitializer {
@@ -160,35 +153,32 @@ namespace Snap7_communication_proto {
 
 void Snap7_communication_parameter::InitAsDefaultInstance() {
 }
-::google::protobuf::internal::ExplicitlyConstructed< ::std::string> Snap7_communication_parameter::_default_ip_string_;
+::google::protobuf::internal::ExplicitlyConstructed<::std::string> Snap7_communication_parameter::_i_give_permission_to_break_this_code_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) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_snap7_5fcommunication_2eproto::InitDefaultsSnap7_communication_parameter();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_snap7_5fcommunication_2eproto::scc_info_Snap7_communication_parameter.base);
   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_),
-      _cached_size_(0) {
+      _has_bits_(from._has_bits_) {
   _internal_metadata_.MergeFrom(from._internal_metadata_);
-  ip_string_.UnsafeSetDefault(&::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.get());
+  ip_string_.UnsafeSetDefault(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get());
   if (from.has_ip_string()) {
-    ip_string_.AssignWithDefault(&::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.get(), from.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_);
   }
   // @@protoc_insertion_point(copy_constructor:Snap7_communication_proto.Snap7_communication_parameter)
 }
 
 void Snap7_communication_parameter::SharedCtor() {
-  _cached_size_ = 0;
-  ip_string_.UnsafeSetDefault(&::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.get());
+  ip_string_.UnsafeSetDefault(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get());
 }
 
 Snap7_communication_parameter::~Snap7_communication_parameter() {
@@ -197,13 +187,11 @@ Snap7_communication_parameter::~Snap7_communication_parameter() {
 }
 
 void Snap7_communication_parameter::SharedDtor() {
-  ip_string_.DestroyNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.get());
+  ip_string_.DestroyNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get());
 }
 
 void Snap7_communication_parameter::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* Snap7_communication_parameter::descriptor() {
   ::protobuf_snap7_5fcommunication_2eproto::protobuf_AssignDescriptorsOnce();
@@ -211,17 +199,10 @@ const ::google::protobuf::Descriptor* Snap7_communication_parameter::descriptor(
 }
 
 const Snap7_communication_parameter& Snap7_communication_parameter::default_instance() {
-  ::protobuf_snap7_5fcommunication_2eproto::InitDefaultsSnap7_communication_parameter();
+  ::google::protobuf::internal::InitSCC(&protobuf_snap7_5fcommunication_2eproto::scc_info_Snap7_communication_parameter.base);
   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)
@@ -231,8 +212,7 @@ void Snap7_communication_parameter::Clear() {
 
   cached_has_bits = _has_bits_[0];
   if (cached_has_bits & 0x00000001u) {
-    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());
+    ip_string_.UnsafeMutablePointer()->assign(*&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get());
   }
   _has_bits_.Clear();
   _internal_metadata_.Clear();
@@ -244,7 +224,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)) {
@@ -351,9 +331,7 @@ size_t Snap7_communication_parameter::ByteSizeLong() const {
         this->ip_string());
   }
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -381,7 +359,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::_default_ip_string_.get(), from.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_);
   }
 }
 
@@ -410,10 +388,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_);
+  ip_string_.Swap(&other->ip_string_, &::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get(),
+    GetArenaNoVirtual());
   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 {
@@ -434,17 +412,15 @@ const int Snap7_communication_parameter_all::kSnap7CommunicationParametersFieldN
 
 Snap7_communication_parameter_all::Snap7_communication_parameter_all()
   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    ::protobuf_snap7_5fcommunication_2eproto::InitDefaultsSnap7_communication_parameter_all();
-  }
+  ::google::protobuf::internal::InitSCC(
+      &protobuf_snap7_5fcommunication_2eproto::scc_info_Snap7_communication_parameter_all.base);
   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_),
-      _cached_size_(0) {
+      _has_bits_(from._has_bits_) {
   _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_);
@@ -455,7 +431,6 @@ Snap7_communication_parameter_all::Snap7_communication_parameter_all(const Snap7
 }
 
 void Snap7_communication_parameter_all::SharedCtor() {
-  _cached_size_ = 0;
   snap7_communication_parameters_ = NULL;
 }
 
@@ -469,9 +444,7 @@ void Snap7_communication_parameter_all::SharedDtor() {
 }
 
 void Snap7_communication_parameter_all::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  _cached_size_.Set(size);
 }
 const ::google::protobuf::Descriptor* Snap7_communication_parameter_all::descriptor() {
   ::protobuf_snap7_5fcommunication_2eproto::protobuf_AssignDescriptorsOnce();
@@ -479,17 +452,10 @@ const ::google::protobuf::Descriptor* Snap7_communication_parameter_all::descrip
 }
 
 const Snap7_communication_parameter_all& Snap7_communication_parameter_all::default_instance() {
-  ::protobuf_snap7_5fcommunication_2eproto::InitDefaultsSnap7_communication_parameter_all();
+  ::google::protobuf::internal::InitSCC(&protobuf_snap7_5fcommunication_2eproto::scc_info_Snap7_communication_parameter_all.base);
   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)
@@ -512,7 +478,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)) {
@@ -558,7 +524,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->snap7_communication_parameters_, output);
+      1, this->_internal_snap7_communication_parameters(), output);
   }
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -580,7 +546,7 @@ void Snap7_communication_parameter_all::SerializeWithCachedSizes(
   if (cached_has_bits & 0x00000001u) {
     target = ::google::protobuf::internal::WireFormatLite::
       InternalWriteMessageToArray(
-        1, *this->snap7_communication_parameters_, deterministic, target);
+        1, this->_internal_snap7_communication_parameters(), deterministic, target);
   }
 
   if (_internal_metadata_.have_unknown_fields()) {
@@ -604,12 +570,10 @@ size_t Snap7_communication_parameter_all::ByteSizeLong() const {
   if (has_snap7_communication_parameters()) {
     total_size += 1 +
       ::google::protobuf::internal::WireFormatLite::MessageSize(
-        *this->snap7_communication_parameters_);
+        *snap7_communication_parameters_);
   }
   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  SetCachedSize(cached_size);
   return total_size;
 }
 
@@ -671,7 +635,6 @@ 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 {
@@ -682,5 +645,15 @@ 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)

+ 75 - 55
plc调度节点/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_snap7_5fcommunication_2eproto__INCLUDED
-#define PROTOBUF_snap7_5fcommunication_2eproto__INCLUDED
+#ifndef PROTOBUF_INCLUDED_snap7_5fcommunication_2eproto
+#define PROTOBUF_INCLUDED_snap7_5fcommunication_2eproto
 
 #include <string>
 
 #include <google/protobuf/stubs/common.h>
 
-#if GOOGLE_PROTOBUF_VERSION < 3005000
+#if GOOGLE_PROTOBUF_VERSION < 3006001
 #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 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#if 3006001 < 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,12 +24,14 @@
 #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.
@@ -42,14 +44,6 @@ 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;
@@ -59,6 +53,12 @@ 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 PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     0;
 
   void Swap(Snap7_communication_parameter* other);
@@ -114,28 +114,33 @@ class Snap7_communication_parameter : public ::google::protobuf::Message /* @@pr
 
   // implements Message ----------------------------------------------
 
-  inline Snap7_communication_parameter* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline Snap7_communication_parameter* New() const final {
+    return CreateMaybeMessage<Snap7_communication_parameter>(NULL);
+  }
 
-  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;
+  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;
   void CopyFrom(const Snap7_communication_parameter& from);
   void MergeFrom(const Snap7_communication_parameter& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(Snap7_communication_parameter* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -146,7 +151,7 @@ class Snap7_communication_parameter : public ::google::protobuf::Message /* @@pr
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -174,11 +179,12 @@ class Snap7_communication_parameter : public ::google::protobuf::Message /* @@pr
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
-  static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _default_ip_string_;
+  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:
   ::google::protobuf::internal::ArenaStringPtr ip_string_;
   friend struct ::protobuf_snap7_5fcommunication_2eproto::TableStruct;
-  friend void ::protobuf_snap7_5fcommunication_2eproto::InitDefaultsSnap7_communication_parameterImpl();
 };
 // -------------------------------------------------------------------
 
@@ -223,7 +229,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 PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+  static constexpr int kIndexInFileMessages =
     1;
 
   void Swap(Snap7_communication_parameter_all* other);
@@ -233,28 +239,33 @@ class Snap7_communication_parameter_all : public ::google::protobuf::Message /*
 
   // implements Message ----------------------------------------------
 
-  inline Snap7_communication_parameter_all* New() const PROTOBUF_FINAL { return New(NULL); }
+  inline Snap7_communication_parameter_all* New() const final {
+    return CreateMaybeMessage<Snap7_communication_parameter_all>(NULL);
+  }
 
-  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;
+  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;
   void CopyFrom(const Snap7_communication_parameter_all& from);
   void MergeFrom(const Snap7_communication_parameter_all& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
+  void Clear() final;
+  bool IsInitialized() const final;
 
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  size_t ByteSizeLong() const final;
   bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedInputStream* input) final;
   void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+      ::google::protobuf::io::CodedOutputStream* output) const final;
   ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+      bool deterministic, ::google::protobuf::uint8* target) const final;
+  int GetCachedSize() const final { return _cached_size_.Get(); }
+
   private:
   void SharedCtor();
   void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void SetCachedSize(int size) const final;
   void InternalSwap(Snap7_communication_parameter_all* other);
   private:
   inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@@ -265,7 +276,7 @@ class Snap7_communication_parameter_all : public ::google::protobuf::Message /*
   }
   public:
 
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+  ::google::protobuf::Metadata GetMetadata() const final;
 
   // nested types ----------------------------------------------------
 
@@ -275,6 +286,9 @@ 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();
@@ -287,10 +301,9 @@ class Snap7_communication_parameter_all : public ::google::protobuf::Message /*
 
   ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
   ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
+  mutable ::google::protobuf::internal::CachedSize _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();
 };
 // ===================================================================
 
@@ -314,7 +327,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::_default_ip_string_.get());
+  ip_string_.ClearToDefaultNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get());
   clear_has_ip_string();
 }
 inline const ::std::string& Snap7_communication_parameter::ip_string() const {
@@ -323,38 +336,41 @@ 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::_default_ip_string_.get(), value);
+  ip_string_.SetNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_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::_default_ip_string_.get(), ::std::move(value));
+    &::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_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::_default_ip_string_.get(), ::std::string(value));
+  ip_string_.SetNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_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::_default_ip_string_.get(),
+  ip_string_.SetNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_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::_default_ip_string_.get());
+  return ip_string_.MutableNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_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_.ReleaseNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_default_ip_string_.get());
+  return ip_string_.ReleaseNonDefaultNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get());
 }
 inline void Snap7_communication_parameter::set_allocated_ip_string(::std::string* ip_string) {
   if (ip_string != NULL) {
@@ -362,7 +378,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::_default_ip_string_.get(), ip_string);
+  ip_string_.SetAllocatedNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get(), ip_string);
   // @@protoc_insertion_point(field_set_allocated:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
 }
 
@@ -384,6 +400,9 @@ 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)
@@ -400,7 +419,8 @@ 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) {
-    snap7_communication_parameters_ = new ::Snap7_communication_proto::Snap7_communication_parameter;
+    auto* p = CreateMaybeMessage<::Snap7_communication_proto::Snap7_communication_parameter>(GetArenaNoVirtual());
+    snap7_communication_parameters_ = p;
   }
   // @@protoc_insertion_point(field_mutable:Snap7_communication_proto.Snap7_communication_parameter_all.snap7_communication_parameters)
   return snap7_communication_parameters_;
@@ -436,4 +456,4 @@ inline void Snap7_communication_parameter_all::set_allocated_snap7_communication
 
 // @@protoc_insertion_point(global_scope)
 
-#endif  // PROTOBUF_snap7_5fcommunication_2eproto__INCLUDED
+#endif  // PROTOBUF_INCLUDED_snap7_5fcommunication_2eproto

+ 15 - 6
指令检查节点/CheckEntrance.py

@@ -5,7 +5,7 @@ import time
 import async_communication as CM
 import message_pb2 as message
 import google.protobuf.text_format as tf
-
+import asyncio
 MeasureStatu={"ok":0,"无数据":1,"噪声":2,"超界":3}
 ArrowType={0:"正确图片",0x01:"向后调整",0x02:"向前调整",0x04:"向右调整",0x08:"向左调整"
            ,0x10:"左前调整",0x06:"右前调整",0x09:"右后调整",0x05:"左后调整"}
@@ -29,21 +29,21 @@ class EntranceChecker(threading.Thread):
     def receive_measureInfo(self,statu):
         self.measure_statu=statu
 
-    def exit_isOK(self, pick_table):
+    async def exit_isOK(self, pick_table):
         if pick_table.primary_key is None:
             pick_table.statu.execute_statu = message.eError
             pick_table.statu.statu_description = " 唯一码不能为空!"
             return tf.MessageToString(pick_table, as_utf8=True)
         return tf.MessageToString(pick_table, as_utf8=True)
 
-    def entrance_isOK(self,park_table):
+    async def entrance_isOK(self,park_table):
         park = message.park_table()
         park.CopyFrom(park_table)
         measure_info = message.measure_info()
         tf.Parse(self.measure_statu.statu, measure_info)
         tm = time.time()
         if self.error_str == 'OK':
-            while time.time() - tm < 1:
+            while time.time() - tm < 2:
                 if measure_info.border_statu == MeasureStatu["ok"] and measure_info.ground_status == 0:
                     park.statu.execute_statu = message.eNormal
                     park.statu.statu_description = self.error_str
@@ -58,8 +58,17 @@ class EntranceChecker(threading.Thread):
                         park.entrance_measure_info.height = 1.90
                     return tf.MessageToString(park, as_utf8=True)
                 else:
-                    tf.Parse(self.measure_statu.statu, measure_info)
-                time.sleep(0.05)
+                    await asyncio.sleep(0.1)
+                    #time.sleep(0.1)
+                    if self.measure_statu.statu is not None and self.measure_statu.timeout() is False:
+                        try:
+                            measure_info = message.measure_info()
+                            tf.Parse(self.measure_statu.statu, measure_info)
+                            print("check measure info again:",measure_info)
+                        except:
+                            print("parse exception:\n"+self.measure_statu.statu)
+
+
             print(measure_info)
             park.statu.execute_statu = message.eError
             park.statu.statu_description = "请检查入口处是否有人员逗留!"

+ 1 - 1
指令检查节点/async_communication.py

@@ -84,7 +84,7 @@ class RabbitAsyncCommunicator(threading.Thread):
         async with queue.iterator() as queue_iter:
             async for message in queue_iter:
                 if not callback==None:
-                    callback(message.body.decode())
+                    await callback(message.body.decode())
                     await message.ack()
                 if self._closing==True:
                     return

Разница между файлами не показана из-за своего большого размера
+ 805 - 94
指令检查节点/message_pb2.py


+ 7 - 7
指令检查节点/node.py

@@ -31,22 +31,22 @@ mq_user = "zx"
 mq_password = "zx123456"
 ex_name = "command_ex"
 
-def user_command_callback(body):
+async def user_command_callback(body):
     if body.find("car_number")>=0:
-        check_park_command(body)
+        await check_park_command(body)
     elif body.find("primary_key")>=0:
-        check_pick_command(body)
+        await check_pick_command(body)
     else:
         print("指令类型错误!\n%s" % body)
 
 
 
 
-def check_park_command(body):
+async def check_park_command(body):
     print("recieve park_command_queue message:%s" % body)
     park = message.park_table()
     tf.Parse(body, park)
-    table = EntranceCheckers[park.terminal_id-1].entrance_isOK(park)
+    table = await EntranceCheckers[park.terminal_id-1].entrance_isOK(park)
     cmd = message.park_table()
     tf.Parse(table, cmd)
     if cmd.statu.execute_statu == message.eNormal:
@@ -63,11 +63,11 @@ def check_park_command(body):
     print("发送反馈端口:%s    反馈表单:%s"%(response_port,table))
 
 
-def check_pick_command(body):
+async def check_pick_command(body):
     print("recv pick_command_queue message:%s" % body)
     pick = message.pick_table()
     tf.Parse(body, pick)
-    table = EntranceCheckers[0].exit_isOK(pick)
+    table = await EntranceCheckers[0].exit_isOK(pick)
     cmd = message.pick_table()
     tf.Parse(table, cmd)
     if cmd.statu.execute_statu == message.eNormal:

+ 3 - 3
测量节点/system/system_communication mq.cpp

@@ -99,7 +99,7 @@ Error_manager System_communication_mq::execute_dispatch_status_msg(Rabbitmq_mess
 			std::string t_string = t_park_table_msg.DebugString();
 			LOG(INFO) << " huli test::t_string = t_park_table_msg "<< t_string << " --- " ;
             // 给唐有成, 这里面有terminal_id(范围1-6), 可以触发感测节点保存事件.
-            
+
             //  added by yct for region cloud saving function
             //  vlp16 region
             std::map<int, Ground_region *> t_ground_region_map = Velodyne_manager::get_instance_references().get_ground_region_map();
@@ -115,10 +115,10 @@ Error_manager System_communication_mq::execute_dispatch_status_msg(Rabbitmq_mess
                     iter->second->get_region_cloud(t_filtered_cloud, Ground_region::Region_cloud_type::filtered);
                     PathCreator pc;
                     pc.Mkdir("./data/");
-                    if(pc.CreateDatePath(pc.GetCurPath(), true))
+                    if(pc.CreateDatePath(pc.GetCurPath()+"/"+std::to_string(t_park_table_msg.terminal_id())+"/", true))
                     {
                         save_cloud_txt(t_total_cloud, pc.GetCurPath()+"total.txt");
-                        save_cloud_txt(t_total_cloud, pc.GetCurPath()+"filtered.txt");
+                        save_cloud_txt(t_filtered_cloud, pc.GetCurPath()+"filtered.txt");
                         LOG(INFO) <<"total and filtered cloud in region "<<t_park_table_msg.terminal_id()<<"(1-6) has been saved in "<<pc.GetCurPath();
                     }
                 }