central_control_message.pb.cc 69 KB

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