system_setting.pb.cc 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706
  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, terminor_port_),
  54. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, park_space_port_),
  55. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, measurer_port_),
  56. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, dispatcher_port_),
  57. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, exception_handle_port_),
  58. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, entrance_num_),
  59. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, export_num_),
  60. 0,
  61. 4,
  62. 5,
  63. 6,
  64. 7,
  65. 3,
  66. 1,
  67. 2,
  68. };
  69. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  70. { 0, 13, sizeof(::setting::System_setting)},
  71. };
  72. static ::google::protobuf::Message const * const file_default_instances[] = {
  73. reinterpret_cast<const ::google::protobuf::Message*>(&::setting::_System_setting_default_instance_),
  74. };
  75. void protobuf_AssignDescriptors() {
  76. AddDescriptors();
  77. ::google::protobuf::MessageFactory* factory = NULL;
  78. AssignDescriptors(
  79. "system_setting.proto", schemas, file_default_instances, TableStruct::offsets, factory,
  80. file_level_metadata, NULL, NULL);
  81. }
  82. void protobuf_AssignDescriptorsOnce() {
  83. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  84. ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
  85. }
  86. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  87. void protobuf_RegisterTypes(const ::std::string&) {
  88. protobuf_AssignDescriptorsOnce();
  89. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
  90. }
  91. void AddDescriptorsImpl() {
  92. InitDefaults();
  93. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  94. "\n\024system_setting.proto\022\007setting\"\354\001\n\016Syst"
  95. "em_setting\022\017\n\007bind_ip\030\001 \002(\t\022\034\n\rterminor_"
  96. "port\030\002 \001(\005:\00530000\022\036\n\017park_space_port\030\003 \001"
  97. "(\005:\00530001\022\034\n\rmeasurer_port\030\004 \001(\005:\00530002\022"
  98. "\036\n\017dispatcher_port\030\005 \001(\005:\00530003\022#\n\025excep"
  99. "tion_handle_port\030\006 \001(\005:\0043004\022\024\n\014entrance"
  100. "_num\030\007 \002(\005\022\022\n\nexport_num\030\010 \002(\005"
  101. };
  102. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  103. descriptor, 270);
  104. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  105. "system_setting.proto", &protobuf_RegisterTypes);
  106. }
  107. void AddDescriptors() {
  108. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  109. ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
  110. }
  111. // Force AddDescriptors() to be called at dynamic initialization time.
  112. struct StaticDescriptorInitializer {
  113. StaticDescriptorInitializer() {
  114. AddDescriptors();
  115. }
  116. } static_descriptor_initializer;
  117. } // namespace protobuf_system_5fsetting_2eproto
  118. namespace setting {
  119. // ===================================================================
  120. void System_setting::InitAsDefaultInstance() {
  121. }
  122. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  123. const int System_setting::kBindIpFieldNumber;
  124. const int System_setting::kTerminorPortFieldNumber;
  125. const int System_setting::kParkSpacePortFieldNumber;
  126. const int System_setting::kMeasurerPortFieldNumber;
  127. const int System_setting::kDispatcherPortFieldNumber;
  128. const int System_setting::kExceptionHandlePortFieldNumber;
  129. const int System_setting::kEntranceNumFieldNumber;
  130. const int System_setting::kExportNumFieldNumber;
  131. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  132. System_setting::System_setting()
  133. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  134. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  135. ::protobuf_system_5fsetting_2eproto::InitDefaultsSystem_setting();
  136. }
  137. SharedCtor();
  138. // @@protoc_insertion_point(constructor:setting.System_setting)
  139. }
  140. System_setting::System_setting(const System_setting& from)
  141. : ::google::protobuf::Message(),
  142. _internal_metadata_(NULL),
  143. _has_bits_(from._has_bits_),
  144. _cached_size_(0) {
  145. _internal_metadata_.MergeFrom(from._internal_metadata_);
  146. bind_ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  147. if (from.has_bind_ip()) {
  148. bind_ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bind_ip_);
  149. }
  150. ::memcpy(&entrance_num_, &from.entrance_num_,
  151. static_cast<size_t>(reinterpret_cast<char*>(&dispatcher_port_) -
  152. reinterpret_cast<char*>(&entrance_num_)) + sizeof(dispatcher_port_));
  153. // @@protoc_insertion_point(copy_constructor:setting.System_setting)
  154. }
  155. void System_setting::SharedCtor() {
  156. _cached_size_ = 0;
  157. bind_ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  158. ::memset(&entrance_num_, 0, static_cast<size_t>(
  159. reinterpret_cast<char*>(&export_num_) -
  160. reinterpret_cast<char*>(&entrance_num_)) + sizeof(export_num_));
  161. exception_handle_port_ = 3004;
  162. terminor_port_ = 30000;
  163. park_space_port_ = 30001;
  164. measurer_port_ = 30002;
  165. dispatcher_port_ = 30003;
  166. }
  167. System_setting::~System_setting() {
  168. // @@protoc_insertion_point(destructor:setting.System_setting)
  169. SharedDtor();
  170. }
  171. void System_setting::SharedDtor() {
  172. bind_ip_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  173. }
  174. void System_setting::SetCachedSize(int size) const {
  175. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  176. _cached_size_ = size;
  177. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  178. }
  179. const ::google::protobuf::Descriptor* System_setting::descriptor() {
  180. ::protobuf_system_5fsetting_2eproto::protobuf_AssignDescriptorsOnce();
  181. return ::protobuf_system_5fsetting_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  182. }
  183. const System_setting& System_setting::default_instance() {
  184. ::protobuf_system_5fsetting_2eproto::InitDefaultsSystem_setting();
  185. return *internal_default_instance();
  186. }
  187. System_setting* System_setting::New(::google::protobuf::Arena* arena) const {
  188. System_setting* n = new System_setting;
  189. if (arena != NULL) {
  190. arena->Own(n);
  191. }
  192. return n;
  193. }
  194. void System_setting::Clear() {
  195. // @@protoc_insertion_point(message_clear_start:setting.System_setting)
  196. ::google::protobuf::uint32 cached_has_bits = 0;
  197. // Prevent compiler warnings about cached_has_bits being unused
  198. (void) cached_has_bits;
  199. cached_has_bits = _has_bits_[0];
  200. if (cached_has_bits & 0x00000001u) {
  201. GOOGLE_DCHECK(!bind_ip_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  202. (*bind_ip_.UnsafeRawStringPointer())->clear();
  203. }
  204. if (cached_has_bits & 254u) {
  205. ::memset(&entrance_num_, 0, static_cast<size_t>(
  206. reinterpret_cast<char*>(&export_num_) -
  207. reinterpret_cast<char*>(&entrance_num_)) + sizeof(export_num_));
  208. exception_handle_port_ = 3004;
  209. terminor_port_ = 30000;
  210. park_space_port_ = 30001;
  211. measurer_port_ = 30002;
  212. dispatcher_port_ = 30003;
  213. }
  214. _has_bits_.Clear();
  215. _internal_metadata_.Clear();
  216. }
  217. bool System_setting::MergePartialFromCodedStream(
  218. ::google::protobuf::io::CodedInputStream* input) {
  219. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  220. ::google::protobuf::uint32 tag;
  221. // @@protoc_insertion_point(parse_start:setting.System_setting)
  222. for (;;) {
  223. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  224. tag = p.first;
  225. if (!p.second) goto handle_unusual;
  226. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  227. // required string bind_ip = 1;
  228. case 1: {
  229. if (static_cast< ::google::protobuf::uint8>(tag) ==
  230. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  231. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  232. input, this->mutable_bind_ip()));
  233. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  234. this->bind_ip().data(), static_cast<int>(this->bind_ip().length()),
  235. ::google::protobuf::internal::WireFormat::PARSE,
  236. "setting.System_setting.bind_ip");
  237. } else {
  238. goto handle_unusual;
  239. }
  240. break;
  241. }
  242. // optional int32 terminor_port = 2 [default = 30000];
  243. case 2: {
  244. if (static_cast< ::google::protobuf::uint8>(tag) ==
  245. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  246. set_has_terminor_port();
  247. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  248. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  249. input, &terminor_port_)));
  250. } else {
  251. goto handle_unusual;
  252. }
  253. break;
  254. }
  255. // optional int32 park_space_port = 3 [default = 30001];
  256. case 3: {
  257. if (static_cast< ::google::protobuf::uint8>(tag) ==
  258. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  259. set_has_park_space_port();
  260. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  261. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  262. input, &park_space_port_)));
  263. } else {
  264. goto handle_unusual;
  265. }
  266. break;
  267. }
  268. // optional int32 measurer_port = 4 [default = 30002];
  269. case 4: {
  270. if (static_cast< ::google::protobuf::uint8>(tag) ==
  271. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  272. set_has_measurer_port();
  273. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  274. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  275. input, &measurer_port_)));
  276. } else {
  277. goto handle_unusual;
  278. }
  279. break;
  280. }
  281. // optional int32 dispatcher_port = 5 [default = 30003];
  282. case 5: {
  283. if (static_cast< ::google::protobuf::uint8>(tag) ==
  284. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  285. set_has_dispatcher_port();
  286. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  287. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  288. input, &dispatcher_port_)));
  289. } else {
  290. goto handle_unusual;
  291. }
  292. break;
  293. }
  294. // optional int32 exception_handle_port = 6 [default = 3004];
  295. case 6: {
  296. if (static_cast< ::google::protobuf::uint8>(tag) ==
  297. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  298. set_has_exception_handle_port();
  299. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  300. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  301. input, &exception_handle_port_)));
  302. } else {
  303. goto handle_unusual;
  304. }
  305. break;
  306. }
  307. // required int32 entrance_num = 7;
  308. case 7: {
  309. if (static_cast< ::google::protobuf::uint8>(tag) ==
  310. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  311. set_has_entrance_num();
  312. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  313. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  314. input, &entrance_num_)));
  315. } else {
  316. goto handle_unusual;
  317. }
  318. break;
  319. }
  320. // required int32 export_num = 8;
  321. case 8: {
  322. if (static_cast< ::google::protobuf::uint8>(tag) ==
  323. static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
  324. set_has_export_num();
  325. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  326. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  327. input, &export_num_)));
  328. } else {
  329. goto handle_unusual;
  330. }
  331. break;
  332. }
  333. default: {
  334. handle_unusual:
  335. if (tag == 0) {
  336. goto success;
  337. }
  338. DO_(::google::protobuf::internal::WireFormat::SkipField(
  339. input, tag, _internal_metadata_.mutable_unknown_fields()));
  340. break;
  341. }
  342. }
  343. }
  344. success:
  345. // @@protoc_insertion_point(parse_success:setting.System_setting)
  346. return true;
  347. failure:
  348. // @@protoc_insertion_point(parse_failure:setting.System_setting)
  349. return false;
  350. #undef DO_
  351. }
  352. void System_setting::SerializeWithCachedSizes(
  353. ::google::protobuf::io::CodedOutputStream* output) const {
  354. // @@protoc_insertion_point(serialize_start:setting.System_setting)
  355. ::google::protobuf::uint32 cached_has_bits = 0;
  356. (void) cached_has_bits;
  357. cached_has_bits = _has_bits_[0];
  358. // required string bind_ip = 1;
  359. if (cached_has_bits & 0x00000001u) {
  360. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  361. this->bind_ip().data(), static_cast<int>(this->bind_ip().length()),
  362. ::google::protobuf::internal::WireFormat::SERIALIZE,
  363. "setting.System_setting.bind_ip");
  364. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  365. 1, this->bind_ip(), output);
  366. }
  367. // optional int32 terminor_port = 2 [default = 30000];
  368. if (cached_has_bits & 0x00000010u) {
  369. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->terminor_port(), output);
  370. }
  371. // optional int32 park_space_port = 3 [default = 30001];
  372. if (cached_has_bits & 0x00000020u) {
  373. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->park_space_port(), output);
  374. }
  375. // optional int32 measurer_port = 4 [default = 30002];
  376. if (cached_has_bits & 0x00000040u) {
  377. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->measurer_port(), output);
  378. }
  379. // optional int32 dispatcher_port = 5 [default = 30003];
  380. if (cached_has_bits & 0x00000080u) {
  381. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->dispatcher_port(), output);
  382. }
  383. // optional int32 exception_handle_port = 6 [default = 3004];
  384. if (cached_has_bits & 0x00000008u) {
  385. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->exception_handle_port(), output);
  386. }
  387. // required int32 entrance_num = 7;
  388. if (cached_has_bits & 0x00000002u) {
  389. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->entrance_num(), output);
  390. }
  391. // required int32 export_num = 8;
  392. if (cached_has_bits & 0x00000004u) {
  393. ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->export_num(), output);
  394. }
  395. if (_internal_metadata_.have_unknown_fields()) {
  396. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  397. _internal_metadata_.unknown_fields(), output);
  398. }
  399. // @@protoc_insertion_point(serialize_end:setting.System_setting)
  400. }
  401. ::google::protobuf::uint8* System_setting::InternalSerializeWithCachedSizesToArray(
  402. bool deterministic, ::google::protobuf::uint8* target) const {
  403. (void)deterministic; // Unused
  404. // @@protoc_insertion_point(serialize_to_array_start:setting.System_setting)
  405. ::google::protobuf::uint32 cached_has_bits = 0;
  406. (void) cached_has_bits;
  407. cached_has_bits = _has_bits_[0];
  408. // required string bind_ip = 1;
  409. if (cached_has_bits & 0x00000001u) {
  410. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  411. this->bind_ip().data(), static_cast<int>(this->bind_ip().length()),
  412. ::google::protobuf::internal::WireFormat::SERIALIZE,
  413. "setting.System_setting.bind_ip");
  414. target =
  415. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  416. 1, this->bind_ip(), target);
  417. }
  418. // optional int32 terminor_port = 2 [default = 30000];
  419. if (cached_has_bits & 0x00000010u) {
  420. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->terminor_port(), target);
  421. }
  422. // optional int32 park_space_port = 3 [default = 30001];
  423. if (cached_has_bits & 0x00000020u) {
  424. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->park_space_port(), target);
  425. }
  426. // optional int32 measurer_port = 4 [default = 30002];
  427. if (cached_has_bits & 0x00000040u) {
  428. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->measurer_port(), target);
  429. }
  430. // optional int32 dispatcher_port = 5 [default = 30003];
  431. if (cached_has_bits & 0x00000080u) {
  432. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->dispatcher_port(), target);
  433. }
  434. // optional int32 exception_handle_port = 6 [default = 3004];
  435. if (cached_has_bits & 0x00000008u) {
  436. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->exception_handle_port(), target);
  437. }
  438. // required int32 entrance_num = 7;
  439. if (cached_has_bits & 0x00000002u) {
  440. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->entrance_num(), target);
  441. }
  442. // required int32 export_num = 8;
  443. if (cached_has_bits & 0x00000004u) {
  444. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->export_num(), target);
  445. }
  446. if (_internal_metadata_.have_unknown_fields()) {
  447. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  448. _internal_metadata_.unknown_fields(), target);
  449. }
  450. // @@protoc_insertion_point(serialize_to_array_end:setting.System_setting)
  451. return target;
  452. }
  453. size_t System_setting::RequiredFieldsByteSizeFallback() const {
  454. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:setting.System_setting)
  455. size_t total_size = 0;
  456. if (has_bind_ip()) {
  457. // required string bind_ip = 1;
  458. total_size += 1 +
  459. ::google::protobuf::internal::WireFormatLite::StringSize(
  460. this->bind_ip());
  461. }
  462. if (has_entrance_num()) {
  463. // required int32 entrance_num = 7;
  464. total_size += 1 +
  465. ::google::protobuf::internal::WireFormatLite::Int32Size(
  466. this->entrance_num());
  467. }
  468. if (has_export_num()) {
  469. // required int32 export_num = 8;
  470. total_size += 1 +
  471. ::google::protobuf::internal::WireFormatLite::Int32Size(
  472. this->export_num());
  473. }
  474. return total_size;
  475. }
  476. size_t System_setting::ByteSizeLong() const {
  477. // @@protoc_insertion_point(message_byte_size_start:setting.System_setting)
  478. size_t total_size = 0;
  479. if (_internal_metadata_.have_unknown_fields()) {
  480. total_size +=
  481. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  482. _internal_metadata_.unknown_fields());
  483. }
  484. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  485. // required string bind_ip = 1;
  486. total_size += 1 +
  487. ::google::protobuf::internal::WireFormatLite::StringSize(
  488. this->bind_ip());
  489. // required int32 entrance_num = 7;
  490. total_size += 1 +
  491. ::google::protobuf::internal::WireFormatLite::Int32Size(
  492. this->entrance_num());
  493. // required int32 export_num = 8;
  494. total_size += 1 +
  495. ::google::protobuf::internal::WireFormatLite::Int32Size(
  496. this->export_num());
  497. } else {
  498. total_size += RequiredFieldsByteSizeFallback();
  499. }
  500. if (_has_bits_[0 / 32] & 248u) {
  501. // optional int32 exception_handle_port = 6 [default = 3004];
  502. if (has_exception_handle_port()) {
  503. total_size += 1 +
  504. ::google::protobuf::internal::WireFormatLite::Int32Size(
  505. this->exception_handle_port());
  506. }
  507. // optional int32 terminor_port = 2 [default = 30000];
  508. if (has_terminor_port()) {
  509. total_size += 1 +
  510. ::google::protobuf::internal::WireFormatLite::Int32Size(
  511. this->terminor_port());
  512. }
  513. // optional int32 park_space_port = 3 [default = 30001];
  514. if (has_park_space_port()) {
  515. total_size += 1 +
  516. ::google::protobuf::internal::WireFormatLite::Int32Size(
  517. this->park_space_port());
  518. }
  519. // optional int32 measurer_port = 4 [default = 30002];
  520. if (has_measurer_port()) {
  521. total_size += 1 +
  522. ::google::protobuf::internal::WireFormatLite::Int32Size(
  523. this->measurer_port());
  524. }
  525. // optional int32 dispatcher_port = 5 [default = 30003];
  526. if (has_dispatcher_port()) {
  527. total_size += 1 +
  528. ::google::protobuf::internal::WireFormatLite::Int32Size(
  529. this->dispatcher_port());
  530. }
  531. }
  532. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  533. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  534. _cached_size_ = cached_size;
  535. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  536. return total_size;
  537. }
  538. void System_setting::MergeFrom(const ::google::protobuf::Message& from) {
  539. // @@protoc_insertion_point(generalized_merge_from_start:setting.System_setting)
  540. GOOGLE_DCHECK_NE(&from, this);
  541. const System_setting* source =
  542. ::google::protobuf::internal::DynamicCastToGenerated<const System_setting>(
  543. &from);
  544. if (source == NULL) {
  545. // @@protoc_insertion_point(generalized_merge_from_cast_fail:setting.System_setting)
  546. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  547. } else {
  548. // @@protoc_insertion_point(generalized_merge_from_cast_success:setting.System_setting)
  549. MergeFrom(*source);
  550. }
  551. }
  552. void System_setting::MergeFrom(const System_setting& from) {
  553. // @@protoc_insertion_point(class_specific_merge_from_start:setting.System_setting)
  554. GOOGLE_DCHECK_NE(&from, this);
  555. _internal_metadata_.MergeFrom(from._internal_metadata_);
  556. ::google::protobuf::uint32 cached_has_bits = 0;
  557. (void) cached_has_bits;
  558. cached_has_bits = from._has_bits_[0];
  559. if (cached_has_bits & 255u) {
  560. if (cached_has_bits & 0x00000001u) {
  561. set_has_bind_ip();
  562. bind_ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bind_ip_);
  563. }
  564. if (cached_has_bits & 0x00000002u) {
  565. entrance_num_ = from.entrance_num_;
  566. }
  567. if (cached_has_bits & 0x00000004u) {
  568. export_num_ = from.export_num_;
  569. }
  570. if (cached_has_bits & 0x00000008u) {
  571. exception_handle_port_ = from.exception_handle_port_;
  572. }
  573. if (cached_has_bits & 0x00000010u) {
  574. terminor_port_ = from.terminor_port_;
  575. }
  576. if (cached_has_bits & 0x00000020u) {
  577. park_space_port_ = from.park_space_port_;
  578. }
  579. if (cached_has_bits & 0x00000040u) {
  580. measurer_port_ = from.measurer_port_;
  581. }
  582. if (cached_has_bits & 0x00000080u) {
  583. dispatcher_port_ = from.dispatcher_port_;
  584. }
  585. _has_bits_[0] |= cached_has_bits;
  586. }
  587. }
  588. void System_setting::CopyFrom(const ::google::protobuf::Message& from) {
  589. // @@protoc_insertion_point(generalized_copy_from_start:setting.System_setting)
  590. if (&from == this) return;
  591. Clear();
  592. MergeFrom(from);
  593. }
  594. void System_setting::CopyFrom(const System_setting& from) {
  595. // @@protoc_insertion_point(class_specific_copy_from_start:setting.System_setting)
  596. if (&from == this) return;
  597. Clear();
  598. MergeFrom(from);
  599. }
  600. bool System_setting::IsInitialized() const {
  601. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  602. return true;
  603. }
  604. void System_setting::Swap(System_setting* other) {
  605. if (other == this) return;
  606. InternalSwap(other);
  607. }
  608. void System_setting::InternalSwap(System_setting* other) {
  609. using std::swap;
  610. bind_ip_.Swap(&other->bind_ip_);
  611. swap(entrance_num_, other->entrance_num_);
  612. swap(export_num_, other->export_num_);
  613. swap(exception_handle_port_, other->exception_handle_port_);
  614. swap(terminor_port_, other->terminor_port_);
  615. swap(park_space_port_, other->park_space_port_);
  616. swap(measurer_port_, other->measurer_port_);
  617. swap(dispatcher_port_, other->dispatcher_port_);
  618. swap(_has_bits_[0], other->_has_bits_[0]);
  619. _internal_metadata_.Swap(&other->_internal_metadata_);
  620. swap(_cached_size_, other->_cached_size_);
  621. }
  622. ::google::protobuf::Metadata System_setting::GetMetadata() const {
  623. protobuf_system_5fsetting_2eproto::protobuf_AssignDescriptorsOnce();
  624. return ::protobuf_system_5fsetting_2eproto::file_level_metadata[kIndexInFileMessages];
  625. }
  626. // @@protoc_insertion_point(namespace_scope)
  627. } // namespace setting
  628. // @@protoc_insertion_point(global_scope)