message_base.pb.cc 66 KB

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