Browse Source

合并 comand_manager 修改到master

zx 4 năm trước cách đây
mục cha
commit
25b9c41083
2 tập tin đã thay đổi với 1132 bổ sung0 xóa
  1. 665 0
      system/system_setting.pb.cc
  2. 467 0
      system/system_setting.pb.h

+ 665 - 0
system/system_setting.pb.cc

@@ -0,0 +1,665 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: system_setting.proto
+
+#include "system_setting.pb.h"
+
+#include <algorithm>
+
+#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>
+#include <google/protobuf/generated_message_reflection.h>
+#include <google/protobuf/reflection_ops.h>
+#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
+// @@protoc_insertion_point(includes)
+namespace setting {
+class System_settingDefaultTypeInternal {
+ public:
+  ::google::protobuf::internal::ExplicitlyConstructed<System_setting>
+      _instance;
+} _System_setting_default_instance_;
+}  // namespace setting
+namespace protobuf_system_5fsetting_2eproto {
+void InitDefaultsSystem_settingImpl() {
+  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 = &::setting::_System_setting_default_instance_;
+    new (ptr) ::setting::System_setting();
+    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+  }
+  ::setting::System_setting::InitAsDefaultInstance();
+}
+
+void InitDefaultsSystem_setting() {
+  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSystem_settingImpl);
+}
+
+::google::protobuf::Metadata file_level_metadata[1];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, _has_bits_),
+  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, _internal_metadata_),
+  ~0u,  // no _extensions_
+  ~0u,  // no _oneof_case_
+  ~0u,  // no _weak_field_map_
+  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, bind_ip_),
+  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, terminor_port_),
+  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, park_space_port_),
+  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, measurer_port_),
+  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, dispatcher_port_),
+  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, entrance_num_),
+  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, export_num_),
+  0,
+  3,
+  4,
+  5,
+  6,
+  1,
+  2,
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+  { 0, 12, sizeof(::setting::System_setting)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+  reinterpret_cast<const ::google::protobuf::Message*>(&::setting::_System_setting_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+  AddDescriptors();
+  ::google::protobuf::MessageFactory* factory = NULL;
+  AssignDescriptors(
+      "system_setting.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+      file_level_metadata, NULL, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+  protobuf_AssignDescriptorsOnce();
+  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
+}
+
+void AddDescriptorsImpl() {
+  InitDefaults();
+  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+      "\n\024system_setting.proto\022\007setting\"\307\001\n\016Syst"
+      "em_setting\022\017\n\007bind_ip\030\001 \002(\t\022\034\n\rterminor_"
+      "port\030\002 \001(\005:\00530000\022\036\n\017park_space_port\030\003 \001"
+      "(\005:\00530001\022\034\n\rmeasurer_port\030\004 \001(\005:\00530002\022"
+      "\036\n\017dispatcher_port\030\005 \001(\005:\00530003\022\024\n\014entra"
+      "nce_num\030\006 \002(\005\022\022\n\nexport_num\030\007 \002(\005"
+  };
+  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
+      descriptor, 233);
+  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
+    "system_setting.proto", &protobuf_RegisterTypes);
+}
+
+void AddDescriptors() {
+  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+  StaticDescriptorInitializer() {
+    AddDescriptors();
+  }
+} static_descriptor_initializer;
+}  // namespace protobuf_system_5fsetting_2eproto
+namespace setting {
+
+// ===================================================================
+
+void System_setting::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int System_setting::kBindIpFieldNumber;
+const int System_setting::kTerminorPortFieldNumber;
+const int System_setting::kParkSpacePortFieldNumber;
+const int System_setting::kMeasurerPortFieldNumber;
+const int System_setting::kDispatcherPortFieldNumber;
+const int System_setting::kEntranceNumFieldNumber;
+const int System_setting::kExportNumFieldNumber;
+#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+System_setting::System_setting()
+  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+    ::protobuf_system_5fsetting_2eproto::InitDefaultsSystem_setting();
+  }
+  SharedCtor();
+  // @@protoc_insertion_point(constructor:setting.System_setting)
+}
+System_setting::System_setting(const System_setting& from)
+  : ::google::protobuf::Message(),
+      _internal_metadata_(NULL),
+      _has_bits_(from._has_bits_),
+      _cached_size_(0) {
+  _internal_metadata_.MergeFrom(from._internal_metadata_);
+  bind_ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  if (from.has_bind_ip()) {
+    bind_ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bind_ip_);
+  }
+  ::memcpy(&entrance_num_, &from.entrance_num_,
+    static_cast<size_t>(reinterpret_cast<char*>(&dispatcher_port_) -
+    reinterpret_cast<char*>(&entrance_num_)) + sizeof(dispatcher_port_));
+  // @@protoc_insertion_point(copy_constructor:setting.System_setting)
+}
+
+void System_setting::SharedCtor() {
+  _cached_size_ = 0;
+  bind_ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  ::memset(&entrance_num_, 0, static_cast<size_t>(
+      reinterpret_cast<char*>(&export_num_) -
+      reinterpret_cast<char*>(&entrance_num_)) + sizeof(export_num_));
+  terminor_port_ = 30000;
+  park_space_port_ = 30001;
+  measurer_port_ = 30002;
+  dispatcher_port_ = 30003;
+}
+
+System_setting::~System_setting() {
+  // @@protoc_insertion_point(destructor:setting.System_setting)
+  SharedDtor();
+}
+
+void System_setting::SharedDtor() {
+  bind_ip_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+
+void System_setting::SetCachedSize(int size) const {
+  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+  _cached_size_ = size;
+  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* System_setting::descriptor() {
+  ::protobuf_system_5fsetting_2eproto::protobuf_AssignDescriptorsOnce();
+  return ::protobuf_system_5fsetting_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const System_setting& System_setting::default_instance() {
+  ::protobuf_system_5fsetting_2eproto::InitDefaultsSystem_setting();
+  return *internal_default_instance();
+}
+
+System_setting* System_setting::New(::google::protobuf::Arena* arena) const {
+  System_setting* n = new System_setting;
+  if (arena != NULL) {
+    arena->Own(n);
+  }
+  return n;
+}
+
+void System_setting::Clear() {
+// @@protoc_insertion_point(message_clear_start:setting.System_setting)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  // Prevent compiler warnings about cached_has_bits being unused
+  (void) cached_has_bits;
+
+  cached_has_bits = _has_bits_[0];
+  if (cached_has_bits & 0x00000001u) {
+    GOOGLE_DCHECK(!bind_ip_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
+    (*bind_ip_.UnsafeRawStringPointer())->clear();
+  }
+  if (cached_has_bits & 126u) {
+    ::memset(&entrance_num_, 0, static_cast<size_t>(
+        reinterpret_cast<char*>(&export_num_) -
+        reinterpret_cast<char*>(&entrance_num_)) + sizeof(export_num_));
+    terminor_port_ = 30000;
+    park_space_port_ = 30001;
+    measurer_port_ = 30002;
+    dispatcher_port_ = 30003;
+  }
+  _has_bits_.Clear();
+  _internal_metadata_.Clear();
+}
+
+bool System_setting::MergePartialFromCodedStream(
+    ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+  ::google::protobuf::uint32 tag;
+  // @@protoc_insertion_point(parse_start:setting.System_setting)
+  for (;;) {
+    ::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)) {
+      // required string bind_ip = 1;
+      case 1: {
+        if (static_cast< ::google::protobuf::uint8>(tag) ==
+            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+                input, this->mutable_bind_ip()));
+          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+            this->bind_ip().data(), static_cast<int>(this->bind_ip().length()),
+            ::google::protobuf::internal::WireFormat::PARSE,
+            "setting.System_setting.bind_ip");
+        } else {
+          goto handle_unusual;
+        }
+        break;
+      }
+
+      // optional int32 terminor_port = 2 [default = 30000];
+      case 2: {
+        if (static_cast< ::google::protobuf::uint8>(tag) ==
+            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+          set_has_terminor_port();
+          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+                 input, &terminor_port_)));
+        } else {
+          goto handle_unusual;
+        }
+        break;
+      }
+
+      // optional int32 park_space_port = 3 [default = 30001];
+      case 3: {
+        if (static_cast< ::google::protobuf::uint8>(tag) ==
+            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+          set_has_park_space_port();
+          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+                 input, &park_space_port_)));
+        } else {
+          goto handle_unusual;
+        }
+        break;
+      }
+
+      // optional int32 measurer_port = 4 [default = 30002];
+      case 4: {
+        if (static_cast< ::google::protobuf::uint8>(tag) ==
+            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
+          set_has_measurer_port();
+          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+                 input, &measurer_port_)));
+        } else {
+          goto handle_unusual;
+        }
+        break;
+      }
+
+      // optional int32 dispatcher_port = 5 [default = 30003];
+      case 5: {
+        if (static_cast< ::google::protobuf::uint8>(tag) ==
+            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
+          set_has_dispatcher_port();
+          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+                 input, &dispatcher_port_)));
+        } else {
+          goto handle_unusual;
+        }
+        break;
+      }
+
+      // required int32 entrance_num = 6;
+      case 6: {
+        if (static_cast< ::google::protobuf::uint8>(tag) ==
+            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
+          set_has_entrance_num();
+          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+                 input, &entrance_num_)));
+        } else {
+          goto handle_unusual;
+        }
+        break;
+      }
+
+      // required int32 export_num = 7;
+      case 7: {
+        if (static_cast< ::google::protobuf::uint8>(tag) ==
+            static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
+          set_has_export_num();
+          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+                 input, &export_num_)));
+        } else {
+          goto handle_unusual;
+        }
+        break;
+      }
+
+      default: {
+      handle_unusual:
+        if (tag == 0) {
+          goto success;
+        }
+        DO_(::google::protobuf::internal::WireFormat::SkipField(
+              input, tag, _internal_metadata_.mutable_unknown_fields()));
+        break;
+      }
+    }
+  }
+success:
+  // @@protoc_insertion_point(parse_success:setting.System_setting)
+  return true;
+failure:
+  // @@protoc_insertion_point(parse_failure:setting.System_setting)
+  return false;
+#undef DO_
+}
+
+void System_setting::SerializeWithCachedSizes(
+    ::google::protobuf::io::CodedOutputStream* output) const {
+  // @@protoc_insertion_point(serialize_start:setting.System_setting)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+  cached_has_bits = _has_bits_[0];
+  // required string bind_ip = 1;
+  if (cached_has_bits & 0x00000001u) {
+    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+      this->bind_ip().data(), static_cast<int>(this->bind_ip().length()),
+      ::google::protobuf::internal::WireFormat::SERIALIZE,
+      "setting.System_setting.bind_ip");
+    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+      1, this->bind_ip(), output);
+  }
+
+  // optional int32 terminor_port = 2 [default = 30000];
+  if (cached_has_bits & 0x00000008u) {
+    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->terminor_port(), output);
+  }
+
+  // optional int32 park_space_port = 3 [default = 30001];
+  if (cached_has_bits & 0x00000010u) {
+    ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->park_space_port(), output);
+  }
+
+  // optional int32 measurer_port = 4 [default = 30002];
+  if (cached_has_bits & 0x00000020u) {
+    ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->measurer_port(), output);
+  }
+
+  // optional int32 dispatcher_port = 5 [default = 30003];
+  if (cached_has_bits & 0x00000040u) {
+    ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->dispatcher_port(), output);
+  }
+
+  // required int32 entrance_num = 6;
+  if (cached_has_bits & 0x00000002u) {
+    ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->entrance_num(), output);
+  }
+
+  // required int32 export_num = 7;
+  if (cached_has_bits & 0x00000004u) {
+    ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->export_num(), output);
+  }
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+        _internal_metadata_.unknown_fields(), output);
+  }
+  // @@protoc_insertion_point(serialize_end:setting.System_setting)
+}
+
+::google::protobuf::uint8* System_setting::InternalSerializeWithCachedSizesToArray(
+    bool deterministic, ::google::protobuf::uint8* target) const {
+  (void)deterministic; // Unused
+  // @@protoc_insertion_point(serialize_to_array_start:setting.System_setting)
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+  cached_has_bits = _has_bits_[0];
+  // required string bind_ip = 1;
+  if (cached_has_bits & 0x00000001u) {
+    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+      this->bind_ip().data(), static_cast<int>(this->bind_ip().length()),
+      ::google::protobuf::internal::WireFormat::SERIALIZE,
+      "setting.System_setting.bind_ip");
+    target =
+      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+        1, this->bind_ip(), target);
+  }
+
+  // optional int32 terminor_port = 2 [default = 30000];
+  if (cached_has_bits & 0x00000008u) {
+    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->terminor_port(), target);
+  }
+
+  // optional int32 park_space_port = 3 [default = 30001];
+  if (cached_has_bits & 0x00000010u) {
+    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->park_space_port(), target);
+  }
+
+  // optional int32 measurer_port = 4 [default = 30002];
+  if (cached_has_bits & 0x00000020u) {
+    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->measurer_port(), target);
+  }
+
+  // optional int32 dispatcher_port = 5 [default = 30003];
+  if (cached_has_bits & 0x00000040u) {
+    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->dispatcher_port(), target);
+  }
+
+  // required int32 entrance_num = 6;
+  if (cached_has_bits & 0x00000002u) {
+    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->entrance_num(), target);
+  }
+
+  // required int32 export_num = 7;
+  if (cached_has_bits & 0x00000004u) {
+    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->export_num(), target);
+  }
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+        _internal_metadata_.unknown_fields(), target);
+  }
+  // @@protoc_insertion_point(serialize_to_array_end:setting.System_setting)
+  return target;
+}
+
+size_t System_setting::RequiredFieldsByteSizeFallback() const {
+// @@protoc_insertion_point(required_fields_byte_size_fallback_start:setting.System_setting)
+  size_t total_size = 0;
+
+  if (has_bind_ip()) {
+    // required string bind_ip = 1;
+    total_size += 1 +
+      ::google::protobuf::internal::WireFormatLite::StringSize(
+        this->bind_ip());
+  }
+
+  if (has_entrance_num()) {
+    // required int32 entrance_num = 6;
+    total_size += 1 +
+      ::google::protobuf::internal::WireFormatLite::Int32Size(
+        this->entrance_num());
+  }
+
+  if (has_export_num()) {
+    // required int32 export_num = 7;
+    total_size += 1 +
+      ::google::protobuf::internal::WireFormatLite::Int32Size(
+        this->export_num());
+  }
+
+  return total_size;
+}
+size_t System_setting::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:setting.System_setting)
+  size_t total_size = 0;
+
+  if (_internal_metadata_.have_unknown_fields()) {
+    total_size +=
+      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+        _internal_metadata_.unknown_fields());
+  }
+  if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) {  // All required fields are present.
+    // required string bind_ip = 1;
+    total_size += 1 +
+      ::google::protobuf::internal::WireFormatLite::StringSize(
+        this->bind_ip());
+
+    // required int32 entrance_num = 6;
+    total_size += 1 +
+      ::google::protobuf::internal::WireFormatLite::Int32Size(
+        this->entrance_num());
+
+    // required int32 export_num = 7;
+    total_size += 1 +
+      ::google::protobuf::internal::WireFormatLite::Int32Size(
+        this->export_num());
+
+  } else {
+    total_size += RequiredFieldsByteSizeFallback();
+  }
+  if (_has_bits_[0 / 32] & 120u) {
+    // optional int32 terminor_port = 2 [default = 30000];
+    if (has_terminor_port()) {
+      total_size += 1 +
+        ::google::protobuf::internal::WireFormatLite::Int32Size(
+          this->terminor_port());
+    }
+
+    // optional int32 park_space_port = 3 [default = 30001];
+    if (has_park_space_port()) {
+      total_size += 1 +
+        ::google::protobuf::internal::WireFormatLite::Int32Size(
+          this->park_space_port());
+    }
+
+    // optional int32 measurer_port = 4 [default = 30002];
+    if (has_measurer_port()) {
+      total_size += 1 +
+        ::google::protobuf::internal::WireFormatLite::Int32Size(
+          this->measurer_port());
+    }
+
+    // optional int32 dispatcher_port = 5 [default = 30003];
+    if (has_dispatcher_port()) {
+      total_size += 1 +
+        ::google::protobuf::internal::WireFormatLite::Int32Size(
+          this->dispatcher_port());
+    }
+
+  }
+  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+  _cached_size_ = cached_size;
+  GOOGLE_SAFE_CONCURRENT_WRITES_END();
+  return total_size;
+}
+
+void System_setting::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:setting.System_setting)
+  GOOGLE_DCHECK_NE(&from, this);
+  const System_setting* source =
+      ::google::protobuf::internal::DynamicCastToGenerated<const System_setting>(
+          &from);
+  if (source == NULL) {
+  // @@protoc_insertion_point(generalized_merge_from_cast_fail:setting.System_setting)
+    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+  } else {
+  // @@protoc_insertion_point(generalized_merge_from_cast_success:setting.System_setting)
+    MergeFrom(*source);
+  }
+}
+
+void System_setting::MergeFrom(const System_setting& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:setting.System_setting)
+  GOOGLE_DCHECK_NE(&from, this);
+  _internal_metadata_.MergeFrom(from._internal_metadata_);
+  ::google::protobuf::uint32 cached_has_bits = 0;
+  (void) cached_has_bits;
+
+  cached_has_bits = from._has_bits_[0];
+  if (cached_has_bits & 127u) {
+    if (cached_has_bits & 0x00000001u) {
+      set_has_bind_ip();
+      bind_ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bind_ip_);
+    }
+    if (cached_has_bits & 0x00000002u) {
+      entrance_num_ = from.entrance_num_;
+    }
+    if (cached_has_bits & 0x00000004u) {
+      export_num_ = from.export_num_;
+    }
+    if (cached_has_bits & 0x00000008u) {
+      terminor_port_ = from.terminor_port_;
+    }
+    if (cached_has_bits & 0x00000010u) {
+      park_space_port_ = from.park_space_port_;
+    }
+    if (cached_has_bits & 0x00000020u) {
+      measurer_port_ = from.measurer_port_;
+    }
+    if (cached_has_bits & 0x00000040u) {
+      dispatcher_port_ = from.dispatcher_port_;
+    }
+    _has_bits_[0] |= cached_has_bits;
+  }
+}
+
+void System_setting::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:setting.System_setting)
+  if (&from == this) return;
+  Clear();
+  MergeFrom(from);
+}
+
+void System_setting::CopyFrom(const System_setting& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:setting.System_setting)
+  if (&from == this) return;
+  Clear();
+  MergeFrom(from);
+}
+
+bool System_setting::IsInitialized() const {
+  if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
+  return true;
+}
+
+void System_setting::Swap(System_setting* other) {
+  if (other == this) return;
+  InternalSwap(other);
+}
+void System_setting::InternalSwap(System_setting* other) {
+  using std::swap;
+  bind_ip_.Swap(&other->bind_ip_);
+  swap(entrance_num_, other->entrance_num_);
+  swap(export_num_, other->export_num_);
+  swap(terminor_port_, other->terminor_port_);
+  swap(park_space_port_, other->park_space_port_);
+  swap(measurer_port_, other->measurer_port_);
+  swap(dispatcher_port_, other->dispatcher_port_);
+  swap(_has_bits_[0], other->_has_bits_[0]);
+  _internal_metadata_.Swap(&other->_internal_metadata_);
+  swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata System_setting::GetMetadata() const {
+  protobuf_system_5fsetting_2eproto::protobuf_AssignDescriptorsOnce();
+  return ::protobuf_system_5fsetting_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// @@protoc_insertion_point(namespace_scope)
+}  // namespace setting
+
+// @@protoc_insertion_point(global_scope)

+ 467 - 0
system/system_setting.pb.h

@@ -0,0 +1,467 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: system_setting.proto
+
+#ifndef PROTOBUF_system_5fsetting_2eproto__INCLUDED
+#define PROTOBUF_system_5fsetting_2eproto__INCLUDED
+
+#include <string>
+
+#include <google/protobuf/stubs/common.h>
+
+#if GOOGLE_PROTOBUF_VERSION < 3005000
+#error This file was generated by a newer version of protoc which is
+#error incompatible with your Protocol Buffer headers.  Please update
+#error your headers.
+#endif
+#if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#error This file was generated by an older version of protoc which is
+#error incompatible with your Protocol Buffer headers.  Please
+#error regenerate this file with a newer version of protoc.
+#endif
+
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/arena.h>
+#include <google/protobuf/arenastring.h>
+#include <google/protobuf/generated_message_table_driven.h>
+#include <google/protobuf/generated_message_util.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)
+
+namespace protobuf_system_5fsetting_2eproto {
+// Internal implementation detail -- do not use these members.
+struct TableStruct {
+  static const ::google::protobuf::internal::ParseTableField entries[];
+  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
+  static const ::google::protobuf::internal::ParseTable schema[1];
+  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
+  static const ::google::protobuf::internal::SerializationTable serialization_table[];
+  static const ::google::protobuf::uint32 offsets[];
+};
+void AddDescriptors();
+void InitDefaultsSystem_settingImpl();
+void InitDefaultsSystem_setting();
+inline void InitDefaults() {
+  InitDefaultsSystem_setting();
+}
+}  // namespace protobuf_system_5fsetting_2eproto
+namespace setting {
+class System_setting;
+class System_settingDefaultTypeInternal;
+extern System_settingDefaultTypeInternal _System_setting_default_instance_;
+}  // namespace setting
+namespace setting {
+
+// ===================================================================
+
+class System_setting : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:setting.System_setting) */ {
+ public:
+  System_setting();
+  virtual ~System_setting();
+
+  System_setting(const System_setting& from);
+
+  inline System_setting& operator=(const System_setting& from) {
+    CopyFrom(from);
+    return *this;
+  }
+  #if LANG_CXX11
+  System_setting(System_setting&& from) noexcept
+    : System_setting() {
+    *this = ::std::move(from);
+  }
+
+  inline System_setting& operator=(System_setting&& from) noexcept {
+    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+      if (this != &from) InternalSwap(&from);
+    } else {
+      CopyFrom(from);
+    }
+    return *this;
+  }
+  #endif
+  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
+    return _internal_metadata_.unknown_fields();
+  }
+  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
+    return _internal_metadata_.mutable_unknown_fields();
+  }
+
+  static const ::google::protobuf::Descriptor* descriptor();
+  static const System_setting& default_instance();
+
+  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
+  static inline const System_setting* internal_default_instance() {
+    return reinterpret_cast<const System_setting*>(
+               &_System_setting_default_instance_);
+  }
+  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+    0;
+
+  void Swap(System_setting* other);
+  friend void swap(System_setting& a, System_setting& b) {
+    a.Swap(&b);
+  }
+
+  // implements Message ----------------------------------------------
+
+  inline System_setting* New() const PROTOBUF_FINAL { return New(NULL); }
+
+  System_setting* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
+  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
+  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
+  void CopyFrom(const System_setting& from);
+  void MergeFrom(const System_setting& from);
+  void Clear() PROTOBUF_FINAL;
+  bool IsInitialized() const PROTOBUF_FINAL;
+
+  size_t ByteSizeLong() const PROTOBUF_FINAL;
+  bool MergePartialFromCodedStream(
+      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+  void SerializeWithCachedSizes(
+      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
+  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+  private:
+  void SharedCtor();
+  void SharedDtor();
+  void SetCachedSize(int size) const PROTOBUF_FINAL;
+  void InternalSwap(System_setting* other);
+  private:
+  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+    return NULL;
+  }
+  inline void* MaybeArenaPtr() const {
+    return NULL;
+  }
+  public:
+
+  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+
+  // nested types ----------------------------------------------------
+
+  // accessors -------------------------------------------------------
+
+  // required string bind_ip = 1;
+  bool has_bind_ip() const;
+  void clear_bind_ip();
+  static const int kBindIpFieldNumber = 1;
+  const ::std::string& bind_ip() const;
+  void set_bind_ip(const ::std::string& value);
+  #if LANG_CXX11
+  void set_bind_ip(::std::string&& value);
+  #endif
+  void set_bind_ip(const char* value);
+  void set_bind_ip(const char* value, size_t size);
+  ::std::string* mutable_bind_ip();
+  ::std::string* release_bind_ip();
+  void set_allocated_bind_ip(::std::string* bind_ip);
+
+  // required int32 entrance_num = 6;
+  bool has_entrance_num() const;
+  void clear_entrance_num();
+  static const int kEntranceNumFieldNumber = 6;
+  ::google::protobuf::int32 entrance_num() const;
+  void set_entrance_num(::google::protobuf::int32 value);
+
+  // required int32 export_num = 7;
+  bool has_export_num() const;
+  void clear_export_num();
+  static const int kExportNumFieldNumber = 7;
+  ::google::protobuf::int32 export_num() const;
+  void set_export_num(::google::protobuf::int32 value);
+
+  // optional int32 terminor_port = 2 [default = 30000];
+  bool has_terminor_port() const;
+  void clear_terminor_port();
+  static const int kTerminorPortFieldNumber = 2;
+  ::google::protobuf::int32 terminor_port() const;
+  void set_terminor_port(::google::protobuf::int32 value);
+
+  // optional int32 park_space_port = 3 [default = 30001];
+  bool has_park_space_port() const;
+  void clear_park_space_port();
+  static const int kParkSpacePortFieldNumber = 3;
+  ::google::protobuf::int32 park_space_port() const;
+  void set_park_space_port(::google::protobuf::int32 value);
+
+  // optional int32 measurer_port = 4 [default = 30002];
+  bool has_measurer_port() const;
+  void clear_measurer_port();
+  static const int kMeasurerPortFieldNumber = 4;
+  ::google::protobuf::int32 measurer_port() const;
+  void set_measurer_port(::google::protobuf::int32 value);
+
+  // optional int32 dispatcher_port = 5 [default = 30003];
+  bool has_dispatcher_port() const;
+  void clear_dispatcher_port();
+  static const int kDispatcherPortFieldNumber = 5;
+  ::google::protobuf::int32 dispatcher_port() const;
+  void set_dispatcher_port(::google::protobuf::int32 value);
+
+  // @@protoc_insertion_point(class_scope:setting.System_setting)
+ private:
+  void set_has_bind_ip();
+  void clear_has_bind_ip();
+  void set_has_terminor_port();
+  void clear_has_terminor_port();
+  void set_has_park_space_port();
+  void clear_has_park_space_port();
+  void set_has_measurer_port();
+  void clear_has_measurer_port();
+  void set_has_dispatcher_port();
+  void clear_has_dispatcher_port();
+  void set_has_entrance_num();
+  void clear_has_entrance_num();
+  void set_has_export_num();
+  void clear_has_export_num();
+
+  // helper for ByteSizeLong()
+  size_t RequiredFieldsByteSizeFallback() const;
+
+  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+  ::google::protobuf::internal::HasBits<1> _has_bits_;
+  mutable int _cached_size_;
+  ::google::protobuf::internal::ArenaStringPtr bind_ip_;
+  ::google::protobuf::int32 entrance_num_;
+  ::google::protobuf::int32 export_num_;
+  ::google::protobuf::int32 terminor_port_;
+  ::google::protobuf::int32 park_space_port_;
+  ::google::protobuf::int32 measurer_port_;
+  ::google::protobuf::int32 dispatcher_port_;
+  friend struct ::protobuf_system_5fsetting_2eproto::TableStruct;
+  friend void ::protobuf_system_5fsetting_2eproto::InitDefaultsSystem_settingImpl();
+};
+// ===================================================================
+
+
+// ===================================================================
+
+#ifdef __GNUC__
+  #pragma GCC diagnostic push
+  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif  // __GNUC__
+// System_setting
+
+// required string bind_ip = 1;
+inline bool System_setting::has_bind_ip() const {
+  return (_has_bits_[0] & 0x00000001u) != 0;
+}
+inline void System_setting::set_has_bind_ip() {
+  _has_bits_[0] |= 0x00000001u;
+}
+inline void System_setting::clear_has_bind_ip() {
+  _has_bits_[0] &= ~0x00000001u;
+}
+inline void System_setting::clear_bind_ip() {
+  bind_ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+  clear_has_bind_ip();
+}
+inline const ::std::string& System_setting::bind_ip() const {
+  // @@protoc_insertion_point(field_get:setting.System_setting.bind_ip)
+  return bind_ip_.GetNoArena();
+}
+inline void System_setting::set_bind_ip(const ::std::string& value) {
+  set_has_bind_ip();
+  bind_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+  // @@protoc_insertion_point(field_set:setting.System_setting.bind_ip)
+}
+#if LANG_CXX11
+inline void System_setting::set_bind_ip(::std::string&& value) {
+  set_has_bind_ip();
+  bind_ip_.SetNoArena(
+    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+  // @@protoc_insertion_point(field_set_rvalue:setting.System_setting.bind_ip)
+}
+#endif
+inline void System_setting::set_bind_ip(const char* value) {
+  GOOGLE_DCHECK(value != NULL);
+  set_has_bind_ip();
+  bind_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+  // @@protoc_insertion_point(field_set_char:setting.System_setting.bind_ip)
+}
+inline void System_setting::set_bind_ip(const char* value, size_t size) {
+  set_has_bind_ip();
+  bind_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+      ::std::string(reinterpret_cast<const char*>(value), size));
+  // @@protoc_insertion_point(field_set_pointer:setting.System_setting.bind_ip)
+}
+inline ::std::string* System_setting::mutable_bind_ip() {
+  set_has_bind_ip();
+  // @@protoc_insertion_point(field_mutable:setting.System_setting.bind_ip)
+  return bind_ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* System_setting::release_bind_ip() {
+  // @@protoc_insertion_point(field_release:setting.System_setting.bind_ip)
+  clear_has_bind_ip();
+  return bind_ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void System_setting::set_allocated_bind_ip(::std::string* bind_ip) {
+  if (bind_ip != NULL) {
+    set_has_bind_ip();
+  } else {
+    clear_has_bind_ip();
+  }
+  bind_ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), bind_ip);
+  // @@protoc_insertion_point(field_set_allocated:setting.System_setting.bind_ip)
+}
+
+// optional int32 terminor_port = 2 [default = 30000];
+inline bool System_setting::has_terminor_port() const {
+  return (_has_bits_[0] & 0x00000008u) != 0;
+}
+inline void System_setting::set_has_terminor_port() {
+  _has_bits_[0] |= 0x00000008u;
+}
+inline void System_setting::clear_has_terminor_port() {
+  _has_bits_[0] &= ~0x00000008u;
+}
+inline void System_setting::clear_terminor_port() {
+  terminor_port_ = 30000;
+  clear_has_terminor_port();
+}
+inline ::google::protobuf::int32 System_setting::terminor_port() const {
+  // @@protoc_insertion_point(field_get:setting.System_setting.terminor_port)
+  return terminor_port_;
+}
+inline void System_setting::set_terminor_port(::google::protobuf::int32 value) {
+  set_has_terminor_port();
+  terminor_port_ = value;
+  // @@protoc_insertion_point(field_set:setting.System_setting.terminor_port)
+}
+
+// optional int32 park_space_port = 3 [default = 30001];
+inline bool System_setting::has_park_space_port() const {
+  return (_has_bits_[0] & 0x00000010u) != 0;
+}
+inline void System_setting::set_has_park_space_port() {
+  _has_bits_[0] |= 0x00000010u;
+}
+inline void System_setting::clear_has_park_space_port() {
+  _has_bits_[0] &= ~0x00000010u;
+}
+inline void System_setting::clear_park_space_port() {
+  park_space_port_ = 30001;
+  clear_has_park_space_port();
+}
+inline ::google::protobuf::int32 System_setting::park_space_port() const {
+  // @@protoc_insertion_point(field_get:setting.System_setting.park_space_port)
+  return park_space_port_;
+}
+inline void System_setting::set_park_space_port(::google::protobuf::int32 value) {
+  set_has_park_space_port();
+  park_space_port_ = value;
+  // @@protoc_insertion_point(field_set:setting.System_setting.park_space_port)
+}
+
+// optional int32 measurer_port = 4 [default = 30002];
+inline bool System_setting::has_measurer_port() const {
+  return (_has_bits_[0] & 0x00000020u) != 0;
+}
+inline void System_setting::set_has_measurer_port() {
+  _has_bits_[0] |= 0x00000020u;
+}
+inline void System_setting::clear_has_measurer_port() {
+  _has_bits_[0] &= ~0x00000020u;
+}
+inline void System_setting::clear_measurer_port() {
+  measurer_port_ = 30002;
+  clear_has_measurer_port();
+}
+inline ::google::protobuf::int32 System_setting::measurer_port() const {
+  // @@protoc_insertion_point(field_get:setting.System_setting.measurer_port)
+  return measurer_port_;
+}
+inline void System_setting::set_measurer_port(::google::protobuf::int32 value) {
+  set_has_measurer_port();
+  measurer_port_ = value;
+  // @@protoc_insertion_point(field_set:setting.System_setting.measurer_port)
+}
+
+// optional int32 dispatcher_port = 5 [default = 30003];
+inline bool System_setting::has_dispatcher_port() const {
+  return (_has_bits_[0] & 0x00000040u) != 0;
+}
+inline void System_setting::set_has_dispatcher_port() {
+  _has_bits_[0] |= 0x00000040u;
+}
+inline void System_setting::clear_has_dispatcher_port() {
+  _has_bits_[0] &= ~0x00000040u;
+}
+inline void System_setting::clear_dispatcher_port() {
+  dispatcher_port_ = 30003;
+  clear_has_dispatcher_port();
+}
+inline ::google::protobuf::int32 System_setting::dispatcher_port() const {
+  // @@protoc_insertion_point(field_get:setting.System_setting.dispatcher_port)
+  return dispatcher_port_;
+}
+inline void System_setting::set_dispatcher_port(::google::protobuf::int32 value) {
+  set_has_dispatcher_port();
+  dispatcher_port_ = value;
+  // @@protoc_insertion_point(field_set:setting.System_setting.dispatcher_port)
+}
+
+// required int32 entrance_num = 6;
+inline bool System_setting::has_entrance_num() const {
+  return (_has_bits_[0] & 0x00000002u) != 0;
+}
+inline void System_setting::set_has_entrance_num() {
+  _has_bits_[0] |= 0x00000002u;
+}
+inline void System_setting::clear_has_entrance_num() {
+  _has_bits_[0] &= ~0x00000002u;
+}
+inline void System_setting::clear_entrance_num() {
+  entrance_num_ = 0;
+  clear_has_entrance_num();
+}
+inline ::google::protobuf::int32 System_setting::entrance_num() const {
+  // @@protoc_insertion_point(field_get:setting.System_setting.entrance_num)
+  return entrance_num_;
+}
+inline void System_setting::set_entrance_num(::google::protobuf::int32 value) {
+  set_has_entrance_num();
+  entrance_num_ = value;
+  // @@protoc_insertion_point(field_set:setting.System_setting.entrance_num)
+}
+
+// required int32 export_num = 7;
+inline bool System_setting::has_export_num() const {
+  return (_has_bits_[0] & 0x00000004u) != 0;
+}
+inline void System_setting::set_has_export_num() {
+  _has_bits_[0] |= 0x00000004u;
+}
+inline void System_setting::clear_has_export_num() {
+  _has_bits_[0] &= ~0x00000004u;
+}
+inline void System_setting::clear_export_num() {
+  export_num_ = 0;
+  clear_has_export_num();
+}
+inline ::google::protobuf::int32 System_setting::export_num() const {
+  // @@protoc_insertion_point(field_get:setting.System_setting.export_num)
+  return export_num_;
+}
+inline void System_setting::set_export_num(::google::protobuf::int32 value) {
+  set_has_export_num();
+  export_num_ = value;
+  // @@protoc_insertion_point(field_set:setting.System_setting.export_num)
+}
+
+#ifdef __GNUC__
+  #pragma GCC diagnostic pop
+#endif  // __GNUC__
+
+// @@protoc_insertion_point(namespace_scope)
+
+}  // namespace setting
+
+// @@protoc_insertion_point(global_scope)
+
+#endif  // PROTOBUF_system_5fsetting_2eproto__INCLUDED