message_base.pb.cc 66 KB

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