terminal_message.pb.cc 76 KB

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