system_setting.pb.cc 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: system_setting.proto
  3. #include "system_setting.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/stubs/once.h>
  8. #include <google/protobuf/io/coded_stream.h>
  9. #include <google/protobuf/wire_format_lite_inl.h>
  10. #include <google/protobuf/descriptor.h>
  11. #include <google/protobuf/generated_message_reflection.h>
  12. #include <google/protobuf/reflection_ops.h>
  13. #include <google/protobuf/wire_format.h>
  14. // This is a temporary google only hack
  15. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  16. #include "third_party/protobuf/version.h"
  17. #endif
  18. // @@protoc_insertion_point(includes)
  19. namespace setting {
  20. class System_settingDefaultTypeInternal {
  21. public:
  22. ::google::protobuf::internal::ExplicitlyConstructed<System_setting>
  23. _instance;
  24. } _System_setting_default_instance_;
  25. } // namespace setting
  26. namespace protobuf_system_5fsetting_2eproto {
  27. void InitDefaultsSystem_settingImpl() {
  28. GOOGLE_PROTOBUF_VERIFY_VERSION;
  29. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  30. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  31. #else
  32. ::google::protobuf::internal::InitProtobufDefaults();
  33. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  34. {
  35. void* ptr = &::setting::_System_setting_default_instance_;
  36. new (ptr) ::setting::System_setting();
  37. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  38. }
  39. ::setting::System_setting::InitAsDefaultInstance();
  40. }
  41. void InitDefaultsSystem_setting() {
  42. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  43. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSystem_settingImpl);
  44. }
  45. ::google::protobuf::Metadata file_level_metadata[1];
  46. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  47. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, _has_bits_),
  48. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, _internal_metadata_),
  49. ~0u, // no _extensions_
  50. ~0u, // no _oneof_case_
  51. ~0u, // no _weak_field_map_
  52. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, bind_ip_),
  53. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, bind_port_),
  54. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, entrance_num_),
  55. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, export_num_),
  56. 0,
  57. 3,
  58. 1,
  59. 2,
  60. };
  61. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  62. { 0, 9, sizeof(::setting::System_setting)},
  63. };
  64. static ::google::protobuf::Message const * const file_default_instances[] = {
  65. reinterpret_cast<const ::google::protobuf::Message*>(&::setting::_System_setting_default_instance_),
  66. };
  67. void protobuf_AssignDescriptors() {
  68. AddDescriptors();
  69. ::google::protobuf::MessageFactory* factory = NULL;
  70. AssignDescriptors(
  71. "system_setting.proto", schemas, file_default_instances, TableStruct::offsets, factory,
  72. file_level_metadata, NULL, NULL);
  73. }
  74. void protobuf_AssignDescriptorsOnce() {
  75. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  76. ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
  77. }
  78. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  79. void protobuf_RegisterTypes(const ::std::string&) {
  80. protobuf_AssignDescriptorsOnce();
  81. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
  82. }
  83. void AddDescriptorsImpl() {
  84. InitDefaults();
  85. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  86. "\n\024system_setting.proto\022\007setting\"e\n\016Syste"
  87. "m_setting\022\017\n\007bind_ip\030\001 \002(\t\022\030\n\tbind_port\030"
  88. "\002 \001(\005:\00530000\022\024\n\014entrance_num\030\003 \002(\005\022\022\n\nex"
  89. "port_num\030\004 \002(\005"
  90. };
  91. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  92. descriptor, 134);
  93. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  94. "system_setting.proto", &protobuf_RegisterTypes);
  95. }
  96. void AddDescriptors() {
  97. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  98. ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
  99. }
  100. // Force AddDescriptors() to be called at dynamic initialization time.
  101. struct StaticDescriptorInitializer {
  102. StaticDescriptorInitializer() {
  103. AddDescriptors();
  104. }
  105. } static_descriptor_initializer;
  106. } // namespace protobuf_system_5fsetting_2eproto
  107. namespace setting {
  108. // ===================================================================
  109. void System_setting::InitAsDefaultInstance() {
  110. }
  111. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  112. const int System_setting::kBindIpFieldNumber;
  113. const int System_setting::kBindPortFieldNumber;
  114. const int System_setting::kEntranceNumFieldNumber;
  115. const int System_setting::kExportNumFieldNumber;
  116. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  117. System_setting::System_setting()
  118. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  119. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  120. ::protobuf_system_5fsetting_2eproto::InitDefaultsSystem_setting();
  121. }
  122. SharedCtor();
  123. // @@protoc_insertion_point(constructor:setting.System_setting)
  124. }
  125. System_setting::System_setting(const System_setting& from)
  126. : ::google::protobuf::Message(),
  127. _internal_metadata_(NULL),
  128. _has_bits_(from._has_bits_),
  129. _cached_size_(0) {
  130. _internal_metadata_.MergeFrom(from._internal_metadata_);
  131. bind_ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  132. if (from.has_bind_ip()) {
  133. bind_ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bind_ip_);
  134. }
  135. ::memcpy(&entrance_num_, &from.entrance_num_,
  136. static_cast<size_t>(reinterpret_cast<char*>(&bind_port_) -
  137. reinterpret_cast<char*>(&entrance_num_)) + sizeof(bind_port_));
  138. // @@protoc_insertion_point(copy_constructor:setting.System_setting)
  139. }
  140. void System_setting::SharedCtor() {
  141. _cached_size_ = 0;
  142. bind_ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  143. ::memset(&entrance_num_, 0, static_cast<size_t>(
  144. reinterpret_cast<char*>(&export_num_) -
  145. reinterpret_cast<char*>(&entrance_num_)) + sizeof(export_num_));
  146. bind_port_ = 30000;
  147. }
  148. System_setting::~System_setting() {
  149. // @@protoc_insertion_point(destructor:setting.System_setting)
  150. SharedDtor();
  151. }
  152. void System_setting::SharedDtor() {
  153. bind_ip_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  154. }
  155. void System_setting::SetCachedSize(int size) const {
  156. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  157. _cached_size_ = size;
  158. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  159. }
  160. const ::google::protobuf::Descriptor* System_setting::descriptor() {
  161. ::protobuf_system_5fsetting_2eproto::protobuf_AssignDescriptorsOnce();
  162. return ::protobuf_system_5fsetting_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  163. }
  164. const System_setting& System_setting::default_instance() {
  165. ::protobuf_system_5fsetting_2eproto::InitDefaultsSystem_setting();
  166. return *internal_default_instance();
  167. }
  168. System_setting* System_setting::New(::google::protobuf::Arena* arena) const {
  169. System_setting* n = new System_setting;
  170. if (arena != NULL) {
  171. arena->Own(n);
  172. }
  173. return n;
  174. }
  175. void System_setting::Clear() {
  176. // @@protoc_insertion_point(message_clear_start:setting.System_setting)
  177. ::google::protobuf::uint32 cached_has_bits = 0;
  178. // Prevent compiler warnings about cached_has_bits being unused
  179. (void) cached_has_bits;
  180. cached_has_bits = _has_bits_[0];
  181. if (cached_has_bits & 0x00000001u) {
  182. GOOGLE_DCHECK(!bind_ip_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  183. (*bind_ip_.UnsafeRawStringPointer())->clear();
  184. }
  185. if (cached_has_bits & 14u) {
  186. ::memset(&entrance_num_, 0, static_cast<size_t>(
  187. reinterpret_cast<char*>(&export_num_) -
  188. reinterpret_cast<char*>(&entrance_num_)) + sizeof(export_num_));
  189. bind_port_ = 30000;
  190. }
  191. _has_bits_.Clear();
  192. _internal_metadata_.Clear();
  193. }
  194. bool System_setting::MergePartialFromCodedStream(
  195. ::google::protobuf::io::CodedInputStream* input) {
  196. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  197. ::google::protobuf::uint32 tag;
  198. // @@protoc_insertion_point(parse_start:setting.System_setting)
  199. for (;;) {
  200. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  201. tag = p.first;
  202. if (!p.second) goto handle_unusual;
  203. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  204. // required string bind_ip = 1;
  205. case 1: {
  206. if (static_cast< ::google::protobuf::uint8>(tag) ==
  207. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  208. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  209. input, this->mutable_bind_ip()));
  210. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  211. this->bind_ip().data(), static_cast<int>(this->bind_ip().length()),
  212. ::google::protobuf::internal::WireFormat::PARSE,
  213. "setting.System_setting.bind_ip");
  214. } else {
  215. goto handle_unusual;
  216. }
  217. break;
  218. }
  219. // optional int32 bind_port = 2 [default = 30000];
  220. case 2: {
  221. if (static_cast< ::google::protobuf::uint8>(tag) ==
  222. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  223. set_has_bind_port();
  224. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  225. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  226. input, &bind_port_)));
  227. } else {
  228. goto handle_unusual;
  229. }
  230. break;
  231. }
  232. // required int32 entrance_num = 3;
  233. case 3: {
  234. if (static_cast< ::google::protobuf::uint8>(tag) ==
  235. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  236. set_has_entrance_num();
  237. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  238. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  239. input, &entrance_num_)));
  240. } else {
  241. goto handle_unusual;
  242. }
  243. break;
  244. }
  245. // required int32 export_num = 4;
  246. case 4: {
  247. if (static_cast< ::google::protobuf::uint8>(tag) ==
  248. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  249. set_has_export_num();
  250. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  251. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  252. input, &export_num_)));
  253. } else {
  254. goto handle_unusual;
  255. }
  256. break;
  257. }
  258. default: {
  259. handle_unusual:
  260. if (tag == 0) {
  261. goto success;
  262. }
  263. DO_(::google::protobuf::internal::WireFormat::SkipField(
  264. input, tag, _internal_metadata_.mutable_unknown_fields()));
  265. break;
  266. }
  267. }
  268. }
  269. success:
  270. // @@protoc_insertion_point(parse_success:setting.System_setting)
  271. return true;
  272. failure:
  273. // @@protoc_insertion_point(parse_failure:setting.System_setting)
  274. return false;
  275. #undef DO_
  276. }
  277. void System_setting::SerializeWithCachedSizes(
  278. ::google::protobuf::io::CodedOutputStream* output) const {
  279. // @@protoc_insertion_point(serialize_start:setting.System_setting)
  280. ::google::protobuf::uint32 cached_has_bits = 0;
  281. (void) cached_has_bits;
  282. cached_has_bits = _has_bits_[0];
  283. // required string bind_ip = 1;
  284. if (cached_has_bits & 0x00000001u) {
  285. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  286. this->bind_ip().data(), static_cast<int>(this->bind_ip().length()),
  287. ::google::protobuf::internal::WireFormat::SERIALIZE,
  288. "setting.System_setting.bind_ip");
  289. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  290. 1, this->bind_ip(), output);
  291. }
  292. // optional int32 bind_port = 2 [default = 30000];
  293. if (cached_has_bits & 0x00000008u) {
  294. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->bind_port(), output);
  295. }
  296. // required int32 entrance_num = 3;
  297. if (cached_has_bits & 0x00000002u) {
  298. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->entrance_num(), output);
  299. }
  300. // required int32 export_num = 4;
  301. if (cached_has_bits & 0x00000004u) {
  302. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->export_num(), output);
  303. }
  304. if (_internal_metadata_.have_unknown_fields()) {
  305. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  306. _internal_metadata_.unknown_fields(), output);
  307. }
  308. // @@protoc_insertion_point(serialize_end:setting.System_setting)
  309. }
  310. ::google::protobuf::uint8* System_setting::InternalSerializeWithCachedSizesToArray(
  311. bool deterministic, ::google::protobuf::uint8* target) const {
  312. (void)deterministic; // Unused
  313. // @@protoc_insertion_point(serialize_to_array_start:setting.System_setting)
  314. ::google::protobuf::uint32 cached_has_bits = 0;
  315. (void) cached_has_bits;
  316. cached_has_bits = _has_bits_[0];
  317. // required string bind_ip = 1;
  318. if (cached_has_bits & 0x00000001u) {
  319. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  320. this->bind_ip().data(), static_cast<int>(this->bind_ip().length()),
  321. ::google::protobuf::internal::WireFormat::SERIALIZE,
  322. "setting.System_setting.bind_ip");
  323. target =
  324. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  325. 1, this->bind_ip(), target);
  326. }
  327. // optional int32 bind_port = 2 [default = 30000];
  328. if (cached_has_bits & 0x00000008u) {
  329. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->bind_port(), target);
  330. }
  331. // required int32 entrance_num = 3;
  332. if (cached_has_bits & 0x00000002u) {
  333. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->entrance_num(), target);
  334. }
  335. // required int32 export_num = 4;
  336. if (cached_has_bits & 0x00000004u) {
  337. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->export_num(), target);
  338. }
  339. if (_internal_metadata_.have_unknown_fields()) {
  340. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  341. _internal_metadata_.unknown_fields(), target);
  342. }
  343. // @@protoc_insertion_point(serialize_to_array_end:setting.System_setting)
  344. return target;
  345. }
  346. size_t System_setting::RequiredFieldsByteSizeFallback() const {
  347. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:setting.System_setting)
  348. size_t total_size = 0;
  349. if (has_bind_ip()) {
  350. // required string bind_ip = 1;
  351. total_size += 1 +
  352. ::google::protobuf::internal::WireFormatLite::StringSize(
  353. this->bind_ip());
  354. }
  355. if (has_entrance_num()) {
  356. // required int32 entrance_num = 3;
  357. total_size += 1 +
  358. ::google::protobuf::internal::WireFormatLite::Int32Size(
  359. this->entrance_num());
  360. }
  361. if (has_export_num()) {
  362. // required int32 export_num = 4;
  363. total_size += 1 +
  364. ::google::protobuf::internal::WireFormatLite::Int32Size(
  365. this->export_num());
  366. }
  367. return total_size;
  368. }
  369. size_t System_setting::ByteSizeLong() const {
  370. // @@protoc_insertion_point(message_byte_size_start:setting.System_setting)
  371. size_t total_size = 0;
  372. if (_internal_metadata_.have_unknown_fields()) {
  373. total_size +=
  374. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  375. _internal_metadata_.unknown_fields());
  376. }
  377. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  378. // required string bind_ip = 1;
  379. total_size += 1 +
  380. ::google::protobuf::internal::WireFormatLite::StringSize(
  381. this->bind_ip());
  382. // required int32 entrance_num = 3;
  383. total_size += 1 +
  384. ::google::protobuf::internal::WireFormatLite::Int32Size(
  385. this->entrance_num());
  386. // required int32 export_num = 4;
  387. total_size += 1 +
  388. ::google::protobuf::internal::WireFormatLite::Int32Size(
  389. this->export_num());
  390. } else {
  391. total_size += RequiredFieldsByteSizeFallback();
  392. }
  393. // optional int32 bind_port = 2 [default = 30000];
  394. if (has_bind_port()) {
  395. total_size += 1 +
  396. ::google::protobuf::internal::WireFormatLite::Int32Size(
  397. this->bind_port());
  398. }
  399. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  400. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  401. _cached_size_ = cached_size;
  402. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  403. return total_size;
  404. }
  405. void System_setting::MergeFrom(const ::google::protobuf::Message& from) {
  406. // @@protoc_insertion_point(generalized_merge_from_start:setting.System_setting)
  407. GOOGLE_DCHECK_NE(&from, this);
  408. const System_setting* source =
  409. ::google::protobuf::internal::DynamicCastToGenerated<const System_setting>(
  410. &from);
  411. if (source == NULL) {
  412. // @@protoc_insertion_point(generalized_merge_from_cast_fail:setting.System_setting)
  413. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  414. } else {
  415. // @@protoc_insertion_point(generalized_merge_from_cast_success:setting.System_setting)
  416. MergeFrom(*source);
  417. }
  418. }
  419. void System_setting::MergeFrom(const System_setting& from) {
  420. // @@protoc_insertion_point(class_specific_merge_from_start:setting.System_setting)
  421. GOOGLE_DCHECK_NE(&from, this);
  422. _internal_metadata_.MergeFrom(from._internal_metadata_);
  423. ::google::protobuf::uint32 cached_has_bits = 0;
  424. (void) cached_has_bits;
  425. cached_has_bits = from._has_bits_[0];
  426. if (cached_has_bits & 15u) {
  427. if (cached_has_bits & 0x00000001u) {
  428. set_has_bind_ip();
  429. bind_ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bind_ip_);
  430. }
  431. if (cached_has_bits & 0x00000002u) {
  432. entrance_num_ = from.entrance_num_;
  433. }
  434. if (cached_has_bits & 0x00000004u) {
  435. export_num_ = from.export_num_;
  436. }
  437. if (cached_has_bits & 0x00000008u) {
  438. bind_port_ = from.bind_port_;
  439. }
  440. _has_bits_[0] |= cached_has_bits;
  441. }
  442. }
  443. void System_setting::CopyFrom(const ::google::protobuf::Message& from) {
  444. // @@protoc_insertion_point(generalized_copy_from_start:setting.System_setting)
  445. if (&from == this) return;
  446. Clear();
  447. MergeFrom(from);
  448. }
  449. void System_setting::CopyFrom(const System_setting& from) {
  450. // @@protoc_insertion_point(class_specific_copy_from_start:setting.System_setting)
  451. if (&from == this) return;
  452. Clear();
  453. MergeFrom(from);
  454. }
  455. bool System_setting::IsInitialized() const {
  456. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  457. return true;
  458. }
  459. void System_setting::Swap(System_setting* other) {
  460. if (other == this) return;
  461. InternalSwap(other);
  462. }
  463. void System_setting::InternalSwap(System_setting* other) {
  464. using std::swap;
  465. bind_ip_.Swap(&other->bind_ip_);
  466. swap(entrance_num_, other->entrance_num_);
  467. swap(export_num_, other->export_num_);
  468. swap(bind_port_, other->bind_port_);
  469. swap(_has_bits_[0], other->_has_bits_[0]);
  470. _internal_metadata_.Swap(&other->_internal_metadata_);
  471. swap(_cached_size_, other->_cached_size_);
  472. }
  473. ::google::protobuf::Metadata System_setting::GetMetadata() const {
  474. protobuf_system_5fsetting_2eproto::protobuf_AssignDescriptorsOnce();
  475. return ::protobuf_system_5fsetting_2eproto::file_level_metadata[kIndexInFileMessages];
  476. }
  477. // @@protoc_insertion_point(namespace_scope)
  478. } // namespace setting
  479. // @@protoc_insertion_point(global_scope)