dispatch_control.pb.cc 110 KB

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