dispatch_message.pb.cc 72 KB

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