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