message_base.pb.cc 66 KB

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