dispatch_control.pb.cc 111 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: dispatch_control.proto
  3. #include "dispatch_control.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 Dispatch_plan_request_msgDefaultTypeInternal {
  21. public:
  22. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_plan_request_msg>
  23. _instance;
  24. } _Dispatch_plan_request_msg_default_instance_;
  25. class Dispatch_plan_response_msgDefaultTypeInternal {
  26. public:
  27. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_plan_response_msg>
  28. _instance;
  29. } _Dispatch_plan_response_msg_default_instance_;
  30. class Dispatch_control_request_msgDefaultTypeInternal {
  31. public:
  32. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_control_request_msg>
  33. _instance;
  34. } _Dispatch_control_request_msg_default_instance_;
  35. class Dispatch_control_response_msgDefaultTypeInternal {
  36. public:
  37. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_control_response_msg>
  38. _instance;
  39. } _Dispatch_control_response_msg_default_instance_;
  40. } // namespace message
  41. namespace protobuf_dispatch_5fcontrol_2eproto {
  42. void InitDefaultsDispatch_plan_request_msgImpl() {
  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. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  50. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  51. {
  52. void* ptr = &::message::_Dispatch_plan_request_msg_default_instance_;
  53. new (ptr) ::message::Dispatch_plan_request_msg();
  54. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  55. }
  56. ::message::Dispatch_plan_request_msg::InitAsDefaultInstance();
  57. }
  58. void InitDefaultsDispatch_plan_request_msg() {
  59. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  60. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_plan_request_msgImpl);
  61. }
  62. void InitDefaultsDispatch_plan_response_msgImpl() {
  63. GOOGLE_PROTOBUF_VERIFY_VERSION;
  64. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  65. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  66. #else
  67. ::google::protobuf::internal::InitProtobufDefaults();
  68. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  69. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  70. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  71. {
  72. void* ptr = &::message::_Dispatch_plan_response_msg_default_instance_;
  73. new (ptr) ::message::Dispatch_plan_response_msg();
  74. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  75. }
  76. ::message::Dispatch_plan_response_msg::InitAsDefaultInstance();
  77. }
  78. void InitDefaultsDispatch_plan_response_msg() {
  79. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  80. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_plan_response_msgImpl);
  81. }
  82. void InitDefaultsDispatch_control_request_msgImpl() {
  83. GOOGLE_PROTOBUF_VERIFY_VERSION;
  84. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  85. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  86. #else
  87. ::google::protobuf::internal::InitProtobufDefaults();
  88. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  89. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  90. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  91. {
  92. void* ptr = &::message::_Dispatch_control_request_msg_default_instance_;
  93. new (ptr) ::message::Dispatch_control_request_msg();
  94. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  95. }
  96. ::message::Dispatch_control_request_msg::InitAsDefaultInstance();
  97. }
  98. void InitDefaultsDispatch_control_request_msg() {
  99. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  100. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_control_request_msgImpl);
  101. }
  102. void InitDefaultsDispatch_control_response_msgImpl() {
  103. GOOGLE_PROTOBUF_VERIFY_VERSION;
  104. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  105. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  106. #else
  107. ::google::protobuf::internal::InitProtobufDefaults();
  108. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  109. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  110. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  111. {
  112. void* ptr = &::message::_Dispatch_control_response_msg_default_instance_;
  113. new (ptr) ::message::Dispatch_control_response_msg();
  114. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  115. }
  116. ::message::Dispatch_control_response_msg::InitAsDefaultInstance();
  117. }
  118. void InitDefaultsDispatch_control_response_msg() {
  119. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  120. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_control_response_msgImpl);
  121. }
  122. ::google::protobuf::Metadata file_level_metadata[4];
  123. const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[3];
  124. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  125. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_plan_request_msg, _has_bits_),
  126. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_plan_request_msg, _internal_metadata_),
  127. ~0u, // no _extensions_
  128. ~0u, // no _oneof_case_
  129. ~0u, // no _weak_field_map_
  130. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_plan_request_msg, base_info_),
  131. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_plan_request_msg, command_key_),
  132. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_plan_request_msg, dispatch_task_type_),
  133. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_plan_request_msg, dispatch_source_),
  134. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_plan_request_msg, dispatch_destination_),
  135. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_plan_request_msg, error_manager_),
  136. 1,
  137. 0,
  138. 3,
  139. 4,
  140. 5,
  141. 2,
  142. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_plan_response_msg, _has_bits_),
  143. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_plan_response_msg, _internal_metadata_),
  144. ~0u, // no _extensions_
  145. ~0u, // no _oneof_case_
  146. ~0u, // no _weak_field_map_
  147. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_plan_response_msg, base_info_),
  148. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_plan_response_msg, command_key_),
  149. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_plan_response_msg, dispatch_task_type_),
  150. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_plan_response_msg, dispatch_source_),
  151. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_plan_response_msg, dispatch_destination_),
  152. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_plan_response_msg, error_manager_),
  153. 1,
  154. 0,
  155. 3,
  156. 4,
  157. 5,
  158. 2,
  159. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_control_request_msg, _has_bits_),
  160. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_control_request_msg, _internal_metadata_),
  161. ~0u, // no _extensions_
  162. ~0u, // no _oneof_case_
  163. ~0u, // no _weak_field_map_
  164. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_control_request_msg, base_info_),
  165. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_control_request_msg, command_key_),
  166. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_control_request_msg, dispatch_task_type_),
  167. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_control_request_msg, dispatch_device_type_),
  168. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_control_request_msg, dispatch_source_),
  169. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_control_request_msg, dispatch_destination_),
  170. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_control_request_msg, error_manager_),
  171. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_control_request_msg, dispatch_device_target_status_),
  172. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_control_request_msg, dispatch_device_task_status_),
  173. 1,
  174. 0,
  175. 3,
  176. 8,
  177. 4,
  178. 5,
  179. 2,
  180. 6,
  181. 7,
  182. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_control_response_msg, _has_bits_),
  183. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_control_response_msg, _internal_metadata_),
  184. ~0u, // no _extensions_
  185. ~0u, // no _oneof_case_
  186. ~0u, // no _weak_field_map_
  187. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_control_response_msg, base_info_),
  188. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_control_response_msg, command_key_),
  189. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_control_response_msg, dispatch_task_type_),
  190. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_control_response_msg, dispatch_device_type_),
  191. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_control_response_msg, dispatch_source_),
  192. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_control_response_msg, dispatch_destination_),
  193. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_control_response_msg, error_manager_),
  194. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_control_response_msg, dispatch_device_target_status_),
  195. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_control_response_msg, dispatch_device_task_status_),
  196. 1,
  197. 0,
  198. 3,
  199. 8,
  200. 4,
  201. 5,
  202. 2,
  203. 6,
  204. 7,
  205. };
  206. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  207. { 0, 11, sizeof(::message::Dispatch_plan_request_msg)},
  208. { 17, 28, sizeof(::message::Dispatch_plan_response_msg)},
  209. { 34, 48, sizeof(::message::Dispatch_control_request_msg)},
  210. { 57, 71, sizeof(::message::Dispatch_control_response_msg)},
  211. };
  212. static ::google::protobuf::Message const * const file_default_instances[] = {
  213. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_plan_request_msg_default_instance_),
  214. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_plan_response_msg_default_instance_),
  215. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_control_request_msg_default_instance_),
  216. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_control_response_msg_default_instance_),
  217. };
  218. void protobuf_AssignDescriptors() {
  219. AddDescriptors();
  220. ::google::protobuf::MessageFactory* factory = NULL;
  221. AssignDescriptors(
  222. "dispatch_control.proto", schemas, file_default_instances, TableStruct::offsets, factory,
  223. file_level_metadata, file_level_enum_descriptors, NULL);
  224. }
  225. void protobuf_AssignDescriptorsOnce() {
  226. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  227. ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
  228. }
  229. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  230. void protobuf_RegisterTypes(const ::std::string&) {
  231. protobuf_AssignDescriptorsOnce();
  232. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4);
  233. }
  234. void AddDescriptorsImpl() {
  235. InitDefaults();
  236. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  237. "\n\026dispatch_control.proto\022\007message\032\022messa"
  238. "ge_base.proto\"\366\001\n\031Dispatch_plan_request_"
  239. "msg\022%\n\tbase_info\030\001 \002(\0132\022.message.Base_in"
  240. "fo\022\023\n\013command_key\030\002 \002(\t\0227\n\022dispatch_task"
  241. "_type\030\003 \001(\0162\033.message.Dispatch_task_type"
  242. "\022\027\n\017dispatch_source\030\004 \001(\005\022\034\n\024dispatch_de"
  243. "stination\030\005 \001(\005\022-\n\rerror_manager\030\006 \001(\0132\026"
  244. ".message.Error_manager\"\367\001\n\032Dispatch_plan"
  245. "_response_msg\022%\n\tbase_info\030\001 \002(\0132\022.messa"
  246. "ge.Base_info\022\023\n\013command_key\030\002 \002(\t\0227\n\022dis"
  247. "patch_task_type\030\003 \001(\0162\033.message.Dispatch"
  248. "_task_type\022\027\n\017dispatch_source\030\004 \001(\005\022\034\n\024d"
  249. "ispatch_destination\030\005 \001(\005\022-\n\rerror_manag"
  250. "er\030\006 \001(\0132\026.message.Error_manager\"\320\003\n\034Dis"
  251. "patch_control_request_msg\022%\n\tbase_info\030\001"
  252. " \002(\0132\022.message.Base_info\022\023\n\013command_key\030"
  253. "\002 \002(\t\0227\n\022dispatch_task_type\030\003 \002(\0162\033.mess"
  254. "age.Dispatch_task_type\022;\n\024dispatch_devic"
  255. "e_type\030\004 \001(\0162\035.message.Dispatch_device_t"
  256. "ype\022\027\n\017dispatch_source\030\005 \001(\005\022\034\n\024dispatch"
  257. "_destination\030\006 \001(\005\022-\n\rerror_manager\030\007 \001("
  258. "\0132\026.message.Error_manager\022M\n\035dispatch_de"
  259. "vice_target_status\030\010 \001(\0162&.message.Dispa"
  260. "tch_device_target_status\022I\n\033dispatch_dev"
  261. "ice_task_status\030\t \001(\0162$.message.Dispatch"
  262. "_device_task_status\"\321\003\n\035Dispatch_control"
  263. "_response_msg\022%\n\tbase_info\030\001 \002(\0132\022.messa"
  264. "ge.Base_info\022\023\n\013command_key\030\002 \002(\t\0227\n\022dis"
  265. "patch_task_type\030\003 \001(\0162\033.message.Dispatch"
  266. "_task_type\022;\n\024dispatch_device_type\030\004 \001(\016"
  267. "2\035.message.Dispatch_device_type\022\027\n\017dispa"
  268. "tch_source\030\005 \001(\005\022\034\n\024dispatch_destination"
  269. "\030\006 \001(\005\022-\n\rerror_manager\030\007 \001(\0132\026.message."
  270. "Error_manager\022M\n\035dispatch_device_target_"
  271. "status\030\010 \001(\0162&.message.Dispatch_device_t"
  272. "arget_status\022I\n\033dispatch_device_task_sta"
  273. "tus\030\t \001(\0162$.message.Dispatch_device_task"
  274. "_status*\250\006\n\022Dispatch_task_type\022\035\n\031DISPAT"
  275. "CH_TASK_TYPE_UNKNOW\020\000\022\027\n\023DISPATCH_PLAN_S"
  276. "TORE\020e\022\030\n\024DISPATCH_PLAN_PICKUP\020f\022\036\n\032ROBO"
  277. "T_CATCH_CAR_FROM_INLET\020\001\022\034\n\030ROBOT_PUT_CA"
  278. "R_TO_CARRIER\020\002\022 \n\034ROBOT_CATCH_CAR_FROM_C"
  279. "ARRIER\020\003\022\033\n\027ROBOT_PUT_CAR_TO_OUTLET\020\004\022\016\n"
  280. "\nROBOT_MOVE\020\005\022\"\n\036CARRIER_RECEIVE_CAR_FRO"
  281. "M_ROBOT\020\013\022%\n!CARRIER_STORE_CAR_TO_PARKIN"
  282. "GSPACE\020\014\022(\n$CARRIER_STORE_CAR_TO_PARKING"
  283. "SPACE_EX\020z\022(\n$CARRIER_PICKUP_CAR_FROM_PA"
  284. "RKINGSPACE\020\r\022,\n\'CARRIER_PICKUP_CAR_FROM_"
  285. "PARKINGSPACE_EX\020\205\001\022 \n\034CARRIER_DELIVER_CA"
  286. "R_TO_ROBOT\020\016\022\020\n\014CARRIER_MOVE\020\017\022 \n\034PASSAG"
  287. "EWAY_OPEN_OUTSIDE_DOOR\020\025\022!\n\035PASSAGEWAY_C"
  288. "LOSE_OUTSIDE_DOOR\020\026\022\037\n\033PASSAGEWAY_OPEN_I"
  289. "NSIDE_DOOR\020\027\022 \n\034PASSAGEWAY_CLOSE_INSIDE_"
  290. "DOOR\020\030\022*\n&PASSAGEWAY_ROTATE_TURNTABLE_TO"
  291. "_CARRIER\020\031\022)\n%PASSAGEWAY_ROTATE_TURNTABL"
  292. "E_TO_OUTLET\020\032\022\023\n\017DISPATCH_FINISH\020\036\022\023\n\017DI"
  293. "SPATCH_CANCEL\020\037\022\022\n\016DISPATCH_PAUSE\020(\022\025\n\021D"
  294. "ISPATCH_RESERVED\0202*\244\001\n\035Dispatch_device_t"
  295. "arget_status\022\032\n\026E_TARGET_STATUS_UNKNOW\020\000"
  296. "\022\030\n\024E_TARGET_STATUS_IDLE\020\001\022\030\n\024E_TARGET_S"
  297. "TATUS_BUSY\020\002\022\031\n\025E_TARGET_STATUS_READY\020\003\022"
  298. "\030\n\024E_TARGET_STATUS_WAIT\020\004*\350\001\n\033Dispatch_d"
  299. "evice_task_status\022\022\n\016E_TASK_CREATED\020\000\022\020\n"
  300. "\014E_TASK_ISSUE\020\001\022\021\n\rE_TASK_SIGNED\020\002\022\022\n\016E_"
  301. "TASK_WORKING\020\003\022\017\n\013E_TASK_OVER\020\004\022\017\n\013E_TAS"
  302. "K_STOP\020\005\022\020\n\014E_TASK_ERROR\020\013\022\021\n\rE_TASK_CAN"
  303. "CEL\020\025\022\017\n\013E_TASK_DEAD\020\026\022\023\n\017E_TASK_WITHDRA"
  304. "W\020\037\022\017\n\013E_TASK_FREE\020 "
  305. };
  306. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  307. descriptor, 2700);
  308. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  309. "dispatch_control.proto", &protobuf_RegisterTypes);
  310. ::protobuf_message_5fbase_2eproto::AddDescriptors();
  311. }
  312. void AddDescriptors() {
  313. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  314. ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
  315. }
  316. // Force AddDescriptors() to be called at dynamic initialization time.
  317. struct StaticDescriptorInitializer {
  318. StaticDescriptorInitializer() {
  319. AddDescriptors();
  320. }
  321. } static_descriptor_initializer;
  322. } // namespace protobuf_dispatch_5fcontrol_2eproto
  323. namespace message {
  324. const ::google::protobuf::EnumDescriptor* Dispatch_task_type_descriptor() {
  325. protobuf_dispatch_5fcontrol_2eproto::protobuf_AssignDescriptorsOnce();
  326. return protobuf_dispatch_5fcontrol_2eproto::file_level_enum_descriptors[0];
  327. }
  328. bool Dispatch_task_type_IsValid(int value) {
  329. switch (value) {
  330. case 0:
  331. case 1:
  332. case 2:
  333. case 3:
  334. case 4:
  335. case 5:
  336. case 11:
  337. case 12:
  338. case 13:
  339. case 14:
  340. case 15:
  341. case 21:
  342. case 22:
  343. case 23:
  344. case 24:
  345. case 25:
  346. case 26:
  347. case 30:
  348. case 31:
  349. case 40:
  350. case 50:
  351. case 101:
  352. case 102:
  353. case 122:
  354. case 133:
  355. return true;
  356. default:
  357. return false;
  358. }
  359. }
  360. const ::google::protobuf::EnumDescriptor* Dispatch_device_target_status_descriptor() {
  361. protobuf_dispatch_5fcontrol_2eproto::protobuf_AssignDescriptorsOnce();
  362. return protobuf_dispatch_5fcontrol_2eproto::file_level_enum_descriptors[1];
  363. }
  364. bool Dispatch_device_target_status_IsValid(int value) {
  365. switch (value) {
  366. case 0:
  367. case 1:
  368. case 2:
  369. case 3:
  370. case 4:
  371. return true;
  372. default:
  373. return false;
  374. }
  375. }
  376. const ::google::protobuf::EnumDescriptor* Dispatch_device_task_status_descriptor() {
  377. protobuf_dispatch_5fcontrol_2eproto::protobuf_AssignDescriptorsOnce();
  378. return protobuf_dispatch_5fcontrol_2eproto::file_level_enum_descriptors[2];
  379. }
  380. bool Dispatch_device_task_status_IsValid(int value) {
  381. switch (value) {
  382. case 0:
  383. case 1:
  384. case 2:
  385. case 3:
  386. case 4:
  387. case 5:
  388. case 11:
  389. case 21:
  390. case 22:
  391. case 31:
  392. case 32:
  393. return true;
  394. default:
  395. return false;
  396. }
  397. }
  398. // ===================================================================
  399. void Dispatch_plan_request_msg::InitAsDefaultInstance() {
  400. ::message::_Dispatch_plan_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  401. ::message::Base_info::internal_default_instance());
  402. ::message::_Dispatch_plan_request_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  403. ::message::Error_manager::internal_default_instance());
  404. }
  405. void Dispatch_plan_request_msg::clear_base_info() {
  406. if (base_info_ != NULL) base_info_->Clear();
  407. clear_has_base_info();
  408. }
  409. void Dispatch_plan_request_msg::clear_error_manager() {
  410. if (error_manager_ != NULL) error_manager_->Clear();
  411. clear_has_error_manager();
  412. }
  413. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  414. const int Dispatch_plan_request_msg::kBaseInfoFieldNumber;
  415. const int Dispatch_plan_request_msg::kCommandKeyFieldNumber;
  416. const int Dispatch_plan_request_msg::kDispatchTaskTypeFieldNumber;
  417. const int Dispatch_plan_request_msg::kDispatchSourceFieldNumber;
  418. const int Dispatch_plan_request_msg::kDispatchDestinationFieldNumber;
  419. const int Dispatch_plan_request_msg::kErrorManagerFieldNumber;
  420. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  421. Dispatch_plan_request_msg::Dispatch_plan_request_msg()
  422. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  423. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  424. ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_plan_request_msg();
  425. }
  426. SharedCtor();
  427. // @@protoc_insertion_point(constructor:message.Dispatch_plan_request_msg)
  428. }
  429. Dispatch_plan_request_msg::Dispatch_plan_request_msg(const Dispatch_plan_request_msg& from)
  430. : ::google::protobuf::Message(),
  431. _internal_metadata_(NULL),
  432. _has_bits_(from._has_bits_),
  433. _cached_size_(0) {
  434. _internal_metadata_.MergeFrom(from._internal_metadata_);
  435. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  436. if (from.has_command_key()) {
  437. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  438. }
  439. if (from.has_base_info()) {
  440. base_info_ = new ::message::Base_info(*from.base_info_);
  441. } else {
  442. base_info_ = NULL;
  443. }
  444. if (from.has_error_manager()) {
  445. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  446. } else {
  447. error_manager_ = NULL;
  448. }
  449. ::memcpy(&dispatch_task_type_, &from.dispatch_task_type_,
  450. static_cast<size_t>(reinterpret_cast<char*>(&dispatch_destination_) -
  451. reinterpret_cast<char*>(&dispatch_task_type_)) + sizeof(dispatch_destination_));
  452. // @@protoc_insertion_point(copy_constructor:message.Dispatch_plan_request_msg)
  453. }
  454. void Dispatch_plan_request_msg::SharedCtor() {
  455. _cached_size_ = 0;
  456. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  457. ::memset(&base_info_, 0, static_cast<size_t>(
  458. reinterpret_cast<char*>(&dispatch_destination_) -
  459. reinterpret_cast<char*>(&base_info_)) + sizeof(dispatch_destination_));
  460. }
  461. Dispatch_plan_request_msg::~Dispatch_plan_request_msg() {
  462. // @@protoc_insertion_point(destructor:message.Dispatch_plan_request_msg)
  463. SharedDtor();
  464. }
  465. void Dispatch_plan_request_msg::SharedDtor() {
  466. command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  467. if (this != internal_default_instance()) delete base_info_;
  468. if (this != internal_default_instance()) delete error_manager_;
  469. }
  470. void Dispatch_plan_request_msg::SetCachedSize(int size) const {
  471. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  472. _cached_size_ = size;
  473. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  474. }
  475. const ::google::protobuf::Descriptor* Dispatch_plan_request_msg::descriptor() {
  476. ::protobuf_dispatch_5fcontrol_2eproto::protobuf_AssignDescriptorsOnce();
  477. return ::protobuf_dispatch_5fcontrol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  478. }
  479. const Dispatch_plan_request_msg& Dispatch_plan_request_msg::default_instance() {
  480. ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_plan_request_msg();
  481. return *internal_default_instance();
  482. }
  483. Dispatch_plan_request_msg* Dispatch_plan_request_msg::New(::google::protobuf::Arena* arena) const {
  484. Dispatch_plan_request_msg* n = new Dispatch_plan_request_msg;
  485. if (arena != NULL) {
  486. arena->Own(n);
  487. }
  488. return n;
  489. }
  490. void Dispatch_plan_request_msg::Clear() {
  491. // @@protoc_insertion_point(message_clear_start:message.Dispatch_plan_request_msg)
  492. ::google::protobuf::uint32 cached_has_bits = 0;
  493. // Prevent compiler warnings about cached_has_bits being unused
  494. (void) cached_has_bits;
  495. cached_has_bits = _has_bits_[0];
  496. if (cached_has_bits & 7u) {
  497. if (cached_has_bits & 0x00000001u) {
  498. GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  499. (*command_key_.UnsafeRawStringPointer())->clear();
  500. }
  501. if (cached_has_bits & 0x00000002u) {
  502. GOOGLE_DCHECK(base_info_ != NULL);
  503. base_info_->Clear();
  504. }
  505. if (cached_has_bits & 0x00000004u) {
  506. GOOGLE_DCHECK(error_manager_ != NULL);
  507. error_manager_->Clear();
  508. }
  509. }
  510. if (cached_has_bits & 56u) {
  511. ::memset(&dispatch_task_type_, 0, static_cast<size_t>(
  512. reinterpret_cast<char*>(&dispatch_destination_) -
  513. reinterpret_cast<char*>(&dispatch_task_type_)) + sizeof(dispatch_destination_));
  514. }
  515. _has_bits_.Clear();
  516. _internal_metadata_.Clear();
  517. }
  518. bool Dispatch_plan_request_msg::MergePartialFromCodedStream(
  519. ::google::protobuf::io::CodedInputStream* input) {
  520. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  521. ::google::protobuf::uint32 tag;
  522. // @@protoc_insertion_point(parse_start:message.Dispatch_plan_request_msg)
  523. for (;;) {
  524. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  525. tag = p.first;
  526. if (!p.second) goto handle_unusual;
  527. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  528. // required .message.Base_info base_info = 1;
  529. case 1: {
  530. if (static_cast< ::google::protobuf::uint8>(tag) ==
  531. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  532. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  533. input, mutable_base_info()));
  534. } else {
  535. goto handle_unusual;
  536. }
  537. break;
  538. }
  539. // required string command_key = 2;
  540. case 2: {
  541. if (static_cast< ::google::protobuf::uint8>(tag) ==
  542. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  543. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  544. input, this->mutable_command_key()));
  545. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  546. this->command_key().data(), static_cast<int>(this->command_key().length()),
  547. ::google::protobuf::internal::WireFormat::PARSE,
  548. "message.Dispatch_plan_request_msg.command_key");
  549. } else {
  550. goto handle_unusual;
  551. }
  552. break;
  553. }
  554. // optional .message.Dispatch_task_type dispatch_task_type = 3;
  555. case 3: {
  556. if (static_cast< ::google::protobuf::uint8>(tag) ==
  557. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  558. int value;
  559. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  560. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  561. input, &value)));
  562. if (::message::Dispatch_task_type_IsValid(value)) {
  563. set_dispatch_task_type(static_cast< ::message::Dispatch_task_type >(value));
  564. } else {
  565. mutable_unknown_fields()->AddVarint(
  566. 3, static_cast< ::google::protobuf::uint64>(value));
  567. }
  568. } else {
  569. goto handle_unusual;
  570. }
  571. break;
  572. }
  573. // optional int32 dispatch_source = 4;
  574. case 4: {
  575. if (static_cast< ::google::protobuf::uint8>(tag) ==
  576. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  577. set_has_dispatch_source();
  578. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  579. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  580. input, &dispatch_source_)));
  581. } else {
  582. goto handle_unusual;
  583. }
  584. break;
  585. }
  586. // optional int32 dispatch_destination = 5;
  587. case 5: {
  588. if (static_cast< ::google::protobuf::uint8>(tag) ==
  589. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  590. set_has_dispatch_destination();
  591. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  592. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  593. input, &dispatch_destination_)));
  594. } else {
  595. goto handle_unusual;
  596. }
  597. break;
  598. }
  599. // optional .message.Error_manager error_manager = 6;
  600. case 6: {
  601. if (static_cast< ::google::protobuf::uint8>(tag) ==
  602. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  603. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  604. input, mutable_error_manager()));
  605. } else {
  606. goto handle_unusual;
  607. }
  608. break;
  609. }
  610. default: {
  611. handle_unusual:
  612. if (tag == 0) {
  613. goto success;
  614. }
  615. DO_(::google::protobuf::internal::WireFormat::SkipField(
  616. input, tag, _internal_metadata_.mutable_unknown_fields()));
  617. break;
  618. }
  619. }
  620. }
  621. success:
  622. // @@protoc_insertion_point(parse_success:message.Dispatch_plan_request_msg)
  623. return true;
  624. failure:
  625. // @@protoc_insertion_point(parse_failure:message.Dispatch_plan_request_msg)
  626. return false;
  627. #undef DO_
  628. }
  629. void Dispatch_plan_request_msg::SerializeWithCachedSizes(
  630. ::google::protobuf::io::CodedOutputStream* output) const {
  631. // @@protoc_insertion_point(serialize_start:message.Dispatch_plan_request_msg)
  632. ::google::protobuf::uint32 cached_has_bits = 0;
  633. (void) cached_has_bits;
  634. cached_has_bits = _has_bits_[0];
  635. // required .message.Base_info base_info = 1;
  636. if (cached_has_bits & 0x00000002u) {
  637. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  638. 1, *this->base_info_, output);
  639. }
  640. // required string command_key = 2;
  641. if (cached_has_bits & 0x00000001u) {
  642. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  643. this->command_key().data(), static_cast<int>(this->command_key().length()),
  644. ::google::protobuf::internal::WireFormat::SERIALIZE,
  645. "message.Dispatch_plan_request_msg.command_key");
  646. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  647. 2, this->command_key(), output);
  648. }
  649. // optional .message.Dispatch_task_type dispatch_task_type = 3;
  650. if (cached_has_bits & 0x00000008u) {
  651. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  652. 3, this->dispatch_task_type(), output);
  653. }
  654. // optional int32 dispatch_source = 4;
  655. if (cached_has_bits & 0x00000010u) {
  656. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->dispatch_source(), output);
  657. }
  658. // optional int32 dispatch_destination = 5;
  659. if (cached_has_bits & 0x00000020u) {
  660. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->dispatch_destination(), output);
  661. }
  662. // optional .message.Error_manager error_manager = 6;
  663. if (cached_has_bits & 0x00000004u) {
  664. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  665. 6, *this->error_manager_, output);
  666. }
  667. if (_internal_metadata_.have_unknown_fields()) {
  668. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  669. _internal_metadata_.unknown_fields(), output);
  670. }
  671. // @@protoc_insertion_point(serialize_end:message.Dispatch_plan_request_msg)
  672. }
  673. ::google::protobuf::uint8* Dispatch_plan_request_msg::InternalSerializeWithCachedSizesToArray(
  674. bool deterministic, ::google::protobuf::uint8* target) const {
  675. (void)deterministic; // Unused
  676. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_plan_request_msg)
  677. ::google::protobuf::uint32 cached_has_bits = 0;
  678. (void) cached_has_bits;
  679. cached_has_bits = _has_bits_[0];
  680. // required .message.Base_info base_info = 1;
  681. if (cached_has_bits & 0x00000002u) {
  682. target = ::google::protobuf::internal::WireFormatLite::
  683. InternalWriteMessageToArray(
  684. 1, *this->base_info_, deterministic, target);
  685. }
  686. // required string command_key = 2;
  687. if (cached_has_bits & 0x00000001u) {
  688. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  689. this->command_key().data(), static_cast<int>(this->command_key().length()),
  690. ::google::protobuf::internal::WireFormat::SERIALIZE,
  691. "message.Dispatch_plan_request_msg.command_key");
  692. target =
  693. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  694. 2, this->command_key(), target);
  695. }
  696. // optional .message.Dispatch_task_type dispatch_task_type = 3;
  697. if (cached_has_bits & 0x00000008u) {
  698. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  699. 3, this->dispatch_task_type(), target);
  700. }
  701. // optional int32 dispatch_source = 4;
  702. if (cached_has_bits & 0x00000010u) {
  703. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->dispatch_source(), target);
  704. }
  705. // optional int32 dispatch_destination = 5;
  706. if (cached_has_bits & 0x00000020u) {
  707. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->dispatch_destination(), target);
  708. }
  709. // optional .message.Error_manager error_manager = 6;
  710. if (cached_has_bits & 0x00000004u) {
  711. target = ::google::protobuf::internal::WireFormatLite::
  712. InternalWriteMessageToArray(
  713. 6, *this->error_manager_, deterministic, target);
  714. }
  715. if (_internal_metadata_.have_unknown_fields()) {
  716. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  717. _internal_metadata_.unknown_fields(), target);
  718. }
  719. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_plan_request_msg)
  720. return target;
  721. }
  722. size_t Dispatch_plan_request_msg::RequiredFieldsByteSizeFallback() const {
  723. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_plan_request_msg)
  724. size_t total_size = 0;
  725. if (has_command_key()) {
  726. // required string command_key = 2;
  727. total_size += 1 +
  728. ::google::protobuf::internal::WireFormatLite::StringSize(
  729. this->command_key());
  730. }
  731. if (has_base_info()) {
  732. // required .message.Base_info base_info = 1;
  733. total_size += 1 +
  734. ::google::protobuf::internal::WireFormatLite::MessageSize(
  735. *this->base_info_);
  736. }
  737. return total_size;
  738. }
  739. size_t Dispatch_plan_request_msg::ByteSizeLong() const {
  740. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_plan_request_msg)
  741. size_t total_size = 0;
  742. if (_internal_metadata_.have_unknown_fields()) {
  743. total_size +=
  744. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  745. _internal_metadata_.unknown_fields());
  746. }
  747. if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
  748. // required string command_key = 2;
  749. total_size += 1 +
  750. ::google::protobuf::internal::WireFormatLite::StringSize(
  751. this->command_key());
  752. // required .message.Base_info base_info = 1;
  753. total_size += 1 +
  754. ::google::protobuf::internal::WireFormatLite::MessageSize(
  755. *this->base_info_);
  756. } else {
  757. total_size += RequiredFieldsByteSizeFallback();
  758. }
  759. if (_has_bits_[0 / 32] & 60u) {
  760. // optional .message.Error_manager error_manager = 6;
  761. if (has_error_manager()) {
  762. total_size += 1 +
  763. ::google::protobuf::internal::WireFormatLite::MessageSize(
  764. *this->error_manager_);
  765. }
  766. // optional .message.Dispatch_task_type dispatch_task_type = 3;
  767. if (has_dispatch_task_type()) {
  768. total_size += 1 +
  769. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_task_type());
  770. }
  771. // optional int32 dispatch_source = 4;
  772. if (has_dispatch_source()) {
  773. total_size += 1 +
  774. ::google::protobuf::internal::WireFormatLite::Int32Size(
  775. this->dispatch_source());
  776. }
  777. // optional int32 dispatch_destination = 5;
  778. if (has_dispatch_destination()) {
  779. total_size += 1 +
  780. ::google::protobuf::internal::WireFormatLite::Int32Size(
  781. this->dispatch_destination());
  782. }
  783. }
  784. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  785. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  786. _cached_size_ = cached_size;
  787. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  788. return total_size;
  789. }
  790. void Dispatch_plan_request_msg::MergeFrom(const ::google::protobuf::Message& from) {
  791. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_plan_request_msg)
  792. GOOGLE_DCHECK_NE(&from, this);
  793. const Dispatch_plan_request_msg* source =
  794. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_plan_request_msg>(
  795. &from);
  796. if (source == NULL) {
  797. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_plan_request_msg)
  798. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  799. } else {
  800. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_plan_request_msg)
  801. MergeFrom(*source);
  802. }
  803. }
  804. void Dispatch_plan_request_msg::MergeFrom(const Dispatch_plan_request_msg& from) {
  805. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_plan_request_msg)
  806. GOOGLE_DCHECK_NE(&from, this);
  807. _internal_metadata_.MergeFrom(from._internal_metadata_);
  808. ::google::protobuf::uint32 cached_has_bits = 0;
  809. (void) cached_has_bits;
  810. cached_has_bits = from._has_bits_[0];
  811. if (cached_has_bits & 63u) {
  812. if (cached_has_bits & 0x00000001u) {
  813. set_has_command_key();
  814. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  815. }
  816. if (cached_has_bits & 0x00000002u) {
  817. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  818. }
  819. if (cached_has_bits & 0x00000004u) {
  820. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  821. }
  822. if (cached_has_bits & 0x00000008u) {
  823. dispatch_task_type_ = from.dispatch_task_type_;
  824. }
  825. if (cached_has_bits & 0x00000010u) {
  826. dispatch_source_ = from.dispatch_source_;
  827. }
  828. if (cached_has_bits & 0x00000020u) {
  829. dispatch_destination_ = from.dispatch_destination_;
  830. }
  831. _has_bits_[0] |= cached_has_bits;
  832. }
  833. }
  834. void Dispatch_plan_request_msg::CopyFrom(const ::google::protobuf::Message& from) {
  835. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_plan_request_msg)
  836. if (&from == this) return;
  837. Clear();
  838. MergeFrom(from);
  839. }
  840. void Dispatch_plan_request_msg::CopyFrom(const Dispatch_plan_request_msg& from) {
  841. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_plan_request_msg)
  842. if (&from == this) return;
  843. Clear();
  844. MergeFrom(from);
  845. }
  846. bool Dispatch_plan_request_msg::IsInitialized() const {
  847. if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
  848. if (has_base_info()) {
  849. if (!this->base_info_->IsInitialized()) return false;
  850. }
  851. if (has_error_manager()) {
  852. if (!this->error_manager_->IsInitialized()) return false;
  853. }
  854. return true;
  855. }
  856. void Dispatch_plan_request_msg::Swap(Dispatch_plan_request_msg* other) {
  857. if (other == this) return;
  858. InternalSwap(other);
  859. }
  860. void Dispatch_plan_request_msg::InternalSwap(Dispatch_plan_request_msg* other) {
  861. using std::swap;
  862. command_key_.Swap(&other->command_key_);
  863. swap(base_info_, other->base_info_);
  864. swap(error_manager_, other->error_manager_);
  865. swap(dispatch_task_type_, other->dispatch_task_type_);
  866. swap(dispatch_source_, other->dispatch_source_);
  867. swap(dispatch_destination_, other->dispatch_destination_);
  868. swap(_has_bits_[0], other->_has_bits_[0]);
  869. _internal_metadata_.Swap(&other->_internal_metadata_);
  870. swap(_cached_size_, other->_cached_size_);
  871. }
  872. ::google::protobuf::Metadata Dispatch_plan_request_msg::GetMetadata() const {
  873. protobuf_dispatch_5fcontrol_2eproto::protobuf_AssignDescriptorsOnce();
  874. return ::protobuf_dispatch_5fcontrol_2eproto::file_level_metadata[kIndexInFileMessages];
  875. }
  876. // ===================================================================
  877. void Dispatch_plan_response_msg::InitAsDefaultInstance() {
  878. ::message::_Dispatch_plan_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  879. ::message::Base_info::internal_default_instance());
  880. ::message::_Dispatch_plan_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  881. ::message::Error_manager::internal_default_instance());
  882. }
  883. void Dispatch_plan_response_msg::clear_base_info() {
  884. if (base_info_ != NULL) base_info_->Clear();
  885. clear_has_base_info();
  886. }
  887. void Dispatch_plan_response_msg::clear_error_manager() {
  888. if (error_manager_ != NULL) error_manager_->Clear();
  889. clear_has_error_manager();
  890. }
  891. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  892. const int Dispatch_plan_response_msg::kBaseInfoFieldNumber;
  893. const int Dispatch_plan_response_msg::kCommandKeyFieldNumber;
  894. const int Dispatch_plan_response_msg::kDispatchTaskTypeFieldNumber;
  895. const int Dispatch_plan_response_msg::kDispatchSourceFieldNumber;
  896. const int Dispatch_plan_response_msg::kDispatchDestinationFieldNumber;
  897. const int Dispatch_plan_response_msg::kErrorManagerFieldNumber;
  898. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  899. Dispatch_plan_response_msg::Dispatch_plan_response_msg()
  900. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  901. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  902. ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_plan_response_msg();
  903. }
  904. SharedCtor();
  905. // @@protoc_insertion_point(constructor:message.Dispatch_plan_response_msg)
  906. }
  907. Dispatch_plan_response_msg::Dispatch_plan_response_msg(const Dispatch_plan_response_msg& from)
  908. : ::google::protobuf::Message(),
  909. _internal_metadata_(NULL),
  910. _has_bits_(from._has_bits_),
  911. _cached_size_(0) {
  912. _internal_metadata_.MergeFrom(from._internal_metadata_);
  913. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  914. if (from.has_command_key()) {
  915. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  916. }
  917. if (from.has_base_info()) {
  918. base_info_ = new ::message::Base_info(*from.base_info_);
  919. } else {
  920. base_info_ = NULL;
  921. }
  922. if (from.has_error_manager()) {
  923. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  924. } else {
  925. error_manager_ = NULL;
  926. }
  927. ::memcpy(&dispatch_task_type_, &from.dispatch_task_type_,
  928. static_cast<size_t>(reinterpret_cast<char*>(&dispatch_destination_) -
  929. reinterpret_cast<char*>(&dispatch_task_type_)) + sizeof(dispatch_destination_));
  930. // @@protoc_insertion_point(copy_constructor:message.Dispatch_plan_response_msg)
  931. }
  932. void Dispatch_plan_response_msg::SharedCtor() {
  933. _cached_size_ = 0;
  934. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  935. ::memset(&base_info_, 0, static_cast<size_t>(
  936. reinterpret_cast<char*>(&dispatch_destination_) -
  937. reinterpret_cast<char*>(&base_info_)) + sizeof(dispatch_destination_));
  938. }
  939. Dispatch_plan_response_msg::~Dispatch_plan_response_msg() {
  940. // @@protoc_insertion_point(destructor:message.Dispatch_plan_response_msg)
  941. SharedDtor();
  942. }
  943. void Dispatch_plan_response_msg::SharedDtor() {
  944. command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  945. if (this != internal_default_instance()) delete base_info_;
  946. if (this != internal_default_instance()) delete error_manager_;
  947. }
  948. void Dispatch_plan_response_msg::SetCachedSize(int size) const {
  949. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  950. _cached_size_ = size;
  951. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  952. }
  953. const ::google::protobuf::Descriptor* Dispatch_plan_response_msg::descriptor() {
  954. ::protobuf_dispatch_5fcontrol_2eproto::protobuf_AssignDescriptorsOnce();
  955. return ::protobuf_dispatch_5fcontrol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  956. }
  957. const Dispatch_plan_response_msg& Dispatch_plan_response_msg::default_instance() {
  958. ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_plan_response_msg();
  959. return *internal_default_instance();
  960. }
  961. Dispatch_plan_response_msg* Dispatch_plan_response_msg::New(::google::protobuf::Arena* arena) const {
  962. Dispatch_plan_response_msg* n = new Dispatch_plan_response_msg;
  963. if (arena != NULL) {
  964. arena->Own(n);
  965. }
  966. return n;
  967. }
  968. void Dispatch_plan_response_msg::Clear() {
  969. // @@protoc_insertion_point(message_clear_start:message.Dispatch_plan_response_msg)
  970. ::google::protobuf::uint32 cached_has_bits = 0;
  971. // Prevent compiler warnings about cached_has_bits being unused
  972. (void) cached_has_bits;
  973. cached_has_bits = _has_bits_[0];
  974. if (cached_has_bits & 7u) {
  975. if (cached_has_bits & 0x00000001u) {
  976. GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  977. (*command_key_.UnsafeRawStringPointer())->clear();
  978. }
  979. if (cached_has_bits & 0x00000002u) {
  980. GOOGLE_DCHECK(base_info_ != NULL);
  981. base_info_->Clear();
  982. }
  983. if (cached_has_bits & 0x00000004u) {
  984. GOOGLE_DCHECK(error_manager_ != NULL);
  985. error_manager_->Clear();
  986. }
  987. }
  988. if (cached_has_bits & 56u) {
  989. ::memset(&dispatch_task_type_, 0, static_cast<size_t>(
  990. reinterpret_cast<char*>(&dispatch_destination_) -
  991. reinterpret_cast<char*>(&dispatch_task_type_)) + sizeof(dispatch_destination_));
  992. }
  993. _has_bits_.Clear();
  994. _internal_metadata_.Clear();
  995. }
  996. bool Dispatch_plan_response_msg::MergePartialFromCodedStream(
  997. ::google::protobuf::io::CodedInputStream* input) {
  998. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  999. ::google::protobuf::uint32 tag;
  1000. // @@protoc_insertion_point(parse_start:message.Dispatch_plan_response_msg)
  1001. for (;;) {
  1002. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1003. tag = p.first;
  1004. if (!p.second) goto handle_unusual;
  1005. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1006. // required .message.Base_info base_info = 1;
  1007. case 1: {
  1008. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1009. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1010. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1011. input, mutable_base_info()));
  1012. } else {
  1013. goto handle_unusual;
  1014. }
  1015. break;
  1016. }
  1017. // required string command_key = 2;
  1018. case 2: {
  1019. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1020. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1021. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1022. input, this->mutable_command_key()));
  1023. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1024. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1025. ::google::protobuf::internal::WireFormat::PARSE,
  1026. "message.Dispatch_plan_response_msg.command_key");
  1027. } else {
  1028. goto handle_unusual;
  1029. }
  1030. break;
  1031. }
  1032. // optional .message.Dispatch_task_type dispatch_task_type = 3;
  1033. case 3: {
  1034. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1035. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  1036. int value;
  1037. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1038. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1039. input, &value)));
  1040. if (::message::Dispatch_task_type_IsValid(value)) {
  1041. set_dispatch_task_type(static_cast< ::message::Dispatch_task_type >(value));
  1042. } else {
  1043. mutable_unknown_fields()->AddVarint(
  1044. 3, static_cast< ::google::protobuf::uint64>(value));
  1045. }
  1046. } else {
  1047. goto handle_unusual;
  1048. }
  1049. break;
  1050. }
  1051. // optional int32 dispatch_source = 4;
  1052. case 4: {
  1053. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1054. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  1055. set_has_dispatch_source();
  1056. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1057. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1058. input, &dispatch_source_)));
  1059. } else {
  1060. goto handle_unusual;
  1061. }
  1062. break;
  1063. }
  1064. // optional int32 dispatch_destination = 5;
  1065. case 5: {
  1066. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1067. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  1068. set_has_dispatch_destination();
  1069. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1070. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1071. input, &dispatch_destination_)));
  1072. } else {
  1073. goto handle_unusual;
  1074. }
  1075. break;
  1076. }
  1077. // optional .message.Error_manager error_manager = 6;
  1078. case 6: {
  1079. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1080. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  1081. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1082. input, mutable_error_manager()));
  1083. } else {
  1084. goto handle_unusual;
  1085. }
  1086. break;
  1087. }
  1088. default: {
  1089. handle_unusual:
  1090. if (tag == 0) {
  1091. goto success;
  1092. }
  1093. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1094. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1095. break;
  1096. }
  1097. }
  1098. }
  1099. success:
  1100. // @@protoc_insertion_point(parse_success:message.Dispatch_plan_response_msg)
  1101. return true;
  1102. failure:
  1103. // @@protoc_insertion_point(parse_failure:message.Dispatch_plan_response_msg)
  1104. return false;
  1105. #undef DO_
  1106. }
  1107. void Dispatch_plan_response_msg::SerializeWithCachedSizes(
  1108. ::google::protobuf::io::CodedOutputStream* output) const {
  1109. // @@protoc_insertion_point(serialize_start:message.Dispatch_plan_response_msg)
  1110. ::google::protobuf::uint32 cached_has_bits = 0;
  1111. (void) cached_has_bits;
  1112. cached_has_bits = _has_bits_[0];
  1113. // required .message.Base_info base_info = 1;
  1114. if (cached_has_bits & 0x00000002u) {
  1115. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1116. 1, *this->base_info_, output);
  1117. }
  1118. // required string command_key = 2;
  1119. if (cached_has_bits & 0x00000001u) {
  1120. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1121. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1122. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1123. "message.Dispatch_plan_response_msg.command_key");
  1124. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1125. 2, this->command_key(), output);
  1126. }
  1127. // optional .message.Dispatch_task_type dispatch_task_type = 3;
  1128. if (cached_has_bits & 0x00000008u) {
  1129. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1130. 3, this->dispatch_task_type(), output);
  1131. }
  1132. // optional int32 dispatch_source = 4;
  1133. if (cached_has_bits & 0x00000010u) {
  1134. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->dispatch_source(), output);
  1135. }
  1136. // optional int32 dispatch_destination = 5;
  1137. if (cached_has_bits & 0x00000020u) {
  1138. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->dispatch_destination(), output);
  1139. }
  1140. // optional .message.Error_manager error_manager = 6;
  1141. if (cached_has_bits & 0x00000004u) {
  1142. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1143. 6, *this->error_manager_, output);
  1144. }
  1145. if (_internal_metadata_.have_unknown_fields()) {
  1146. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1147. _internal_metadata_.unknown_fields(), output);
  1148. }
  1149. // @@protoc_insertion_point(serialize_end:message.Dispatch_plan_response_msg)
  1150. }
  1151. ::google::protobuf::uint8* Dispatch_plan_response_msg::InternalSerializeWithCachedSizesToArray(
  1152. bool deterministic, ::google::protobuf::uint8* target) const {
  1153. (void)deterministic; // Unused
  1154. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_plan_response_msg)
  1155. ::google::protobuf::uint32 cached_has_bits = 0;
  1156. (void) cached_has_bits;
  1157. cached_has_bits = _has_bits_[0];
  1158. // required .message.Base_info base_info = 1;
  1159. if (cached_has_bits & 0x00000002u) {
  1160. target = ::google::protobuf::internal::WireFormatLite::
  1161. InternalWriteMessageToArray(
  1162. 1, *this->base_info_, deterministic, target);
  1163. }
  1164. // required string command_key = 2;
  1165. if (cached_has_bits & 0x00000001u) {
  1166. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1167. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1168. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1169. "message.Dispatch_plan_response_msg.command_key");
  1170. target =
  1171. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1172. 2, this->command_key(), target);
  1173. }
  1174. // optional .message.Dispatch_task_type dispatch_task_type = 3;
  1175. if (cached_has_bits & 0x00000008u) {
  1176. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1177. 3, this->dispatch_task_type(), target);
  1178. }
  1179. // optional int32 dispatch_source = 4;
  1180. if (cached_has_bits & 0x00000010u) {
  1181. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->dispatch_source(), target);
  1182. }
  1183. // optional int32 dispatch_destination = 5;
  1184. if (cached_has_bits & 0x00000020u) {
  1185. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->dispatch_destination(), target);
  1186. }
  1187. // optional .message.Error_manager error_manager = 6;
  1188. if (cached_has_bits & 0x00000004u) {
  1189. target = ::google::protobuf::internal::WireFormatLite::
  1190. InternalWriteMessageToArray(
  1191. 6, *this->error_manager_, deterministic, target);
  1192. }
  1193. if (_internal_metadata_.have_unknown_fields()) {
  1194. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1195. _internal_metadata_.unknown_fields(), target);
  1196. }
  1197. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_plan_response_msg)
  1198. return target;
  1199. }
  1200. size_t Dispatch_plan_response_msg::RequiredFieldsByteSizeFallback() const {
  1201. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_plan_response_msg)
  1202. size_t total_size = 0;
  1203. if (has_command_key()) {
  1204. // required string command_key = 2;
  1205. total_size += 1 +
  1206. ::google::protobuf::internal::WireFormatLite::StringSize(
  1207. this->command_key());
  1208. }
  1209. if (has_base_info()) {
  1210. // required .message.Base_info base_info = 1;
  1211. total_size += 1 +
  1212. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1213. *this->base_info_);
  1214. }
  1215. return total_size;
  1216. }
  1217. size_t Dispatch_plan_response_msg::ByteSizeLong() const {
  1218. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_plan_response_msg)
  1219. size_t total_size = 0;
  1220. if (_internal_metadata_.have_unknown_fields()) {
  1221. total_size +=
  1222. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1223. _internal_metadata_.unknown_fields());
  1224. }
  1225. if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
  1226. // required string command_key = 2;
  1227. total_size += 1 +
  1228. ::google::protobuf::internal::WireFormatLite::StringSize(
  1229. this->command_key());
  1230. // required .message.Base_info base_info = 1;
  1231. total_size += 1 +
  1232. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1233. *this->base_info_);
  1234. } else {
  1235. total_size += RequiredFieldsByteSizeFallback();
  1236. }
  1237. if (_has_bits_[0 / 32] & 60u) {
  1238. // optional .message.Error_manager error_manager = 6;
  1239. if (has_error_manager()) {
  1240. total_size += 1 +
  1241. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1242. *this->error_manager_);
  1243. }
  1244. // optional .message.Dispatch_task_type dispatch_task_type = 3;
  1245. if (has_dispatch_task_type()) {
  1246. total_size += 1 +
  1247. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_task_type());
  1248. }
  1249. // optional int32 dispatch_source = 4;
  1250. if (has_dispatch_source()) {
  1251. total_size += 1 +
  1252. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1253. this->dispatch_source());
  1254. }
  1255. // optional int32 dispatch_destination = 5;
  1256. if (has_dispatch_destination()) {
  1257. total_size += 1 +
  1258. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1259. this->dispatch_destination());
  1260. }
  1261. }
  1262. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1263. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1264. _cached_size_ = cached_size;
  1265. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1266. return total_size;
  1267. }
  1268. void Dispatch_plan_response_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1269. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_plan_response_msg)
  1270. GOOGLE_DCHECK_NE(&from, this);
  1271. const Dispatch_plan_response_msg* source =
  1272. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_plan_response_msg>(
  1273. &from);
  1274. if (source == NULL) {
  1275. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_plan_response_msg)
  1276. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1277. } else {
  1278. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_plan_response_msg)
  1279. MergeFrom(*source);
  1280. }
  1281. }
  1282. void Dispatch_plan_response_msg::MergeFrom(const Dispatch_plan_response_msg& from) {
  1283. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_plan_response_msg)
  1284. GOOGLE_DCHECK_NE(&from, this);
  1285. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1286. ::google::protobuf::uint32 cached_has_bits = 0;
  1287. (void) cached_has_bits;
  1288. cached_has_bits = from._has_bits_[0];
  1289. if (cached_has_bits & 63u) {
  1290. if (cached_has_bits & 0x00000001u) {
  1291. set_has_command_key();
  1292. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  1293. }
  1294. if (cached_has_bits & 0x00000002u) {
  1295. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1296. }
  1297. if (cached_has_bits & 0x00000004u) {
  1298. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  1299. }
  1300. if (cached_has_bits & 0x00000008u) {
  1301. dispatch_task_type_ = from.dispatch_task_type_;
  1302. }
  1303. if (cached_has_bits & 0x00000010u) {
  1304. dispatch_source_ = from.dispatch_source_;
  1305. }
  1306. if (cached_has_bits & 0x00000020u) {
  1307. dispatch_destination_ = from.dispatch_destination_;
  1308. }
  1309. _has_bits_[0] |= cached_has_bits;
  1310. }
  1311. }
  1312. void Dispatch_plan_response_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1313. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_plan_response_msg)
  1314. if (&from == this) return;
  1315. Clear();
  1316. MergeFrom(from);
  1317. }
  1318. void Dispatch_plan_response_msg::CopyFrom(const Dispatch_plan_response_msg& from) {
  1319. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_plan_response_msg)
  1320. if (&from == this) return;
  1321. Clear();
  1322. MergeFrom(from);
  1323. }
  1324. bool Dispatch_plan_response_msg::IsInitialized() const {
  1325. if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
  1326. if (has_base_info()) {
  1327. if (!this->base_info_->IsInitialized()) return false;
  1328. }
  1329. if (has_error_manager()) {
  1330. if (!this->error_manager_->IsInitialized()) return false;
  1331. }
  1332. return true;
  1333. }
  1334. void Dispatch_plan_response_msg::Swap(Dispatch_plan_response_msg* other) {
  1335. if (other == this) return;
  1336. InternalSwap(other);
  1337. }
  1338. void Dispatch_plan_response_msg::InternalSwap(Dispatch_plan_response_msg* other) {
  1339. using std::swap;
  1340. command_key_.Swap(&other->command_key_);
  1341. swap(base_info_, other->base_info_);
  1342. swap(error_manager_, other->error_manager_);
  1343. swap(dispatch_task_type_, other->dispatch_task_type_);
  1344. swap(dispatch_source_, other->dispatch_source_);
  1345. swap(dispatch_destination_, other->dispatch_destination_);
  1346. swap(_has_bits_[0], other->_has_bits_[0]);
  1347. _internal_metadata_.Swap(&other->_internal_metadata_);
  1348. swap(_cached_size_, other->_cached_size_);
  1349. }
  1350. ::google::protobuf::Metadata Dispatch_plan_response_msg::GetMetadata() const {
  1351. protobuf_dispatch_5fcontrol_2eproto::protobuf_AssignDescriptorsOnce();
  1352. return ::protobuf_dispatch_5fcontrol_2eproto::file_level_metadata[kIndexInFileMessages];
  1353. }
  1354. // ===================================================================
  1355. void Dispatch_control_request_msg::InitAsDefaultInstance() {
  1356. ::message::_Dispatch_control_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1357. ::message::Base_info::internal_default_instance());
  1358. ::message::_Dispatch_control_request_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  1359. ::message::Error_manager::internal_default_instance());
  1360. }
  1361. void Dispatch_control_request_msg::clear_base_info() {
  1362. if (base_info_ != NULL) base_info_->Clear();
  1363. clear_has_base_info();
  1364. }
  1365. void Dispatch_control_request_msg::clear_error_manager() {
  1366. if (error_manager_ != NULL) error_manager_->Clear();
  1367. clear_has_error_manager();
  1368. }
  1369. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1370. const int Dispatch_control_request_msg::kBaseInfoFieldNumber;
  1371. const int Dispatch_control_request_msg::kCommandKeyFieldNumber;
  1372. const int Dispatch_control_request_msg::kDispatchTaskTypeFieldNumber;
  1373. const int Dispatch_control_request_msg::kDispatchDeviceTypeFieldNumber;
  1374. const int Dispatch_control_request_msg::kDispatchSourceFieldNumber;
  1375. const int Dispatch_control_request_msg::kDispatchDestinationFieldNumber;
  1376. const int Dispatch_control_request_msg::kErrorManagerFieldNumber;
  1377. const int Dispatch_control_request_msg::kDispatchDeviceTargetStatusFieldNumber;
  1378. const int Dispatch_control_request_msg::kDispatchDeviceTaskStatusFieldNumber;
  1379. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1380. Dispatch_control_request_msg::Dispatch_control_request_msg()
  1381. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1382. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1383. ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_control_request_msg();
  1384. }
  1385. SharedCtor();
  1386. // @@protoc_insertion_point(constructor:message.Dispatch_control_request_msg)
  1387. }
  1388. Dispatch_control_request_msg::Dispatch_control_request_msg(const Dispatch_control_request_msg& from)
  1389. : ::google::protobuf::Message(),
  1390. _internal_metadata_(NULL),
  1391. _has_bits_(from._has_bits_),
  1392. _cached_size_(0) {
  1393. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1394. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1395. if (from.has_command_key()) {
  1396. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  1397. }
  1398. if (from.has_base_info()) {
  1399. base_info_ = new ::message::Base_info(*from.base_info_);
  1400. } else {
  1401. base_info_ = NULL;
  1402. }
  1403. if (from.has_error_manager()) {
  1404. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  1405. } else {
  1406. error_manager_ = NULL;
  1407. }
  1408. ::memcpy(&dispatch_task_type_, &from.dispatch_task_type_,
  1409. static_cast<size_t>(reinterpret_cast<char*>(&dispatch_device_type_) -
  1410. reinterpret_cast<char*>(&dispatch_task_type_)) + sizeof(dispatch_device_type_));
  1411. // @@protoc_insertion_point(copy_constructor:message.Dispatch_control_request_msg)
  1412. }
  1413. void Dispatch_control_request_msg::SharedCtor() {
  1414. _cached_size_ = 0;
  1415. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1416. ::memset(&base_info_, 0, static_cast<size_t>(
  1417. reinterpret_cast<char*>(&dispatch_device_task_status_) -
  1418. reinterpret_cast<char*>(&base_info_)) + sizeof(dispatch_device_task_status_));
  1419. dispatch_device_type_ = 101;
  1420. }
  1421. Dispatch_control_request_msg::~Dispatch_control_request_msg() {
  1422. // @@protoc_insertion_point(destructor:message.Dispatch_control_request_msg)
  1423. SharedDtor();
  1424. }
  1425. void Dispatch_control_request_msg::SharedDtor() {
  1426. command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1427. if (this != internal_default_instance()) delete base_info_;
  1428. if (this != internal_default_instance()) delete error_manager_;
  1429. }
  1430. void Dispatch_control_request_msg::SetCachedSize(int size) const {
  1431. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1432. _cached_size_ = size;
  1433. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1434. }
  1435. const ::google::protobuf::Descriptor* Dispatch_control_request_msg::descriptor() {
  1436. ::protobuf_dispatch_5fcontrol_2eproto::protobuf_AssignDescriptorsOnce();
  1437. return ::protobuf_dispatch_5fcontrol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1438. }
  1439. const Dispatch_control_request_msg& Dispatch_control_request_msg::default_instance() {
  1440. ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_control_request_msg();
  1441. return *internal_default_instance();
  1442. }
  1443. Dispatch_control_request_msg* Dispatch_control_request_msg::New(::google::protobuf::Arena* arena) const {
  1444. Dispatch_control_request_msg* n = new Dispatch_control_request_msg;
  1445. if (arena != NULL) {
  1446. arena->Own(n);
  1447. }
  1448. return n;
  1449. }
  1450. void Dispatch_control_request_msg::Clear() {
  1451. // @@protoc_insertion_point(message_clear_start:message.Dispatch_control_request_msg)
  1452. ::google::protobuf::uint32 cached_has_bits = 0;
  1453. // Prevent compiler warnings about cached_has_bits being unused
  1454. (void) cached_has_bits;
  1455. cached_has_bits = _has_bits_[0];
  1456. if (cached_has_bits & 7u) {
  1457. if (cached_has_bits & 0x00000001u) {
  1458. GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  1459. (*command_key_.UnsafeRawStringPointer())->clear();
  1460. }
  1461. if (cached_has_bits & 0x00000002u) {
  1462. GOOGLE_DCHECK(base_info_ != NULL);
  1463. base_info_->Clear();
  1464. }
  1465. if (cached_has_bits & 0x00000004u) {
  1466. GOOGLE_DCHECK(error_manager_ != NULL);
  1467. error_manager_->Clear();
  1468. }
  1469. }
  1470. if (cached_has_bits & 248u) {
  1471. ::memset(&dispatch_task_type_, 0, static_cast<size_t>(
  1472. reinterpret_cast<char*>(&dispatch_device_task_status_) -
  1473. reinterpret_cast<char*>(&dispatch_task_type_)) + sizeof(dispatch_device_task_status_));
  1474. }
  1475. dispatch_device_type_ = 101;
  1476. _has_bits_.Clear();
  1477. _internal_metadata_.Clear();
  1478. }
  1479. bool Dispatch_control_request_msg::MergePartialFromCodedStream(
  1480. ::google::protobuf::io::CodedInputStream* input) {
  1481. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1482. ::google::protobuf::uint32 tag;
  1483. // @@protoc_insertion_point(parse_start:message.Dispatch_control_request_msg)
  1484. for (;;) {
  1485. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1486. tag = p.first;
  1487. if (!p.second) goto handle_unusual;
  1488. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1489. // required .message.Base_info base_info = 1;
  1490. case 1: {
  1491. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1492. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1493. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1494. input, mutable_base_info()));
  1495. } else {
  1496. goto handle_unusual;
  1497. }
  1498. break;
  1499. }
  1500. // required string command_key = 2;
  1501. case 2: {
  1502. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1503. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1504. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1505. input, this->mutable_command_key()));
  1506. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1507. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1508. ::google::protobuf::internal::WireFormat::PARSE,
  1509. "message.Dispatch_control_request_msg.command_key");
  1510. } else {
  1511. goto handle_unusual;
  1512. }
  1513. break;
  1514. }
  1515. // required .message.Dispatch_task_type dispatch_task_type = 3;
  1516. case 3: {
  1517. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1518. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  1519. int value;
  1520. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1521. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1522. input, &value)));
  1523. if (::message::Dispatch_task_type_IsValid(value)) {
  1524. set_dispatch_task_type(static_cast< ::message::Dispatch_task_type >(value));
  1525. } else {
  1526. mutable_unknown_fields()->AddVarint(
  1527. 3, static_cast< ::google::protobuf::uint64>(value));
  1528. }
  1529. } else {
  1530. goto handle_unusual;
  1531. }
  1532. break;
  1533. }
  1534. // optional .message.Dispatch_device_type dispatch_device_type = 4;
  1535. case 4: {
  1536. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1537. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  1538. int value;
  1539. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1540. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1541. input, &value)));
  1542. if (::message::Dispatch_device_type_IsValid(value)) {
  1543. set_dispatch_device_type(static_cast< ::message::Dispatch_device_type >(value));
  1544. } else {
  1545. mutable_unknown_fields()->AddVarint(
  1546. 4, static_cast< ::google::protobuf::uint64>(value));
  1547. }
  1548. } else {
  1549. goto handle_unusual;
  1550. }
  1551. break;
  1552. }
  1553. // optional int32 dispatch_source = 5;
  1554. case 5: {
  1555. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1556. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  1557. set_has_dispatch_source();
  1558. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1559. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1560. input, &dispatch_source_)));
  1561. } else {
  1562. goto handle_unusual;
  1563. }
  1564. break;
  1565. }
  1566. // optional int32 dispatch_destination = 6;
  1567. case 6: {
  1568. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1569. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  1570. set_has_dispatch_destination();
  1571. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1572. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1573. input, &dispatch_destination_)));
  1574. } else {
  1575. goto handle_unusual;
  1576. }
  1577. break;
  1578. }
  1579. // optional .message.Error_manager error_manager = 7;
  1580. case 7: {
  1581. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1582. static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
  1583. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1584. input, mutable_error_manager()));
  1585. } else {
  1586. goto handle_unusual;
  1587. }
  1588. break;
  1589. }
  1590. // optional .message.Dispatch_device_target_status dispatch_device_target_status = 8;
  1591. case 8: {
  1592. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1593. static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
  1594. int value;
  1595. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1596. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1597. input, &value)));
  1598. if (::message::Dispatch_device_target_status_IsValid(value)) {
  1599. set_dispatch_device_target_status(static_cast< ::message::Dispatch_device_target_status >(value));
  1600. } else {
  1601. mutable_unknown_fields()->AddVarint(
  1602. 8, static_cast< ::google::protobuf::uint64>(value));
  1603. }
  1604. } else {
  1605. goto handle_unusual;
  1606. }
  1607. break;
  1608. }
  1609. // optional .message.Dispatch_device_task_status dispatch_device_task_status = 9;
  1610. case 9: {
  1611. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1612. static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
  1613. int value;
  1614. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1615. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1616. input, &value)));
  1617. if (::message::Dispatch_device_task_status_IsValid(value)) {
  1618. set_dispatch_device_task_status(static_cast< ::message::Dispatch_device_task_status >(value));
  1619. } else {
  1620. mutable_unknown_fields()->AddVarint(
  1621. 9, static_cast< ::google::protobuf::uint64>(value));
  1622. }
  1623. } else {
  1624. goto handle_unusual;
  1625. }
  1626. break;
  1627. }
  1628. default: {
  1629. handle_unusual:
  1630. if (tag == 0) {
  1631. goto success;
  1632. }
  1633. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1634. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1635. break;
  1636. }
  1637. }
  1638. }
  1639. success:
  1640. // @@protoc_insertion_point(parse_success:message.Dispatch_control_request_msg)
  1641. return true;
  1642. failure:
  1643. // @@protoc_insertion_point(parse_failure:message.Dispatch_control_request_msg)
  1644. return false;
  1645. #undef DO_
  1646. }
  1647. void Dispatch_control_request_msg::SerializeWithCachedSizes(
  1648. ::google::protobuf::io::CodedOutputStream* output) const {
  1649. // @@protoc_insertion_point(serialize_start:message.Dispatch_control_request_msg)
  1650. ::google::protobuf::uint32 cached_has_bits = 0;
  1651. (void) cached_has_bits;
  1652. cached_has_bits = _has_bits_[0];
  1653. // required .message.Base_info base_info = 1;
  1654. if (cached_has_bits & 0x00000002u) {
  1655. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1656. 1, *this->base_info_, output);
  1657. }
  1658. // required string command_key = 2;
  1659. if (cached_has_bits & 0x00000001u) {
  1660. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1661. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1662. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1663. "message.Dispatch_control_request_msg.command_key");
  1664. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1665. 2, this->command_key(), output);
  1666. }
  1667. // required .message.Dispatch_task_type dispatch_task_type = 3;
  1668. if (cached_has_bits & 0x00000008u) {
  1669. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1670. 3, this->dispatch_task_type(), output);
  1671. }
  1672. // optional .message.Dispatch_device_type dispatch_device_type = 4;
  1673. if (cached_has_bits & 0x00000100u) {
  1674. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1675. 4, this->dispatch_device_type(), output);
  1676. }
  1677. // optional int32 dispatch_source = 5;
  1678. if (cached_has_bits & 0x00000010u) {
  1679. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->dispatch_source(), output);
  1680. }
  1681. // optional int32 dispatch_destination = 6;
  1682. if (cached_has_bits & 0x00000020u) {
  1683. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->dispatch_destination(), output);
  1684. }
  1685. // optional .message.Error_manager error_manager = 7;
  1686. if (cached_has_bits & 0x00000004u) {
  1687. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1688. 7, *this->error_manager_, output);
  1689. }
  1690. // optional .message.Dispatch_device_target_status dispatch_device_target_status = 8;
  1691. if (cached_has_bits & 0x00000040u) {
  1692. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1693. 8, this->dispatch_device_target_status(), output);
  1694. }
  1695. // optional .message.Dispatch_device_task_status dispatch_device_task_status = 9;
  1696. if (cached_has_bits & 0x00000080u) {
  1697. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1698. 9, this->dispatch_device_task_status(), output);
  1699. }
  1700. if (_internal_metadata_.have_unknown_fields()) {
  1701. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1702. _internal_metadata_.unknown_fields(), output);
  1703. }
  1704. // @@protoc_insertion_point(serialize_end:message.Dispatch_control_request_msg)
  1705. }
  1706. ::google::protobuf::uint8* Dispatch_control_request_msg::InternalSerializeWithCachedSizesToArray(
  1707. bool deterministic, ::google::protobuf::uint8* target) const {
  1708. (void)deterministic; // Unused
  1709. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_control_request_msg)
  1710. ::google::protobuf::uint32 cached_has_bits = 0;
  1711. (void) cached_has_bits;
  1712. cached_has_bits = _has_bits_[0];
  1713. // required .message.Base_info base_info = 1;
  1714. if (cached_has_bits & 0x00000002u) {
  1715. target = ::google::protobuf::internal::WireFormatLite::
  1716. InternalWriteMessageToArray(
  1717. 1, *this->base_info_, deterministic, target);
  1718. }
  1719. // required string command_key = 2;
  1720. if (cached_has_bits & 0x00000001u) {
  1721. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1722. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1723. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1724. "message.Dispatch_control_request_msg.command_key");
  1725. target =
  1726. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1727. 2, this->command_key(), target);
  1728. }
  1729. // required .message.Dispatch_task_type dispatch_task_type = 3;
  1730. if (cached_has_bits & 0x00000008u) {
  1731. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1732. 3, this->dispatch_task_type(), target);
  1733. }
  1734. // optional .message.Dispatch_device_type dispatch_device_type = 4;
  1735. if (cached_has_bits & 0x00000100u) {
  1736. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1737. 4, this->dispatch_device_type(), target);
  1738. }
  1739. // optional int32 dispatch_source = 5;
  1740. if (cached_has_bits & 0x00000010u) {
  1741. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->dispatch_source(), target);
  1742. }
  1743. // optional int32 dispatch_destination = 6;
  1744. if (cached_has_bits & 0x00000020u) {
  1745. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->dispatch_destination(), target);
  1746. }
  1747. // optional .message.Error_manager error_manager = 7;
  1748. if (cached_has_bits & 0x00000004u) {
  1749. target = ::google::protobuf::internal::WireFormatLite::
  1750. InternalWriteMessageToArray(
  1751. 7, *this->error_manager_, deterministic, target);
  1752. }
  1753. // optional .message.Dispatch_device_target_status dispatch_device_target_status = 8;
  1754. if (cached_has_bits & 0x00000040u) {
  1755. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1756. 8, this->dispatch_device_target_status(), target);
  1757. }
  1758. // optional .message.Dispatch_device_task_status dispatch_device_task_status = 9;
  1759. if (cached_has_bits & 0x00000080u) {
  1760. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1761. 9, this->dispatch_device_task_status(), target);
  1762. }
  1763. if (_internal_metadata_.have_unknown_fields()) {
  1764. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1765. _internal_metadata_.unknown_fields(), target);
  1766. }
  1767. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_control_request_msg)
  1768. return target;
  1769. }
  1770. size_t Dispatch_control_request_msg::RequiredFieldsByteSizeFallback() const {
  1771. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_control_request_msg)
  1772. size_t total_size = 0;
  1773. if (has_command_key()) {
  1774. // required string command_key = 2;
  1775. total_size += 1 +
  1776. ::google::protobuf::internal::WireFormatLite::StringSize(
  1777. this->command_key());
  1778. }
  1779. if (has_base_info()) {
  1780. // required .message.Base_info base_info = 1;
  1781. total_size += 1 +
  1782. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1783. *this->base_info_);
  1784. }
  1785. if (has_dispatch_task_type()) {
  1786. // required .message.Dispatch_task_type dispatch_task_type = 3;
  1787. total_size += 1 +
  1788. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_task_type());
  1789. }
  1790. return total_size;
  1791. }
  1792. size_t Dispatch_control_request_msg::ByteSizeLong() const {
  1793. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_control_request_msg)
  1794. size_t total_size = 0;
  1795. if (_internal_metadata_.have_unknown_fields()) {
  1796. total_size +=
  1797. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1798. _internal_metadata_.unknown_fields());
  1799. }
  1800. if (((_has_bits_[0] & 0x0000000b) ^ 0x0000000b) == 0) { // All required fields are present.
  1801. // required string command_key = 2;
  1802. total_size += 1 +
  1803. ::google::protobuf::internal::WireFormatLite::StringSize(
  1804. this->command_key());
  1805. // required .message.Base_info base_info = 1;
  1806. total_size += 1 +
  1807. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1808. *this->base_info_);
  1809. // required .message.Dispatch_task_type dispatch_task_type = 3;
  1810. total_size += 1 +
  1811. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_task_type());
  1812. } else {
  1813. total_size += RequiredFieldsByteSizeFallback();
  1814. }
  1815. // optional .message.Error_manager error_manager = 7;
  1816. if (has_error_manager()) {
  1817. total_size += 1 +
  1818. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1819. *this->error_manager_);
  1820. }
  1821. if (_has_bits_[0 / 32] & 240u) {
  1822. // optional int32 dispatch_source = 5;
  1823. if (has_dispatch_source()) {
  1824. total_size += 1 +
  1825. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1826. this->dispatch_source());
  1827. }
  1828. // optional int32 dispatch_destination = 6;
  1829. if (has_dispatch_destination()) {
  1830. total_size += 1 +
  1831. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1832. this->dispatch_destination());
  1833. }
  1834. // optional .message.Dispatch_device_target_status dispatch_device_target_status = 8;
  1835. if (has_dispatch_device_target_status()) {
  1836. total_size += 1 +
  1837. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_target_status());
  1838. }
  1839. // optional .message.Dispatch_device_task_status dispatch_device_task_status = 9;
  1840. if (has_dispatch_device_task_status()) {
  1841. total_size += 1 +
  1842. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_task_status());
  1843. }
  1844. }
  1845. // optional .message.Dispatch_device_type dispatch_device_type = 4;
  1846. if (has_dispatch_device_type()) {
  1847. total_size += 1 +
  1848. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_type());
  1849. }
  1850. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1851. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1852. _cached_size_ = cached_size;
  1853. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1854. return total_size;
  1855. }
  1856. void Dispatch_control_request_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1857. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_control_request_msg)
  1858. GOOGLE_DCHECK_NE(&from, this);
  1859. const Dispatch_control_request_msg* source =
  1860. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_control_request_msg>(
  1861. &from);
  1862. if (source == NULL) {
  1863. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_control_request_msg)
  1864. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1865. } else {
  1866. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_control_request_msg)
  1867. MergeFrom(*source);
  1868. }
  1869. }
  1870. void Dispatch_control_request_msg::MergeFrom(const Dispatch_control_request_msg& from) {
  1871. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_control_request_msg)
  1872. GOOGLE_DCHECK_NE(&from, this);
  1873. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1874. ::google::protobuf::uint32 cached_has_bits = 0;
  1875. (void) cached_has_bits;
  1876. cached_has_bits = from._has_bits_[0];
  1877. if (cached_has_bits & 255u) {
  1878. if (cached_has_bits & 0x00000001u) {
  1879. set_has_command_key();
  1880. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  1881. }
  1882. if (cached_has_bits & 0x00000002u) {
  1883. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1884. }
  1885. if (cached_has_bits & 0x00000004u) {
  1886. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  1887. }
  1888. if (cached_has_bits & 0x00000008u) {
  1889. dispatch_task_type_ = from.dispatch_task_type_;
  1890. }
  1891. if (cached_has_bits & 0x00000010u) {
  1892. dispatch_source_ = from.dispatch_source_;
  1893. }
  1894. if (cached_has_bits & 0x00000020u) {
  1895. dispatch_destination_ = from.dispatch_destination_;
  1896. }
  1897. if (cached_has_bits & 0x00000040u) {
  1898. dispatch_device_target_status_ = from.dispatch_device_target_status_;
  1899. }
  1900. if (cached_has_bits & 0x00000080u) {
  1901. dispatch_device_task_status_ = from.dispatch_device_task_status_;
  1902. }
  1903. _has_bits_[0] |= cached_has_bits;
  1904. }
  1905. if (cached_has_bits & 0x00000100u) {
  1906. set_dispatch_device_type(from.dispatch_device_type());
  1907. }
  1908. }
  1909. void Dispatch_control_request_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1910. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_control_request_msg)
  1911. if (&from == this) return;
  1912. Clear();
  1913. MergeFrom(from);
  1914. }
  1915. void Dispatch_control_request_msg::CopyFrom(const Dispatch_control_request_msg& from) {
  1916. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_control_request_msg)
  1917. if (&from == this) return;
  1918. Clear();
  1919. MergeFrom(from);
  1920. }
  1921. bool Dispatch_control_request_msg::IsInitialized() const {
  1922. if ((_has_bits_[0] & 0x0000000b) != 0x0000000b) return false;
  1923. if (has_base_info()) {
  1924. if (!this->base_info_->IsInitialized()) return false;
  1925. }
  1926. if (has_error_manager()) {
  1927. if (!this->error_manager_->IsInitialized()) return false;
  1928. }
  1929. return true;
  1930. }
  1931. void Dispatch_control_request_msg::Swap(Dispatch_control_request_msg* other) {
  1932. if (other == this) return;
  1933. InternalSwap(other);
  1934. }
  1935. void Dispatch_control_request_msg::InternalSwap(Dispatch_control_request_msg* other) {
  1936. using std::swap;
  1937. command_key_.Swap(&other->command_key_);
  1938. swap(base_info_, other->base_info_);
  1939. swap(error_manager_, other->error_manager_);
  1940. swap(dispatch_task_type_, other->dispatch_task_type_);
  1941. swap(dispatch_source_, other->dispatch_source_);
  1942. swap(dispatch_destination_, other->dispatch_destination_);
  1943. swap(dispatch_device_target_status_, other->dispatch_device_target_status_);
  1944. swap(dispatch_device_task_status_, other->dispatch_device_task_status_);
  1945. swap(dispatch_device_type_, other->dispatch_device_type_);
  1946. swap(_has_bits_[0], other->_has_bits_[0]);
  1947. _internal_metadata_.Swap(&other->_internal_metadata_);
  1948. swap(_cached_size_, other->_cached_size_);
  1949. }
  1950. ::google::protobuf::Metadata Dispatch_control_request_msg::GetMetadata() const {
  1951. protobuf_dispatch_5fcontrol_2eproto::protobuf_AssignDescriptorsOnce();
  1952. return ::protobuf_dispatch_5fcontrol_2eproto::file_level_metadata[kIndexInFileMessages];
  1953. }
  1954. // ===================================================================
  1955. void Dispatch_control_response_msg::InitAsDefaultInstance() {
  1956. ::message::_Dispatch_control_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1957. ::message::Base_info::internal_default_instance());
  1958. ::message::_Dispatch_control_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  1959. ::message::Error_manager::internal_default_instance());
  1960. }
  1961. void Dispatch_control_response_msg::clear_base_info() {
  1962. if (base_info_ != NULL) base_info_->Clear();
  1963. clear_has_base_info();
  1964. }
  1965. void Dispatch_control_response_msg::clear_error_manager() {
  1966. if (error_manager_ != NULL) error_manager_->Clear();
  1967. clear_has_error_manager();
  1968. }
  1969. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1970. const int Dispatch_control_response_msg::kBaseInfoFieldNumber;
  1971. const int Dispatch_control_response_msg::kCommandKeyFieldNumber;
  1972. const int Dispatch_control_response_msg::kDispatchTaskTypeFieldNumber;
  1973. const int Dispatch_control_response_msg::kDispatchDeviceTypeFieldNumber;
  1974. const int Dispatch_control_response_msg::kDispatchSourceFieldNumber;
  1975. const int Dispatch_control_response_msg::kDispatchDestinationFieldNumber;
  1976. const int Dispatch_control_response_msg::kErrorManagerFieldNumber;
  1977. const int Dispatch_control_response_msg::kDispatchDeviceTargetStatusFieldNumber;
  1978. const int Dispatch_control_response_msg::kDispatchDeviceTaskStatusFieldNumber;
  1979. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1980. Dispatch_control_response_msg::Dispatch_control_response_msg()
  1981. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1982. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1983. ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_control_response_msg();
  1984. }
  1985. SharedCtor();
  1986. // @@protoc_insertion_point(constructor:message.Dispatch_control_response_msg)
  1987. }
  1988. Dispatch_control_response_msg::Dispatch_control_response_msg(const Dispatch_control_response_msg& from)
  1989. : ::google::protobuf::Message(),
  1990. _internal_metadata_(NULL),
  1991. _has_bits_(from._has_bits_),
  1992. _cached_size_(0) {
  1993. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1994. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1995. if (from.has_command_key()) {
  1996. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  1997. }
  1998. if (from.has_base_info()) {
  1999. base_info_ = new ::message::Base_info(*from.base_info_);
  2000. } else {
  2001. base_info_ = NULL;
  2002. }
  2003. if (from.has_error_manager()) {
  2004. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  2005. } else {
  2006. error_manager_ = NULL;
  2007. }
  2008. ::memcpy(&dispatch_task_type_, &from.dispatch_task_type_,
  2009. static_cast<size_t>(reinterpret_cast<char*>(&dispatch_device_type_) -
  2010. reinterpret_cast<char*>(&dispatch_task_type_)) + sizeof(dispatch_device_type_));
  2011. // @@protoc_insertion_point(copy_constructor:message.Dispatch_control_response_msg)
  2012. }
  2013. void Dispatch_control_response_msg::SharedCtor() {
  2014. _cached_size_ = 0;
  2015. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2016. ::memset(&base_info_, 0, static_cast<size_t>(
  2017. reinterpret_cast<char*>(&dispatch_device_task_status_) -
  2018. reinterpret_cast<char*>(&base_info_)) + sizeof(dispatch_device_task_status_));
  2019. dispatch_device_type_ = 101;
  2020. }
  2021. Dispatch_control_response_msg::~Dispatch_control_response_msg() {
  2022. // @@protoc_insertion_point(destructor:message.Dispatch_control_response_msg)
  2023. SharedDtor();
  2024. }
  2025. void Dispatch_control_response_msg::SharedDtor() {
  2026. command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2027. if (this != internal_default_instance()) delete base_info_;
  2028. if (this != internal_default_instance()) delete error_manager_;
  2029. }
  2030. void Dispatch_control_response_msg::SetCachedSize(int size) const {
  2031. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2032. _cached_size_ = size;
  2033. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2034. }
  2035. const ::google::protobuf::Descriptor* Dispatch_control_response_msg::descriptor() {
  2036. ::protobuf_dispatch_5fcontrol_2eproto::protobuf_AssignDescriptorsOnce();
  2037. return ::protobuf_dispatch_5fcontrol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2038. }
  2039. const Dispatch_control_response_msg& Dispatch_control_response_msg::default_instance() {
  2040. ::protobuf_dispatch_5fcontrol_2eproto::InitDefaultsDispatch_control_response_msg();
  2041. return *internal_default_instance();
  2042. }
  2043. Dispatch_control_response_msg* Dispatch_control_response_msg::New(::google::protobuf::Arena* arena) const {
  2044. Dispatch_control_response_msg* n = new Dispatch_control_response_msg;
  2045. if (arena != NULL) {
  2046. arena->Own(n);
  2047. }
  2048. return n;
  2049. }
  2050. void Dispatch_control_response_msg::Clear() {
  2051. // @@protoc_insertion_point(message_clear_start:message.Dispatch_control_response_msg)
  2052. ::google::protobuf::uint32 cached_has_bits = 0;
  2053. // Prevent compiler warnings about cached_has_bits being unused
  2054. (void) cached_has_bits;
  2055. cached_has_bits = _has_bits_[0];
  2056. if (cached_has_bits & 7u) {
  2057. if (cached_has_bits & 0x00000001u) {
  2058. GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  2059. (*command_key_.UnsafeRawStringPointer())->clear();
  2060. }
  2061. if (cached_has_bits & 0x00000002u) {
  2062. GOOGLE_DCHECK(base_info_ != NULL);
  2063. base_info_->Clear();
  2064. }
  2065. if (cached_has_bits & 0x00000004u) {
  2066. GOOGLE_DCHECK(error_manager_ != NULL);
  2067. error_manager_->Clear();
  2068. }
  2069. }
  2070. if (cached_has_bits & 248u) {
  2071. ::memset(&dispatch_task_type_, 0, static_cast<size_t>(
  2072. reinterpret_cast<char*>(&dispatch_device_task_status_) -
  2073. reinterpret_cast<char*>(&dispatch_task_type_)) + sizeof(dispatch_device_task_status_));
  2074. }
  2075. dispatch_device_type_ = 101;
  2076. _has_bits_.Clear();
  2077. _internal_metadata_.Clear();
  2078. }
  2079. bool Dispatch_control_response_msg::MergePartialFromCodedStream(
  2080. ::google::protobuf::io::CodedInputStream* input) {
  2081. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2082. ::google::protobuf::uint32 tag;
  2083. // @@protoc_insertion_point(parse_start:message.Dispatch_control_response_msg)
  2084. for (;;) {
  2085. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2086. tag = p.first;
  2087. if (!p.second) goto handle_unusual;
  2088. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2089. // required .message.Base_info base_info = 1;
  2090. case 1: {
  2091. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2092. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  2093. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2094. input, mutable_base_info()));
  2095. } else {
  2096. goto handle_unusual;
  2097. }
  2098. break;
  2099. }
  2100. // required string command_key = 2;
  2101. case 2: {
  2102. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2103. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  2104. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2105. input, this->mutable_command_key()));
  2106. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2107. this->command_key().data(), static_cast<int>(this->command_key().length()),
  2108. ::google::protobuf::internal::WireFormat::PARSE,
  2109. "message.Dispatch_control_response_msg.command_key");
  2110. } else {
  2111. goto handle_unusual;
  2112. }
  2113. break;
  2114. }
  2115. // optional .message.Dispatch_task_type dispatch_task_type = 3;
  2116. case 3: {
  2117. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2118. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  2119. int value;
  2120. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2121. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2122. input, &value)));
  2123. if (::message::Dispatch_task_type_IsValid(value)) {
  2124. set_dispatch_task_type(static_cast< ::message::Dispatch_task_type >(value));
  2125. } else {
  2126. mutable_unknown_fields()->AddVarint(
  2127. 3, static_cast< ::google::protobuf::uint64>(value));
  2128. }
  2129. } else {
  2130. goto handle_unusual;
  2131. }
  2132. break;
  2133. }
  2134. // optional .message.Dispatch_device_type dispatch_device_type = 4;
  2135. case 4: {
  2136. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2137. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  2138. int value;
  2139. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2140. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2141. input, &value)));
  2142. if (::message::Dispatch_device_type_IsValid(value)) {
  2143. set_dispatch_device_type(static_cast< ::message::Dispatch_device_type >(value));
  2144. } else {
  2145. mutable_unknown_fields()->AddVarint(
  2146. 4, static_cast< ::google::protobuf::uint64>(value));
  2147. }
  2148. } else {
  2149. goto handle_unusual;
  2150. }
  2151. break;
  2152. }
  2153. // optional int32 dispatch_source = 5;
  2154. case 5: {
  2155. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2156. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  2157. set_has_dispatch_source();
  2158. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2159. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2160. input, &dispatch_source_)));
  2161. } else {
  2162. goto handle_unusual;
  2163. }
  2164. break;
  2165. }
  2166. // optional int32 dispatch_destination = 6;
  2167. case 6: {
  2168. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2169. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  2170. set_has_dispatch_destination();
  2171. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2172. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2173. input, &dispatch_destination_)));
  2174. } else {
  2175. goto handle_unusual;
  2176. }
  2177. break;
  2178. }
  2179. // optional .message.Error_manager error_manager = 7;
  2180. case 7: {
  2181. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2182. static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
  2183. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2184. input, mutable_error_manager()));
  2185. } else {
  2186. goto handle_unusual;
  2187. }
  2188. break;
  2189. }
  2190. // optional .message.Dispatch_device_target_status dispatch_device_target_status = 8;
  2191. case 8: {
  2192. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2193. static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
  2194. int value;
  2195. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2196. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2197. input, &value)));
  2198. if (::message::Dispatch_device_target_status_IsValid(value)) {
  2199. set_dispatch_device_target_status(static_cast< ::message::Dispatch_device_target_status >(value));
  2200. } else {
  2201. mutable_unknown_fields()->AddVarint(
  2202. 8, static_cast< ::google::protobuf::uint64>(value));
  2203. }
  2204. } else {
  2205. goto handle_unusual;
  2206. }
  2207. break;
  2208. }
  2209. // optional .message.Dispatch_device_task_status dispatch_device_task_status = 9;
  2210. case 9: {
  2211. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2212. static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
  2213. int value;
  2214. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2215. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2216. input, &value)));
  2217. if (::message::Dispatch_device_task_status_IsValid(value)) {
  2218. set_dispatch_device_task_status(static_cast< ::message::Dispatch_device_task_status >(value));
  2219. } else {
  2220. mutable_unknown_fields()->AddVarint(
  2221. 9, static_cast< ::google::protobuf::uint64>(value));
  2222. }
  2223. } else {
  2224. goto handle_unusual;
  2225. }
  2226. break;
  2227. }
  2228. default: {
  2229. handle_unusual:
  2230. if (tag == 0) {
  2231. goto success;
  2232. }
  2233. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2234. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2235. break;
  2236. }
  2237. }
  2238. }
  2239. success:
  2240. // @@protoc_insertion_point(parse_success:message.Dispatch_control_response_msg)
  2241. return true;
  2242. failure:
  2243. // @@protoc_insertion_point(parse_failure:message.Dispatch_control_response_msg)
  2244. return false;
  2245. #undef DO_
  2246. }
  2247. void Dispatch_control_response_msg::SerializeWithCachedSizes(
  2248. ::google::protobuf::io::CodedOutputStream* output) const {
  2249. // @@protoc_insertion_point(serialize_start:message.Dispatch_control_response_msg)
  2250. ::google::protobuf::uint32 cached_has_bits = 0;
  2251. (void) cached_has_bits;
  2252. cached_has_bits = _has_bits_[0];
  2253. // required .message.Base_info base_info = 1;
  2254. if (cached_has_bits & 0x00000002u) {
  2255. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2256. 1, *this->base_info_, output);
  2257. }
  2258. // required string command_key = 2;
  2259. if (cached_has_bits & 0x00000001u) {
  2260. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2261. this->command_key().data(), static_cast<int>(this->command_key().length()),
  2262. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2263. "message.Dispatch_control_response_msg.command_key");
  2264. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2265. 2, this->command_key(), output);
  2266. }
  2267. // optional .message.Dispatch_task_type dispatch_task_type = 3;
  2268. if (cached_has_bits & 0x00000008u) {
  2269. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2270. 3, this->dispatch_task_type(), output);
  2271. }
  2272. // optional .message.Dispatch_device_type dispatch_device_type = 4;
  2273. if (cached_has_bits & 0x00000100u) {
  2274. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2275. 4, this->dispatch_device_type(), output);
  2276. }
  2277. // optional int32 dispatch_source = 5;
  2278. if (cached_has_bits & 0x00000010u) {
  2279. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->dispatch_source(), output);
  2280. }
  2281. // optional int32 dispatch_destination = 6;
  2282. if (cached_has_bits & 0x00000020u) {
  2283. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->dispatch_destination(), output);
  2284. }
  2285. // optional .message.Error_manager error_manager = 7;
  2286. if (cached_has_bits & 0x00000004u) {
  2287. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2288. 7, *this->error_manager_, output);
  2289. }
  2290. // optional .message.Dispatch_device_target_status dispatch_device_target_status = 8;
  2291. if (cached_has_bits & 0x00000040u) {
  2292. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2293. 8, this->dispatch_device_target_status(), output);
  2294. }
  2295. // optional .message.Dispatch_device_task_status dispatch_device_task_status = 9;
  2296. if (cached_has_bits & 0x00000080u) {
  2297. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2298. 9, this->dispatch_device_task_status(), output);
  2299. }
  2300. if (_internal_metadata_.have_unknown_fields()) {
  2301. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2302. _internal_metadata_.unknown_fields(), output);
  2303. }
  2304. // @@protoc_insertion_point(serialize_end:message.Dispatch_control_response_msg)
  2305. }
  2306. ::google::protobuf::uint8* Dispatch_control_response_msg::InternalSerializeWithCachedSizesToArray(
  2307. bool deterministic, ::google::protobuf::uint8* target) const {
  2308. (void)deterministic; // Unused
  2309. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_control_response_msg)
  2310. ::google::protobuf::uint32 cached_has_bits = 0;
  2311. (void) cached_has_bits;
  2312. cached_has_bits = _has_bits_[0];
  2313. // required .message.Base_info base_info = 1;
  2314. if (cached_has_bits & 0x00000002u) {
  2315. target = ::google::protobuf::internal::WireFormatLite::
  2316. InternalWriteMessageToArray(
  2317. 1, *this->base_info_, deterministic, target);
  2318. }
  2319. // required string command_key = 2;
  2320. if (cached_has_bits & 0x00000001u) {
  2321. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2322. this->command_key().data(), static_cast<int>(this->command_key().length()),
  2323. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2324. "message.Dispatch_control_response_msg.command_key");
  2325. target =
  2326. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2327. 2, this->command_key(), target);
  2328. }
  2329. // optional .message.Dispatch_task_type dispatch_task_type = 3;
  2330. if (cached_has_bits & 0x00000008u) {
  2331. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2332. 3, this->dispatch_task_type(), target);
  2333. }
  2334. // optional .message.Dispatch_device_type dispatch_device_type = 4;
  2335. if (cached_has_bits & 0x00000100u) {
  2336. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2337. 4, this->dispatch_device_type(), target);
  2338. }
  2339. // optional int32 dispatch_source = 5;
  2340. if (cached_has_bits & 0x00000010u) {
  2341. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->dispatch_source(), target);
  2342. }
  2343. // optional int32 dispatch_destination = 6;
  2344. if (cached_has_bits & 0x00000020u) {
  2345. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->dispatch_destination(), target);
  2346. }
  2347. // optional .message.Error_manager error_manager = 7;
  2348. if (cached_has_bits & 0x00000004u) {
  2349. target = ::google::protobuf::internal::WireFormatLite::
  2350. InternalWriteMessageToArray(
  2351. 7, *this->error_manager_, deterministic, target);
  2352. }
  2353. // optional .message.Dispatch_device_target_status dispatch_device_target_status = 8;
  2354. if (cached_has_bits & 0x00000040u) {
  2355. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2356. 8, this->dispatch_device_target_status(), target);
  2357. }
  2358. // optional .message.Dispatch_device_task_status dispatch_device_task_status = 9;
  2359. if (cached_has_bits & 0x00000080u) {
  2360. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2361. 9, this->dispatch_device_task_status(), target);
  2362. }
  2363. if (_internal_metadata_.have_unknown_fields()) {
  2364. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2365. _internal_metadata_.unknown_fields(), target);
  2366. }
  2367. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_control_response_msg)
  2368. return target;
  2369. }
  2370. size_t Dispatch_control_response_msg::RequiredFieldsByteSizeFallback() const {
  2371. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_control_response_msg)
  2372. size_t total_size = 0;
  2373. if (has_command_key()) {
  2374. // required string command_key = 2;
  2375. total_size += 1 +
  2376. ::google::protobuf::internal::WireFormatLite::StringSize(
  2377. this->command_key());
  2378. }
  2379. if (has_base_info()) {
  2380. // required .message.Base_info base_info = 1;
  2381. total_size += 1 +
  2382. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2383. *this->base_info_);
  2384. }
  2385. return total_size;
  2386. }
  2387. size_t Dispatch_control_response_msg::ByteSizeLong() const {
  2388. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_control_response_msg)
  2389. size_t total_size = 0;
  2390. if (_internal_metadata_.have_unknown_fields()) {
  2391. total_size +=
  2392. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2393. _internal_metadata_.unknown_fields());
  2394. }
  2395. if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
  2396. // required string command_key = 2;
  2397. total_size += 1 +
  2398. ::google::protobuf::internal::WireFormatLite::StringSize(
  2399. this->command_key());
  2400. // required .message.Base_info base_info = 1;
  2401. total_size += 1 +
  2402. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2403. *this->base_info_);
  2404. } else {
  2405. total_size += RequiredFieldsByteSizeFallback();
  2406. }
  2407. if (_has_bits_[0 / 32] & 252u) {
  2408. // optional .message.Error_manager error_manager = 7;
  2409. if (has_error_manager()) {
  2410. total_size += 1 +
  2411. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2412. *this->error_manager_);
  2413. }
  2414. // optional .message.Dispatch_task_type dispatch_task_type = 3;
  2415. if (has_dispatch_task_type()) {
  2416. total_size += 1 +
  2417. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_task_type());
  2418. }
  2419. // optional int32 dispatch_source = 5;
  2420. if (has_dispatch_source()) {
  2421. total_size += 1 +
  2422. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2423. this->dispatch_source());
  2424. }
  2425. // optional int32 dispatch_destination = 6;
  2426. if (has_dispatch_destination()) {
  2427. total_size += 1 +
  2428. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2429. this->dispatch_destination());
  2430. }
  2431. // optional .message.Dispatch_device_target_status dispatch_device_target_status = 8;
  2432. if (has_dispatch_device_target_status()) {
  2433. total_size += 1 +
  2434. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_target_status());
  2435. }
  2436. // optional .message.Dispatch_device_task_status dispatch_device_task_status = 9;
  2437. if (has_dispatch_device_task_status()) {
  2438. total_size += 1 +
  2439. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_task_status());
  2440. }
  2441. }
  2442. // optional .message.Dispatch_device_type dispatch_device_type = 4;
  2443. if (has_dispatch_device_type()) {
  2444. total_size += 1 +
  2445. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_device_type());
  2446. }
  2447. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2448. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2449. _cached_size_ = cached_size;
  2450. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2451. return total_size;
  2452. }
  2453. void Dispatch_control_response_msg::MergeFrom(const ::google::protobuf::Message& from) {
  2454. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_control_response_msg)
  2455. GOOGLE_DCHECK_NE(&from, this);
  2456. const Dispatch_control_response_msg* source =
  2457. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_control_response_msg>(
  2458. &from);
  2459. if (source == NULL) {
  2460. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_control_response_msg)
  2461. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2462. } else {
  2463. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_control_response_msg)
  2464. MergeFrom(*source);
  2465. }
  2466. }
  2467. void Dispatch_control_response_msg::MergeFrom(const Dispatch_control_response_msg& from) {
  2468. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_control_response_msg)
  2469. GOOGLE_DCHECK_NE(&from, this);
  2470. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2471. ::google::protobuf::uint32 cached_has_bits = 0;
  2472. (void) cached_has_bits;
  2473. cached_has_bits = from._has_bits_[0];
  2474. if (cached_has_bits & 255u) {
  2475. if (cached_has_bits & 0x00000001u) {
  2476. set_has_command_key();
  2477. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  2478. }
  2479. if (cached_has_bits & 0x00000002u) {
  2480. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  2481. }
  2482. if (cached_has_bits & 0x00000004u) {
  2483. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  2484. }
  2485. if (cached_has_bits & 0x00000008u) {
  2486. dispatch_task_type_ = from.dispatch_task_type_;
  2487. }
  2488. if (cached_has_bits & 0x00000010u) {
  2489. dispatch_source_ = from.dispatch_source_;
  2490. }
  2491. if (cached_has_bits & 0x00000020u) {
  2492. dispatch_destination_ = from.dispatch_destination_;
  2493. }
  2494. if (cached_has_bits & 0x00000040u) {
  2495. dispatch_device_target_status_ = from.dispatch_device_target_status_;
  2496. }
  2497. if (cached_has_bits & 0x00000080u) {
  2498. dispatch_device_task_status_ = from.dispatch_device_task_status_;
  2499. }
  2500. _has_bits_[0] |= cached_has_bits;
  2501. }
  2502. if (cached_has_bits & 0x00000100u) {
  2503. set_dispatch_device_type(from.dispatch_device_type());
  2504. }
  2505. }
  2506. void Dispatch_control_response_msg::CopyFrom(const ::google::protobuf::Message& from) {
  2507. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_control_response_msg)
  2508. if (&from == this) return;
  2509. Clear();
  2510. MergeFrom(from);
  2511. }
  2512. void Dispatch_control_response_msg::CopyFrom(const Dispatch_control_response_msg& from) {
  2513. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_control_response_msg)
  2514. if (&from == this) return;
  2515. Clear();
  2516. MergeFrom(from);
  2517. }
  2518. bool Dispatch_control_response_msg::IsInitialized() const {
  2519. if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
  2520. if (has_base_info()) {
  2521. if (!this->base_info_->IsInitialized()) return false;
  2522. }
  2523. if (has_error_manager()) {
  2524. if (!this->error_manager_->IsInitialized()) return false;
  2525. }
  2526. return true;
  2527. }
  2528. void Dispatch_control_response_msg::Swap(Dispatch_control_response_msg* other) {
  2529. if (other == this) return;
  2530. InternalSwap(other);
  2531. }
  2532. void Dispatch_control_response_msg::InternalSwap(Dispatch_control_response_msg* other) {
  2533. using std::swap;
  2534. command_key_.Swap(&other->command_key_);
  2535. swap(base_info_, other->base_info_);
  2536. swap(error_manager_, other->error_manager_);
  2537. swap(dispatch_task_type_, other->dispatch_task_type_);
  2538. swap(dispatch_source_, other->dispatch_source_);
  2539. swap(dispatch_destination_, other->dispatch_destination_);
  2540. swap(dispatch_device_target_status_, other->dispatch_device_target_status_);
  2541. swap(dispatch_device_task_status_, other->dispatch_device_task_status_);
  2542. swap(dispatch_device_type_, other->dispatch_device_type_);
  2543. swap(_has_bits_[0], other->_has_bits_[0]);
  2544. _internal_metadata_.Swap(&other->_internal_metadata_);
  2545. swap(_cached_size_, other->_cached_size_);
  2546. }
  2547. ::google::protobuf::Metadata Dispatch_control_response_msg::GetMetadata() const {
  2548. protobuf_dispatch_5fcontrol_2eproto::protobuf_AssignDescriptorsOnce();
  2549. return ::protobuf_dispatch_5fcontrol_2eproto::file_level_metadata[kIndexInFileMessages];
  2550. }
  2551. // @@protoc_insertion_point(namespace_scope)
  2552. } // namespace message
  2553. // @@protoc_insertion_point(global_scope)