terminal_message.pb.cc 69 KB

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