terminal_message.pb.cc 68 KB

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