message_base.pb.cc 66 KB

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