message_base.pb.cc 66 KB

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