terminal_message.pb.cc 73 KB

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