central_control_message.pb.cc 71 KB

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