dispatch_message.pb.cc 70 KB

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