message_base.pb.cc 56 KB

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