dispatch_control.pb.cc 112 KB

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