dispatch_control.pb.cc 106 KB

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