message_base.pb.cc 65 KB

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