terminal_message.pb.cc 69 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882
  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. if (has_car_info()) {
  616. if (!this->car_info_->IsInitialized()) return false;
  617. }
  618. return true;
  619. }
  620. void Store_command_request_msg::Swap(Store_command_request_msg* other) {
  621. if (other == this) return;
  622. InternalSwap(other);
  623. }
  624. void Store_command_request_msg::InternalSwap(Store_command_request_msg* other) {
  625. using std::swap;
  626. swap(base_info_, other->base_info_);
  627. swap(locate_information_, other->locate_information_);
  628. swap(car_info_, other->car_info_);
  629. swap(terminal_id_, other->terminal_id_);
  630. swap(_has_bits_[0], other->_has_bits_[0]);
  631. _internal_metadata_.Swap(&other->_internal_metadata_);
  632. swap(_cached_size_, other->_cached_size_);
  633. }
  634. ::google::protobuf::Metadata Store_command_request_msg::GetMetadata() const {
  635. protobuf_terminal_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  636. return ::protobuf_terminal_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  637. }
  638. // ===================================================================
  639. void Store_command_response_msg::InitAsDefaultInstance() {
  640. ::message::_Store_command_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  641. ::message::Base_info::internal_default_instance());
  642. ::message::_Store_command_response_msg_default_instance_._instance.get_mutable()->code_ = const_cast< ::message::Error_manager*>(
  643. ::message::Error_manager::internal_default_instance());
  644. }
  645. void Store_command_response_msg::clear_base_info() {
  646. if (base_info_ != NULL) base_info_->Clear();
  647. clear_has_base_info();
  648. }
  649. void Store_command_response_msg::clear_code() {
  650. if (code_ != NULL) code_->Clear();
  651. clear_has_code();
  652. }
  653. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  654. const int Store_command_response_msg::kBaseInfoFieldNumber;
  655. const int Store_command_response_msg::kTerminalIdFieldNumber;
  656. const int Store_command_response_msg::kCodeFieldNumber;
  657. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  658. Store_command_response_msg::Store_command_response_msg()
  659. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  660. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  661. ::protobuf_terminal_5fmessage_2eproto::InitDefaultsStore_command_response_msg();
  662. }
  663. SharedCtor();
  664. // @@protoc_insertion_point(constructor:message.Store_command_response_msg)
  665. }
  666. Store_command_response_msg::Store_command_response_msg(const Store_command_response_msg& from)
  667. : ::google::protobuf::Message(),
  668. _internal_metadata_(NULL),
  669. _has_bits_(from._has_bits_),
  670. _cached_size_(0) {
  671. _internal_metadata_.MergeFrom(from._internal_metadata_);
  672. if (from.has_base_info()) {
  673. base_info_ = new ::message::Base_info(*from.base_info_);
  674. } else {
  675. base_info_ = NULL;
  676. }
  677. if (from.has_code()) {
  678. code_ = new ::message::Error_manager(*from.code_);
  679. } else {
  680. code_ = NULL;
  681. }
  682. terminal_id_ = from.terminal_id_;
  683. // @@protoc_insertion_point(copy_constructor:message.Store_command_response_msg)
  684. }
  685. void Store_command_response_msg::SharedCtor() {
  686. _cached_size_ = 0;
  687. ::memset(&base_info_, 0, static_cast<size_t>(
  688. reinterpret_cast<char*>(&terminal_id_) -
  689. reinterpret_cast<char*>(&base_info_)) + sizeof(terminal_id_));
  690. }
  691. Store_command_response_msg::~Store_command_response_msg() {
  692. // @@protoc_insertion_point(destructor:message.Store_command_response_msg)
  693. SharedDtor();
  694. }
  695. void Store_command_response_msg::SharedDtor() {
  696. if (this != internal_default_instance()) delete base_info_;
  697. if (this != internal_default_instance()) delete code_;
  698. }
  699. void Store_command_response_msg::SetCachedSize(int size) const {
  700. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  701. _cached_size_ = size;
  702. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  703. }
  704. const ::google::protobuf::Descriptor* Store_command_response_msg::descriptor() {
  705. ::protobuf_terminal_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  706. return ::protobuf_terminal_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  707. }
  708. const Store_command_response_msg& Store_command_response_msg::default_instance() {
  709. ::protobuf_terminal_5fmessage_2eproto::InitDefaultsStore_command_response_msg();
  710. return *internal_default_instance();
  711. }
  712. Store_command_response_msg* Store_command_response_msg::New(::google::protobuf::Arena* arena) const {
  713. Store_command_response_msg* n = new Store_command_response_msg;
  714. if (arena != NULL) {
  715. arena->Own(n);
  716. }
  717. return n;
  718. }
  719. void Store_command_response_msg::Clear() {
  720. // @@protoc_insertion_point(message_clear_start:message.Store_command_response_msg)
  721. ::google::protobuf::uint32 cached_has_bits = 0;
  722. // Prevent compiler warnings about cached_has_bits being unused
  723. (void) cached_has_bits;
  724. cached_has_bits = _has_bits_[0];
  725. if (cached_has_bits & 3u) {
  726. if (cached_has_bits & 0x00000001u) {
  727. GOOGLE_DCHECK(base_info_ != NULL);
  728. base_info_->Clear();
  729. }
  730. if (cached_has_bits & 0x00000002u) {
  731. GOOGLE_DCHECK(code_ != NULL);
  732. code_->Clear();
  733. }
  734. }
  735. terminal_id_ = 0;
  736. _has_bits_.Clear();
  737. _internal_metadata_.Clear();
  738. }
  739. bool Store_command_response_msg::MergePartialFromCodedStream(
  740. ::google::protobuf::io::CodedInputStream* input) {
  741. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  742. ::google::protobuf::uint32 tag;
  743. // @@protoc_insertion_point(parse_start:message.Store_command_response_msg)
  744. for (;;) {
  745. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  746. tag = p.first;
  747. if (!p.second) goto handle_unusual;
  748. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  749. // required .message.Base_info base_info = 1;
  750. case 1: {
  751. if (static_cast< ::google::protobuf::uint8>(tag) ==
  752. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  753. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  754. input, mutable_base_info()));
  755. } else {
  756. goto handle_unusual;
  757. }
  758. break;
  759. }
  760. // required int32 terminal_id = 2;
  761. case 2: {
  762. if (static_cast< ::google::protobuf::uint8>(tag) ==
  763. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  764. set_has_terminal_id();
  765. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  766. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  767. input, &terminal_id_)));
  768. } else {
  769. goto handle_unusual;
  770. }
  771. break;
  772. }
  773. // required .message.Error_manager code = 3;
  774. case 3: {
  775. if (static_cast< ::google::protobuf::uint8>(tag) ==
  776. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  777. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  778. input, mutable_code()));
  779. } else {
  780. goto handle_unusual;
  781. }
  782. break;
  783. }
  784. default: {
  785. handle_unusual:
  786. if (tag == 0) {
  787. goto success;
  788. }
  789. DO_(::google::protobuf::internal::WireFormat::SkipField(
  790. input, tag, _internal_metadata_.mutable_unknown_fields()));
  791. break;
  792. }
  793. }
  794. }
  795. success:
  796. // @@protoc_insertion_point(parse_success:message.Store_command_response_msg)
  797. return true;
  798. failure:
  799. // @@protoc_insertion_point(parse_failure:message.Store_command_response_msg)
  800. return false;
  801. #undef DO_
  802. }
  803. void Store_command_response_msg::SerializeWithCachedSizes(
  804. ::google::protobuf::io::CodedOutputStream* output) const {
  805. // @@protoc_insertion_point(serialize_start:message.Store_command_response_msg)
  806. ::google::protobuf::uint32 cached_has_bits = 0;
  807. (void) cached_has_bits;
  808. cached_has_bits = _has_bits_[0];
  809. // required .message.Base_info base_info = 1;
  810. if (cached_has_bits & 0x00000001u) {
  811. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  812. 1, *this->base_info_, output);
  813. }
  814. // required int32 terminal_id = 2;
  815. if (cached_has_bits & 0x00000004u) {
  816. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->terminal_id(), output);
  817. }
  818. // required .message.Error_manager code = 3;
  819. if (cached_has_bits & 0x00000002u) {
  820. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  821. 3, *this->code_, output);
  822. }
  823. if (_internal_metadata_.have_unknown_fields()) {
  824. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  825. _internal_metadata_.unknown_fields(), output);
  826. }
  827. // @@protoc_insertion_point(serialize_end:message.Store_command_response_msg)
  828. }
  829. ::google::protobuf::uint8* Store_command_response_msg::InternalSerializeWithCachedSizesToArray(
  830. bool deterministic, ::google::protobuf::uint8* target) const {
  831. (void)deterministic; // Unused
  832. // @@protoc_insertion_point(serialize_to_array_start:message.Store_command_response_msg)
  833. ::google::protobuf::uint32 cached_has_bits = 0;
  834. (void) cached_has_bits;
  835. cached_has_bits = _has_bits_[0];
  836. // required .message.Base_info base_info = 1;
  837. if (cached_has_bits & 0x00000001u) {
  838. target = ::google::protobuf::internal::WireFormatLite::
  839. InternalWriteMessageToArray(
  840. 1, *this->base_info_, deterministic, target);
  841. }
  842. // required int32 terminal_id = 2;
  843. if (cached_has_bits & 0x00000004u) {
  844. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->terminal_id(), target);
  845. }
  846. // required .message.Error_manager code = 3;
  847. if (cached_has_bits & 0x00000002u) {
  848. target = ::google::protobuf::internal::WireFormatLite::
  849. InternalWriteMessageToArray(
  850. 3, *this->code_, deterministic, target);
  851. }
  852. if (_internal_metadata_.have_unknown_fields()) {
  853. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  854. _internal_metadata_.unknown_fields(), target);
  855. }
  856. // @@protoc_insertion_point(serialize_to_array_end:message.Store_command_response_msg)
  857. return target;
  858. }
  859. size_t Store_command_response_msg::RequiredFieldsByteSizeFallback() const {
  860. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Store_command_response_msg)
  861. size_t total_size = 0;
  862. if (has_base_info()) {
  863. // required .message.Base_info base_info = 1;
  864. total_size += 1 +
  865. ::google::protobuf::internal::WireFormatLite::MessageSize(
  866. *this->base_info_);
  867. }
  868. if (has_code()) {
  869. // required .message.Error_manager code = 3;
  870. total_size += 1 +
  871. ::google::protobuf::internal::WireFormatLite::MessageSize(
  872. *this->code_);
  873. }
  874. if (has_terminal_id()) {
  875. // required int32 terminal_id = 2;
  876. total_size += 1 +
  877. ::google::protobuf::internal::WireFormatLite::Int32Size(
  878. this->terminal_id());
  879. }
  880. return total_size;
  881. }
  882. size_t Store_command_response_msg::ByteSizeLong() const {
  883. // @@protoc_insertion_point(message_byte_size_start:message.Store_command_response_msg)
  884. size_t total_size = 0;
  885. if (_internal_metadata_.have_unknown_fields()) {
  886. total_size +=
  887. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  888. _internal_metadata_.unknown_fields());
  889. }
  890. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  891. // required .message.Base_info base_info = 1;
  892. total_size += 1 +
  893. ::google::protobuf::internal::WireFormatLite::MessageSize(
  894. *this->base_info_);
  895. // required .message.Error_manager code = 3;
  896. total_size += 1 +
  897. ::google::protobuf::internal::WireFormatLite::MessageSize(
  898. *this->code_);
  899. // required int32 terminal_id = 2;
  900. total_size += 1 +
  901. ::google::protobuf::internal::WireFormatLite::Int32Size(
  902. this->terminal_id());
  903. } else {
  904. total_size += RequiredFieldsByteSizeFallback();
  905. }
  906. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  907. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  908. _cached_size_ = cached_size;
  909. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  910. return total_size;
  911. }
  912. void Store_command_response_msg::MergeFrom(const ::google::protobuf::Message& from) {
  913. // @@protoc_insertion_point(generalized_merge_from_start:message.Store_command_response_msg)
  914. GOOGLE_DCHECK_NE(&from, this);
  915. const Store_command_response_msg* source =
  916. ::google::protobuf::internal::DynamicCastToGenerated<const Store_command_response_msg>(
  917. &from);
  918. if (source == NULL) {
  919. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Store_command_response_msg)
  920. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  921. } else {
  922. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Store_command_response_msg)
  923. MergeFrom(*source);
  924. }
  925. }
  926. void Store_command_response_msg::MergeFrom(const Store_command_response_msg& from) {
  927. // @@protoc_insertion_point(class_specific_merge_from_start:message.Store_command_response_msg)
  928. GOOGLE_DCHECK_NE(&from, this);
  929. _internal_metadata_.MergeFrom(from._internal_metadata_);
  930. ::google::protobuf::uint32 cached_has_bits = 0;
  931. (void) cached_has_bits;
  932. cached_has_bits = from._has_bits_[0];
  933. if (cached_has_bits & 7u) {
  934. if (cached_has_bits & 0x00000001u) {
  935. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  936. }
  937. if (cached_has_bits & 0x00000002u) {
  938. mutable_code()->::message::Error_manager::MergeFrom(from.code());
  939. }
  940. if (cached_has_bits & 0x00000004u) {
  941. terminal_id_ = from.terminal_id_;
  942. }
  943. _has_bits_[0] |= cached_has_bits;
  944. }
  945. }
  946. void Store_command_response_msg::CopyFrom(const ::google::protobuf::Message& from) {
  947. // @@protoc_insertion_point(generalized_copy_from_start:message.Store_command_response_msg)
  948. if (&from == this) return;
  949. Clear();
  950. MergeFrom(from);
  951. }
  952. void Store_command_response_msg::CopyFrom(const Store_command_response_msg& from) {
  953. // @@protoc_insertion_point(class_specific_copy_from_start:message.Store_command_response_msg)
  954. if (&from == this) return;
  955. Clear();
  956. MergeFrom(from);
  957. }
  958. bool Store_command_response_msg::IsInitialized() const {
  959. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  960. if (has_base_info()) {
  961. if (!this->base_info_->IsInitialized()) return false;
  962. }
  963. if (has_code()) {
  964. if (!this->code_->IsInitialized()) return false;
  965. }
  966. return true;
  967. }
  968. void Store_command_response_msg::Swap(Store_command_response_msg* other) {
  969. if (other == this) return;
  970. InternalSwap(other);
  971. }
  972. void Store_command_response_msg::InternalSwap(Store_command_response_msg* other) {
  973. using std::swap;
  974. swap(base_info_, other->base_info_);
  975. swap(code_, other->code_);
  976. swap(terminal_id_, other->terminal_id_);
  977. swap(_has_bits_[0], other->_has_bits_[0]);
  978. _internal_metadata_.Swap(&other->_internal_metadata_);
  979. swap(_cached_size_, other->_cached_size_);
  980. }
  981. ::google::protobuf::Metadata Store_command_response_msg::GetMetadata() const {
  982. protobuf_terminal_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  983. return ::protobuf_terminal_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  984. }
  985. // ===================================================================
  986. void Pickup_command_request_msg::InitAsDefaultInstance() {
  987. ::message::_Pickup_command_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  988. ::message::Base_info::internal_default_instance());
  989. ::message::_Pickup_command_request_msg_default_instance_._instance.get_mutable()->car_info_ = const_cast< ::message::Car_info*>(
  990. ::message::Car_info::internal_default_instance());
  991. }
  992. void Pickup_command_request_msg::clear_base_info() {
  993. if (base_info_ != NULL) base_info_->Clear();
  994. clear_has_base_info();
  995. }
  996. void Pickup_command_request_msg::clear_car_info() {
  997. if (car_info_ != NULL) car_info_->Clear();
  998. clear_has_car_info();
  999. }
  1000. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1001. const int Pickup_command_request_msg::kBaseInfoFieldNumber;
  1002. const int Pickup_command_request_msg::kTerminalIdFieldNumber;
  1003. const int Pickup_command_request_msg::kCarInfoFieldNumber;
  1004. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1005. Pickup_command_request_msg::Pickup_command_request_msg()
  1006. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1007. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1008. ::protobuf_terminal_5fmessage_2eproto::InitDefaultsPickup_command_request_msg();
  1009. }
  1010. SharedCtor();
  1011. // @@protoc_insertion_point(constructor:message.Pickup_command_request_msg)
  1012. }
  1013. Pickup_command_request_msg::Pickup_command_request_msg(const Pickup_command_request_msg& from)
  1014. : ::google::protobuf::Message(),
  1015. _internal_metadata_(NULL),
  1016. _has_bits_(from._has_bits_),
  1017. _cached_size_(0) {
  1018. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1019. if (from.has_base_info()) {
  1020. base_info_ = new ::message::Base_info(*from.base_info_);
  1021. } else {
  1022. base_info_ = NULL;
  1023. }
  1024. if (from.has_car_info()) {
  1025. car_info_ = new ::message::Car_info(*from.car_info_);
  1026. } else {
  1027. car_info_ = NULL;
  1028. }
  1029. terminal_id_ = from.terminal_id_;
  1030. // @@protoc_insertion_point(copy_constructor:message.Pickup_command_request_msg)
  1031. }
  1032. void Pickup_command_request_msg::SharedCtor() {
  1033. _cached_size_ = 0;
  1034. ::memset(&base_info_, 0, static_cast<size_t>(
  1035. reinterpret_cast<char*>(&terminal_id_) -
  1036. reinterpret_cast<char*>(&base_info_)) + sizeof(terminal_id_));
  1037. }
  1038. Pickup_command_request_msg::~Pickup_command_request_msg() {
  1039. // @@protoc_insertion_point(destructor:message.Pickup_command_request_msg)
  1040. SharedDtor();
  1041. }
  1042. void Pickup_command_request_msg::SharedDtor() {
  1043. if (this != internal_default_instance()) delete base_info_;
  1044. if (this != internal_default_instance()) delete car_info_;
  1045. }
  1046. void Pickup_command_request_msg::SetCachedSize(int size) const {
  1047. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1048. _cached_size_ = size;
  1049. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1050. }
  1051. const ::google::protobuf::Descriptor* Pickup_command_request_msg::descriptor() {
  1052. ::protobuf_terminal_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1053. return ::protobuf_terminal_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1054. }
  1055. const Pickup_command_request_msg& Pickup_command_request_msg::default_instance() {
  1056. ::protobuf_terminal_5fmessage_2eproto::InitDefaultsPickup_command_request_msg();
  1057. return *internal_default_instance();
  1058. }
  1059. Pickup_command_request_msg* Pickup_command_request_msg::New(::google::protobuf::Arena* arena) const {
  1060. Pickup_command_request_msg* n = new Pickup_command_request_msg;
  1061. if (arena != NULL) {
  1062. arena->Own(n);
  1063. }
  1064. return n;
  1065. }
  1066. void Pickup_command_request_msg::Clear() {
  1067. // @@protoc_insertion_point(message_clear_start:message.Pickup_command_request_msg)
  1068. ::google::protobuf::uint32 cached_has_bits = 0;
  1069. // Prevent compiler warnings about cached_has_bits being unused
  1070. (void) cached_has_bits;
  1071. cached_has_bits = _has_bits_[0];
  1072. if (cached_has_bits & 3u) {
  1073. if (cached_has_bits & 0x00000001u) {
  1074. GOOGLE_DCHECK(base_info_ != NULL);
  1075. base_info_->Clear();
  1076. }
  1077. if (cached_has_bits & 0x00000002u) {
  1078. GOOGLE_DCHECK(car_info_ != NULL);
  1079. car_info_->Clear();
  1080. }
  1081. }
  1082. terminal_id_ = 0;
  1083. _has_bits_.Clear();
  1084. _internal_metadata_.Clear();
  1085. }
  1086. bool Pickup_command_request_msg::MergePartialFromCodedStream(
  1087. ::google::protobuf::io::CodedInputStream* input) {
  1088. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1089. ::google::protobuf::uint32 tag;
  1090. // @@protoc_insertion_point(parse_start:message.Pickup_command_request_msg)
  1091. for (;;) {
  1092. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1093. tag = p.first;
  1094. if (!p.second) goto handle_unusual;
  1095. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1096. // required .message.Base_info base_info = 1;
  1097. case 1: {
  1098. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1099. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1100. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1101. input, mutable_base_info()));
  1102. } else {
  1103. goto handle_unusual;
  1104. }
  1105. break;
  1106. }
  1107. // required int32 terminal_id = 2;
  1108. case 2: {
  1109. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1110. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1111. set_has_terminal_id();
  1112. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1113. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1114. input, &terminal_id_)));
  1115. } else {
  1116. goto handle_unusual;
  1117. }
  1118. break;
  1119. }
  1120. // required .message.Car_info car_info = 4;
  1121. case 4: {
  1122. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1123. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  1124. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1125. input, mutable_car_info()));
  1126. } else {
  1127. goto handle_unusual;
  1128. }
  1129. break;
  1130. }
  1131. default: {
  1132. handle_unusual:
  1133. if (tag == 0) {
  1134. goto success;
  1135. }
  1136. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1137. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1138. break;
  1139. }
  1140. }
  1141. }
  1142. success:
  1143. // @@protoc_insertion_point(parse_success:message.Pickup_command_request_msg)
  1144. return true;
  1145. failure:
  1146. // @@protoc_insertion_point(parse_failure:message.Pickup_command_request_msg)
  1147. return false;
  1148. #undef DO_
  1149. }
  1150. void Pickup_command_request_msg::SerializeWithCachedSizes(
  1151. ::google::protobuf::io::CodedOutputStream* output) const {
  1152. // @@protoc_insertion_point(serialize_start:message.Pickup_command_request_msg)
  1153. ::google::protobuf::uint32 cached_has_bits = 0;
  1154. (void) cached_has_bits;
  1155. cached_has_bits = _has_bits_[0];
  1156. // required .message.Base_info base_info = 1;
  1157. if (cached_has_bits & 0x00000001u) {
  1158. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1159. 1, *this->base_info_, output);
  1160. }
  1161. // required int32 terminal_id = 2;
  1162. if (cached_has_bits & 0x00000004u) {
  1163. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->terminal_id(), output);
  1164. }
  1165. // required .message.Car_info car_info = 4;
  1166. if (cached_has_bits & 0x00000002u) {
  1167. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1168. 4, *this->car_info_, output);
  1169. }
  1170. if (_internal_metadata_.have_unknown_fields()) {
  1171. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1172. _internal_metadata_.unknown_fields(), output);
  1173. }
  1174. // @@protoc_insertion_point(serialize_end:message.Pickup_command_request_msg)
  1175. }
  1176. ::google::protobuf::uint8* Pickup_command_request_msg::InternalSerializeWithCachedSizesToArray(
  1177. bool deterministic, ::google::protobuf::uint8* target) const {
  1178. (void)deterministic; // Unused
  1179. // @@protoc_insertion_point(serialize_to_array_start:message.Pickup_command_request_msg)
  1180. ::google::protobuf::uint32 cached_has_bits = 0;
  1181. (void) cached_has_bits;
  1182. cached_has_bits = _has_bits_[0];
  1183. // required .message.Base_info base_info = 1;
  1184. if (cached_has_bits & 0x00000001u) {
  1185. target = ::google::protobuf::internal::WireFormatLite::
  1186. InternalWriteMessageToArray(
  1187. 1, *this->base_info_, deterministic, target);
  1188. }
  1189. // required int32 terminal_id = 2;
  1190. if (cached_has_bits & 0x00000004u) {
  1191. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->terminal_id(), target);
  1192. }
  1193. // required .message.Car_info car_info = 4;
  1194. if (cached_has_bits & 0x00000002u) {
  1195. target = ::google::protobuf::internal::WireFormatLite::
  1196. InternalWriteMessageToArray(
  1197. 4, *this->car_info_, deterministic, target);
  1198. }
  1199. if (_internal_metadata_.have_unknown_fields()) {
  1200. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1201. _internal_metadata_.unknown_fields(), target);
  1202. }
  1203. // @@protoc_insertion_point(serialize_to_array_end:message.Pickup_command_request_msg)
  1204. return target;
  1205. }
  1206. size_t Pickup_command_request_msg::RequiredFieldsByteSizeFallback() const {
  1207. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Pickup_command_request_msg)
  1208. size_t total_size = 0;
  1209. if (has_base_info()) {
  1210. // required .message.Base_info base_info = 1;
  1211. total_size += 1 +
  1212. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1213. *this->base_info_);
  1214. }
  1215. if (has_car_info()) {
  1216. // required .message.Car_info car_info = 4;
  1217. total_size += 1 +
  1218. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1219. *this->car_info_);
  1220. }
  1221. if (has_terminal_id()) {
  1222. // required int32 terminal_id = 2;
  1223. total_size += 1 +
  1224. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1225. this->terminal_id());
  1226. }
  1227. return total_size;
  1228. }
  1229. size_t Pickup_command_request_msg::ByteSizeLong() const {
  1230. // @@protoc_insertion_point(message_byte_size_start:message.Pickup_command_request_msg)
  1231. size_t total_size = 0;
  1232. if (_internal_metadata_.have_unknown_fields()) {
  1233. total_size +=
  1234. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1235. _internal_metadata_.unknown_fields());
  1236. }
  1237. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  1238. // required .message.Base_info base_info = 1;
  1239. total_size += 1 +
  1240. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1241. *this->base_info_);
  1242. // required .message.Car_info car_info = 4;
  1243. total_size += 1 +
  1244. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1245. *this->car_info_);
  1246. // required int32 terminal_id = 2;
  1247. total_size += 1 +
  1248. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1249. this->terminal_id());
  1250. } else {
  1251. total_size += RequiredFieldsByteSizeFallback();
  1252. }
  1253. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1254. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1255. _cached_size_ = cached_size;
  1256. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1257. return total_size;
  1258. }
  1259. void Pickup_command_request_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1260. // @@protoc_insertion_point(generalized_merge_from_start:message.Pickup_command_request_msg)
  1261. GOOGLE_DCHECK_NE(&from, this);
  1262. const Pickup_command_request_msg* source =
  1263. ::google::protobuf::internal::DynamicCastToGenerated<const Pickup_command_request_msg>(
  1264. &from);
  1265. if (source == NULL) {
  1266. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Pickup_command_request_msg)
  1267. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1268. } else {
  1269. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Pickup_command_request_msg)
  1270. MergeFrom(*source);
  1271. }
  1272. }
  1273. void Pickup_command_request_msg::MergeFrom(const Pickup_command_request_msg& from) {
  1274. // @@protoc_insertion_point(class_specific_merge_from_start:message.Pickup_command_request_msg)
  1275. GOOGLE_DCHECK_NE(&from, this);
  1276. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1277. ::google::protobuf::uint32 cached_has_bits = 0;
  1278. (void) cached_has_bits;
  1279. cached_has_bits = from._has_bits_[0];
  1280. if (cached_has_bits & 7u) {
  1281. if (cached_has_bits & 0x00000001u) {
  1282. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1283. }
  1284. if (cached_has_bits & 0x00000002u) {
  1285. mutable_car_info()->::message::Car_info::MergeFrom(from.car_info());
  1286. }
  1287. if (cached_has_bits & 0x00000004u) {
  1288. terminal_id_ = from.terminal_id_;
  1289. }
  1290. _has_bits_[0] |= cached_has_bits;
  1291. }
  1292. }
  1293. void Pickup_command_request_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1294. // @@protoc_insertion_point(generalized_copy_from_start:message.Pickup_command_request_msg)
  1295. if (&from == this) return;
  1296. Clear();
  1297. MergeFrom(from);
  1298. }
  1299. void Pickup_command_request_msg::CopyFrom(const Pickup_command_request_msg& from) {
  1300. // @@protoc_insertion_point(class_specific_copy_from_start:message.Pickup_command_request_msg)
  1301. if (&from == this) return;
  1302. Clear();
  1303. MergeFrom(from);
  1304. }
  1305. bool Pickup_command_request_msg::IsInitialized() const {
  1306. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  1307. if (has_base_info()) {
  1308. if (!this->base_info_->IsInitialized()) return false;
  1309. }
  1310. if (has_car_info()) {
  1311. if (!this->car_info_->IsInitialized()) return false;
  1312. }
  1313. return true;
  1314. }
  1315. void Pickup_command_request_msg::Swap(Pickup_command_request_msg* other) {
  1316. if (other == this) return;
  1317. InternalSwap(other);
  1318. }
  1319. void Pickup_command_request_msg::InternalSwap(Pickup_command_request_msg* other) {
  1320. using std::swap;
  1321. swap(base_info_, other->base_info_);
  1322. swap(car_info_, other->car_info_);
  1323. swap(terminal_id_, other->terminal_id_);
  1324. swap(_has_bits_[0], other->_has_bits_[0]);
  1325. _internal_metadata_.Swap(&other->_internal_metadata_);
  1326. swap(_cached_size_, other->_cached_size_);
  1327. }
  1328. ::google::protobuf::Metadata Pickup_command_request_msg::GetMetadata() const {
  1329. protobuf_terminal_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1330. return ::protobuf_terminal_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1331. }
  1332. // ===================================================================
  1333. void Pickup_command_response_msg::InitAsDefaultInstance() {
  1334. ::message::_Pickup_command_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1335. ::message::Base_info::internal_default_instance());
  1336. ::message::_Pickup_command_response_msg_default_instance_._instance.get_mutable()->code_ = const_cast< ::message::Error_manager*>(
  1337. ::message::Error_manager::internal_default_instance());
  1338. }
  1339. void Pickup_command_response_msg::clear_base_info() {
  1340. if (base_info_ != NULL) base_info_->Clear();
  1341. clear_has_base_info();
  1342. }
  1343. void Pickup_command_response_msg::clear_code() {
  1344. if (code_ != NULL) code_->Clear();
  1345. clear_has_code();
  1346. }
  1347. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1348. const int Pickup_command_response_msg::kBaseInfoFieldNumber;
  1349. const int Pickup_command_response_msg::kTerminalIdFieldNumber;
  1350. const int Pickup_command_response_msg::kCodeFieldNumber;
  1351. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1352. Pickup_command_response_msg::Pickup_command_response_msg()
  1353. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1354. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1355. ::protobuf_terminal_5fmessage_2eproto::InitDefaultsPickup_command_response_msg();
  1356. }
  1357. SharedCtor();
  1358. // @@protoc_insertion_point(constructor:message.Pickup_command_response_msg)
  1359. }
  1360. Pickup_command_response_msg::Pickup_command_response_msg(const Pickup_command_response_msg& from)
  1361. : ::google::protobuf::Message(),
  1362. _internal_metadata_(NULL),
  1363. _has_bits_(from._has_bits_),
  1364. _cached_size_(0) {
  1365. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1366. if (from.has_base_info()) {
  1367. base_info_ = new ::message::Base_info(*from.base_info_);
  1368. } else {
  1369. base_info_ = NULL;
  1370. }
  1371. if (from.has_code()) {
  1372. code_ = new ::message::Error_manager(*from.code_);
  1373. } else {
  1374. code_ = NULL;
  1375. }
  1376. terminal_id_ = from.terminal_id_;
  1377. // @@protoc_insertion_point(copy_constructor:message.Pickup_command_response_msg)
  1378. }
  1379. void Pickup_command_response_msg::SharedCtor() {
  1380. _cached_size_ = 0;
  1381. ::memset(&base_info_, 0, static_cast<size_t>(
  1382. reinterpret_cast<char*>(&terminal_id_) -
  1383. reinterpret_cast<char*>(&base_info_)) + sizeof(terminal_id_));
  1384. }
  1385. Pickup_command_response_msg::~Pickup_command_response_msg() {
  1386. // @@protoc_insertion_point(destructor:message.Pickup_command_response_msg)
  1387. SharedDtor();
  1388. }
  1389. void Pickup_command_response_msg::SharedDtor() {
  1390. if (this != internal_default_instance()) delete base_info_;
  1391. if (this != internal_default_instance()) delete code_;
  1392. }
  1393. void Pickup_command_response_msg::SetCachedSize(int size) const {
  1394. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1395. _cached_size_ = size;
  1396. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1397. }
  1398. const ::google::protobuf::Descriptor* Pickup_command_response_msg::descriptor() {
  1399. ::protobuf_terminal_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1400. return ::protobuf_terminal_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1401. }
  1402. const Pickup_command_response_msg& Pickup_command_response_msg::default_instance() {
  1403. ::protobuf_terminal_5fmessage_2eproto::InitDefaultsPickup_command_response_msg();
  1404. return *internal_default_instance();
  1405. }
  1406. Pickup_command_response_msg* Pickup_command_response_msg::New(::google::protobuf::Arena* arena) const {
  1407. Pickup_command_response_msg* n = new Pickup_command_response_msg;
  1408. if (arena != NULL) {
  1409. arena->Own(n);
  1410. }
  1411. return n;
  1412. }
  1413. void Pickup_command_response_msg::Clear() {
  1414. // @@protoc_insertion_point(message_clear_start:message.Pickup_command_response_msg)
  1415. ::google::protobuf::uint32 cached_has_bits = 0;
  1416. // Prevent compiler warnings about cached_has_bits being unused
  1417. (void) cached_has_bits;
  1418. cached_has_bits = _has_bits_[0];
  1419. if (cached_has_bits & 3u) {
  1420. if (cached_has_bits & 0x00000001u) {
  1421. GOOGLE_DCHECK(base_info_ != NULL);
  1422. base_info_->Clear();
  1423. }
  1424. if (cached_has_bits & 0x00000002u) {
  1425. GOOGLE_DCHECK(code_ != NULL);
  1426. code_->Clear();
  1427. }
  1428. }
  1429. terminal_id_ = 0;
  1430. _has_bits_.Clear();
  1431. _internal_metadata_.Clear();
  1432. }
  1433. bool Pickup_command_response_msg::MergePartialFromCodedStream(
  1434. ::google::protobuf::io::CodedInputStream* input) {
  1435. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1436. ::google::protobuf::uint32 tag;
  1437. // @@protoc_insertion_point(parse_start:message.Pickup_command_response_msg)
  1438. for (;;) {
  1439. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1440. tag = p.first;
  1441. if (!p.second) goto handle_unusual;
  1442. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1443. // required .message.Base_info base_info = 1;
  1444. case 1: {
  1445. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1446. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1447. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1448. input, mutable_base_info()));
  1449. } else {
  1450. goto handle_unusual;
  1451. }
  1452. break;
  1453. }
  1454. // required int32 terminal_id = 2;
  1455. case 2: {
  1456. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1457. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1458. set_has_terminal_id();
  1459. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1460. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1461. input, &terminal_id_)));
  1462. } else {
  1463. goto handle_unusual;
  1464. }
  1465. break;
  1466. }
  1467. // required .message.Error_manager code = 3;
  1468. case 3: {
  1469. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1470. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1471. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1472. input, mutable_code()));
  1473. } else {
  1474. goto handle_unusual;
  1475. }
  1476. break;
  1477. }
  1478. default: {
  1479. handle_unusual:
  1480. if (tag == 0) {
  1481. goto success;
  1482. }
  1483. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1484. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1485. break;
  1486. }
  1487. }
  1488. }
  1489. success:
  1490. // @@protoc_insertion_point(parse_success:message.Pickup_command_response_msg)
  1491. return true;
  1492. failure:
  1493. // @@protoc_insertion_point(parse_failure:message.Pickup_command_response_msg)
  1494. return false;
  1495. #undef DO_
  1496. }
  1497. void Pickup_command_response_msg::SerializeWithCachedSizes(
  1498. ::google::protobuf::io::CodedOutputStream* output) const {
  1499. // @@protoc_insertion_point(serialize_start:message.Pickup_command_response_msg)
  1500. ::google::protobuf::uint32 cached_has_bits = 0;
  1501. (void) cached_has_bits;
  1502. cached_has_bits = _has_bits_[0];
  1503. // required .message.Base_info base_info = 1;
  1504. if (cached_has_bits & 0x00000001u) {
  1505. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1506. 1, *this->base_info_, output);
  1507. }
  1508. // required int32 terminal_id = 2;
  1509. if (cached_has_bits & 0x00000004u) {
  1510. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->terminal_id(), output);
  1511. }
  1512. // required .message.Error_manager code = 3;
  1513. if (cached_has_bits & 0x00000002u) {
  1514. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1515. 3, *this->code_, output);
  1516. }
  1517. if (_internal_metadata_.have_unknown_fields()) {
  1518. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1519. _internal_metadata_.unknown_fields(), output);
  1520. }
  1521. // @@protoc_insertion_point(serialize_end:message.Pickup_command_response_msg)
  1522. }
  1523. ::google::protobuf::uint8* Pickup_command_response_msg::InternalSerializeWithCachedSizesToArray(
  1524. bool deterministic, ::google::protobuf::uint8* target) const {
  1525. (void)deterministic; // Unused
  1526. // @@protoc_insertion_point(serialize_to_array_start:message.Pickup_command_response_msg)
  1527. ::google::protobuf::uint32 cached_has_bits = 0;
  1528. (void) cached_has_bits;
  1529. cached_has_bits = _has_bits_[0];
  1530. // required .message.Base_info base_info = 1;
  1531. if (cached_has_bits & 0x00000001u) {
  1532. target = ::google::protobuf::internal::WireFormatLite::
  1533. InternalWriteMessageToArray(
  1534. 1, *this->base_info_, deterministic, target);
  1535. }
  1536. // required int32 terminal_id = 2;
  1537. if (cached_has_bits & 0x00000004u) {
  1538. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->terminal_id(), target);
  1539. }
  1540. // required .message.Error_manager code = 3;
  1541. if (cached_has_bits & 0x00000002u) {
  1542. target = ::google::protobuf::internal::WireFormatLite::
  1543. InternalWriteMessageToArray(
  1544. 3, *this->code_, deterministic, target);
  1545. }
  1546. if (_internal_metadata_.have_unknown_fields()) {
  1547. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1548. _internal_metadata_.unknown_fields(), target);
  1549. }
  1550. // @@protoc_insertion_point(serialize_to_array_end:message.Pickup_command_response_msg)
  1551. return target;
  1552. }
  1553. size_t Pickup_command_response_msg::RequiredFieldsByteSizeFallback() const {
  1554. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Pickup_command_response_msg)
  1555. size_t total_size = 0;
  1556. if (has_base_info()) {
  1557. // required .message.Base_info base_info = 1;
  1558. total_size += 1 +
  1559. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1560. *this->base_info_);
  1561. }
  1562. if (has_code()) {
  1563. // required .message.Error_manager code = 3;
  1564. total_size += 1 +
  1565. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1566. *this->code_);
  1567. }
  1568. if (has_terminal_id()) {
  1569. // required int32 terminal_id = 2;
  1570. total_size += 1 +
  1571. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1572. this->terminal_id());
  1573. }
  1574. return total_size;
  1575. }
  1576. size_t Pickup_command_response_msg::ByteSizeLong() const {
  1577. // @@protoc_insertion_point(message_byte_size_start:message.Pickup_command_response_msg)
  1578. size_t total_size = 0;
  1579. if (_internal_metadata_.have_unknown_fields()) {
  1580. total_size +=
  1581. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1582. _internal_metadata_.unknown_fields());
  1583. }
  1584. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  1585. // required .message.Base_info base_info = 1;
  1586. total_size += 1 +
  1587. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1588. *this->base_info_);
  1589. // required .message.Error_manager code = 3;
  1590. total_size += 1 +
  1591. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1592. *this->code_);
  1593. // required int32 terminal_id = 2;
  1594. total_size += 1 +
  1595. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1596. this->terminal_id());
  1597. } else {
  1598. total_size += RequiredFieldsByteSizeFallback();
  1599. }
  1600. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1601. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1602. _cached_size_ = cached_size;
  1603. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1604. return total_size;
  1605. }
  1606. void Pickup_command_response_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1607. // @@protoc_insertion_point(generalized_merge_from_start:message.Pickup_command_response_msg)
  1608. GOOGLE_DCHECK_NE(&from, this);
  1609. const Pickup_command_response_msg* source =
  1610. ::google::protobuf::internal::DynamicCastToGenerated<const Pickup_command_response_msg>(
  1611. &from);
  1612. if (source == NULL) {
  1613. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Pickup_command_response_msg)
  1614. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1615. } else {
  1616. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Pickup_command_response_msg)
  1617. MergeFrom(*source);
  1618. }
  1619. }
  1620. void Pickup_command_response_msg::MergeFrom(const Pickup_command_response_msg& from) {
  1621. // @@protoc_insertion_point(class_specific_merge_from_start:message.Pickup_command_response_msg)
  1622. GOOGLE_DCHECK_NE(&from, this);
  1623. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1624. ::google::protobuf::uint32 cached_has_bits = 0;
  1625. (void) cached_has_bits;
  1626. cached_has_bits = from._has_bits_[0];
  1627. if (cached_has_bits & 7u) {
  1628. if (cached_has_bits & 0x00000001u) {
  1629. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1630. }
  1631. if (cached_has_bits & 0x00000002u) {
  1632. mutable_code()->::message::Error_manager::MergeFrom(from.code());
  1633. }
  1634. if (cached_has_bits & 0x00000004u) {
  1635. terminal_id_ = from.terminal_id_;
  1636. }
  1637. _has_bits_[0] |= cached_has_bits;
  1638. }
  1639. }
  1640. void Pickup_command_response_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1641. // @@protoc_insertion_point(generalized_copy_from_start:message.Pickup_command_response_msg)
  1642. if (&from == this) return;
  1643. Clear();
  1644. MergeFrom(from);
  1645. }
  1646. void Pickup_command_response_msg::CopyFrom(const Pickup_command_response_msg& from) {
  1647. // @@protoc_insertion_point(class_specific_copy_from_start:message.Pickup_command_response_msg)
  1648. if (&from == this) return;
  1649. Clear();
  1650. MergeFrom(from);
  1651. }
  1652. bool Pickup_command_response_msg::IsInitialized() const {
  1653. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  1654. if (has_base_info()) {
  1655. if (!this->base_info_->IsInitialized()) return false;
  1656. }
  1657. if (has_code()) {
  1658. if (!this->code_->IsInitialized()) return false;
  1659. }
  1660. return true;
  1661. }
  1662. void Pickup_command_response_msg::Swap(Pickup_command_response_msg* other) {
  1663. if (other == this) return;
  1664. InternalSwap(other);
  1665. }
  1666. void Pickup_command_response_msg::InternalSwap(Pickup_command_response_msg* other) {
  1667. using std::swap;
  1668. swap(base_info_, other->base_info_);
  1669. swap(code_, other->code_);
  1670. swap(terminal_id_, other->terminal_id_);
  1671. swap(_has_bits_[0], other->_has_bits_[0]);
  1672. _internal_metadata_.Swap(&other->_internal_metadata_);
  1673. swap(_cached_size_, other->_cached_size_);
  1674. }
  1675. ::google::protobuf::Metadata Pickup_command_response_msg::GetMetadata() const {
  1676. protobuf_terminal_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1677. return ::protobuf_terminal_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1678. }
  1679. // @@protoc_insertion_point(namespace_scope)
  1680. } // namespace message
  1681. // @@protoc_insertion_point(global_scope)