dispatch_control.pb.cc 112 KB

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