hardware_message.pb.cc 91 KB

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