central_control_message.pb.cc 71 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: central_control_message.proto
  3. #include "central_control_message.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/io/coded_stream.h>
  8. #include <google/protobuf/wire_format_lite_inl.h>
  9. #include <google/protobuf/descriptor.h>
  10. #include <google/protobuf/generated_message_reflection.h>
  11. #include <google/protobuf/reflection_ops.h>
  12. #include <google/protobuf/wire_format.h>
  13. // This is a temporary google only hack
  14. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  15. #include "third_party/protobuf/version.h"
  16. #endif
  17. // @@protoc_insertion_point(includes)
  18. namespace protobuf_central_5fcontrol_5fmessage_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_central_5fcontrol_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Entrance_statu;
  20. } // namespace protobuf_central_5fcontrol_5fmessage_2eproto
  21. namespace protobuf_message_5fbase_2eproto {
  22. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Base_info;
  23. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Id_struct;
  24. } // namespace protobuf_message_5fbase_2eproto
  25. namespace message {
  26. class Entrance_statuDefaultTypeInternal {
  27. public:
  28. ::google::protobuf::internal::ExplicitlyConstructed<Entrance_statu>
  29. _instance;
  30. } _Entrance_statu_default_instance_;
  31. class Central_controller_statu_msgDefaultTypeInternal {
  32. public:
  33. ::google::protobuf::internal::ExplicitlyConstructed<Central_controller_statu_msg>
  34. _instance;
  35. } _Central_controller_statu_msg_default_instance_;
  36. class Entrance_manual_operation_msgDefaultTypeInternal {
  37. public:
  38. ::google::protobuf::internal::ExplicitlyConstructed<Entrance_manual_operation_msg>
  39. _instance;
  40. } _Entrance_manual_operation_msg_default_instance_;
  41. class Process_manual_operation_msgDefaultTypeInternal {
  42. public:
  43. ::google::protobuf::internal::ExplicitlyConstructed<Process_manual_operation_msg>
  44. _instance;
  45. } _Process_manual_operation_msg_default_instance_;
  46. } // namespace message
  47. namespace protobuf_central_5fcontrol_5fmessage_2eproto {
  48. static void InitDefaultsEntrance_statu() {
  49. GOOGLE_PROTOBUF_VERIFY_VERSION;
  50. {
  51. void* ptr = &::message::_Entrance_statu_default_instance_;
  52. new (ptr) ::message::Entrance_statu();
  53. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  54. }
  55. ::message::Entrance_statu::InitAsDefaultInstance();
  56. }
  57. ::google::protobuf::internal::SCCInfo<0> scc_info_Entrance_statu =
  58. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEntrance_statu}, {}};
  59. static void InitDefaultsCentral_controller_statu_msg() {
  60. GOOGLE_PROTOBUF_VERIFY_VERSION;
  61. {
  62. void* ptr = &::message::_Central_controller_statu_msg_default_instance_;
  63. new (ptr) ::message::Central_controller_statu_msg();
  64. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  65. }
  66. ::message::Central_controller_statu_msg::InitAsDefaultInstance();
  67. }
  68. ::google::protobuf::internal::SCCInfo<2> scc_info_Central_controller_statu_msg =
  69. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsCentral_controller_statu_msg}, {
  70. &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,
  71. &protobuf_central_5fcontrol_5fmessage_2eproto::scc_info_Entrance_statu.base,}};
  72. static void InitDefaultsEntrance_manual_operation_msg() {
  73. GOOGLE_PROTOBUF_VERIFY_VERSION;
  74. {
  75. void* ptr = &::message::_Entrance_manual_operation_msg_default_instance_;
  76. new (ptr) ::message::Entrance_manual_operation_msg();
  77. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  78. }
  79. ::message::Entrance_manual_operation_msg::InitAsDefaultInstance();
  80. }
  81. ::google::protobuf::internal::SCCInfo<2> scc_info_Entrance_manual_operation_msg =
  82. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsEntrance_manual_operation_msg}, {
  83. &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,
  84. &protobuf_message_5fbase_2eproto::scc_info_Id_struct.base,}};
  85. static void InitDefaultsProcess_manual_operation_msg() {
  86. GOOGLE_PROTOBUF_VERIFY_VERSION;
  87. {
  88. void* ptr = &::message::_Process_manual_operation_msg_default_instance_;
  89. new (ptr) ::message::Process_manual_operation_msg();
  90. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  91. }
  92. ::message::Process_manual_operation_msg::InitAsDefaultInstance();
  93. }
  94. ::google::protobuf::internal::SCCInfo<1> scc_info_Process_manual_operation_msg =
  95. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsProcess_manual_operation_msg}, {
  96. &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,}};
  97. void InitDefaults() {
  98. ::google::protobuf::internal::InitSCC(&scc_info_Entrance_statu.base);
  99. ::google::protobuf::internal::InitSCC(&scc_info_Central_controller_statu_msg.base);
  100. ::google::protobuf::internal::InitSCC(&scc_info_Entrance_manual_operation_msg.base);
  101. ::google::protobuf::internal::InitSCC(&scc_info_Process_manual_operation_msg.base);
  102. }
  103. ::google::protobuf::Metadata file_level_metadata[4];
  104. const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[2];
  105. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  106. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_statu, _has_bits_),
  107. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_statu, _internal_metadata_),
  108. ~0u, // no _extensions_
  109. ~0u, // no _oneof_case_
  110. ~0u, // no _weak_field_map_
  111. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_statu, paused_),
  112. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_statu, parkspace_statu_),
  113. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_statu, dispatch_statu_),
  114. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_statu, notify_statu_),
  115. 0,
  116. 1,
  117. 2,
  118. 3,
  119. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Central_controller_statu_msg, _has_bits_),
  120. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Central_controller_statu_msg, _internal_metadata_),
  121. ~0u, // no _extensions_
  122. ~0u, // no _oneof_case_
  123. ~0u, // no _weak_field_map_
  124. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Central_controller_statu_msg, base_info_),
  125. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Central_controller_statu_msg, entrance_statu_vector_),
  126. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Central_controller_statu_msg, export_statu_vector_),
  127. 0,
  128. ~0u,
  129. ~0u,
  130. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_manual_operation_msg, _has_bits_),
  131. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_manual_operation_msg, _internal_metadata_),
  132. ~0u, // no _extensions_
  133. ~0u, // no _oneof_case_
  134. ~0u, // no _weak_field_map_
  135. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_manual_operation_msg, base_info_),
  136. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_manual_operation_msg, id_struct_),
  137. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_manual_operation_msg, process_type_),
  138. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Entrance_manual_operation_msg, paused_),
  139. 0,
  140. 1,
  141. 3,
  142. 2,
  143. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Process_manual_operation_msg, _has_bits_),
  144. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Process_manual_operation_msg, _internal_metadata_),
  145. ~0u, // no _extensions_
  146. ~0u, // no _oneof_case_
  147. ~0u, // no _weak_field_map_
  148. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Process_manual_operation_msg, base_info_),
  149. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Process_manual_operation_msg, license_),
  150. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Process_manual_operation_msg, step_type_),
  151. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Process_manual_operation_msg, operate_type_),
  152. 1,
  153. 0,
  154. 2,
  155. 3,
  156. };
  157. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  158. { 0, 9, sizeof(::message::Entrance_statu)},
  159. { 13, 21, sizeof(::message::Central_controller_statu_msg)},
  160. { 24, 33, sizeof(::message::Entrance_manual_operation_msg)},
  161. { 37, 46, sizeof(::message::Process_manual_operation_msg)},
  162. };
  163. static ::google::protobuf::Message const * const file_default_instances[] = {
  164. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Entrance_statu_default_instance_),
  165. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Central_controller_statu_msg_default_instance_),
  166. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Entrance_manual_operation_msg_default_instance_),
  167. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Process_manual_operation_msg_default_instance_),
  168. };
  169. void protobuf_AssignDescriptors() {
  170. AddDescriptors();
  171. AssignDescriptors(
  172. "central_control_message.proto", schemas, file_default_instances, TableStruct::offsets,
  173. file_level_metadata, file_level_enum_descriptors, NULL);
  174. }
  175. void protobuf_AssignDescriptorsOnce() {
  176. static ::google::protobuf::internal::once_flag once;
  177. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  178. }
  179. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  180. void protobuf_RegisterTypes(const ::std::string&) {
  181. protobuf_AssignDescriptorsOnce();
  182. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4);
  183. }
  184. void AddDescriptorsImpl() {
  185. InitDefaults();
  186. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  187. "\n\035central_control_message.proto\022\007message"
  188. "\032\022message_base.proto\"\254\001\n\016Entrance_statu\022"
  189. "\016\n\006paused\030\001 \002(\010\022.\n\017parkspace_statu\030\002 \001(\016"
  190. "2\025.message.Module_statu\022-\n\016dispatch_stat"
  191. "u\030\003 \001(\0162\025.message.Module_statu\022+\n\014notify"
  192. "_statu\030\004 \001(\0162\025.message.Module_statu\"\263\001\n\034"
  193. "Central_controller_statu_msg\022%\n\tbase_inf"
  194. "o\030\001 \002(\0132\022.message.Base_info\0226\n\025entrance_"
  195. "statu_vector\030\002 \003(\0132\027.message.Entrance_st"
  196. "atu\0224\n\023export_statu_vector\030\003 \003(\0132\027.messa"
  197. "ge.Entrance_statu\"\252\001\n\035Entrance_manual_op"
  198. "eration_msg\022%\n\tbase_info\030\001 \002(\0132\022.message"
  199. ".Base_info\022%\n\tid_struct\030\002 \002(\0132\022.message."
  200. "Id_struct\022+\n\014process_type\030\003 \002(\0162\025.messag"
  201. "e.Process_type\022\016\n\006paused\030\004 \002(\010\"\264\001\n\034Proce"
  202. "ss_manual_operation_msg\022%\n\tbase_info\030\001 \002"
  203. "(\0132\022.message.Base_info\022\017\n\007license\030\002 \002(\t\022"
  204. "%\n\tstep_type\030\003 \002(\0162\022.message.Step_type\0225"
  205. "\n\014operate_type\030\004 \002(\0162\037.message.Process_o"
  206. "peration_type*S\n\026Process_operation_type\022"
  207. "\022\n\016eManual_cancel\020\000\022\021\n\reManual_retry\020\001\022\022"
  208. "\n\016eManual_ignore\020\002*=\n\014Module_statu\022\016\n\neC"
  209. "onnected\020\000\022\021\n\reDisconnected\020\001\022\n\n\006eFault\020"
  210. "\002"
  211. };
  212. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  213. descriptor, 921);
  214. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  215. "central_control_message.proto", &protobuf_RegisterTypes);
  216. ::protobuf_message_5fbase_2eproto::AddDescriptors();
  217. }
  218. void AddDescriptors() {
  219. static ::google::protobuf::internal::once_flag once;
  220. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  221. }
  222. // Force AddDescriptors() to be called at dynamic initialization time.
  223. struct StaticDescriptorInitializer {
  224. StaticDescriptorInitializer() {
  225. AddDescriptors();
  226. }
  227. } static_descriptor_initializer;
  228. } // namespace protobuf_central_5fcontrol_5fmessage_2eproto
  229. namespace message {
  230. const ::google::protobuf::EnumDescriptor* Process_operation_type_descriptor() {
  231. protobuf_central_5fcontrol_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  232. return protobuf_central_5fcontrol_5fmessage_2eproto::file_level_enum_descriptors[0];
  233. }
  234. bool Process_operation_type_IsValid(int value) {
  235. switch (value) {
  236. case 0:
  237. case 1:
  238. case 2:
  239. return true;
  240. default:
  241. return false;
  242. }
  243. }
  244. const ::google::protobuf::EnumDescriptor* Module_statu_descriptor() {
  245. protobuf_central_5fcontrol_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  246. return protobuf_central_5fcontrol_5fmessage_2eproto::file_level_enum_descriptors[1];
  247. }
  248. bool Module_statu_IsValid(int value) {
  249. switch (value) {
  250. case 0:
  251. case 1:
  252. case 2:
  253. return true;
  254. default:
  255. return false;
  256. }
  257. }
  258. // ===================================================================
  259. void Entrance_statu::InitAsDefaultInstance() {
  260. }
  261. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  262. const int Entrance_statu::kPausedFieldNumber;
  263. const int Entrance_statu::kParkspaceStatuFieldNumber;
  264. const int Entrance_statu::kDispatchStatuFieldNumber;
  265. const int Entrance_statu::kNotifyStatuFieldNumber;
  266. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  267. Entrance_statu::Entrance_statu()
  268. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  269. ::google::protobuf::internal::InitSCC(
  270. &protobuf_central_5fcontrol_5fmessage_2eproto::scc_info_Entrance_statu.base);
  271. SharedCtor();
  272. // @@protoc_insertion_point(constructor:message.Entrance_statu)
  273. }
  274. Entrance_statu::Entrance_statu(const Entrance_statu& from)
  275. : ::google::protobuf::Message(),
  276. _internal_metadata_(NULL),
  277. _has_bits_(from._has_bits_) {
  278. _internal_metadata_.MergeFrom(from._internal_metadata_);
  279. ::memcpy(&paused_, &from.paused_,
  280. static_cast<size_t>(reinterpret_cast<char*>(&notify_statu_) -
  281. reinterpret_cast<char*>(&paused_)) + sizeof(notify_statu_));
  282. // @@protoc_insertion_point(copy_constructor:message.Entrance_statu)
  283. }
  284. void Entrance_statu::SharedCtor() {
  285. ::memset(&paused_, 0, static_cast<size_t>(
  286. reinterpret_cast<char*>(&notify_statu_) -
  287. reinterpret_cast<char*>(&paused_)) + sizeof(notify_statu_));
  288. }
  289. Entrance_statu::~Entrance_statu() {
  290. // @@protoc_insertion_point(destructor:message.Entrance_statu)
  291. SharedDtor();
  292. }
  293. void Entrance_statu::SharedDtor() {
  294. }
  295. void Entrance_statu::SetCachedSize(int size) const {
  296. _cached_size_.Set(size);
  297. }
  298. const ::google::protobuf::Descriptor* Entrance_statu::descriptor() {
  299. ::protobuf_central_5fcontrol_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  300. return ::protobuf_central_5fcontrol_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  301. }
  302. const Entrance_statu& Entrance_statu::default_instance() {
  303. ::google::protobuf::internal::InitSCC(&protobuf_central_5fcontrol_5fmessage_2eproto::scc_info_Entrance_statu.base);
  304. return *internal_default_instance();
  305. }
  306. void Entrance_statu::Clear() {
  307. // @@protoc_insertion_point(message_clear_start:message.Entrance_statu)
  308. ::google::protobuf::uint32 cached_has_bits = 0;
  309. // Prevent compiler warnings about cached_has_bits being unused
  310. (void) cached_has_bits;
  311. cached_has_bits = _has_bits_[0];
  312. if (cached_has_bits & 15u) {
  313. ::memset(&paused_, 0, static_cast<size_t>(
  314. reinterpret_cast<char*>(&notify_statu_) -
  315. reinterpret_cast<char*>(&paused_)) + sizeof(notify_statu_));
  316. }
  317. _has_bits_.Clear();
  318. _internal_metadata_.Clear();
  319. }
  320. bool Entrance_statu::MergePartialFromCodedStream(
  321. ::google::protobuf::io::CodedInputStream* input) {
  322. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  323. ::google::protobuf::uint32 tag;
  324. // @@protoc_insertion_point(parse_start:message.Entrance_statu)
  325. for (;;) {
  326. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  327. tag = p.first;
  328. if (!p.second) goto handle_unusual;
  329. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  330. // required bool paused = 1;
  331. case 1: {
  332. if (static_cast< ::google::protobuf::uint8>(tag) ==
  333. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  334. set_has_paused();
  335. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  336. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  337. input, &paused_)));
  338. } else {
  339. goto handle_unusual;
  340. }
  341. break;
  342. }
  343. // optional .message.Module_statu parkspace_statu = 2;
  344. case 2: {
  345. if (static_cast< ::google::protobuf::uint8>(tag) ==
  346. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  347. int value;
  348. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  349. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  350. input, &value)));
  351. if (::message::Module_statu_IsValid(value)) {
  352. set_parkspace_statu(static_cast< ::message::Module_statu >(value));
  353. } else {
  354. mutable_unknown_fields()->AddVarint(
  355. 2, static_cast< ::google::protobuf::uint64>(value));
  356. }
  357. } else {
  358. goto handle_unusual;
  359. }
  360. break;
  361. }
  362. // optional .message.Module_statu dispatch_statu = 3;
  363. case 3: {
  364. if (static_cast< ::google::protobuf::uint8>(tag) ==
  365. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  366. int value;
  367. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  368. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  369. input, &value)));
  370. if (::message::Module_statu_IsValid(value)) {
  371. set_dispatch_statu(static_cast< ::message::Module_statu >(value));
  372. } else {
  373. mutable_unknown_fields()->AddVarint(
  374. 3, static_cast< ::google::protobuf::uint64>(value));
  375. }
  376. } else {
  377. goto handle_unusual;
  378. }
  379. break;
  380. }
  381. // optional .message.Module_statu notify_statu = 4;
  382. case 4: {
  383. if (static_cast< ::google::protobuf::uint8>(tag) ==
  384. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  385. int value;
  386. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  387. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  388. input, &value)));
  389. if (::message::Module_statu_IsValid(value)) {
  390. set_notify_statu(static_cast< ::message::Module_statu >(value));
  391. } else {
  392. mutable_unknown_fields()->AddVarint(
  393. 4, static_cast< ::google::protobuf::uint64>(value));
  394. }
  395. } else {
  396. goto handle_unusual;
  397. }
  398. break;
  399. }
  400. default: {
  401. handle_unusual:
  402. if (tag == 0) {
  403. goto success;
  404. }
  405. DO_(::google::protobuf::internal::WireFormat::SkipField(
  406. input, tag, _internal_metadata_.mutable_unknown_fields()));
  407. break;
  408. }
  409. }
  410. }
  411. success:
  412. // @@protoc_insertion_point(parse_success:message.Entrance_statu)
  413. return true;
  414. failure:
  415. // @@protoc_insertion_point(parse_failure:message.Entrance_statu)
  416. return false;
  417. #undef DO_
  418. }
  419. void Entrance_statu::SerializeWithCachedSizes(
  420. ::google::protobuf::io::CodedOutputStream* output) const {
  421. // @@protoc_insertion_point(serialize_start:message.Entrance_statu)
  422. ::google::protobuf::uint32 cached_has_bits = 0;
  423. (void) cached_has_bits;
  424. cached_has_bits = _has_bits_[0];
  425. // required bool paused = 1;
  426. if (cached_has_bits & 0x00000001u) {
  427. ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->paused(), output);
  428. }
  429. // optional .message.Module_statu parkspace_statu = 2;
  430. if (cached_has_bits & 0x00000002u) {
  431. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  432. 2, this->parkspace_statu(), output);
  433. }
  434. // optional .message.Module_statu dispatch_statu = 3;
  435. if (cached_has_bits & 0x00000004u) {
  436. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  437. 3, this->dispatch_statu(), output);
  438. }
  439. // optional .message.Module_statu notify_statu = 4;
  440. if (cached_has_bits & 0x00000008u) {
  441. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  442. 4, this->notify_statu(), output);
  443. }
  444. if (_internal_metadata_.have_unknown_fields()) {
  445. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  446. _internal_metadata_.unknown_fields(), output);
  447. }
  448. // @@protoc_insertion_point(serialize_end:message.Entrance_statu)
  449. }
  450. ::google::protobuf::uint8* Entrance_statu::InternalSerializeWithCachedSizesToArray(
  451. bool deterministic, ::google::protobuf::uint8* target) const {
  452. (void)deterministic; // Unused
  453. // @@protoc_insertion_point(serialize_to_array_start:message.Entrance_statu)
  454. ::google::protobuf::uint32 cached_has_bits = 0;
  455. (void) cached_has_bits;
  456. cached_has_bits = _has_bits_[0];
  457. // required bool paused = 1;
  458. if (cached_has_bits & 0x00000001u) {
  459. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->paused(), target);
  460. }
  461. // optional .message.Module_statu parkspace_statu = 2;
  462. if (cached_has_bits & 0x00000002u) {
  463. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  464. 2, this->parkspace_statu(), target);
  465. }
  466. // optional .message.Module_statu dispatch_statu = 3;
  467. if (cached_has_bits & 0x00000004u) {
  468. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  469. 3, this->dispatch_statu(), target);
  470. }
  471. // optional .message.Module_statu notify_statu = 4;
  472. if (cached_has_bits & 0x00000008u) {
  473. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  474. 4, this->notify_statu(), target);
  475. }
  476. if (_internal_metadata_.have_unknown_fields()) {
  477. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  478. _internal_metadata_.unknown_fields(), target);
  479. }
  480. // @@protoc_insertion_point(serialize_to_array_end:message.Entrance_statu)
  481. return target;
  482. }
  483. size_t Entrance_statu::ByteSizeLong() const {
  484. // @@protoc_insertion_point(message_byte_size_start:message.Entrance_statu)
  485. size_t total_size = 0;
  486. if (_internal_metadata_.have_unknown_fields()) {
  487. total_size +=
  488. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  489. _internal_metadata_.unknown_fields());
  490. }
  491. // required bool paused = 1;
  492. if (has_paused()) {
  493. total_size += 1 + 1;
  494. }
  495. if (_has_bits_[0 / 32] & 14u) {
  496. // optional .message.Module_statu parkspace_statu = 2;
  497. if (has_parkspace_statu()) {
  498. total_size += 1 +
  499. ::google::protobuf::internal::WireFormatLite::EnumSize(this->parkspace_statu());
  500. }
  501. // optional .message.Module_statu dispatch_statu = 3;
  502. if (has_dispatch_statu()) {
  503. total_size += 1 +
  504. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_statu());
  505. }
  506. // optional .message.Module_statu notify_statu = 4;
  507. if (has_notify_statu()) {
  508. total_size += 1 +
  509. ::google::protobuf::internal::WireFormatLite::EnumSize(this->notify_statu());
  510. }
  511. }
  512. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  513. SetCachedSize(cached_size);
  514. return total_size;
  515. }
  516. void Entrance_statu::MergeFrom(const ::google::protobuf::Message& from) {
  517. // @@protoc_insertion_point(generalized_merge_from_start:message.Entrance_statu)
  518. GOOGLE_DCHECK_NE(&from, this);
  519. const Entrance_statu* source =
  520. ::google::protobuf::internal::DynamicCastToGenerated<const Entrance_statu>(
  521. &from);
  522. if (source == NULL) {
  523. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Entrance_statu)
  524. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  525. } else {
  526. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Entrance_statu)
  527. MergeFrom(*source);
  528. }
  529. }
  530. void Entrance_statu::MergeFrom(const Entrance_statu& from) {
  531. // @@protoc_insertion_point(class_specific_merge_from_start:message.Entrance_statu)
  532. GOOGLE_DCHECK_NE(&from, this);
  533. _internal_metadata_.MergeFrom(from._internal_metadata_);
  534. ::google::protobuf::uint32 cached_has_bits = 0;
  535. (void) cached_has_bits;
  536. cached_has_bits = from._has_bits_[0];
  537. if (cached_has_bits & 15u) {
  538. if (cached_has_bits & 0x00000001u) {
  539. paused_ = from.paused_;
  540. }
  541. if (cached_has_bits & 0x00000002u) {
  542. parkspace_statu_ = from.parkspace_statu_;
  543. }
  544. if (cached_has_bits & 0x00000004u) {
  545. dispatch_statu_ = from.dispatch_statu_;
  546. }
  547. if (cached_has_bits & 0x00000008u) {
  548. notify_statu_ = from.notify_statu_;
  549. }
  550. _has_bits_[0] |= cached_has_bits;
  551. }
  552. }
  553. void Entrance_statu::CopyFrom(const ::google::protobuf::Message& from) {
  554. // @@protoc_insertion_point(generalized_copy_from_start:message.Entrance_statu)
  555. if (&from == this) return;
  556. Clear();
  557. MergeFrom(from);
  558. }
  559. void Entrance_statu::CopyFrom(const Entrance_statu& from) {
  560. // @@protoc_insertion_point(class_specific_copy_from_start:message.Entrance_statu)
  561. if (&from == this) return;
  562. Clear();
  563. MergeFrom(from);
  564. }
  565. bool Entrance_statu::IsInitialized() const {
  566. if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
  567. return true;
  568. }
  569. void Entrance_statu::Swap(Entrance_statu* other) {
  570. if (other == this) return;
  571. InternalSwap(other);
  572. }
  573. void Entrance_statu::InternalSwap(Entrance_statu* other) {
  574. using std::swap;
  575. swap(paused_, other->paused_);
  576. swap(parkspace_statu_, other->parkspace_statu_);
  577. swap(dispatch_statu_, other->dispatch_statu_);
  578. swap(notify_statu_, other->notify_statu_);
  579. swap(_has_bits_[0], other->_has_bits_[0]);
  580. _internal_metadata_.Swap(&other->_internal_metadata_);
  581. }
  582. ::google::protobuf::Metadata Entrance_statu::GetMetadata() const {
  583. protobuf_central_5fcontrol_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  584. return ::protobuf_central_5fcontrol_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  585. }
  586. // ===================================================================
  587. void Central_controller_statu_msg::InitAsDefaultInstance() {
  588. ::message::_Central_controller_statu_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  589. ::message::Base_info::internal_default_instance());
  590. }
  591. void Central_controller_statu_msg::clear_base_info() {
  592. if (base_info_ != NULL) base_info_->Clear();
  593. clear_has_base_info();
  594. }
  595. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  596. const int Central_controller_statu_msg::kBaseInfoFieldNumber;
  597. const int Central_controller_statu_msg::kEntranceStatuVectorFieldNumber;
  598. const int Central_controller_statu_msg::kExportStatuVectorFieldNumber;
  599. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  600. Central_controller_statu_msg::Central_controller_statu_msg()
  601. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  602. ::google::protobuf::internal::InitSCC(
  603. &protobuf_central_5fcontrol_5fmessage_2eproto::scc_info_Central_controller_statu_msg.base);
  604. SharedCtor();
  605. // @@protoc_insertion_point(constructor:message.Central_controller_statu_msg)
  606. }
  607. Central_controller_statu_msg::Central_controller_statu_msg(const Central_controller_statu_msg& from)
  608. : ::google::protobuf::Message(),
  609. _internal_metadata_(NULL),
  610. _has_bits_(from._has_bits_),
  611. entrance_statu_vector_(from.entrance_statu_vector_),
  612. export_statu_vector_(from.export_statu_vector_) {
  613. _internal_metadata_.MergeFrom(from._internal_metadata_);
  614. if (from.has_base_info()) {
  615. base_info_ = new ::message::Base_info(*from.base_info_);
  616. } else {
  617. base_info_ = NULL;
  618. }
  619. // @@protoc_insertion_point(copy_constructor:message.Central_controller_statu_msg)
  620. }
  621. void Central_controller_statu_msg::SharedCtor() {
  622. base_info_ = NULL;
  623. }
  624. Central_controller_statu_msg::~Central_controller_statu_msg() {
  625. // @@protoc_insertion_point(destructor:message.Central_controller_statu_msg)
  626. SharedDtor();
  627. }
  628. void Central_controller_statu_msg::SharedDtor() {
  629. if (this != internal_default_instance()) delete base_info_;
  630. }
  631. void Central_controller_statu_msg::SetCachedSize(int size) const {
  632. _cached_size_.Set(size);
  633. }
  634. const ::google::protobuf::Descriptor* Central_controller_statu_msg::descriptor() {
  635. ::protobuf_central_5fcontrol_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  636. return ::protobuf_central_5fcontrol_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  637. }
  638. const Central_controller_statu_msg& Central_controller_statu_msg::default_instance() {
  639. ::google::protobuf::internal::InitSCC(&protobuf_central_5fcontrol_5fmessage_2eproto::scc_info_Central_controller_statu_msg.base);
  640. return *internal_default_instance();
  641. }
  642. void Central_controller_statu_msg::Clear() {
  643. // @@protoc_insertion_point(message_clear_start:message.Central_controller_statu_msg)
  644. ::google::protobuf::uint32 cached_has_bits = 0;
  645. // Prevent compiler warnings about cached_has_bits being unused
  646. (void) cached_has_bits;
  647. entrance_statu_vector_.Clear();
  648. export_statu_vector_.Clear();
  649. cached_has_bits = _has_bits_[0];
  650. if (cached_has_bits & 0x00000001u) {
  651. GOOGLE_DCHECK(base_info_ != NULL);
  652. base_info_->Clear();
  653. }
  654. _has_bits_.Clear();
  655. _internal_metadata_.Clear();
  656. }
  657. bool Central_controller_statu_msg::MergePartialFromCodedStream(
  658. ::google::protobuf::io::CodedInputStream* input) {
  659. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  660. ::google::protobuf::uint32 tag;
  661. // @@protoc_insertion_point(parse_start:message.Central_controller_statu_msg)
  662. for (;;) {
  663. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  664. tag = p.first;
  665. if (!p.second) goto handle_unusual;
  666. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  667. // required .message.Base_info base_info = 1;
  668. case 1: {
  669. if (static_cast< ::google::protobuf::uint8>(tag) ==
  670. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  671. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  672. input, mutable_base_info()));
  673. } else {
  674. goto handle_unusual;
  675. }
  676. break;
  677. }
  678. // repeated .message.Entrance_statu entrance_statu_vector = 2;
  679. case 2: {
  680. if (static_cast< ::google::protobuf::uint8>(tag) ==
  681. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  682. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  683. input, add_entrance_statu_vector()));
  684. } else {
  685. goto handle_unusual;
  686. }
  687. break;
  688. }
  689. // repeated .message.Entrance_statu export_statu_vector = 3;
  690. case 3: {
  691. if (static_cast< ::google::protobuf::uint8>(tag) ==
  692. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  693. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  694. input, add_export_statu_vector()));
  695. } else {
  696. goto handle_unusual;
  697. }
  698. break;
  699. }
  700. default: {
  701. handle_unusual:
  702. if (tag == 0) {
  703. goto success;
  704. }
  705. DO_(::google::protobuf::internal::WireFormat::SkipField(
  706. input, tag, _internal_metadata_.mutable_unknown_fields()));
  707. break;
  708. }
  709. }
  710. }
  711. success:
  712. // @@protoc_insertion_point(parse_success:message.Central_controller_statu_msg)
  713. return true;
  714. failure:
  715. // @@protoc_insertion_point(parse_failure:message.Central_controller_statu_msg)
  716. return false;
  717. #undef DO_
  718. }
  719. void Central_controller_statu_msg::SerializeWithCachedSizes(
  720. ::google::protobuf::io::CodedOutputStream* output) const {
  721. // @@protoc_insertion_point(serialize_start:message.Central_controller_statu_msg)
  722. ::google::protobuf::uint32 cached_has_bits = 0;
  723. (void) cached_has_bits;
  724. cached_has_bits = _has_bits_[0];
  725. // required .message.Base_info base_info = 1;
  726. if (cached_has_bits & 0x00000001u) {
  727. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  728. 1, this->_internal_base_info(), output);
  729. }
  730. // repeated .message.Entrance_statu entrance_statu_vector = 2;
  731. for (unsigned int i = 0,
  732. n = static_cast<unsigned int>(this->entrance_statu_vector_size()); i < n; i++) {
  733. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  734. 2,
  735. this->entrance_statu_vector(static_cast<int>(i)),
  736. output);
  737. }
  738. // repeated .message.Entrance_statu export_statu_vector = 3;
  739. for (unsigned int i = 0,
  740. n = static_cast<unsigned int>(this->export_statu_vector_size()); i < n; i++) {
  741. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  742. 3,
  743. this->export_statu_vector(static_cast<int>(i)),
  744. output);
  745. }
  746. if (_internal_metadata_.have_unknown_fields()) {
  747. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  748. _internal_metadata_.unknown_fields(), output);
  749. }
  750. // @@protoc_insertion_point(serialize_end:message.Central_controller_statu_msg)
  751. }
  752. ::google::protobuf::uint8* Central_controller_statu_msg::InternalSerializeWithCachedSizesToArray(
  753. bool deterministic, ::google::protobuf::uint8* target) const {
  754. (void)deterministic; // Unused
  755. // @@protoc_insertion_point(serialize_to_array_start:message.Central_controller_statu_msg)
  756. ::google::protobuf::uint32 cached_has_bits = 0;
  757. (void) cached_has_bits;
  758. cached_has_bits = _has_bits_[0];
  759. // required .message.Base_info base_info = 1;
  760. if (cached_has_bits & 0x00000001u) {
  761. target = ::google::protobuf::internal::WireFormatLite::
  762. InternalWriteMessageToArray(
  763. 1, this->_internal_base_info(), deterministic, target);
  764. }
  765. // repeated .message.Entrance_statu entrance_statu_vector = 2;
  766. for (unsigned int i = 0,
  767. n = static_cast<unsigned int>(this->entrance_statu_vector_size()); i < n; i++) {
  768. target = ::google::protobuf::internal::WireFormatLite::
  769. InternalWriteMessageToArray(
  770. 2, this->entrance_statu_vector(static_cast<int>(i)), deterministic, target);
  771. }
  772. // repeated .message.Entrance_statu export_statu_vector = 3;
  773. for (unsigned int i = 0,
  774. n = static_cast<unsigned int>(this->export_statu_vector_size()); i < n; i++) {
  775. target = ::google::protobuf::internal::WireFormatLite::
  776. InternalWriteMessageToArray(
  777. 3, this->export_statu_vector(static_cast<int>(i)), deterministic, target);
  778. }
  779. if (_internal_metadata_.have_unknown_fields()) {
  780. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  781. _internal_metadata_.unknown_fields(), target);
  782. }
  783. // @@protoc_insertion_point(serialize_to_array_end:message.Central_controller_statu_msg)
  784. return target;
  785. }
  786. size_t Central_controller_statu_msg::ByteSizeLong() const {
  787. // @@protoc_insertion_point(message_byte_size_start:message.Central_controller_statu_msg)
  788. size_t total_size = 0;
  789. if (_internal_metadata_.have_unknown_fields()) {
  790. total_size +=
  791. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  792. _internal_metadata_.unknown_fields());
  793. }
  794. // required .message.Base_info base_info = 1;
  795. if (has_base_info()) {
  796. total_size += 1 +
  797. ::google::protobuf::internal::WireFormatLite::MessageSize(
  798. *base_info_);
  799. }
  800. // repeated .message.Entrance_statu entrance_statu_vector = 2;
  801. {
  802. unsigned int count = static_cast<unsigned int>(this->entrance_statu_vector_size());
  803. total_size += 1UL * count;
  804. for (unsigned int i = 0; i < count; i++) {
  805. total_size +=
  806. ::google::protobuf::internal::WireFormatLite::MessageSize(
  807. this->entrance_statu_vector(static_cast<int>(i)));
  808. }
  809. }
  810. // repeated .message.Entrance_statu export_statu_vector = 3;
  811. {
  812. unsigned int count = static_cast<unsigned int>(this->export_statu_vector_size());
  813. total_size += 1UL * count;
  814. for (unsigned int i = 0; i < count; i++) {
  815. total_size +=
  816. ::google::protobuf::internal::WireFormatLite::MessageSize(
  817. this->export_statu_vector(static_cast<int>(i)));
  818. }
  819. }
  820. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  821. SetCachedSize(cached_size);
  822. return total_size;
  823. }
  824. void Central_controller_statu_msg::MergeFrom(const ::google::protobuf::Message& from) {
  825. // @@protoc_insertion_point(generalized_merge_from_start:message.Central_controller_statu_msg)
  826. GOOGLE_DCHECK_NE(&from, this);
  827. const Central_controller_statu_msg* source =
  828. ::google::protobuf::internal::DynamicCastToGenerated<const Central_controller_statu_msg>(
  829. &from);
  830. if (source == NULL) {
  831. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Central_controller_statu_msg)
  832. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  833. } else {
  834. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Central_controller_statu_msg)
  835. MergeFrom(*source);
  836. }
  837. }
  838. void Central_controller_statu_msg::MergeFrom(const Central_controller_statu_msg& from) {
  839. // @@protoc_insertion_point(class_specific_merge_from_start:message.Central_controller_statu_msg)
  840. GOOGLE_DCHECK_NE(&from, this);
  841. _internal_metadata_.MergeFrom(from._internal_metadata_);
  842. ::google::protobuf::uint32 cached_has_bits = 0;
  843. (void) cached_has_bits;
  844. entrance_statu_vector_.MergeFrom(from.entrance_statu_vector_);
  845. export_statu_vector_.MergeFrom(from.export_statu_vector_);
  846. if (from.has_base_info()) {
  847. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  848. }
  849. }
  850. void Central_controller_statu_msg::CopyFrom(const ::google::protobuf::Message& from) {
  851. // @@protoc_insertion_point(generalized_copy_from_start:message.Central_controller_statu_msg)
  852. if (&from == this) return;
  853. Clear();
  854. MergeFrom(from);
  855. }
  856. void Central_controller_statu_msg::CopyFrom(const Central_controller_statu_msg& from) {
  857. // @@protoc_insertion_point(class_specific_copy_from_start:message.Central_controller_statu_msg)
  858. if (&from == this) return;
  859. Clear();
  860. MergeFrom(from);
  861. }
  862. bool Central_controller_statu_msg::IsInitialized() const {
  863. if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
  864. if (!::google::protobuf::internal::AllAreInitialized(this->entrance_statu_vector())) return false;
  865. if (!::google::protobuf::internal::AllAreInitialized(this->export_statu_vector())) return false;
  866. if (has_base_info()) {
  867. if (!this->base_info_->IsInitialized()) return false;
  868. }
  869. return true;
  870. }
  871. void Central_controller_statu_msg::Swap(Central_controller_statu_msg* other) {
  872. if (other == this) return;
  873. InternalSwap(other);
  874. }
  875. void Central_controller_statu_msg::InternalSwap(Central_controller_statu_msg* other) {
  876. using std::swap;
  877. CastToBase(&entrance_statu_vector_)->InternalSwap(CastToBase(&other->entrance_statu_vector_));
  878. CastToBase(&export_statu_vector_)->InternalSwap(CastToBase(&other->export_statu_vector_));
  879. swap(base_info_, other->base_info_);
  880. swap(_has_bits_[0], other->_has_bits_[0]);
  881. _internal_metadata_.Swap(&other->_internal_metadata_);
  882. }
  883. ::google::protobuf::Metadata Central_controller_statu_msg::GetMetadata() const {
  884. protobuf_central_5fcontrol_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  885. return ::protobuf_central_5fcontrol_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  886. }
  887. // ===================================================================
  888. void Entrance_manual_operation_msg::InitAsDefaultInstance() {
  889. ::message::_Entrance_manual_operation_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  890. ::message::Base_info::internal_default_instance());
  891. ::message::_Entrance_manual_operation_msg_default_instance_._instance.get_mutable()->id_struct_ = const_cast< ::message::Id_struct*>(
  892. ::message::Id_struct::internal_default_instance());
  893. }
  894. void Entrance_manual_operation_msg::clear_base_info() {
  895. if (base_info_ != NULL) base_info_->Clear();
  896. clear_has_base_info();
  897. }
  898. void Entrance_manual_operation_msg::clear_id_struct() {
  899. if (id_struct_ != NULL) id_struct_->Clear();
  900. clear_has_id_struct();
  901. }
  902. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  903. const int Entrance_manual_operation_msg::kBaseInfoFieldNumber;
  904. const int Entrance_manual_operation_msg::kIdStructFieldNumber;
  905. const int Entrance_manual_operation_msg::kProcessTypeFieldNumber;
  906. const int Entrance_manual_operation_msg::kPausedFieldNumber;
  907. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  908. Entrance_manual_operation_msg::Entrance_manual_operation_msg()
  909. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  910. ::google::protobuf::internal::InitSCC(
  911. &protobuf_central_5fcontrol_5fmessage_2eproto::scc_info_Entrance_manual_operation_msg.base);
  912. SharedCtor();
  913. // @@protoc_insertion_point(constructor:message.Entrance_manual_operation_msg)
  914. }
  915. Entrance_manual_operation_msg::Entrance_manual_operation_msg(const Entrance_manual_operation_msg& from)
  916. : ::google::protobuf::Message(),
  917. _internal_metadata_(NULL),
  918. _has_bits_(from._has_bits_) {
  919. _internal_metadata_.MergeFrom(from._internal_metadata_);
  920. if (from.has_base_info()) {
  921. base_info_ = new ::message::Base_info(*from.base_info_);
  922. } else {
  923. base_info_ = NULL;
  924. }
  925. if (from.has_id_struct()) {
  926. id_struct_ = new ::message::Id_struct(*from.id_struct_);
  927. } else {
  928. id_struct_ = NULL;
  929. }
  930. ::memcpy(&paused_, &from.paused_,
  931. static_cast<size_t>(reinterpret_cast<char*>(&process_type_) -
  932. reinterpret_cast<char*>(&paused_)) + sizeof(process_type_));
  933. // @@protoc_insertion_point(copy_constructor:message.Entrance_manual_operation_msg)
  934. }
  935. void Entrance_manual_operation_msg::SharedCtor() {
  936. ::memset(&base_info_, 0, static_cast<size_t>(
  937. reinterpret_cast<char*>(&paused_) -
  938. reinterpret_cast<char*>(&base_info_)) + sizeof(paused_));
  939. process_type_ = 1;
  940. }
  941. Entrance_manual_operation_msg::~Entrance_manual_operation_msg() {
  942. // @@protoc_insertion_point(destructor:message.Entrance_manual_operation_msg)
  943. SharedDtor();
  944. }
  945. void Entrance_manual_operation_msg::SharedDtor() {
  946. if (this != internal_default_instance()) delete base_info_;
  947. if (this != internal_default_instance()) delete id_struct_;
  948. }
  949. void Entrance_manual_operation_msg::SetCachedSize(int size) const {
  950. _cached_size_.Set(size);
  951. }
  952. const ::google::protobuf::Descriptor* Entrance_manual_operation_msg::descriptor() {
  953. ::protobuf_central_5fcontrol_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  954. return ::protobuf_central_5fcontrol_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  955. }
  956. const Entrance_manual_operation_msg& Entrance_manual_operation_msg::default_instance() {
  957. ::google::protobuf::internal::InitSCC(&protobuf_central_5fcontrol_5fmessage_2eproto::scc_info_Entrance_manual_operation_msg.base);
  958. return *internal_default_instance();
  959. }
  960. void Entrance_manual_operation_msg::Clear() {
  961. // @@protoc_insertion_point(message_clear_start:message.Entrance_manual_operation_msg)
  962. ::google::protobuf::uint32 cached_has_bits = 0;
  963. // Prevent compiler warnings about cached_has_bits being unused
  964. (void) cached_has_bits;
  965. cached_has_bits = _has_bits_[0];
  966. if (cached_has_bits & 3u) {
  967. if (cached_has_bits & 0x00000001u) {
  968. GOOGLE_DCHECK(base_info_ != NULL);
  969. base_info_->Clear();
  970. }
  971. if (cached_has_bits & 0x00000002u) {
  972. GOOGLE_DCHECK(id_struct_ != NULL);
  973. id_struct_->Clear();
  974. }
  975. }
  976. if (cached_has_bits & 12u) {
  977. paused_ = false;
  978. process_type_ = 1;
  979. }
  980. _has_bits_.Clear();
  981. _internal_metadata_.Clear();
  982. }
  983. bool Entrance_manual_operation_msg::MergePartialFromCodedStream(
  984. ::google::protobuf::io::CodedInputStream* input) {
  985. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  986. ::google::protobuf::uint32 tag;
  987. // @@protoc_insertion_point(parse_start:message.Entrance_manual_operation_msg)
  988. for (;;) {
  989. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  990. tag = p.first;
  991. if (!p.second) goto handle_unusual;
  992. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  993. // required .message.Base_info base_info = 1;
  994. case 1: {
  995. if (static_cast< ::google::protobuf::uint8>(tag) ==
  996. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  997. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  998. input, mutable_base_info()));
  999. } else {
  1000. goto handle_unusual;
  1001. }
  1002. break;
  1003. }
  1004. // required .message.Id_struct id_struct = 2;
  1005. case 2: {
  1006. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1007. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1008. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1009. input, mutable_id_struct()));
  1010. } else {
  1011. goto handle_unusual;
  1012. }
  1013. break;
  1014. }
  1015. // required .message.Process_type process_type = 3;
  1016. case 3: {
  1017. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1018. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  1019. int value;
  1020. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1021. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1022. input, &value)));
  1023. if (::message::Process_type_IsValid(value)) {
  1024. set_process_type(static_cast< ::message::Process_type >(value));
  1025. } else {
  1026. mutable_unknown_fields()->AddVarint(
  1027. 3, static_cast< ::google::protobuf::uint64>(value));
  1028. }
  1029. } else {
  1030. goto handle_unusual;
  1031. }
  1032. break;
  1033. }
  1034. // required bool paused = 4;
  1035. case 4: {
  1036. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1037. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  1038. set_has_paused();
  1039. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1040. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  1041. input, &paused_)));
  1042. } else {
  1043. goto handle_unusual;
  1044. }
  1045. break;
  1046. }
  1047. default: {
  1048. handle_unusual:
  1049. if (tag == 0) {
  1050. goto success;
  1051. }
  1052. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1053. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1054. break;
  1055. }
  1056. }
  1057. }
  1058. success:
  1059. // @@protoc_insertion_point(parse_success:message.Entrance_manual_operation_msg)
  1060. return true;
  1061. failure:
  1062. // @@protoc_insertion_point(parse_failure:message.Entrance_manual_operation_msg)
  1063. return false;
  1064. #undef DO_
  1065. }
  1066. void Entrance_manual_operation_msg::SerializeWithCachedSizes(
  1067. ::google::protobuf::io::CodedOutputStream* output) const {
  1068. // @@protoc_insertion_point(serialize_start:message.Entrance_manual_operation_msg)
  1069. ::google::protobuf::uint32 cached_has_bits = 0;
  1070. (void) cached_has_bits;
  1071. cached_has_bits = _has_bits_[0];
  1072. // required .message.Base_info base_info = 1;
  1073. if (cached_has_bits & 0x00000001u) {
  1074. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1075. 1, this->_internal_base_info(), output);
  1076. }
  1077. // required .message.Id_struct id_struct = 2;
  1078. if (cached_has_bits & 0x00000002u) {
  1079. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1080. 2, this->_internal_id_struct(), output);
  1081. }
  1082. // required .message.Process_type process_type = 3;
  1083. if (cached_has_bits & 0x00000008u) {
  1084. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1085. 3, this->process_type(), output);
  1086. }
  1087. // required bool paused = 4;
  1088. if (cached_has_bits & 0x00000004u) {
  1089. ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->paused(), output);
  1090. }
  1091. if (_internal_metadata_.have_unknown_fields()) {
  1092. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1093. _internal_metadata_.unknown_fields(), output);
  1094. }
  1095. // @@protoc_insertion_point(serialize_end:message.Entrance_manual_operation_msg)
  1096. }
  1097. ::google::protobuf::uint8* Entrance_manual_operation_msg::InternalSerializeWithCachedSizesToArray(
  1098. bool deterministic, ::google::protobuf::uint8* target) const {
  1099. (void)deterministic; // Unused
  1100. // @@protoc_insertion_point(serialize_to_array_start:message.Entrance_manual_operation_msg)
  1101. ::google::protobuf::uint32 cached_has_bits = 0;
  1102. (void) cached_has_bits;
  1103. cached_has_bits = _has_bits_[0];
  1104. // required .message.Base_info base_info = 1;
  1105. if (cached_has_bits & 0x00000001u) {
  1106. target = ::google::protobuf::internal::WireFormatLite::
  1107. InternalWriteMessageToArray(
  1108. 1, this->_internal_base_info(), deterministic, target);
  1109. }
  1110. // required .message.Id_struct id_struct = 2;
  1111. if (cached_has_bits & 0x00000002u) {
  1112. target = ::google::protobuf::internal::WireFormatLite::
  1113. InternalWriteMessageToArray(
  1114. 2, this->_internal_id_struct(), deterministic, target);
  1115. }
  1116. // required .message.Process_type process_type = 3;
  1117. if (cached_has_bits & 0x00000008u) {
  1118. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1119. 3, this->process_type(), target);
  1120. }
  1121. // required bool paused = 4;
  1122. if (cached_has_bits & 0x00000004u) {
  1123. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->paused(), target);
  1124. }
  1125. if (_internal_metadata_.have_unknown_fields()) {
  1126. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1127. _internal_metadata_.unknown_fields(), target);
  1128. }
  1129. // @@protoc_insertion_point(serialize_to_array_end:message.Entrance_manual_operation_msg)
  1130. return target;
  1131. }
  1132. size_t Entrance_manual_operation_msg::RequiredFieldsByteSizeFallback() const {
  1133. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Entrance_manual_operation_msg)
  1134. size_t total_size = 0;
  1135. if (has_base_info()) {
  1136. // required .message.Base_info base_info = 1;
  1137. total_size += 1 +
  1138. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1139. *base_info_);
  1140. }
  1141. if (has_id_struct()) {
  1142. // required .message.Id_struct id_struct = 2;
  1143. total_size += 1 +
  1144. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1145. *id_struct_);
  1146. }
  1147. if (has_paused()) {
  1148. // required bool paused = 4;
  1149. total_size += 1 + 1;
  1150. }
  1151. if (has_process_type()) {
  1152. // required .message.Process_type process_type = 3;
  1153. total_size += 1 +
  1154. ::google::protobuf::internal::WireFormatLite::EnumSize(this->process_type());
  1155. }
  1156. return total_size;
  1157. }
  1158. size_t Entrance_manual_operation_msg::ByteSizeLong() const {
  1159. // @@protoc_insertion_point(message_byte_size_start:message.Entrance_manual_operation_msg)
  1160. size_t total_size = 0;
  1161. if (_internal_metadata_.have_unknown_fields()) {
  1162. total_size +=
  1163. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1164. _internal_metadata_.unknown_fields());
  1165. }
  1166. if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
  1167. // required .message.Base_info base_info = 1;
  1168. total_size += 1 +
  1169. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1170. *base_info_);
  1171. // required .message.Id_struct id_struct = 2;
  1172. total_size += 1 +
  1173. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1174. *id_struct_);
  1175. // required bool paused = 4;
  1176. total_size += 1 + 1;
  1177. // required .message.Process_type process_type = 3;
  1178. total_size += 1 +
  1179. ::google::protobuf::internal::WireFormatLite::EnumSize(this->process_type());
  1180. } else {
  1181. total_size += RequiredFieldsByteSizeFallback();
  1182. }
  1183. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1184. SetCachedSize(cached_size);
  1185. return total_size;
  1186. }
  1187. void Entrance_manual_operation_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1188. // @@protoc_insertion_point(generalized_merge_from_start:message.Entrance_manual_operation_msg)
  1189. GOOGLE_DCHECK_NE(&from, this);
  1190. const Entrance_manual_operation_msg* source =
  1191. ::google::protobuf::internal::DynamicCastToGenerated<const Entrance_manual_operation_msg>(
  1192. &from);
  1193. if (source == NULL) {
  1194. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Entrance_manual_operation_msg)
  1195. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1196. } else {
  1197. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Entrance_manual_operation_msg)
  1198. MergeFrom(*source);
  1199. }
  1200. }
  1201. void Entrance_manual_operation_msg::MergeFrom(const Entrance_manual_operation_msg& from) {
  1202. // @@protoc_insertion_point(class_specific_merge_from_start:message.Entrance_manual_operation_msg)
  1203. GOOGLE_DCHECK_NE(&from, this);
  1204. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1205. ::google::protobuf::uint32 cached_has_bits = 0;
  1206. (void) cached_has_bits;
  1207. cached_has_bits = from._has_bits_[0];
  1208. if (cached_has_bits & 15u) {
  1209. if (cached_has_bits & 0x00000001u) {
  1210. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1211. }
  1212. if (cached_has_bits & 0x00000002u) {
  1213. mutable_id_struct()->::message::Id_struct::MergeFrom(from.id_struct());
  1214. }
  1215. if (cached_has_bits & 0x00000004u) {
  1216. paused_ = from.paused_;
  1217. }
  1218. if (cached_has_bits & 0x00000008u) {
  1219. process_type_ = from.process_type_;
  1220. }
  1221. _has_bits_[0] |= cached_has_bits;
  1222. }
  1223. }
  1224. void Entrance_manual_operation_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1225. // @@protoc_insertion_point(generalized_copy_from_start:message.Entrance_manual_operation_msg)
  1226. if (&from == this) return;
  1227. Clear();
  1228. MergeFrom(from);
  1229. }
  1230. void Entrance_manual_operation_msg::CopyFrom(const Entrance_manual_operation_msg& from) {
  1231. // @@protoc_insertion_point(class_specific_copy_from_start:message.Entrance_manual_operation_msg)
  1232. if (&from == this) return;
  1233. Clear();
  1234. MergeFrom(from);
  1235. }
  1236. bool Entrance_manual_operation_msg::IsInitialized() const {
  1237. if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
  1238. if (has_base_info()) {
  1239. if (!this->base_info_->IsInitialized()) return false;
  1240. }
  1241. return true;
  1242. }
  1243. void Entrance_manual_operation_msg::Swap(Entrance_manual_operation_msg* other) {
  1244. if (other == this) return;
  1245. InternalSwap(other);
  1246. }
  1247. void Entrance_manual_operation_msg::InternalSwap(Entrance_manual_operation_msg* other) {
  1248. using std::swap;
  1249. swap(base_info_, other->base_info_);
  1250. swap(id_struct_, other->id_struct_);
  1251. swap(paused_, other->paused_);
  1252. swap(process_type_, other->process_type_);
  1253. swap(_has_bits_[0], other->_has_bits_[0]);
  1254. _internal_metadata_.Swap(&other->_internal_metadata_);
  1255. }
  1256. ::google::protobuf::Metadata Entrance_manual_operation_msg::GetMetadata() const {
  1257. protobuf_central_5fcontrol_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1258. return ::protobuf_central_5fcontrol_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1259. }
  1260. // ===================================================================
  1261. void Process_manual_operation_msg::InitAsDefaultInstance() {
  1262. ::message::_Process_manual_operation_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1263. ::message::Base_info::internal_default_instance());
  1264. }
  1265. void Process_manual_operation_msg::clear_base_info() {
  1266. if (base_info_ != NULL) base_info_->Clear();
  1267. clear_has_base_info();
  1268. }
  1269. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1270. const int Process_manual_operation_msg::kBaseInfoFieldNumber;
  1271. const int Process_manual_operation_msg::kLicenseFieldNumber;
  1272. const int Process_manual_operation_msg::kStepTypeFieldNumber;
  1273. const int Process_manual_operation_msg::kOperateTypeFieldNumber;
  1274. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1275. Process_manual_operation_msg::Process_manual_operation_msg()
  1276. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1277. ::google::protobuf::internal::InitSCC(
  1278. &protobuf_central_5fcontrol_5fmessage_2eproto::scc_info_Process_manual_operation_msg.base);
  1279. SharedCtor();
  1280. // @@protoc_insertion_point(constructor:message.Process_manual_operation_msg)
  1281. }
  1282. Process_manual_operation_msg::Process_manual_operation_msg(const Process_manual_operation_msg& from)
  1283. : ::google::protobuf::Message(),
  1284. _internal_metadata_(NULL),
  1285. _has_bits_(from._has_bits_) {
  1286. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1287. license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1288. if (from.has_license()) {
  1289. license_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.license_);
  1290. }
  1291. if (from.has_base_info()) {
  1292. base_info_ = new ::message::Base_info(*from.base_info_);
  1293. } else {
  1294. base_info_ = NULL;
  1295. }
  1296. ::memcpy(&step_type_, &from.step_type_,
  1297. static_cast<size_t>(reinterpret_cast<char*>(&operate_type_) -
  1298. reinterpret_cast<char*>(&step_type_)) + sizeof(operate_type_));
  1299. // @@protoc_insertion_point(copy_constructor:message.Process_manual_operation_msg)
  1300. }
  1301. void Process_manual_operation_msg::SharedCtor() {
  1302. license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1303. ::memset(&base_info_, 0, static_cast<size_t>(
  1304. reinterpret_cast<char*>(&operate_type_) -
  1305. reinterpret_cast<char*>(&base_info_)) + sizeof(operate_type_));
  1306. }
  1307. Process_manual_operation_msg::~Process_manual_operation_msg() {
  1308. // @@protoc_insertion_point(destructor:message.Process_manual_operation_msg)
  1309. SharedDtor();
  1310. }
  1311. void Process_manual_operation_msg::SharedDtor() {
  1312. license_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1313. if (this != internal_default_instance()) delete base_info_;
  1314. }
  1315. void Process_manual_operation_msg::SetCachedSize(int size) const {
  1316. _cached_size_.Set(size);
  1317. }
  1318. const ::google::protobuf::Descriptor* Process_manual_operation_msg::descriptor() {
  1319. ::protobuf_central_5fcontrol_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1320. return ::protobuf_central_5fcontrol_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1321. }
  1322. const Process_manual_operation_msg& Process_manual_operation_msg::default_instance() {
  1323. ::google::protobuf::internal::InitSCC(&protobuf_central_5fcontrol_5fmessage_2eproto::scc_info_Process_manual_operation_msg.base);
  1324. return *internal_default_instance();
  1325. }
  1326. void Process_manual_operation_msg::Clear() {
  1327. // @@protoc_insertion_point(message_clear_start:message.Process_manual_operation_msg)
  1328. ::google::protobuf::uint32 cached_has_bits = 0;
  1329. // Prevent compiler warnings about cached_has_bits being unused
  1330. (void) cached_has_bits;
  1331. cached_has_bits = _has_bits_[0];
  1332. if (cached_has_bits & 3u) {
  1333. if (cached_has_bits & 0x00000001u) {
  1334. license_.ClearNonDefaultToEmptyNoArena();
  1335. }
  1336. if (cached_has_bits & 0x00000002u) {
  1337. GOOGLE_DCHECK(base_info_ != NULL);
  1338. base_info_->Clear();
  1339. }
  1340. }
  1341. if (cached_has_bits & 12u) {
  1342. ::memset(&step_type_, 0, static_cast<size_t>(
  1343. reinterpret_cast<char*>(&operate_type_) -
  1344. reinterpret_cast<char*>(&step_type_)) + sizeof(operate_type_));
  1345. }
  1346. _has_bits_.Clear();
  1347. _internal_metadata_.Clear();
  1348. }
  1349. bool Process_manual_operation_msg::MergePartialFromCodedStream(
  1350. ::google::protobuf::io::CodedInputStream* input) {
  1351. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1352. ::google::protobuf::uint32 tag;
  1353. // @@protoc_insertion_point(parse_start:message.Process_manual_operation_msg)
  1354. for (;;) {
  1355. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1356. tag = p.first;
  1357. if (!p.second) goto handle_unusual;
  1358. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1359. // required .message.Base_info base_info = 1;
  1360. case 1: {
  1361. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1362. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1363. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1364. input, mutable_base_info()));
  1365. } else {
  1366. goto handle_unusual;
  1367. }
  1368. break;
  1369. }
  1370. // required string license = 2;
  1371. case 2: {
  1372. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1373. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1374. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1375. input, this->mutable_license()));
  1376. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1377. this->license().data(), static_cast<int>(this->license().length()),
  1378. ::google::protobuf::internal::WireFormat::PARSE,
  1379. "message.Process_manual_operation_msg.license");
  1380. } else {
  1381. goto handle_unusual;
  1382. }
  1383. break;
  1384. }
  1385. // required .message.Step_type step_type = 3;
  1386. case 3: {
  1387. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1388. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  1389. int value;
  1390. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1391. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1392. input, &value)));
  1393. if (::message::Step_type_IsValid(value)) {
  1394. set_step_type(static_cast< ::message::Step_type >(value));
  1395. } else {
  1396. mutable_unknown_fields()->AddVarint(
  1397. 3, static_cast< ::google::protobuf::uint64>(value));
  1398. }
  1399. } else {
  1400. goto handle_unusual;
  1401. }
  1402. break;
  1403. }
  1404. // required .message.Process_operation_type operate_type = 4;
  1405. case 4: {
  1406. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1407. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  1408. int value;
  1409. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1410. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1411. input, &value)));
  1412. if (::message::Process_operation_type_IsValid(value)) {
  1413. set_operate_type(static_cast< ::message::Process_operation_type >(value));
  1414. } else {
  1415. mutable_unknown_fields()->AddVarint(
  1416. 4, static_cast< ::google::protobuf::uint64>(value));
  1417. }
  1418. } else {
  1419. goto handle_unusual;
  1420. }
  1421. break;
  1422. }
  1423. default: {
  1424. handle_unusual:
  1425. if (tag == 0) {
  1426. goto success;
  1427. }
  1428. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1429. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1430. break;
  1431. }
  1432. }
  1433. }
  1434. success:
  1435. // @@protoc_insertion_point(parse_success:message.Process_manual_operation_msg)
  1436. return true;
  1437. failure:
  1438. // @@protoc_insertion_point(parse_failure:message.Process_manual_operation_msg)
  1439. return false;
  1440. #undef DO_
  1441. }
  1442. void Process_manual_operation_msg::SerializeWithCachedSizes(
  1443. ::google::protobuf::io::CodedOutputStream* output) const {
  1444. // @@protoc_insertion_point(serialize_start:message.Process_manual_operation_msg)
  1445. ::google::protobuf::uint32 cached_has_bits = 0;
  1446. (void) cached_has_bits;
  1447. cached_has_bits = _has_bits_[0];
  1448. // required .message.Base_info base_info = 1;
  1449. if (cached_has_bits & 0x00000002u) {
  1450. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1451. 1, this->_internal_base_info(), output);
  1452. }
  1453. // required string license = 2;
  1454. if (cached_has_bits & 0x00000001u) {
  1455. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1456. this->license().data(), static_cast<int>(this->license().length()),
  1457. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1458. "message.Process_manual_operation_msg.license");
  1459. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1460. 2, this->license(), output);
  1461. }
  1462. // required .message.Step_type step_type = 3;
  1463. if (cached_has_bits & 0x00000004u) {
  1464. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1465. 3, this->step_type(), output);
  1466. }
  1467. // required .message.Process_operation_type operate_type = 4;
  1468. if (cached_has_bits & 0x00000008u) {
  1469. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1470. 4, this->operate_type(), output);
  1471. }
  1472. if (_internal_metadata_.have_unknown_fields()) {
  1473. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1474. _internal_metadata_.unknown_fields(), output);
  1475. }
  1476. // @@protoc_insertion_point(serialize_end:message.Process_manual_operation_msg)
  1477. }
  1478. ::google::protobuf::uint8* Process_manual_operation_msg::InternalSerializeWithCachedSizesToArray(
  1479. bool deterministic, ::google::protobuf::uint8* target) const {
  1480. (void)deterministic; // Unused
  1481. // @@protoc_insertion_point(serialize_to_array_start:message.Process_manual_operation_msg)
  1482. ::google::protobuf::uint32 cached_has_bits = 0;
  1483. (void) cached_has_bits;
  1484. cached_has_bits = _has_bits_[0];
  1485. // required .message.Base_info base_info = 1;
  1486. if (cached_has_bits & 0x00000002u) {
  1487. target = ::google::protobuf::internal::WireFormatLite::
  1488. InternalWriteMessageToArray(
  1489. 1, this->_internal_base_info(), deterministic, target);
  1490. }
  1491. // required string license = 2;
  1492. if (cached_has_bits & 0x00000001u) {
  1493. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1494. this->license().data(), static_cast<int>(this->license().length()),
  1495. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1496. "message.Process_manual_operation_msg.license");
  1497. target =
  1498. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1499. 2, this->license(), target);
  1500. }
  1501. // required .message.Step_type step_type = 3;
  1502. if (cached_has_bits & 0x00000004u) {
  1503. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1504. 3, this->step_type(), target);
  1505. }
  1506. // required .message.Process_operation_type operate_type = 4;
  1507. if (cached_has_bits & 0x00000008u) {
  1508. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1509. 4, this->operate_type(), target);
  1510. }
  1511. if (_internal_metadata_.have_unknown_fields()) {
  1512. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1513. _internal_metadata_.unknown_fields(), target);
  1514. }
  1515. // @@protoc_insertion_point(serialize_to_array_end:message.Process_manual_operation_msg)
  1516. return target;
  1517. }
  1518. size_t Process_manual_operation_msg::RequiredFieldsByteSizeFallback() const {
  1519. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Process_manual_operation_msg)
  1520. size_t total_size = 0;
  1521. if (has_license()) {
  1522. // required string license = 2;
  1523. total_size += 1 +
  1524. ::google::protobuf::internal::WireFormatLite::StringSize(
  1525. this->license());
  1526. }
  1527. if (has_base_info()) {
  1528. // required .message.Base_info base_info = 1;
  1529. total_size += 1 +
  1530. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1531. *base_info_);
  1532. }
  1533. if (has_step_type()) {
  1534. // required .message.Step_type step_type = 3;
  1535. total_size += 1 +
  1536. ::google::protobuf::internal::WireFormatLite::EnumSize(this->step_type());
  1537. }
  1538. if (has_operate_type()) {
  1539. // required .message.Process_operation_type operate_type = 4;
  1540. total_size += 1 +
  1541. ::google::protobuf::internal::WireFormatLite::EnumSize(this->operate_type());
  1542. }
  1543. return total_size;
  1544. }
  1545. size_t Process_manual_operation_msg::ByteSizeLong() const {
  1546. // @@protoc_insertion_point(message_byte_size_start:message.Process_manual_operation_msg)
  1547. size_t total_size = 0;
  1548. if (_internal_metadata_.have_unknown_fields()) {
  1549. total_size +=
  1550. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1551. _internal_metadata_.unknown_fields());
  1552. }
  1553. if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
  1554. // required string license = 2;
  1555. total_size += 1 +
  1556. ::google::protobuf::internal::WireFormatLite::StringSize(
  1557. this->license());
  1558. // required .message.Base_info base_info = 1;
  1559. total_size += 1 +
  1560. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1561. *base_info_);
  1562. // required .message.Step_type step_type = 3;
  1563. total_size += 1 +
  1564. ::google::protobuf::internal::WireFormatLite::EnumSize(this->step_type());
  1565. // required .message.Process_operation_type operate_type = 4;
  1566. total_size += 1 +
  1567. ::google::protobuf::internal::WireFormatLite::EnumSize(this->operate_type());
  1568. } else {
  1569. total_size += RequiredFieldsByteSizeFallback();
  1570. }
  1571. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1572. SetCachedSize(cached_size);
  1573. return total_size;
  1574. }
  1575. void Process_manual_operation_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1576. // @@protoc_insertion_point(generalized_merge_from_start:message.Process_manual_operation_msg)
  1577. GOOGLE_DCHECK_NE(&from, this);
  1578. const Process_manual_operation_msg* source =
  1579. ::google::protobuf::internal::DynamicCastToGenerated<const Process_manual_operation_msg>(
  1580. &from);
  1581. if (source == NULL) {
  1582. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Process_manual_operation_msg)
  1583. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1584. } else {
  1585. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Process_manual_operation_msg)
  1586. MergeFrom(*source);
  1587. }
  1588. }
  1589. void Process_manual_operation_msg::MergeFrom(const Process_manual_operation_msg& from) {
  1590. // @@protoc_insertion_point(class_specific_merge_from_start:message.Process_manual_operation_msg)
  1591. GOOGLE_DCHECK_NE(&from, this);
  1592. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1593. ::google::protobuf::uint32 cached_has_bits = 0;
  1594. (void) cached_has_bits;
  1595. cached_has_bits = from._has_bits_[0];
  1596. if (cached_has_bits & 15u) {
  1597. if (cached_has_bits & 0x00000001u) {
  1598. set_has_license();
  1599. license_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.license_);
  1600. }
  1601. if (cached_has_bits & 0x00000002u) {
  1602. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1603. }
  1604. if (cached_has_bits & 0x00000004u) {
  1605. step_type_ = from.step_type_;
  1606. }
  1607. if (cached_has_bits & 0x00000008u) {
  1608. operate_type_ = from.operate_type_;
  1609. }
  1610. _has_bits_[0] |= cached_has_bits;
  1611. }
  1612. }
  1613. void Process_manual_operation_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1614. // @@protoc_insertion_point(generalized_copy_from_start:message.Process_manual_operation_msg)
  1615. if (&from == this) return;
  1616. Clear();
  1617. MergeFrom(from);
  1618. }
  1619. void Process_manual_operation_msg::CopyFrom(const Process_manual_operation_msg& from) {
  1620. // @@protoc_insertion_point(class_specific_copy_from_start:message.Process_manual_operation_msg)
  1621. if (&from == this) return;
  1622. Clear();
  1623. MergeFrom(from);
  1624. }
  1625. bool Process_manual_operation_msg::IsInitialized() const {
  1626. if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
  1627. if (has_base_info()) {
  1628. if (!this->base_info_->IsInitialized()) return false;
  1629. }
  1630. return true;
  1631. }
  1632. void Process_manual_operation_msg::Swap(Process_manual_operation_msg* other) {
  1633. if (other == this) return;
  1634. InternalSwap(other);
  1635. }
  1636. void Process_manual_operation_msg::InternalSwap(Process_manual_operation_msg* other) {
  1637. using std::swap;
  1638. license_.Swap(&other->license_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1639. GetArenaNoVirtual());
  1640. swap(base_info_, other->base_info_);
  1641. swap(step_type_, other->step_type_);
  1642. swap(operate_type_, other->operate_type_);
  1643. swap(_has_bits_[0], other->_has_bits_[0]);
  1644. _internal_metadata_.Swap(&other->_internal_metadata_);
  1645. }
  1646. ::google::protobuf::Metadata Process_manual_operation_msg::GetMetadata() const {
  1647. protobuf_central_5fcontrol_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1648. return ::protobuf_central_5fcontrol_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1649. }
  1650. // @@protoc_insertion_point(namespace_scope)
  1651. } // namespace message
  1652. namespace google {
  1653. namespace protobuf {
  1654. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Entrance_statu* Arena::CreateMaybeMessage< ::message::Entrance_statu >(Arena* arena) {
  1655. return Arena::CreateInternal< ::message::Entrance_statu >(arena);
  1656. }
  1657. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Central_controller_statu_msg* Arena::CreateMaybeMessage< ::message::Central_controller_statu_msg >(Arena* arena) {
  1658. return Arena::CreateInternal< ::message::Central_controller_statu_msg >(arena);
  1659. }
  1660. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Entrance_manual_operation_msg* Arena::CreateMaybeMessage< ::message::Entrance_manual_operation_msg >(Arena* arena) {
  1661. return Arena::CreateInternal< ::message::Entrance_manual_operation_msg >(arena);
  1662. }
  1663. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Process_manual_operation_msg* Arena::CreateMaybeMessage< ::message::Process_manual_operation_msg >(Arena* arena) {
  1664. return Arena::CreateInternal< ::message::Process_manual_operation_msg >(arena);
  1665. }
  1666. } // namespace protobuf
  1667. } // namespace google
  1668. // @@protoc_insertion_point(global_scope)