central_control_message.pb.cc 71 KB

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