central_control_message.pb.cc 59 KB

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