terminal_message.pb.cc 76 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: terminal_message.proto
  3. #include "terminal_message.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/io/coded_stream.h>
  8. #include <google/protobuf/wire_format_lite_inl.h>
  9. #include <google/protobuf/descriptor.h>
  10. #include <google/protobuf/generated_message_reflection.h>
  11. #include <google/protobuf/reflection_ops.h>
  12. #include <google/protobuf/wire_format.h>
  13. // This is a temporary google only hack
  14. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  15. #include "third_party/protobuf/version.h"
  16. #endif
  17. // @@protoc_insertion_point(includes)
  18. namespace protobuf_message_5fbase_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Base_info;
  20. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Car_info;
  21. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Error_manager;
  22. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Id_struct;
  23. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Locate_information;
  24. } // namespace protobuf_message_5fbase_2eproto
  25. namespace message {
  26. class Store_command_request_msgDefaultTypeInternal {
  27. public:
  28. ::google::protobuf::internal::ExplicitlyConstructed<Store_command_request_msg>
  29. _instance;
  30. } _Store_command_request_msg_default_instance_;
  31. class Store_command_response_msgDefaultTypeInternal {
  32. public:
  33. ::google::protobuf::internal::ExplicitlyConstructed<Store_command_response_msg>
  34. _instance;
  35. } _Store_command_response_msg_default_instance_;
  36. class Pickup_command_request_msgDefaultTypeInternal {
  37. public:
  38. ::google::protobuf::internal::ExplicitlyConstructed<Pickup_command_request_msg>
  39. _instance;
  40. } _Pickup_command_request_msg_default_instance_;
  41. class Pickup_command_response_msgDefaultTypeInternal {
  42. public:
  43. ::google::protobuf::internal::ExplicitlyConstructed<Pickup_command_response_msg>
  44. _instance;
  45. } _Pickup_command_response_msg_default_instance_;
  46. } // namespace message
  47. namespace protobuf_terminal_5fmessage_2eproto {
  48. static void InitDefaultsStore_command_request_msg() {
  49. GOOGLE_PROTOBUF_VERIFY_VERSION;
  50. {
  51. void* ptr = &::message::_Store_command_request_msg_default_instance_;
  52. new (ptr) ::message::Store_command_request_msg();
  53. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  54. }
  55. ::message::Store_command_request_msg::InitAsDefaultInstance();
  56. }
  57. ::google::protobuf::internal::SCCInfo<4> scc_info_Store_command_request_msg =
  58. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsStore_command_request_msg}, {
  59. &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,
  60. &protobuf_message_5fbase_2eproto::scc_info_Id_struct.base,
  61. &protobuf_message_5fbase_2eproto::scc_info_Locate_information.base,
  62. &protobuf_message_5fbase_2eproto::scc_info_Car_info.base,}};
  63. static void InitDefaultsStore_command_response_msg() {
  64. GOOGLE_PROTOBUF_VERIFY_VERSION;
  65. {
  66. void* ptr = &::message::_Store_command_response_msg_default_instance_;
  67. new (ptr) ::message::Store_command_response_msg();
  68. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  69. }
  70. ::message::Store_command_response_msg::InitAsDefaultInstance();
  71. }
  72. ::google::protobuf::internal::SCCInfo<3> scc_info_Store_command_response_msg =
  73. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsStore_command_response_msg}, {
  74. &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,
  75. &protobuf_message_5fbase_2eproto::scc_info_Id_struct.base,
  76. &protobuf_message_5fbase_2eproto::scc_info_Error_manager.base,}};
  77. static void InitDefaultsPickup_command_request_msg() {
  78. GOOGLE_PROTOBUF_VERIFY_VERSION;
  79. {
  80. void* ptr = &::message::_Pickup_command_request_msg_default_instance_;
  81. new (ptr) ::message::Pickup_command_request_msg();
  82. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  83. }
  84. ::message::Pickup_command_request_msg::InitAsDefaultInstance();
  85. }
  86. ::google::protobuf::internal::SCCInfo<3> scc_info_Pickup_command_request_msg =
  87. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsPickup_command_request_msg}, {
  88. &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,
  89. &protobuf_message_5fbase_2eproto::scc_info_Id_struct.base,
  90. &protobuf_message_5fbase_2eproto::scc_info_Car_info.base,}};
  91. static void InitDefaultsPickup_command_response_msg() {
  92. GOOGLE_PROTOBUF_VERIFY_VERSION;
  93. {
  94. void* ptr = &::message::_Pickup_command_response_msg_default_instance_;
  95. new (ptr) ::message::Pickup_command_response_msg();
  96. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  97. }
  98. ::message::Pickup_command_response_msg::InitAsDefaultInstance();
  99. }
  100. ::google::protobuf::internal::SCCInfo<3> scc_info_Pickup_command_response_msg =
  101. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsPickup_command_response_msg}, {
  102. &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,
  103. &protobuf_message_5fbase_2eproto::scc_info_Id_struct.base,
  104. &protobuf_message_5fbase_2eproto::scc_info_Error_manager.base,}};
  105. void InitDefaults() {
  106. ::google::protobuf::internal::InitSCC(&scc_info_Store_command_request_msg.base);
  107. ::google::protobuf::internal::InitSCC(&scc_info_Store_command_response_msg.base);
  108. ::google::protobuf::internal::InitSCC(&scc_info_Pickup_command_request_msg.base);
  109. ::google::protobuf::internal::InitSCC(&scc_info_Pickup_command_response_msg.base);
  110. }
  111. ::google::protobuf::Metadata file_level_metadata[4];
  112. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  113. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Store_command_request_msg, _has_bits_),
  114. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Store_command_request_msg, _internal_metadata_),
  115. ~0u, // no _extensions_
  116. ~0u, // no _oneof_case_
  117. ~0u, // no _weak_field_map_
  118. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Store_command_request_msg, base_info_),
  119. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Store_command_request_msg, id_struct_),
  120. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Store_command_request_msg, locate_information_),
  121. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Store_command_request_msg, car_info_),
  122. 0,
  123. 1,
  124. 2,
  125. 3,
  126. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Store_command_response_msg, _has_bits_),
  127. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Store_command_response_msg, _internal_metadata_),
  128. ~0u, // no _extensions_
  129. ~0u, // no _oneof_case_
  130. ~0u, // no _weak_field_map_
  131. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Store_command_response_msg, base_info_),
  132. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Store_command_response_msg, id_struct_),
  133. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Store_command_response_msg, code_),
  134. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Store_command_response_msg, license_),
  135. 1,
  136. 2,
  137. 3,
  138. 0,
  139. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Pickup_command_request_msg, _has_bits_),
  140. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Pickup_command_request_msg, _internal_metadata_),
  141. ~0u, // no _extensions_
  142. ~0u, // no _oneof_case_
  143. ~0u, // no _weak_field_map_
  144. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Pickup_command_request_msg, base_info_),
  145. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Pickup_command_request_msg, id_struct_),
  146. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Pickup_command_request_msg, car_info_),
  147. 0,
  148. 1,
  149. 2,
  150. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Pickup_command_response_msg, _has_bits_),
  151. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Pickup_command_response_msg, _internal_metadata_),
  152. ~0u, // no _extensions_
  153. ~0u, // no _oneof_case_
  154. ~0u, // no _weak_field_map_
  155. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Pickup_command_response_msg, base_info_),
  156. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Pickup_command_response_msg, id_struct_),
  157. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Pickup_command_response_msg, code_),
  158. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Pickup_command_response_msg, license_),
  159. 1,
  160. 2,
  161. 3,
  162. 0,
  163. };
  164. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  165. { 0, 9, sizeof(::message::Store_command_request_msg)},
  166. { 13, 22, sizeof(::message::Store_command_response_msg)},
  167. { 26, 34, sizeof(::message::Pickup_command_request_msg)},
  168. { 37, 46, sizeof(::message::Pickup_command_response_msg)},
  169. };
  170. static ::google::protobuf::Message const * const file_default_instances[] = {
  171. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Store_command_request_msg_default_instance_),
  172. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Store_command_response_msg_default_instance_),
  173. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Pickup_command_request_msg_default_instance_),
  174. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Pickup_command_response_msg_default_instance_),
  175. };
  176. void protobuf_AssignDescriptors() {
  177. AddDescriptors();
  178. AssignDescriptors(
  179. "terminal_message.proto", schemas, file_default_instances, TableStruct::offsets,
  180. file_level_metadata, NULL, NULL);
  181. }
  182. void protobuf_AssignDescriptorsOnce() {
  183. static ::google::protobuf::internal::once_flag once;
  184. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  185. }
  186. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  187. void protobuf_RegisterTypes(const ::std::string&) {
  188. protobuf_AssignDescriptorsOnce();
  189. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4);
  190. }
  191. void AddDescriptorsImpl() {
  192. InitDefaults();
  193. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  194. "\n\026terminal_message.proto\022\007message\032\022messa"
  195. "ge_base.proto\"\307\001\n\031Store_command_request_"
  196. "msg\022%\n\tbase_info\030\001 \002(\0132\022.message.Base_in"
  197. "fo\022%\n\tid_struct\030\002 \002(\0132\022.message.Id_struc"
  198. "t\0227\n\022locate_information\030\003 \002(\0132\033.message."
  199. "Locate_information\022#\n\010car_info\030\004 \002(\0132\021.m"
  200. "essage.Car_info\"\241\001\n\032Store_command_respon"
  201. "se_msg\022%\n\tbase_info\030\001 \002(\0132\022.message.Base"
  202. "_info\022%\n\tid_struct\030\002 \002(\0132\022.message.Id_st"
  203. "ruct\022$\n\004code\030\003 \002(\0132\026.message.Error_manag"
  204. "er\022\017\n\007license\030\004 \001(\t\"\217\001\n\032Pickup_command_r"
  205. "equest_msg\022%\n\tbase_info\030\001 \002(\0132\022.message."
  206. "Base_info\022%\n\tid_struct\030\002 \002(\0132\022.message.I"
  207. "d_struct\022#\n\010car_info\030\004 \002(\0132\021.message.Car"
  208. "_info\"\242\001\n\033Pickup_command_response_msg\022%\n"
  209. "\tbase_info\030\001 \002(\0132\022.message.Base_info\022%\n\t"
  210. "id_struct\030\002 \002(\0132\022.message.Id_struct\022$\n\004c"
  211. "ode\030\003 \002(\0132\026.message.Error_manager\022\017\n\007lic"
  212. "ense\030\004 \001(\t"
  213. };
  214. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  215. descriptor, 730);
  216. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  217. "terminal_message.proto", &protobuf_RegisterTypes);
  218. ::protobuf_message_5fbase_2eproto::AddDescriptors();
  219. }
  220. void AddDescriptors() {
  221. static ::google::protobuf::internal::once_flag once;
  222. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  223. }
  224. // Force AddDescriptors() to be called at dynamic initialization time.
  225. struct StaticDescriptorInitializer {
  226. StaticDescriptorInitializer() {
  227. AddDescriptors();
  228. }
  229. } static_descriptor_initializer;
  230. } // namespace protobuf_terminal_5fmessage_2eproto
  231. namespace message {
  232. // ===================================================================
  233. void Store_command_request_msg::InitAsDefaultInstance() {
  234. ::message::_Store_command_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  235. ::message::Base_info::internal_default_instance());
  236. ::message::_Store_command_request_msg_default_instance_._instance.get_mutable()->id_struct_ = const_cast< ::message::Id_struct*>(
  237. ::message::Id_struct::internal_default_instance());
  238. ::message::_Store_command_request_msg_default_instance_._instance.get_mutable()->locate_information_ = const_cast< ::message::Locate_information*>(
  239. ::message::Locate_information::internal_default_instance());
  240. ::message::_Store_command_request_msg_default_instance_._instance.get_mutable()->car_info_ = const_cast< ::message::Car_info*>(
  241. ::message::Car_info::internal_default_instance());
  242. }
  243. void Store_command_request_msg::clear_base_info() {
  244. if (base_info_ != NULL) base_info_->Clear();
  245. clear_has_base_info();
  246. }
  247. void Store_command_request_msg::clear_id_struct() {
  248. if (id_struct_ != NULL) id_struct_->Clear();
  249. clear_has_id_struct();
  250. }
  251. void Store_command_request_msg::clear_locate_information() {
  252. if (locate_information_ != NULL) locate_information_->Clear();
  253. clear_has_locate_information();
  254. }
  255. void Store_command_request_msg::clear_car_info() {
  256. if (car_info_ != NULL) car_info_->Clear();
  257. clear_has_car_info();
  258. }
  259. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  260. const int Store_command_request_msg::kBaseInfoFieldNumber;
  261. const int Store_command_request_msg::kIdStructFieldNumber;
  262. const int Store_command_request_msg::kLocateInformationFieldNumber;
  263. const int Store_command_request_msg::kCarInfoFieldNumber;
  264. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  265. Store_command_request_msg::Store_command_request_msg()
  266. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  267. ::google::protobuf::internal::InitSCC(
  268. &protobuf_terminal_5fmessage_2eproto::scc_info_Store_command_request_msg.base);
  269. SharedCtor();
  270. // @@protoc_insertion_point(constructor:message.Store_command_request_msg)
  271. }
  272. Store_command_request_msg::Store_command_request_msg(const Store_command_request_msg& from)
  273. : ::google::protobuf::Message(),
  274. _internal_metadata_(NULL),
  275. _has_bits_(from._has_bits_) {
  276. _internal_metadata_.MergeFrom(from._internal_metadata_);
  277. if (from.has_base_info()) {
  278. base_info_ = new ::message::Base_info(*from.base_info_);
  279. } else {
  280. base_info_ = NULL;
  281. }
  282. if (from.has_id_struct()) {
  283. id_struct_ = new ::message::Id_struct(*from.id_struct_);
  284. } else {
  285. id_struct_ = NULL;
  286. }
  287. if (from.has_locate_information()) {
  288. locate_information_ = new ::message::Locate_information(*from.locate_information_);
  289. } else {
  290. locate_information_ = NULL;
  291. }
  292. if (from.has_car_info()) {
  293. car_info_ = new ::message::Car_info(*from.car_info_);
  294. } else {
  295. car_info_ = NULL;
  296. }
  297. // @@protoc_insertion_point(copy_constructor:message.Store_command_request_msg)
  298. }
  299. void Store_command_request_msg::SharedCtor() {
  300. ::memset(&base_info_, 0, static_cast<size_t>(
  301. reinterpret_cast<char*>(&car_info_) -
  302. reinterpret_cast<char*>(&base_info_)) + sizeof(car_info_));
  303. }
  304. Store_command_request_msg::~Store_command_request_msg() {
  305. // @@protoc_insertion_point(destructor:message.Store_command_request_msg)
  306. SharedDtor();
  307. }
  308. void Store_command_request_msg::SharedDtor() {
  309. if (this != internal_default_instance()) delete base_info_;
  310. if (this != internal_default_instance()) delete id_struct_;
  311. if (this != internal_default_instance()) delete locate_information_;
  312. if (this != internal_default_instance()) delete car_info_;
  313. }
  314. void Store_command_request_msg::SetCachedSize(int size) const {
  315. _cached_size_.Set(size);
  316. }
  317. const ::google::protobuf::Descriptor* Store_command_request_msg::descriptor() {
  318. ::protobuf_terminal_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  319. return ::protobuf_terminal_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  320. }
  321. const Store_command_request_msg& Store_command_request_msg::default_instance() {
  322. ::google::protobuf::internal::InitSCC(&protobuf_terminal_5fmessage_2eproto::scc_info_Store_command_request_msg.base);
  323. return *internal_default_instance();
  324. }
  325. void Store_command_request_msg::Clear() {
  326. // @@protoc_insertion_point(message_clear_start:message.Store_command_request_msg)
  327. ::google::protobuf::uint32 cached_has_bits = 0;
  328. // Prevent compiler warnings about cached_has_bits being unused
  329. (void) cached_has_bits;
  330. cached_has_bits = _has_bits_[0];
  331. if (cached_has_bits & 15u) {
  332. if (cached_has_bits & 0x00000001u) {
  333. GOOGLE_DCHECK(base_info_ != NULL);
  334. base_info_->Clear();
  335. }
  336. if (cached_has_bits & 0x00000002u) {
  337. GOOGLE_DCHECK(id_struct_ != NULL);
  338. id_struct_->Clear();
  339. }
  340. if (cached_has_bits & 0x00000004u) {
  341. GOOGLE_DCHECK(locate_information_ != NULL);
  342. locate_information_->Clear();
  343. }
  344. if (cached_has_bits & 0x00000008u) {
  345. GOOGLE_DCHECK(car_info_ != NULL);
  346. car_info_->Clear();
  347. }
  348. }
  349. _has_bits_.Clear();
  350. _internal_metadata_.Clear();
  351. }
  352. bool Store_command_request_msg::MergePartialFromCodedStream(
  353. ::google::protobuf::io::CodedInputStream* input) {
  354. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  355. ::google::protobuf::uint32 tag;
  356. // @@protoc_insertion_point(parse_start:message.Store_command_request_msg)
  357. for (;;) {
  358. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  359. tag = p.first;
  360. if (!p.second) goto handle_unusual;
  361. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  362. // required .message.Base_info base_info = 1;
  363. case 1: {
  364. if (static_cast< ::google::protobuf::uint8>(tag) ==
  365. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  366. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  367. input, mutable_base_info()));
  368. } else {
  369. goto handle_unusual;
  370. }
  371. break;
  372. }
  373. // required .message.Id_struct id_struct = 2;
  374. case 2: {
  375. if (static_cast< ::google::protobuf::uint8>(tag) ==
  376. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  377. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  378. input, mutable_id_struct()));
  379. } else {
  380. goto handle_unusual;
  381. }
  382. break;
  383. }
  384. // required .message.Locate_information locate_information = 3;
  385. case 3: {
  386. if (static_cast< ::google::protobuf::uint8>(tag) ==
  387. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  388. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  389. input, mutable_locate_information()));
  390. } else {
  391. goto handle_unusual;
  392. }
  393. break;
  394. }
  395. // required .message.Car_info car_info = 4;
  396. case 4: {
  397. if (static_cast< ::google::protobuf::uint8>(tag) ==
  398. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  399. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  400. input, mutable_car_info()));
  401. } else {
  402. goto handle_unusual;
  403. }
  404. break;
  405. }
  406. default: {
  407. handle_unusual:
  408. if (tag == 0) {
  409. goto success;
  410. }
  411. DO_(::google::protobuf::internal::WireFormat::SkipField(
  412. input, tag, _internal_metadata_.mutable_unknown_fields()));
  413. break;
  414. }
  415. }
  416. }
  417. success:
  418. // @@protoc_insertion_point(parse_success:message.Store_command_request_msg)
  419. return true;
  420. failure:
  421. // @@protoc_insertion_point(parse_failure:message.Store_command_request_msg)
  422. return false;
  423. #undef DO_
  424. }
  425. void Store_command_request_msg::SerializeWithCachedSizes(
  426. ::google::protobuf::io::CodedOutputStream* output) const {
  427. // @@protoc_insertion_point(serialize_start:message.Store_command_request_msg)
  428. ::google::protobuf::uint32 cached_has_bits = 0;
  429. (void) cached_has_bits;
  430. cached_has_bits = _has_bits_[0];
  431. // required .message.Base_info base_info = 1;
  432. if (cached_has_bits & 0x00000001u) {
  433. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  434. 1, this->_internal_base_info(), output);
  435. }
  436. // required .message.Id_struct id_struct = 2;
  437. if (cached_has_bits & 0x00000002u) {
  438. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  439. 2, this->_internal_id_struct(), output);
  440. }
  441. // required .message.Locate_information locate_information = 3;
  442. if (cached_has_bits & 0x00000004u) {
  443. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  444. 3, this->_internal_locate_information(), output);
  445. }
  446. // required .message.Car_info car_info = 4;
  447. if (cached_has_bits & 0x00000008u) {
  448. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  449. 4, this->_internal_car_info(), output);
  450. }
  451. if (_internal_metadata_.have_unknown_fields()) {
  452. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  453. _internal_metadata_.unknown_fields(), output);
  454. }
  455. // @@protoc_insertion_point(serialize_end:message.Store_command_request_msg)
  456. }
  457. ::google::protobuf::uint8* Store_command_request_msg::InternalSerializeWithCachedSizesToArray(
  458. bool deterministic, ::google::protobuf::uint8* target) const {
  459. (void)deterministic; // Unused
  460. // @@protoc_insertion_point(serialize_to_array_start:message.Store_command_request_msg)
  461. ::google::protobuf::uint32 cached_has_bits = 0;
  462. (void) cached_has_bits;
  463. cached_has_bits = _has_bits_[0];
  464. // required .message.Base_info base_info = 1;
  465. if (cached_has_bits & 0x00000001u) {
  466. target = ::google::protobuf::internal::WireFormatLite::
  467. InternalWriteMessageToArray(
  468. 1, this->_internal_base_info(), deterministic, target);
  469. }
  470. // required .message.Id_struct id_struct = 2;
  471. if (cached_has_bits & 0x00000002u) {
  472. target = ::google::protobuf::internal::WireFormatLite::
  473. InternalWriteMessageToArray(
  474. 2, this->_internal_id_struct(), deterministic, target);
  475. }
  476. // required .message.Locate_information locate_information = 3;
  477. if (cached_has_bits & 0x00000004u) {
  478. target = ::google::protobuf::internal::WireFormatLite::
  479. InternalWriteMessageToArray(
  480. 3, this->_internal_locate_information(), deterministic, target);
  481. }
  482. // required .message.Car_info car_info = 4;
  483. if (cached_has_bits & 0x00000008u) {
  484. target = ::google::protobuf::internal::WireFormatLite::
  485. InternalWriteMessageToArray(
  486. 4, this->_internal_car_info(), deterministic, target);
  487. }
  488. if (_internal_metadata_.have_unknown_fields()) {
  489. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  490. _internal_metadata_.unknown_fields(), target);
  491. }
  492. // @@protoc_insertion_point(serialize_to_array_end:message.Store_command_request_msg)
  493. return target;
  494. }
  495. size_t Store_command_request_msg::RequiredFieldsByteSizeFallback() const {
  496. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Store_command_request_msg)
  497. size_t total_size = 0;
  498. if (has_base_info()) {
  499. // required .message.Base_info base_info = 1;
  500. total_size += 1 +
  501. ::google::protobuf::internal::WireFormatLite::MessageSize(
  502. *base_info_);
  503. }
  504. if (has_id_struct()) {
  505. // required .message.Id_struct id_struct = 2;
  506. total_size += 1 +
  507. ::google::protobuf::internal::WireFormatLite::MessageSize(
  508. *id_struct_);
  509. }
  510. if (has_locate_information()) {
  511. // required .message.Locate_information locate_information = 3;
  512. total_size += 1 +
  513. ::google::protobuf::internal::WireFormatLite::MessageSize(
  514. *locate_information_);
  515. }
  516. if (has_car_info()) {
  517. // required .message.Car_info car_info = 4;
  518. total_size += 1 +
  519. ::google::protobuf::internal::WireFormatLite::MessageSize(
  520. *car_info_);
  521. }
  522. return total_size;
  523. }
  524. size_t Store_command_request_msg::ByteSizeLong() const {
  525. // @@protoc_insertion_point(message_byte_size_start:message.Store_command_request_msg)
  526. size_t total_size = 0;
  527. if (_internal_metadata_.have_unknown_fields()) {
  528. total_size +=
  529. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  530. _internal_metadata_.unknown_fields());
  531. }
  532. if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
  533. // required .message.Base_info base_info = 1;
  534. total_size += 1 +
  535. ::google::protobuf::internal::WireFormatLite::MessageSize(
  536. *base_info_);
  537. // required .message.Id_struct id_struct = 2;
  538. total_size += 1 +
  539. ::google::protobuf::internal::WireFormatLite::MessageSize(
  540. *id_struct_);
  541. // required .message.Locate_information locate_information = 3;
  542. total_size += 1 +
  543. ::google::protobuf::internal::WireFormatLite::MessageSize(
  544. *locate_information_);
  545. // required .message.Car_info car_info = 4;
  546. total_size += 1 +
  547. ::google::protobuf::internal::WireFormatLite::MessageSize(
  548. *car_info_);
  549. } else {
  550. total_size += RequiredFieldsByteSizeFallback();
  551. }
  552. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  553. SetCachedSize(cached_size);
  554. return total_size;
  555. }
  556. void Store_command_request_msg::MergeFrom(const ::google::protobuf::Message& from) {
  557. // @@protoc_insertion_point(generalized_merge_from_start:message.Store_command_request_msg)
  558. GOOGLE_DCHECK_NE(&from, this);
  559. const Store_command_request_msg* source =
  560. ::google::protobuf::internal::DynamicCastToGenerated<const Store_command_request_msg>(
  561. &from);
  562. if (source == NULL) {
  563. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Store_command_request_msg)
  564. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  565. } else {
  566. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Store_command_request_msg)
  567. MergeFrom(*source);
  568. }
  569. }
  570. void Store_command_request_msg::MergeFrom(const Store_command_request_msg& from) {
  571. // @@protoc_insertion_point(class_specific_merge_from_start:message.Store_command_request_msg)
  572. GOOGLE_DCHECK_NE(&from, this);
  573. _internal_metadata_.MergeFrom(from._internal_metadata_);
  574. ::google::protobuf::uint32 cached_has_bits = 0;
  575. (void) cached_has_bits;
  576. cached_has_bits = from._has_bits_[0];
  577. if (cached_has_bits & 15u) {
  578. if (cached_has_bits & 0x00000001u) {
  579. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  580. }
  581. if (cached_has_bits & 0x00000002u) {
  582. mutable_id_struct()->::message::Id_struct::MergeFrom(from.id_struct());
  583. }
  584. if (cached_has_bits & 0x00000004u) {
  585. mutable_locate_information()->::message::Locate_information::MergeFrom(from.locate_information());
  586. }
  587. if (cached_has_bits & 0x00000008u) {
  588. mutable_car_info()->::message::Car_info::MergeFrom(from.car_info());
  589. }
  590. }
  591. }
  592. void Store_command_request_msg::CopyFrom(const ::google::protobuf::Message& from) {
  593. // @@protoc_insertion_point(generalized_copy_from_start:message.Store_command_request_msg)
  594. if (&from == this) return;
  595. Clear();
  596. MergeFrom(from);
  597. }
  598. void Store_command_request_msg::CopyFrom(const Store_command_request_msg& from) {
  599. // @@protoc_insertion_point(class_specific_copy_from_start:message.Store_command_request_msg)
  600. if (&from == this) return;
  601. Clear();
  602. MergeFrom(from);
  603. }
  604. bool Store_command_request_msg::IsInitialized() const {
  605. if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
  606. if (has_base_info()) {
  607. if (!this->base_info_->IsInitialized()) return false;
  608. }
  609. return true;
  610. }
  611. void Store_command_request_msg::Swap(Store_command_request_msg* other) {
  612. if (other == this) return;
  613. InternalSwap(other);
  614. }
  615. void Store_command_request_msg::InternalSwap(Store_command_request_msg* other) {
  616. using std::swap;
  617. swap(base_info_, other->base_info_);
  618. swap(id_struct_, other->id_struct_);
  619. swap(locate_information_, other->locate_information_);
  620. swap(car_info_, other->car_info_);
  621. swap(_has_bits_[0], other->_has_bits_[0]);
  622. _internal_metadata_.Swap(&other->_internal_metadata_);
  623. }
  624. ::google::protobuf::Metadata Store_command_request_msg::GetMetadata() const {
  625. protobuf_terminal_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  626. return ::protobuf_terminal_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  627. }
  628. // ===================================================================
  629. void Store_command_response_msg::InitAsDefaultInstance() {
  630. ::message::_Store_command_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  631. ::message::Base_info::internal_default_instance());
  632. ::message::_Store_command_response_msg_default_instance_._instance.get_mutable()->id_struct_ = const_cast< ::message::Id_struct*>(
  633. ::message::Id_struct::internal_default_instance());
  634. ::message::_Store_command_response_msg_default_instance_._instance.get_mutable()->code_ = const_cast< ::message::Error_manager*>(
  635. ::message::Error_manager::internal_default_instance());
  636. }
  637. void Store_command_response_msg::clear_base_info() {
  638. if (base_info_ != NULL) base_info_->Clear();
  639. clear_has_base_info();
  640. }
  641. void Store_command_response_msg::clear_id_struct() {
  642. if (id_struct_ != NULL) id_struct_->Clear();
  643. clear_has_id_struct();
  644. }
  645. void Store_command_response_msg::clear_code() {
  646. if (code_ != NULL) code_->Clear();
  647. clear_has_code();
  648. }
  649. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  650. const int Store_command_response_msg::kBaseInfoFieldNumber;
  651. const int Store_command_response_msg::kIdStructFieldNumber;
  652. const int Store_command_response_msg::kCodeFieldNumber;
  653. const int Store_command_response_msg::kLicenseFieldNumber;
  654. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  655. Store_command_response_msg::Store_command_response_msg()
  656. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  657. ::google::protobuf::internal::InitSCC(
  658. &protobuf_terminal_5fmessage_2eproto::scc_info_Store_command_response_msg.base);
  659. SharedCtor();
  660. // @@protoc_insertion_point(constructor:message.Store_command_response_msg)
  661. }
  662. Store_command_response_msg::Store_command_response_msg(const Store_command_response_msg& from)
  663. : ::google::protobuf::Message(),
  664. _internal_metadata_(NULL),
  665. _has_bits_(from._has_bits_) {
  666. _internal_metadata_.MergeFrom(from._internal_metadata_);
  667. license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  668. if (from.has_license()) {
  669. license_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.license_);
  670. }
  671. if (from.has_base_info()) {
  672. base_info_ = new ::message::Base_info(*from.base_info_);
  673. } else {
  674. base_info_ = NULL;
  675. }
  676. if (from.has_id_struct()) {
  677. id_struct_ = new ::message::Id_struct(*from.id_struct_);
  678. } else {
  679. id_struct_ = NULL;
  680. }
  681. if (from.has_code()) {
  682. code_ = new ::message::Error_manager(*from.code_);
  683. } else {
  684. code_ = NULL;
  685. }
  686. // @@protoc_insertion_point(copy_constructor:message.Store_command_response_msg)
  687. }
  688. void Store_command_response_msg::SharedCtor() {
  689. license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  690. ::memset(&base_info_, 0, static_cast<size_t>(
  691. reinterpret_cast<char*>(&code_) -
  692. reinterpret_cast<char*>(&base_info_)) + sizeof(code_));
  693. }
  694. Store_command_response_msg::~Store_command_response_msg() {
  695. // @@protoc_insertion_point(destructor:message.Store_command_response_msg)
  696. SharedDtor();
  697. }
  698. void Store_command_response_msg::SharedDtor() {
  699. license_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  700. if (this != internal_default_instance()) delete base_info_;
  701. if (this != internal_default_instance()) delete id_struct_;
  702. if (this != internal_default_instance()) delete code_;
  703. }
  704. void Store_command_response_msg::SetCachedSize(int size) const {
  705. _cached_size_.Set(size);
  706. }
  707. const ::google::protobuf::Descriptor* Store_command_response_msg::descriptor() {
  708. ::protobuf_terminal_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  709. return ::protobuf_terminal_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  710. }
  711. const Store_command_response_msg& Store_command_response_msg::default_instance() {
  712. ::google::protobuf::internal::InitSCC(&protobuf_terminal_5fmessage_2eproto::scc_info_Store_command_response_msg.base);
  713. return *internal_default_instance();
  714. }
  715. void Store_command_response_msg::Clear() {
  716. // @@protoc_insertion_point(message_clear_start:message.Store_command_response_msg)
  717. ::google::protobuf::uint32 cached_has_bits = 0;
  718. // Prevent compiler warnings about cached_has_bits being unused
  719. (void) cached_has_bits;
  720. cached_has_bits = _has_bits_[0];
  721. if (cached_has_bits & 15u) {
  722. if (cached_has_bits & 0x00000001u) {
  723. license_.ClearNonDefaultToEmptyNoArena();
  724. }
  725. if (cached_has_bits & 0x00000002u) {
  726. GOOGLE_DCHECK(base_info_ != NULL);
  727. base_info_->Clear();
  728. }
  729. if (cached_has_bits & 0x00000004u) {
  730. GOOGLE_DCHECK(id_struct_ != NULL);
  731. id_struct_->Clear();
  732. }
  733. if (cached_has_bits & 0x00000008u) {
  734. GOOGLE_DCHECK(code_ != NULL);
  735. code_->Clear();
  736. }
  737. }
  738. _has_bits_.Clear();
  739. _internal_metadata_.Clear();
  740. }
  741. bool Store_command_response_msg::MergePartialFromCodedStream(
  742. ::google::protobuf::io::CodedInputStream* input) {
  743. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  744. ::google::protobuf::uint32 tag;
  745. // @@protoc_insertion_point(parse_start:message.Store_command_response_msg)
  746. for (;;) {
  747. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  748. tag = p.first;
  749. if (!p.second) goto handle_unusual;
  750. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  751. // required .message.Base_info base_info = 1;
  752. case 1: {
  753. if (static_cast< ::google::protobuf::uint8>(tag) ==
  754. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  755. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  756. input, mutable_base_info()));
  757. } else {
  758. goto handle_unusual;
  759. }
  760. break;
  761. }
  762. // required .message.Id_struct id_struct = 2;
  763. case 2: {
  764. if (static_cast< ::google::protobuf::uint8>(tag) ==
  765. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  766. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  767. input, mutable_id_struct()));
  768. } else {
  769. goto handle_unusual;
  770. }
  771. break;
  772. }
  773. // required .message.Error_manager code = 3;
  774. case 3: {
  775. if (static_cast< ::google::protobuf::uint8>(tag) ==
  776. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  777. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  778. input, mutable_code()));
  779. } else {
  780. goto handle_unusual;
  781. }
  782. break;
  783. }
  784. // optional string license = 4;
  785. case 4: {
  786. if (static_cast< ::google::protobuf::uint8>(tag) ==
  787. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  788. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  789. input, this->mutable_license()));
  790. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  791. this->license().data(), static_cast<int>(this->license().length()),
  792. ::google::protobuf::internal::WireFormat::PARSE,
  793. "message.Store_command_response_msg.license");
  794. } else {
  795. goto handle_unusual;
  796. }
  797. break;
  798. }
  799. default: {
  800. handle_unusual:
  801. if (tag == 0) {
  802. goto success;
  803. }
  804. DO_(::google::protobuf::internal::WireFormat::SkipField(
  805. input, tag, _internal_metadata_.mutable_unknown_fields()));
  806. break;
  807. }
  808. }
  809. }
  810. success:
  811. // @@protoc_insertion_point(parse_success:message.Store_command_response_msg)
  812. return true;
  813. failure:
  814. // @@protoc_insertion_point(parse_failure:message.Store_command_response_msg)
  815. return false;
  816. #undef DO_
  817. }
  818. void Store_command_response_msg::SerializeWithCachedSizes(
  819. ::google::protobuf::io::CodedOutputStream* output) const {
  820. // @@protoc_insertion_point(serialize_start:message.Store_command_response_msg)
  821. ::google::protobuf::uint32 cached_has_bits = 0;
  822. (void) cached_has_bits;
  823. cached_has_bits = _has_bits_[0];
  824. // required .message.Base_info base_info = 1;
  825. if (cached_has_bits & 0x00000002u) {
  826. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  827. 1, this->_internal_base_info(), output);
  828. }
  829. // required .message.Id_struct id_struct = 2;
  830. if (cached_has_bits & 0x00000004u) {
  831. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  832. 2, this->_internal_id_struct(), output);
  833. }
  834. // required .message.Error_manager code = 3;
  835. if (cached_has_bits & 0x00000008u) {
  836. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  837. 3, this->_internal_code(), output);
  838. }
  839. // optional string license = 4;
  840. if (cached_has_bits & 0x00000001u) {
  841. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  842. this->license().data(), static_cast<int>(this->license().length()),
  843. ::google::protobuf::internal::WireFormat::SERIALIZE,
  844. "message.Store_command_response_msg.license");
  845. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  846. 4, this->license(), output);
  847. }
  848. if (_internal_metadata_.have_unknown_fields()) {
  849. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  850. _internal_metadata_.unknown_fields(), output);
  851. }
  852. // @@protoc_insertion_point(serialize_end:message.Store_command_response_msg)
  853. }
  854. ::google::protobuf::uint8* Store_command_response_msg::InternalSerializeWithCachedSizesToArray(
  855. bool deterministic, ::google::protobuf::uint8* target) const {
  856. (void)deterministic; // Unused
  857. // @@protoc_insertion_point(serialize_to_array_start:message.Store_command_response_msg)
  858. ::google::protobuf::uint32 cached_has_bits = 0;
  859. (void) cached_has_bits;
  860. cached_has_bits = _has_bits_[0];
  861. // required .message.Base_info base_info = 1;
  862. if (cached_has_bits & 0x00000002u) {
  863. target = ::google::protobuf::internal::WireFormatLite::
  864. InternalWriteMessageToArray(
  865. 1, this->_internal_base_info(), deterministic, target);
  866. }
  867. // required .message.Id_struct id_struct = 2;
  868. if (cached_has_bits & 0x00000004u) {
  869. target = ::google::protobuf::internal::WireFormatLite::
  870. InternalWriteMessageToArray(
  871. 2, this->_internal_id_struct(), deterministic, target);
  872. }
  873. // required .message.Error_manager code = 3;
  874. if (cached_has_bits & 0x00000008u) {
  875. target = ::google::protobuf::internal::WireFormatLite::
  876. InternalWriteMessageToArray(
  877. 3, this->_internal_code(), deterministic, target);
  878. }
  879. // optional string license = 4;
  880. if (cached_has_bits & 0x00000001u) {
  881. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  882. this->license().data(), static_cast<int>(this->license().length()),
  883. ::google::protobuf::internal::WireFormat::SERIALIZE,
  884. "message.Store_command_response_msg.license");
  885. target =
  886. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  887. 4, this->license(), target);
  888. }
  889. if (_internal_metadata_.have_unknown_fields()) {
  890. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  891. _internal_metadata_.unknown_fields(), target);
  892. }
  893. // @@protoc_insertion_point(serialize_to_array_end:message.Store_command_response_msg)
  894. return target;
  895. }
  896. size_t Store_command_response_msg::RequiredFieldsByteSizeFallback() const {
  897. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Store_command_response_msg)
  898. size_t total_size = 0;
  899. if (has_base_info()) {
  900. // required .message.Base_info base_info = 1;
  901. total_size += 1 +
  902. ::google::protobuf::internal::WireFormatLite::MessageSize(
  903. *base_info_);
  904. }
  905. if (has_id_struct()) {
  906. // required .message.Id_struct id_struct = 2;
  907. total_size += 1 +
  908. ::google::protobuf::internal::WireFormatLite::MessageSize(
  909. *id_struct_);
  910. }
  911. if (has_code()) {
  912. // required .message.Error_manager code = 3;
  913. total_size += 1 +
  914. ::google::protobuf::internal::WireFormatLite::MessageSize(
  915. *code_);
  916. }
  917. return total_size;
  918. }
  919. size_t Store_command_response_msg::ByteSizeLong() const {
  920. // @@protoc_insertion_point(message_byte_size_start:message.Store_command_response_msg)
  921. size_t total_size = 0;
  922. if (_internal_metadata_.have_unknown_fields()) {
  923. total_size +=
  924. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  925. _internal_metadata_.unknown_fields());
  926. }
  927. if (((_has_bits_[0] & 0x0000000e) ^ 0x0000000e) == 0) { // All required fields are present.
  928. // required .message.Base_info base_info = 1;
  929. total_size += 1 +
  930. ::google::protobuf::internal::WireFormatLite::MessageSize(
  931. *base_info_);
  932. // required .message.Id_struct id_struct = 2;
  933. total_size += 1 +
  934. ::google::protobuf::internal::WireFormatLite::MessageSize(
  935. *id_struct_);
  936. // required .message.Error_manager code = 3;
  937. total_size += 1 +
  938. ::google::protobuf::internal::WireFormatLite::MessageSize(
  939. *code_);
  940. } else {
  941. total_size += RequiredFieldsByteSizeFallback();
  942. }
  943. // optional string license = 4;
  944. if (has_license()) {
  945. total_size += 1 +
  946. ::google::protobuf::internal::WireFormatLite::StringSize(
  947. this->license());
  948. }
  949. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  950. SetCachedSize(cached_size);
  951. return total_size;
  952. }
  953. void Store_command_response_msg::MergeFrom(const ::google::protobuf::Message& from) {
  954. // @@protoc_insertion_point(generalized_merge_from_start:message.Store_command_response_msg)
  955. GOOGLE_DCHECK_NE(&from, this);
  956. const Store_command_response_msg* source =
  957. ::google::protobuf::internal::DynamicCastToGenerated<const Store_command_response_msg>(
  958. &from);
  959. if (source == NULL) {
  960. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Store_command_response_msg)
  961. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  962. } else {
  963. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Store_command_response_msg)
  964. MergeFrom(*source);
  965. }
  966. }
  967. void Store_command_response_msg::MergeFrom(const Store_command_response_msg& from) {
  968. // @@protoc_insertion_point(class_specific_merge_from_start:message.Store_command_response_msg)
  969. GOOGLE_DCHECK_NE(&from, this);
  970. _internal_metadata_.MergeFrom(from._internal_metadata_);
  971. ::google::protobuf::uint32 cached_has_bits = 0;
  972. (void) cached_has_bits;
  973. cached_has_bits = from._has_bits_[0];
  974. if (cached_has_bits & 15u) {
  975. if (cached_has_bits & 0x00000001u) {
  976. set_has_license();
  977. license_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.license_);
  978. }
  979. if (cached_has_bits & 0x00000002u) {
  980. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  981. }
  982. if (cached_has_bits & 0x00000004u) {
  983. mutable_id_struct()->::message::Id_struct::MergeFrom(from.id_struct());
  984. }
  985. if (cached_has_bits & 0x00000008u) {
  986. mutable_code()->::message::Error_manager::MergeFrom(from.code());
  987. }
  988. }
  989. }
  990. void Store_command_response_msg::CopyFrom(const ::google::protobuf::Message& from) {
  991. // @@protoc_insertion_point(generalized_copy_from_start:message.Store_command_response_msg)
  992. if (&from == this) return;
  993. Clear();
  994. MergeFrom(from);
  995. }
  996. void Store_command_response_msg::CopyFrom(const Store_command_response_msg& from) {
  997. // @@protoc_insertion_point(class_specific_copy_from_start:message.Store_command_response_msg)
  998. if (&from == this) return;
  999. Clear();
  1000. MergeFrom(from);
  1001. }
  1002. bool Store_command_response_msg::IsInitialized() const {
  1003. if ((_has_bits_[0] & 0x0000000e) != 0x0000000e) return false;
  1004. if (has_base_info()) {
  1005. if (!this->base_info_->IsInitialized()) return false;
  1006. }
  1007. if (has_code()) {
  1008. if (!this->code_->IsInitialized()) return false;
  1009. }
  1010. return true;
  1011. }
  1012. void Store_command_response_msg::Swap(Store_command_response_msg* other) {
  1013. if (other == this) return;
  1014. InternalSwap(other);
  1015. }
  1016. void Store_command_response_msg::InternalSwap(Store_command_response_msg* other) {
  1017. using std::swap;
  1018. license_.Swap(&other->license_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1019. GetArenaNoVirtual());
  1020. swap(base_info_, other->base_info_);
  1021. swap(id_struct_, other->id_struct_);
  1022. swap(code_, other->code_);
  1023. swap(_has_bits_[0], other->_has_bits_[0]);
  1024. _internal_metadata_.Swap(&other->_internal_metadata_);
  1025. }
  1026. ::google::protobuf::Metadata Store_command_response_msg::GetMetadata() const {
  1027. protobuf_terminal_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1028. return ::protobuf_terminal_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1029. }
  1030. // ===================================================================
  1031. void Pickup_command_request_msg::InitAsDefaultInstance() {
  1032. ::message::_Pickup_command_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1033. ::message::Base_info::internal_default_instance());
  1034. ::message::_Pickup_command_request_msg_default_instance_._instance.get_mutable()->id_struct_ = const_cast< ::message::Id_struct*>(
  1035. ::message::Id_struct::internal_default_instance());
  1036. ::message::_Pickup_command_request_msg_default_instance_._instance.get_mutable()->car_info_ = const_cast< ::message::Car_info*>(
  1037. ::message::Car_info::internal_default_instance());
  1038. }
  1039. void Pickup_command_request_msg::clear_base_info() {
  1040. if (base_info_ != NULL) base_info_->Clear();
  1041. clear_has_base_info();
  1042. }
  1043. void Pickup_command_request_msg::clear_id_struct() {
  1044. if (id_struct_ != NULL) id_struct_->Clear();
  1045. clear_has_id_struct();
  1046. }
  1047. void Pickup_command_request_msg::clear_car_info() {
  1048. if (car_info_ != NULL) car_info_->Clear();
  1049. clear_has_car_info();
  1050. }
  1051. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1052. const int Pickup_command_request_msg::kBaseInfoFieldNumber;
  1053. const int Pickup_command_request_msg::kIdStructFieldNumber;
  1054. const int Pickup_command_request_msg::kCarInfoFieldNumber;
  1055. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1056. Pickup_command_request_msg::Pickup_command_request_msg()
  1057. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1058. ::google::protobuf::internal::InitSCC(
  1059. &protobuf_terminal_5fmessage_2eproto::scc_info_Pickup_command_request_msg.base);
  1060. SharedCtor();
  1061. // @@protoc_insertion_point(constructor:message.Pickup_command_request_msg)
  1062. }
  1063. Pickup_command_request_msg::Pickup_command_request_msg(const Pickup_command_request_msg& from)
  1064. : ::google::protobuf::Message(),
  1065. _internal_metadata_(NULL),
  1066. _has_bits_(from._has_bits_) {
  1067. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1068. if (from.has_base_info()) {
  1069. base_info_ = new ::message::Base_info(*from.base_info_);
  1070. } else {
  1071. base_info_ = NULL;
  1072. }
  1073. if (from.has_id_struct()) {
  1074. id_struct_ = new ::message::Id_struct(*from.id_struct_);
  1075. } else {
  1076. id_struct_ = NULL;
  1077. }
  1078. if (from.has_car_info()) {
  1079. car_info_ = new ::message::Car_info(*from.car_info_);
  1080. } else {
  1081. car_info_ = NULL;
  1082. }
  1083. // @@protoc_insertion_point(copy_constructor:message.Pickup_command_request_msg)
  1084. }
  1085. void Pickup_command_request_msg::SharedCtor() {
  1086. ::memset(&base_info_, 0, static_cast<size_t>(
  1087. reinterpret_cast<char*>(&car_info_) -
  1088. reinterpret_cast<char*>(&base_info_)) + sizeof(car_info_));
  1089. }
  1090. Pickup_command_request_msg::~Pickup_command_request_msg() {
  1091. // @@protoc_insertion_point(destructor:message.Pickup_command_request_msg)
  1092. SharedDtor();
  1093. }
  1094. void Pickup_command_request_msg::SharedDtor() {
  1095. if (this != internal_default_instance()) delete base_info_;
  1096. if (this != internal_default_instance()) delete id_struct_;
  1097. if (this != internal_default_instance()) delete car_info_;
  1098. }
  1099. void Pickup_command_request_msg::SetCachedSize(int size) const {
  1100. _cached_size_.Set(size);
  1101. }
  1102. const ::google::protobuf::Descriptor* Pickup_command_request_msg::descriptor() {
  1103. ::protobuf_terminal_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1104. return ::protobuf_terminal_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1105. }
  1106. const Pickup_command_request_msg& Pickup_command_request_msg::default_instance() {
  1107. ::google::protobuf::internal::InitSCC(&protobuf_terminal_5fmessage_2eproto::scc_info_Pickup_command_request_msg.base);
  1108. return *internal_default_instance();
  1109. }
  1110. void Pickup_command_request_msg::Clear() {
  1111. // @@protoc_insertion_point(message_clear_start:message.Pickup_command_request_msg)
  1112. ::google::protobuf::uint32 cached_has_bits = 0;
  1113. // Prevent compiler warnings about cached_has_bits being unused
  1114. (void) cached_has_bits;
  1115. cached_has_bits = _has_bits_[0];
  1116. if (cached_has_bits & 7u) {
  1117. if (cached_has_bits & 0x00000001u) {
  1118. GOOGLE_DCHECK(base_info_ != NULL);
  1119. base_info_->Clear();
  1120. }
  1121. if (cached_has_bits & 0x00000002u) {
  1122. GOOGLE_DCHECK(id_struct_ != NULL);
  1123. id_struct_->Clear();
  1124. }
  1125. if (cached_has_bits & 0x00000004u) {
  1126. GOOGLE_DCHECK(car_info_ != NULL);
  1127. car_info_->Clear();
  1128. }
  1129. }
  1130. _has_bits_.Clear();
  1131. _internal_metadata_.Clear();
  1132. }
  1133. bool Pickup_command_request_msg::MergePartialFromCodedStream(
  1134. ::google::protobuf::io::CodedInputStream* input) {
  1135. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1136. ::google::protobuf::uint32 tag;
  1137. // @@protoc_insertion_point(parse_start:message.Pickup_command_request_msg)
  1138. for (;;) {
  1139. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1140. tag = p.first;
  1141. if (!p.second) goto handle_unusual;
  1142. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1143. // required .message.Base_info base_info = 1;
  1144. case 1: {
  1145. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1146. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1147. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1148. input, mutable_base_info()));
  1149. } else {
  1150. goto handle_unusual;
  1151. }
  1152. break;
  1153. }
  1154. // required .message.Id_struct id_struct = 2;
  1155. case 2: {
  1156. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1157. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1158. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1159. input, mutable_id_struct()));
  1160. } else {
  1161. goto handle_unusual;
  1162. }
  1163. break;
  1164. }
  1165. // required .message.Car_info car_info = 4;
  1166. case 4: {
  1167. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1168. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  1169. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1170. input, mutable_car_info()));
  1171. } else {
  1172. goto handle_unusual;
  1173. }
  1174. break;
  1175. }
  1176. default: {
  1177. handle_unusual:
  1178. if (tag == 0) {
  1179. goto success;
  1180. }
  1181. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1182. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1183. break;
  1184. }
  1185. }
  1186. }
  1187. success:
  1188. // @@protoc_insertion_point(parse_success:message.Pickup_command_request_msg)
  1189. return true;
  1190. failure:
  1191. // @@protoc_insertion_point(parse_failure:message.Pickup_command_request_msg)
  1192. return false;
  1193. #undef DO_
  1194. }
  1195. void Pickup_command_request_msg::SerializeWithCachedSizes(
  1196. ::google::protobuf::io::CodedOutputStream* output) const {
  1197. // @@protoc_insertion_point(serialize_start:message.Pickup_command_request_msg)
  1198. ::google::protobuf::uint32 cached_has_bits = 0;
  1199. (void) cached_has_bits;
  1200. cached_has_bits = _has_bits_[0];
  1201. // required .message.Base_info base_info = 1;
  1202. if (cached_has_bits & 0x00000001u) {
  1203. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1204. 1, this->_internal_base_info(), output);
  1205. }
  1206. // required .message.Id_struct id_struct = 2;
  1207. if (cached_has_bits & 0x00000002u) {
  1208. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1209. 2, this->_internal_id_struct(), output);
  1210. }
  1211. // required .message.Car_info car_info = 4;
  1212. if (cached_has_bits & 0x00000004u) {
  1213. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1214. 4, this->_internal_car_info(), output);
  1215. }
  1216. if (_internal_metadata_.have_unknown_fields()) {
  1217. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1218. _internal_metadata_.unknown_fields(), output);
  1219. }
  1220. // @@protoc_insertion_point(serialize_end:message.Pickup_command_request_msg)
  1221. }
  1222. ::google::protobuf::uint8* Pickup_command_request_msg::InternalSerializeWithCachedSizesToArray(
  1223. bool deterministic, ::google::protobuf::uint8* target) const {
  1224. (void)deterministic; // Unused
  1225. // @@protoc_insertion_point(serialize_to_array_start:message.Pickup_command_request_msg)
  1226. ::google::protobuf::uint32 cached_has_bits = 0;
  1227. (void) cached_has_bits;
  1228. cached_has_bits = _has_bits_[0];
  1229. // required .message.Base_info base_info = 1;
  1230. if (cached_has_bits & 0x00000001u) {
  1231. target = ::google::protobuf::internal::WireFormatLite::
  1232. InternalWriteMessageToArray(
  1233. 1, this->_internal_base_info(), deterministic, target);
  1234. }
  1235. // required .message.Id_struct id_struct = 2;
  1236. if (cached_has_bits & 0x00000002u) {
  1237. target = ::google::protobuf::internal::WireFormatLite::
  1238. InternalWriteMessageToArray(
  1239. 2, this->_internal_id_struct(), deterministic, target);
  1240. }
  1241. // required .message.Car_info car_info = 4;
  1242. if (cached_has_bits & 0x00000004u) {
  1243. target = ::google::protobuf::internal::WireFormatLite::
  1244. InternalWriteMessageToArray(
  1245. 4, this->_internal_car_info(), deterministic, target);
  1246. }
  1247. if (_internal_metadata_.have_unknown_fields()) {
  1248. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1249. _internal_metadata_.unknown_fields(), target);
  1250. }
  1251. // @@protoc_insertion_point(serialize_to_array_end:message.Pickup_command_request_msg)
  1252. return target;
  1253. }
  1254. size_t Pickup_command_request_msg::RequiredFieldsByteSizeFallback() const {
  1255. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Pickup_command_request_msg)
  1256. size_t total_size = 0;
  1257. if (has_base_info()) {
  1258. // required .message.Base_info base_info = 1;
  1259. total_size += 1 +
  1260. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1261. *base_info_);
  1262. }
  1263. if (has_id_struct()) {
  1264. // required .message.Id_struct id_struct = 2;
  1265. total_size += 1 +
  1266. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1267. *id_struct_);
  1268. }
  1269. if (has_car_info()) {
  1270. // required .message.Car_info car_info = 4;
  1271. total_size += 1 +
  1272. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1273. *car_info_);
  1274. }
  1275. return total_size;
  1276. }
  1277. size_t Pickup_command_request_msg::ByteSizeLong() const {
  1278. // @@protoc_insertion_point(message_byte_size_start:message.Pickup_command_request_msg)
  1279. size_t total_size = 0;
  1280. if (_internal_metadata_.have_unknown_fields()) {
  1281. total_size +=
  1282. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1283. _internal_metadata_.unknown_fields());
  1284. }
  1285. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  1286. // required .message.Base_info base_info = 1;
  1287. total_size += 1 +
  1288. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1289. *base_info_);
  1290. // required .message.Id_struct id_struct = 2;
  1291. total_size += 1 +
  1292. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1293. *id_struct_);
  1294. // required .message.Car_info car_info = 4;
  1295. total_size += 1 +
  1296. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1297. *car_info_);
  1298. } else {
  1299. total_size += RequiredFieldsByteSizeFallback();
  1300. }
  1301. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1302. SetCachedSize(cached_size);
  1303. return total_size;
  1304. }
  1305. void Pickup_command_request_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1306. // @@protoc_insertion_point(generalized_merge_from_start:message.Pickup_command_request_msg)
  1307. GOOGLE_DCHECK_NE(&from, this);
  1308. const Pickup_command_request_msg* source =
  1309. ::google::protobuf::internal::DynamicCastToGenerated<const Pickup_command_request_msg>(
  1310. &from);
  1311. if (source == NULL) {
  1312. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Pickup_command_request_msg)
  1313. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1314. } else {
  1315. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Pickup_command_request_msg)
  1316. MergeFrom(*source);
  1317. }
  1318. }
  1319. void Pickup_command_request_msg::MergeFrom(const Pickup_command_request_msg& from) {
  1320. // @@protoc_insertion_point(class_specific_merge_from_start:message.Pickup_command_request_msg)
  1321. GOOGLE_DCHECK_NE(&from, this);
  1322. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1323. ::google::protobuf::uint32 cached_has_bits = 0;
  1324. (void) cached_has_bits;
  1325. cached_has_bits = from._has_bits_[0];
  1326. if (cached_has_bits & 7u) {
  1327. if (cached_has_bits & 0x00000001u) {
  1328. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1329. }
  1330. if (cached_has_bits & 0x00000002u) {
  1331. mutable_id_struct()->::message::Id_struct::MergeFrom(from.id_struct());
  1332. }
  1333. if (cached_has_bits & 0x00000004u) {
  1334. mutable_car_info()->::message::Car_info::MergeFrom(from.car_info());
  1335. }
  1336. }
  1337. }
  1338. void Pickup_command_request_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1339. // @@protoc_insertion_point(generalized_copy_from_start:message.Pickup_command_request_msg)
  1340. if (&from == this) return;
  1341. Clear();
  1342. MergeFrom(from);
  1343. }
  1344. void Pickup_command_request_msg::CopyFrom(const Pickup_command_request_msg& from) {
  1345. // @@protoc_insertion_point(class_specific_copy_from_start:message.Pickup_command_request_msg)
  1346. if (&from == this) return;
  1347. Clear();
  1348. MergeFrom(from);
  1349. }
  1350. bool Pickup_command_request_msg::IsInitialized() const {
  1351. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  1352. if (has_base_info()) {
  1353. if (!this->base_info_->IsInitialized()) return false;
  1354. }
  1355. return true;
  1356. }
  1357. void Pickup_command_request_msg::Swap(Pickup_command_request_msg* other) {
  1358. if (other == this) return;
  1359. InternalSwap(other);
  1360. }
  1361. void Pickup_command_request_msg::InternalSwap(Pickup_command_request_msg* other) {
  1362. using std::swap;
  1363. swap(base_info_, other->base_info_);
  1364. swap(id_struct_, other->id_struct_);
  1365. swap(car_info_, other->car_info_);
  1366. swap(_has_bits_[0], other->_has_bits_[0]);
  1367. _internal_metadata_.Swap(&other->_internal_metadata_);
  1368. }
  1369. ::google::protobuf::Metadata Pickup_command_request_msg::GetMetadata() const {
  1370. protobuf_terminal_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1371. return ::protobuf_terminal_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1372. }
  1373. // ===================================================================
  1374. void Pickup_command_response_msg::InitAsDefaultInstance() {
  1375. ::message::_Pickup_command_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1376. ::message::Base_info::internal_default_instance());
  1377. ::message::_Pickup_command_response_msg_default_instance_._instance.get_mutable()->id_struct_ = const_cast< ::message::Id_struct*>(
  1378. ::message::Id_struct::internal_default_instance());
  1379. ::message::_Pickup_command_response_msg_default_instance_._instance.get_mutable()->code_ = const_cast< ::message::Error_manager*>(
  1380. ::message::Error_manager::internal_default_instance());
  1381. }
  1382. void Pickup_command_response_msg::clear_base_info() {
  1383. if (base_info_ != NULL) base_info_->Clear();
  1384. clear_has_base_info();
  1385. }
  1386. void Pickup_command_response_msg::clear_id_struct() {
  1387. if (id_struct_ != NULL) id_struct_->Clear();
  1388. clear_has_id_struct();
  1389. }
  1390. void Pickup_command_response_msg::clear_code() {
  1391. if (code_ != NULL) code_->Clear();
  1392. clear_has_code();
  1393. }
  1394. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1395. const int Pickup_command_response_msg::kBaseInfoFieldNumber;
  1396. const int Pickup_command_response_msg::kIdStructFieldNumber;
  1397. const int Pickup_command_response_msg::kCodeFieldNumber;
  1398. const int Pickup_command_response_msg::kLicenseFieldNumber;
  1399. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1400. Pickup_command_response_msg::Pickup_command_response_msg()
  1401. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1402. ::google::protobuf::internal::InitSCC(
  1403. &protobuf_terminal_5fmessage_2eproto::scc_info_Pickup_command_response_msg.base);
  1404. SharedCtor();
  1405. // @@protoc_insertion_point(constructor:message.Pickup_command_response_msg)
  1406. }
  1407. Pickup_command_response_msg::Pickup_command_response_msg(const Pickup_command_response_msg& from)
  1408. : ::google::protobuf::Message(),
  1409. _internal_metadata_(NULL),
  1410. _has_bits_(from._has_bits_) {
  1411. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1412. license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1413. if (from.has_license()) {
  1414. license_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.license_);
  1415. }
  1416. if (from.has_base_info()) {
  1417. base_info_ = new ::message::Base_info(*from.base_info_);
  1418. } else {
  1419. base_info_ = NULL;
  1420. }
  1421. if (from.has_id_struct()) {
  1422. id_struct_ = new ::message::Id_struct(*from.id_struct_);
  1423. } else {
  1424. id_struct_ = NULL;
  1425. }
  1426. if (from.has_code()) {
  1427. code_ = new ::message::Error_manager(*from.code_);
  1428. } else {
  1429. code_ = NULL;
  1430. }
  1431. // @@protoc_insertion_point(copy_constructor:message.Pickup_command_response_msg)
  1432. }
  1433. void Pickup_command_response_msg::SharedCtor() {
  1434. license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1435. ::memset(&base_info_, 0, static_cast<size_t>(
  1436. reinterpret_cast<char*>(&code_) -
  1437. reinterpret_cast<char*>(&base_info_)) + sizeof(code_));
  1438. }
  1439. Pickup_command_response_msg::~Pickup_command_response_msg() {
  1440. // @@protoc_insertion_point(destructor:message.Pickup_command_response_msg)
  1441. SharedDtor();
  1442. }
  1443. void Pickup_command_response_msg::SharedDtor() {
  1444. license_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1445. if (this != internal_default_instance()) delete base_info_;
  1446. if (this != internal_default_instance()) delete id_struct_;
  1447. if (this != internal_default_instance()) delete code_;
  1448. }
  1449. void Pickup_command_response_msg::SetCachedSize(int size) const {
  1450. _cached_size_.Set(size);
  1451. }
  1452. const ::google::protobuf::Descriptor* Pickup_command_response_msg::descriptor() {
  1453. ::protobuf_terminal_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1454. return ::protobuf_terminal_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1455. }
  1456. const Pickup_command_response_msg& Pickup_command_response_msg::default_instance() {
  1457. ::google::protobuf::internal::InitSCC(&protobuf_terminal_5fmessage_2eproto::scc_info_Pickup_command_response_msg.base);
  1458. return *internal_default_instance();
  1459. }
  1460. void Pickup_command_response_msg::Clear() {
  1461. // @@protoc_insertion_point(message_clear_start:message.Pickup_command_response_msg)
  1462. ::google::protobuf::uint32 cached_has_bits = 0;
  1463. // Prevent compiler warnings about cached_has_bits being unused
  1464. (void) cached_has_bits;
  1465. cached_has_bits = _has_bits_[0];
  1466. if (cached_has_bits & 15u) {
  1467. if (cached_has_bits & 0x00000001u) {
  1468. license_.ClearNonDefaultToEmptyNoArena();
  1469. }
  1470. if (cached_has_bits & 0x00000002u) {
  1471. GOOGLE_DCHECK(base_info_ != NULL);
  1472. base_info_->Clear();
  1473. }
  1474. if (cached_has_bits & 0x00000004u) {
  1475. GOOGLE_DCHECK(id_struct_ != NULL);
  1476. id_struct_->Clear();
  1477. }
  1478. if (cached_has_bits & 0x00000008u) {
  1479. GOOGLE_DCHECK(code_ != NULL);
  1480. code_->Clear();
  1481. }
  1482. }
  1483. _has_bits_.Clear();
  1484. _internal_metadata_.Clear();
  1485. }
  1486. bool Pickup_command_response_msg::MergePartialFromCodedStream(
  1487. ::google::protobuf::io::CodedInputStream* input) {
  1488. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1489. ::google::protobuf::uint32 tag;
  1490. // @@protoc_insertion_point(parse_start:message.Pickup_command_response_msg)
  1491. for (;;) {
  1492. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1493. tag = p.first;
  1494. if (!p.second) goto handle_unusual;
  1495. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1496. // required .message.Base_info base_info = 1;
  1497. case 1: {
  1498. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1499. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1500. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1501. input, mutable_base_info()));
  1502. } else {
  1503. goto handle_unusual;
  1504. }
  1505. break;
  1506. }
  1507. // required .message.Id_struct id_struct = 2;
  1508. case 2: {
  1509. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1510. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1511. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1512. input, mutable_id_struct()));
  1513. } else {
  1514. goto handle_unusual;
  1515. }
  1516. break;
  1517. }
  1518. // required .message.Error_manager code = 3;
  1519. case 3: {
  1520. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1521. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1522. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1523. input, mutable_code()));
  1524. } else {
  1525. goto handle_unusual;
  1526. }
  1527. break;
  1528. }
  1529. // optional string license = 4;
  1530. case 4: {
  1531. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1532. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  1533. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1534. input, this->mutable_license()));
  1535. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1536. this->license().data(), static_cast<int>(this->license().length()),
  1537. ::google::protobuf::internal::WireFormat::PARSE,
  1538. "message.Pickup_command_response_msg.license");
  1539. } else {
  1540. goto handle_unusual;
  1541. }
  1542. break;
  1543. }
  1544. default: {
  1545. handle_unusual:
  1546. if (tag == 0) {
  1547. goto success;
  1548. }
  1549. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1550. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1551. break;
  1552. }
  1553. }
  1554. }
  1555. success:
  1556. // @@protoc_insertion_point(parse_success:message.Pickup_command_response_msg)
  1557. return true;
  1558. failure:
  1559. // @@protoc_insertion_point(parse_failure:message.Pickup_command_response_msg)
  1560. return false;
  1561. #undef DO_
  1562. }
  1563. void Pickup_command_response_msg::SerializeWithCachedSizes(
  1564. ::google::protobuf::io::CodedOutputStream* output) const {
  1565. // @@protoc_insertion_point(serialize_start:message.Pickup_command_response_msg)
  1566. ::google::protobuf::uint32 cached_has_bits = 0;
  1567. (void) cached_has_bits;
  1568. cached_has_bits = _has_bits_[0];
  1569. // required .message.Base_info base_info = 1;
  1570. if (cached_has_bits & 0x00000002u) {
  1571. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1572. 1, this->_internal_base_info(), output);
  1573. }
  1574. // required .message.Id_struct id_struct = 2;
  1575. if (cached_has_bits & 0x00000004u) {
  1576. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1577. 2, this->_internal_id_struct(), output);
  1578. }
  1579. // required .message.Error_manager code = 3;
  1580. if (cached_has_bits & 0x00000008u) {
  1581. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1582. 3, this->_internal_code(), output);
  1583. }
  1584. // optional string license = 4;
  1585. if (cached_has_bits & 0x00000001u) {
  1586. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1587. this->license().data(), static_cast<int>(this->license().length()),
  1588. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1589. "message.Pickup_command_response_msg.license");
  1590. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1591. 4, this->license(), output);
  1592. }
  1593. if (_internal_metadata_.have_unknown_fields()) {
  1594. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1595. _internal_metadata_.unknown_fields(), output);
  1596. }
  1597. // @@protoc_insertion_point(serialize_end:message.Pickup_command_response_msg)
  1598. }
  1599. ::google::protobuf::uint8* Pickup_command_response_msg::InternalSerializeWithCachedSizesToArray(
  1600. bool deterministic, ::google::protobuf::uint8* target) const {
  1601. (void)deterministic; // Unused
  1602. // @@protoc_insertion_point(serialize_to_array_start:message.Pickup_command_response_msg)
  1603. ::google::protobuf::uint32 cached_has_bits = 0;
  1604. (void) cached_has_bits;
  1605. cached_has_bits = _has_bits_[0];
  1606. // required .message.Base_info base_info = 1;
  1607. if (cached_has_bits & 0x00000002u) {
  1608. target = ::google::protobuf::internal::WireFormatLite::
  1609. InternalWriteMessageToArray(
  1610. 1, this->_internal_base_info(), deterministic, target);
  1611. }
  1612. // required .message.Id_struct id_struct = 2;
  1613. if (cached_has_bits & 0x00000004u) {
  1614. target = ::google::protobuf::internal::WireFormatLite::
  1615. InternalWriteMessageToArray(
  1616. 2, this->_internal_id_struct(), deterministic, target);
  1617. }
  1618. // required .message.Error_manager code = 3;
  1619. if (cached_has_bits & 0x00000008u) {
  1620. target = ::google::protobuf::internal::WireFormatLite::
  1621. InternalWriteMessageToArray(
  1622. 3, this->_internal_code(), deterministic, target);
  1623. }
  1624. // optional string license = 4;
  1625. if (cached_has_bits & 0x00000001u) {
  1626. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1627. this->license().data(), static_cast<int>(this->license().length()),
  1628. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1629. "message.Pickup_command_response_msg.license");
  1630. target =
  1631. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1632. 4, this->license(), target);
  1633. }
  1634. if (_internal_metadata_.have_unknown_fields()) {
  1635. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1636. _internal_metadata_.unknown_fields(), target);
  1637. }
  1638. // @@protoc_insertion_point(serialize_to_array_end:message.Pickup_command_response_msg)
  1639. return target;
  1640. }
  1641. size_t Pickup_command_response_msg::RequiredFieldsByteSizeFallback() const {
  1642. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Pickup_command_response_msg)
  1643. size_t total_size = 0;
  1644. if (has_base_info()) {
  1645. // required .message.Base_info base_info = 1;
  1646. total_size += 1 +
  1647. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1648. *base_info_);
  1649. }
  1650. if (has_id_struct()) {
  1651. // required .message.Id_struct id_struct = 2;
  1652. total_size += 1 +
  1653. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1654. *id_struct_);
  1655. }
  1656. if (has_code()) {
  1657. // required .message.Error_manager code = 3;
  1658. total_size += 1 +
  1659. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1660. *code_);
  1661. }
  1662. return total_size;
  1663. }
  1664. size_t Pickup_command_response_msg::ByteSizeLong() const {
  1665. // @@protoc_insertion_point(message_byte_size_start:message.Pickup_command_response_msg)
  1666. size_t total_size = 0;
  1667. if (_internal_metadata_.have_unknown_fields()) {
  1668. total_size +=
  1669. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1670. _internal_metadata_.unknown_fields());
  1671. }
  1672. if (((_has_bits_[0] & 0x0000000e) ^ 0x0000000e) == 0) { // All required fields are present.
  1673. // required .message.Base_info base_info = 1;
  1674. total_size += 1 +
  1675. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1676. *base_info_);
  1677. // required .message.Id_struct id_struct = 2;
  1678. total_size += 1 +
  1679. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1680. *id_struct_);
  1681. // required .message.Error_manager code = 3;
  1682. total_size += 1 +
  1683. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1684. *code_);
  1685. } else {
  1686. total_size += RequiredFieldsByteSizeFallback();
  1687. }
  1688. // optional string license = 4;
  1689. if (has_license()) {
  1690. total_size += 1 +
  1691. ::google::protobuf::internal::WireFormatLite::StringSize(
  1692. this->license());
  1693. }
  1694. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1695. SetCachedSize(cached_size);
  1696. return total_size;
  1697. }
  1698. void Pickup_command_response_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1699. // @@protoc_insertion_point(generalized_merge_from_start:message.Pickup_command_response_msg)
  1700. GOOGLE_DCHECK_NE(&from, this);
  1701. const Pickup_command_response_msg* source =
  1702. ::google::protobuf::internal::DynamicCastToGenerated<const Pickup_command_response_msg>(
  1703. &from);
  1704. if (source == NULL) {
  1705. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Pickup_command_response_msg)
  1706. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1707. } else {
  1708. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Pickup_command_response_msg)
  1709. MergeFrom(*source);
  1710. }
  1711. }
  1712. void Pickup_command_response_msg::MergeFrom(const Pickup_command_response_msg& from) {
  1713. // @@protoc_insertion_point(class_specific_merge_from_start:message.Pickup_command_response_msg)
  1714. GOOGLE_DCHECK_NE(&from, this);
  1715. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1716. ::google::protobuf::uint32 cached_has_bits = 0;
  1717. (void) cached_has_bits;
  1718. cached_has_bits = from._has_bits_[0];
  1719. if (cached_has_bits & 15u) {
  1720. if (cached_has_bits & 0x00000001u) {
  1721. set_has_license();
  1722. license_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.license_);
  1723. }
  1724. if (cached_has_bits & 0x00000002u) {
  1725. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1726. }
  1727. if (cached_has_bits & 0x00000004u) {
  1728. mutable_id_struct()->::message::Id_struct::MergeFrom(from.id_struct());
  1729. }
  1730. if (cached_has_bits & 0x00000008u) {
  1731. mutable_code()->::message::Error_manager::MergeFrom(from.code());
  1732. }
  1733. }
  1734. }
  1735. void Pickup_command_response_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1736. // @@protoc_insertion_point(generalized_copy_from_start:message.Pickup_command_response_msg)
  1737. if (&from == this) return;
  1738. Clear();
  1739. MergeFrom(from);
  1740. }
  1741. void Pickup_command_response_msg::CopyFrom(const Pickup_command_response_msg& from) {
  1742. // @@protoc_insertion_point(class_specific_copy_from_start:message.Pickup_command_response_msg)
  1743. if (&from == this) return;
  1744. Clear();
  1745. MergeFrom(from);
  1746. }
  1747. bool Pickup_command_response_msg::IsInitialized() const {
  1748. if ((_has_bits_[0] & 0x0000000e) != 0x0000000e) return false;
  1749. if (has_base_info()) {
  1750. if (!this->base_info_->IsInitialized()) return false;
  1751. }
  1752. if (has_code()) {
  1753. if (!this->code_->IsInitialized()) return false;
  1754. }
  1755. return true;
  1756. }
  1757. void Pickup_command_response_msg::Swap(Pickup_command_response_msg* other) {
  1758. if (other == this) return;
  1759. InternalSwap(other);
  1760. }
  1761. void Pickup_command_response_msg::InternalSwap(Pickup_command_response_msg* other) {
  1762. using std::swap;
  1763. license_.Swap(&other->license_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1764. GetArenaNoVirtual());
  1765. swap(base_info_, other->base_info_);
  1766. swap(id_struct_, other->id_struct_);
  1767. swap(code_, other->code_);
  1768. swap(_has_bits_[0], other->_has_bits_[0]);
  1769. _internal_metadata_.Swap(&other->_internal_metadata_);
  1770. }
  1771. ::google::protobuf::Metadata Pickup_command_response_msg::GetMetadata() const {
  1772. protobuf_terminal_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1773. return ::protobuf_terminal_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1774. }
  1775. // @@protoc_insertion_point(namespace_scope)
  1776. } // namespace message
  1777. namespace google {
  1778. namespace protobuf {
  1779. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Store_command_request_msg* Arena::CreateMaybeMessage< ::message::Store_command_request_msg >(Arena* arena) {
  1780. return Arena::CreateInternal< ::message::Store_command_request_msg >(arena);
  1781. }
  1782. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Store_command_response_msg* Arena::CreateMaybeMessage< ::message::Store_command_response_msg >(Arena* arena) {
  1783. return Arena::CreateInternal< ::message::Store_command_response_msg >(arena);
  1784. }
  1785. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Pickup_command_request_msg* Arena::CreateMaybeMessage< ::message::Pickup_command_request_msg >(Arena* arena) {
  1786. return Arena::CreateInternal< ::message::Pickup_command_request_msg >(arena);
  1787. }
  1788. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Pickup_command_response_msg* Arena::CreateMaybeMessage< ::message::Pickup_command_response_msg >(Arena* arena) {
  1789. return Arena::CreateInternal< ::message::Pickup_command_response_msg >(arena);
  1790. }
  1791. } // namespace protobuf
  1792. } // namespace google
  1793. // @@protoc_insertion_point(global_scope)