locate_message.pb.h 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: locate_message.proto
  3. #ifndef PROTOBUF_locate_5fmessage_2eproto__INCLUDED
  4. #define PROTOBUF_locate_5fmessage_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3005000
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/metadata.h>
  23. #include <google/protobuf/message.h>
  24. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  25. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  26. #include <google/protobuf/generated_enum_reflection.h>
  27. #include <google/protobuf/unknown_field_set.h>
  28. #include "message_base.pb.h"
  29. // @@protoc_insertion_point(includes)
  30. namespace protobuf_locate_5fmessage_2eproto {
  31. // Internal implementation detail -- do not use these members.
  32. struct TableStruct {
  33. static const ::google::protobuf::internal::ParseTableField entries[];
  34. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  35. static const ::google::protobuf::internal::ParseTable schema[3];
  36. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  37. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  38. static const ::google::protobuf::uint32 offsets[];
  39. };
  40. void AddDescriptors();
  41. void InitDefaultsLocate_status_msgImpl();
  42. void InitDefaultsLocate_status_msg();
  43. void InitDefaultsLocate_request_msgImpl();
  44. void InitDefaultsLocate_request_msg();
  45. void InitDefaultsLocate_response_msgImpl();
  46. void InitDefaultsLocate_response_msg();
  47. inline void InitDefaults() {
  48. InitDefaultsLocate_status_msg();
  49. InitDefaultsLocate_request_msg();
  50. InitDefaultsLocate_response_msg();
  51. }
  52. } // namespace protobuf_locate_5fmessage_2eproto
  53. namespace message {
  54. class Locate_request_msg;
  55. class Locate_request_msgDefaultTypeInternal;
  56. extern Locate_request_msgDefaultTypeInternal _Locate_request_msg_default_instance_;
  57. class Locate_response_msg;
  58. class Locate_response_msgDefaultTypeInternal;
  59. extern Locate_response_msgDefaultTypeInternal _Locate_response_msg_default_instance_;
  60. class Locate_status_msg;
  61. class Locate_status_msgDefaultTypeInternal;
  62. extern Locate_status_msgDefaultTypeInternal _Locate_status_msg_default_instance_;
  63. } // namespace message
  64. namespace message {
  65. enum Lidar_statu {
  66. eNormal = 0,
  67. eBusy = 1,
  68. eLidarMiss = 2
  69. };
  70. bool Lidar_statu_IsValid(int value);
  71. const Lidar_statu Lidar_statu_MIN = eNormal;
  72. const Lidar_statu Lidar_statu_MAX = eLidarMiss;
  73. const int Lidar_statu_ARRAYSIZE = Lidar_statu_MAX + 1;
  74. const ::google::protobuf::EnumDescriptor* Lidar_statu_descriptor();
  75. inline const ::std::string& Lidar_statu_Name(Lidar_statu value) {
  76. return ::google::protobuf::internal::NameOfEnum(
  77. Lidar_statu_descriptor(), value);
  78. }
  79. inline bool Lidar_statu_Parse(
  80. const ::std::string& name, Lidar_statu* value) {
  81. return ::google::protobuf::internal::ParseNamedEnum<Lidar_statu>(
  82. Lidar_statu_descriptor(), name, value);
  83. }
  84. enum Locate_type {
  85. eReal_time = 0,
  86. eTrigger = 1
  87. };
  88. bool Locate_type_IsValid(int value);
  89. const Locate_type Locate_type_MIN = eReal_time;
  90. const Locate_type Locate_type_MAX = eTrigger;
  91. const int Locate_type_ARRAYSIZE = Locate_type_MAX + 1;
  92. const ::google::protobuf::EnumDescriptor* Locate_type_descriptor();
  93. inline const ::std::string& Locate_type_Name(Locate_type value) {
  94. return ::google::protobuf::internal::NameOfEnum(
  95. Locate_type_descriptor(), value);
  96. }
  97. inline bool Locate_type_Parse(
  98. const ::std::string& name, Locate_type* value) {
  99. return ::google::protobuf::internal::ParseNamedEnum<Locate_type>(
  100. Locate_type_descriptor(), name, value);
  101. }
  102. // ===================================================================
  103. class Locate_status_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Locate_status_msg) */ {
  104. public:
  105. Locate_status_msg();
  106. virtual ~Locate_status_msg();
  107. Locate_status_msg(const Locate_status_msg& from);
  108. inline Locate_status_msg& operator=(const Locate_status_msg& from) {
  109. CopyFrom(from);
  110. return *this;
  111. }
  112. #if LANG_CXX11
  113. Locate_status_msg(Locate_status_msg&& from) noexcept
  114. : Locate_status_msg() {
  115. *this = ::std::move(from);
  116. }
  117. inline Locate_status_msg& operator=(Locate_status_msg&& from) noexcept {
  118. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  119. if (this != &from) InternalSwap(&from);
  120. } else {
  121. CopyFrom(from);
  122. }
  123. return *this;
  124. }
  125. #endif
  126. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  127. return _internal_metadata_.unknown_fields();
  128. }
  129. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  130. return _internal_metadata_.mutable_unknown_fields();
  131. }
  132. static const ::google::protobuf::Descriptor* descriptor();
  133. static const Locate_status_msg& default_instance();
  134. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  135. static inline const Locate_status_msg* internal_default_instance() {
  136. return reinterpret_cast<const Locate_status_msg*>(
  137. &_Locate_status_msg_default_instance_);
  138. }
  139. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  140. 0;
  141. void Swap(Locate_status_msg* other);
  142. friend void swap(Locate_status_msg& a, Locate_status_msg& b) {
  143. a.Swap(&b);
  144. }
  145. // implements Message ----------------------------------------------
  146. inline Locate_status_msg* New() const PROTOBUF_FINAL { return New(NULL); }
  147. Locate_status_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  148. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  149. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  150. void CopyFrom(const Locate_status_msg& from);
  151. void MergeFrom(const Locate_status_msg& from);
  152. void Clear() PROTOBUF_FINAL;
  153. bool IsInitialized() const PROTOBUF_FINAL;
  154. size_t ByteSizeLong() const PROTOBUF_FINAL;
  155. bool MergePartialFromCodedStream(
  156. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  157. void SerializeWithCachedSizes(
  158. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  159. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  160. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  161. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  162. private:
  163. void SharedCtor();
  164. void SharedDtor();
  165. void SetCachedSize(int size) const PROTOBUF_FINAL;
  166. void InternalSwap(Locate_status_msg* other);
  167. private:
  168. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  169. return NULL;
  170. }
  171. inline void* MaybeArenaPtr() const {
  172. return NULL;
  173. }
  174. public:
  175. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  176. // nested types ----------------------------------------------------
  177. // accessors -------------------------------------------------------
  178. // optional .message.Command_message cmd_msg = 2;
  179. bool has_cmd_msg() const;
  180. void clear_cmd_msg();
  181. static const int kCmdMsgFieldNumber = 2;
  182. const ::message::Command_message& cmd_msg() const;
  183. ::message::Command_message* release_cmd_msg();
  184. ::message::Command_message* mutable_cmd_msg();
  185. void set_allocated_cmd_msg(::message::Command_message* cmd_msg);
  186. // required .message.Message_type msg_type = 1;
  187. bool has_msg_type() const;
  188. void clear_msg_type();
  189. static const int kMsgTypeFieldNumber = 1;
  190. ::message::Message_type msg_type() const;
  191. void set_msg_type(::message::Message_type value);
  192. // required .message.Lidar_statu dj_statu1 = 3;
  193. bool has_dj_statu1() const;
  194. void clear_dj_statu1();
  195. static const int kDjStatu1FieldNumber = 3;
  196. ::message::Lidar_statu dj_statu1() const;
  197. void set_dj_statu1(::message::Lidar_statu value);
  198. // required .message.Lidar_statu dj_statu2 = 4;
  199. bool has_dj_statu2() const;
  200. void clear_dj_statu2();
  201. static const int kDjStatu2FieldNumber = 4;
  202. ::message::Lidar_statu dj_statu2() const;
  203. void set_dj_statu2(::message::Lidar_statu value);
  204. // required .message.Lidar_statu dj_statu3 = 5;
  205. bool has_dj_statu3() const;
  206. void clear_dj_statu3();
  207. static const int kDjStatu3FieldNumber = 5;
  208. ::message::Lidar_statu dj_statu3() const;
  209. void set_dj_statu3(::message::Lidar_statu value);
  210. // required .message.Lidar_statu dj_statu4 = 6;
  211. bool has_dj_statu4() const;
  212. void clear_dj_statu4();
  213. static const int kDjStatu4FieldNumber = 6;
  214. ::message::Lidar_statu dj_statu4() const;
  215. void set_dj_statu4(::message::Lidar_statu value);
  216. // @@protoc_insertion_point(class_scope:message.Locate_status_msg)
  217. private:
  218. void set_has_msg_type();
  219. void clear_has_msg_type();
  220. void set_has_cmd_msg();
  221. void clear_has_cmd_msg();
  222. void set_has_dj_statu1();
  223. void clear_has_dj_statu1();
  224. void set_has_dj_statu2();
  225. void clear_has_dj_statu2();
  226. void set_has_dj_statu3();
  227. void clear_has_dj_statu3();
  228. void set_has_dj_statu4();
  229. void clear_has_dj_statu4();
  230. // helper for ByteSizeLong()
  231. size_t RequiredFieldsByteSizeFallback() const;
  232. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  233. ::google::protobuf::internal::HasBits<1> _has_bits_;
  234. mutable int _cached_size_;
  235. ::message::Command_message* cmd_msg_;
  236. int msg_type_;
  237. int dj_statu1_;
  238. int dj_statu2_;
  239. int dj_statu3_;
  240. int dj_statu4_;
  241. friend struct ::protobuf_locate_5fmessage_2eproto::TableStruct;
  242. friend void ::protobuf_locate_5fmessage_2eproto::InitDefaultsLocate_status_msgImpl();
  243. };
  244. // -------------------------------------------------------------------
  245. class Locate_request_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Locate_request_msg) */ {
  246. public:
  247. Locate_request_msg();
  248. virtual ~Locate_request_msg();
  249. Locate_request_msg(const Locate_request_msg& from);
  250. inline Locate_request_msg& operator=(const Locate_request_msg& from) {
  251. CopyFrom(from);
  252. return *this;
  253. }
  254. #if LANG_CXX11
  255. Locate_request_msg(Locate_request_msg&& from) noexcept
  256. : Locate_request_msg() {
  257. *this = ::std::move(from);
  258. }
  259. inline Locate_request_msg& operator=(Locate_request_msg&& from) noexcept {
  260. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  261. if (this != &from) InternalSwap(&from);
  262. } else {
  263. CopyFrom(from);
  264. }
  265. return *this;
  266. }
  267. #endif
  268. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  269. return _internal_metadata_.unknown_fields();
  270. }
  271. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  272. return _internal_metadata_.mutable_unknown_fields();
  273. }
  274. static const ::google::protobuf::Descriptor* descriptor();
  275. static const Locate_request_msg& default_instance();
  276. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  277. static inline const Locate_request_msg* internal_default_instance() {
  278. return reinterpret_cast<const Locate_request_msg*>(
  279. &_Locate_request_msg_default_instance_);
  280. }
  281. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  282. 1;
  283. void Swap(Locate_request_msg* other);
  284. friend void swap(Locate_request_msg& a, Locate_request_msg& b) {
  285. a.Swap(&b);
  286. }
  287. // implements Message ----------------------------------------------
  288. inline Locate_request_msg* New() const PROTOBUF_FINAL { return New(NULL); }
  289. Locate_request_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  290. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  291. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  292. void CopyFrom(const Locate_request_msg& from);
  293. void MergeFrom(const Locate_request_msg& from);
  294. void Clear() PROTOBUF_FINAL;
  295. bool IsInitialized() const PROTOBUF_FINAL;
  296. size_t ByteSizeLong() const PROTOBUF_FINAL;
  297. bool MergePartialFromCodedStream(
  298. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  299. void SerializeWithCachedSizes(
  300. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  301. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  302. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  303. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  304. private:
  305. void SharedCtor();
  306. void SharedDtor();
  307. void SetCachedSize(int size) const PROTOBUF_FINAL;
  308. void InternalSwap(Locate_request_msg* other);
  309. private:
  310. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  311. return NULL;
  312. }
  313. inline void* MaybeArenaPtr() const {
  314. return NULL;
  315. }
  316. public:
  317. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  318. // nested types ----------------------------------------------------
  319. // accessors -------------------------------------------------------
  320. // required .message.Command_message cmd_msg = 2;
  321. bool has_cmd_msg() const;
  322. void clear_cmd_msg();
  323. static const int kCmdMsgFieldNumber = 2;
  324. const ::message::Command_message& cmd_msg() const;
  325. ::message::Command_message* release_cmd_msg();
  326. ::message::Command_message* mutable_cmd_msg();
  327. void set_allocated_cmd_msg(::message::Command_message* cmd_msg);
  328. // required .message.Message_type msg_type = 1;
  329. bool has_msg_type() const;
  330. void clear_msg_type();
  331. static const int kMsgTypeFieldNumber = 1;
  332. ::message::Message_type msg_type() const;
  333. void set_msg_type(::message::Message_type value);
  334. // required .message.Locate_type locate_type = 3;
  335. bool has_locate_type() const;
  336. void clear_locate_type();
  337. static const int kLocateTypeFieldNumber = 3;
  338. ::message::Locate_type locate_type() const;
  339. void set_locate_type(::message::Locate_type value);
  340. // optional int32 time_out = 4 [default = 5000];
  341. bool has_time_out() const;
  342. void clear_time_out();
  343. static const int kTimeOutFieldNumber = 4;
  344. ::google::protobuf::int32 time_out() const;
  345. void set_time_out(::google::protobuf::int32 value);
  346. // @@protoc_insertion_point(class_scope:message.Locate_request_msg)
  347. private:
  348. void set_has_msg_type();
  349. void clear_has_msg_type();
  350. void set_has_cmd_msg();
  351. void clear_has_cmd_msg();
  352. void set_has_locate_type();
  353. void clear_has_locate_type();
  354. void set_has_time_out();
  355. void clear_has_time_out();
  356. // helper for ByteSizeLong()
  357. size_t RequiredFieldsByteSizeFallback() const;
  358. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  359. ::google::protobuf::internal::HasBits<1> _has_bits_;
  360. mutable int _cached_size_;
  361. ::message::Command_message* cmd_msg_;
  362. int msg_type_;
  363. int locate_type_;
  364. ::google::protobuf::int32 time_out_;
  365. friend struct ::protobuf_locate_5fmessage_2eproto::TableStruct;
  366. friend void ::protobuf_locate_5fmessage_2eproto::InitDefaultsLocate_request_msgImpl();
  367. };
  368. // -------------------------------------------------------------------
  369. class Locate_response_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Locate_response_msg) */ {
  370. public:
  371. Locate_response_msg();
  372. virtual ~Locate_response_msg();
  373. Locate_response_msg(const Locate_response_msg& from);
  374. inline Locate_response_msg& operator=(const Locate_response_msg& from) {
  375. CopyFrom(from);
  376. return *this;
  377. }
  378. #if LANG_CXX11
  379. Locate_response_msg(Locate_response_msg&& from) noexcept
  380. : Locate_response_msg() {
  381. *this = ::std::move(from);
  382. }
  383. inline Locate_response_msg& operator=(Locate_response_msg&& from) noexcept {
  384. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  385. if (this != &from) InternalSwap(&from);
  386. } else {
  387. CopyFrom(from);
  388. }
  389. return *this;
  390. }
  391. #endif
  392. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  393. return _internal_metadata_.unknown_fields();
  394. }
  395. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  396. return _internal_metadata_.mutable_unknown_fields();
  397. }
  398. static const ::google::protobuf::Descriptor* descriptor();
  399. static const Locate_response_msg& default_instance();
  400. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  401. static inline const Locate_response_msg* internal_default_instance() {
  402. return reinterpret_cast<const Locate_response_msg*>(
  403. &_Locate_response_msg_default_instance_);
  404. }
  405. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  406. 2;
  407. void Swap(Locate_response_msg* other);
  408. friend void swap(Locate_response_msg& a, Locate_response_msg& b) {
  409. a.Swap(&b);
  410. }
  411. // implements Message ----------------------------------------------
  412. inline Locate_response_msg* New() const PROTOBUF_FINAL { return New(NULL); }
  413. Locate_response_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  414. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  415. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  416. void CopyFrom(const Locate_response_msg& from);
  417. void MergeFrom(const Locate_response_msg& from);
  418. void Clear() PROTOBUF_FINAL;
  419. bool IsInitialized() const PROTOBUF_FINAL;
  420. size_t ByteSizeLong() const PROTOBUF_FINAL;
  421. bool MergePartialFromCodedStream(
  422. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  423. void SerializeWithCachedSizes(
  424. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  425. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  426. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  427. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  428. private:
  429. void SharedCtor();
  430. void SharedDtor();
  431. void SetCachedSize(int size) const PROTOBUF_FINAL;
  432. void InternalSwap(Locate_response_msg* other);
  433. private:
  434. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  435. return NULL;
  436. }
  437. inline void* MaybeArenaPtr() const {
  438. return NULL;
  439. }
  440. public:
  441. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  442. // nested types ----------------------------------------------------
  443. // accessors -------------------------------------------------------
  444. // optional string error_description = 4;
  445. bool has_error_description() const;
  446. void clear_error_description();
  447. static const int kErrorDescriptionFieldNumber = 4;
  448. const ::std::string& error_description() const;
  449. void set_error_description(const ::std::string& value);
  450. #if LANG_CXX11
  451. void set_error_description(::std::string&& value);
  452. #endif
  453. void set_error_description(const char* value);
  454. void set_error_description(const char* value, size_t size);
  455. ::std::string* mutable_error_description();
  456. ::std::string* release_error_description();
  457. void set_allocated_error_description(::std::string* error_description);
  458. // required .message.Command_message cmd_msg = 2;
  459. bool has_cmd_msg() const;
  460. void clear_cmd_msg();
  461. static const int kCmdMsgFieldNumber = 2;
  462. const ::message::Command_message& cmd_msg() const;
  463. ::message::Command_message* release_cmd_msg();
  464. ::message::Command_message* mutable_cmd_msg();
  465. void set_allocated_cmd_msg(::message::Command_message* cmd_msg);
  466. // required .message.Message_type msg_type = 1;
  467. bool has_msg_type() const;
  468. void clear_msg_type();
  469. static const int kMsgTypeFieldNumber = 1;
  470. ::message::Message_type msg_type() const;
  471. void set_msg_type(::message::Message_type value);
  472. // required int32 error_code = 3;
  473. bool has_error_code() const;
  474. void clear_error_code();
  475. static const int kErrorCodeFieldNumber = 3;
  476. ::google::protobuf::int32 error_code() const;
  477. void set_error_code(::google::protobuf::int32 value);
  478. // optional float length = 5;
  479. bool has_length() const;
  480. void clear_length();
  481. static const int kLengthFieldNumber = 5;
  482. float length() const;
  483. void set_length(float value);
  484. // optional float width = 6;
  485. bool has_width() const;
  486. void clear_width();
  487. static const int kWidthFieldNumber = 6;
  488. float width() const;
  489. void set_width(float value);
  490. // optional float height = 7;
  491. bool has_height() const;
  492. void clear_height();
  493. static const int kHeightFieldNumber = 7;
  494. float height() const;
  495. void set_height(float value);
  496. // optional float wheel_base = 8;
  497. bool has_wheel_base() const;
  498. void clear_wheel_base();
  499. static const int kWheelBaseFieldNumber = 8;
  500. float wheel_base() const;
  501. void set_wheel_base(float value);
  502. // optional float x = 9;
  503. bool has_x() const;
  504. void clear_x();
  505. static const int kXFieldNumber = 9;
  506. float x() const;
  507. void set_x(float value);
  508. // optional float y = 10;
  509. bool has_y() const;
  510. void clear_y();
  511. static const int kYFieldNumber = 10;
  512. float y() const;
  513. void set_y(float value);
  514. // optional float theta = 11;
  515. bool has_theta() const;
  516. void clear_theta();
  517. static const int kThetaFieldNumber = 11;
  518. float theta() const;
  519. void set_theta(float value);
  520. // @@protoc_insertion_point(class_scope:message.Locate_response_msg)
  521. private:
  522. void set_has_msg_type();
  523. void clear_has_msg_type();
  524. void set_has_cmd_msg();
  525. void clear_has_cmd_msg();
  526. void set_has_error_code();
  527. void clear_has_error_code();
  528. void set_has_error_description();
  529. void clear_has_error_description();
  530. void set_has_length();
  531. void clear_has_length();
  532. void set_has_width();
  533. void clear_has_width();
  534. void set_has_height();
  535. void clear_has_height();
  536. void set_has_wheel_base();
  537. void clear_has_wheel_base();
  538. void set_has_x();
  539. void clear_has_x();
  540. void set_has_y();
  541. void clear_has_y();
  542. void set_has_theta();
  543. void clear_has_theta();
  544. // helper for ByteSizeLong()
  545. size_t RequiredFieldsByteSizeFallback() const;
  546. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  547. ::google::protobuf::internal::HasBits<1> _has_bits_;
  548. mutable int _cached_size_;
  549. ::google::protobuf::internal::ArenaStringPtr error_description_;
  550. ::message::Command_message* cmd_msg_;
  551. int msg_type_;
  552. ::google::protobuf::int32 error_code_;
  553. float length_;
  554. float width_;
  555. float height_;
  556. float wheel_base_;
  557. float x_;
  558. float y_;
  559. float theta_;
  560. friend struct ::protobuf_locate_5fmessage_2eproto::TableStruct;
  561. friend void ::protobuf_locate_5fmessage_2eproto::InitDefaultsLocate_response_msgImpl();
  562. };
  563. // ===================================================================
  564. // ===================================================================
  565. #ifdef __GNUC__
  566. #pragma GCC diagnostic push
  567. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  568. #endif // __GNUC__
  569. // Locate_status_msg
  570. // required .message.Message_type msg_type = 1;
  571. inline bool Locate_status_msg::has_msg_type() const {
  572. return (_has_bits_[0] & 0x00000002u) != 0;
  573. }
  574. inline void Locate_status_msg::set_has_msg_type() {
  575. _has_bits_[0] |= 0x00000002u;
  576. }
  577. inline void Locate_status_msg::clear_has_msg_type() {
  578. _has_bits_[0] &= ~0x00000002u;
  579. }
  580. inline void Locate_status_msg::clear_msg_type() {
  581. msg_type_ = 0;
  582. clear_has_msg_type();
  583. }
  584. inline ::message::Message_type Locate_status_msg::msg_type() const {
  585. // @@protoc_insertion_point(field_get:message.Locate_status_msg.msg_type)
  586. return static_cast< ::message::Message_type >(msg_type_);
  587. }
  588. inline void Locate_status_msg::set_msg_type(::message::Message_type value) {
  589. assert(::message::Message_type_IsValid(value));
  590. set_has_msg_type();
  591. msg_type_ = value;
  592. // @@protoc_insertion_point(field_set:message.Locate_status_msg.msg_type)
  593. }
  594. // optional .message.Command_message cmd_msg = 2;
  595. inline bool Locate_status_msg::has_cmd_msg() const {
  596. return (_has_bits_[0] & 0x00000001u) != 0;
  597. }
  598. inline void Locate_status_msg::set_has_cmd_msg() {
  599. _has_bits_[0] |= 0x00000001u;
  600. }
  601. inline void Locate_status_msg::clear_has_cmd_msg() {
  602. _has_bits_[0] &= ~0x00000001u;
  603. }
  604. inline const ::message::Command_message& Locate_status_msg::cmd_msg() const {
  605. const ::message::Command_message* p = cmd_msg_;
  606. // @@protoc_insertion_point(field_get:message.Locate_status_msg.cmd_msg)
  607. return p != NULL ? *p : *reinterpret_cast<const ::message::Command_message*>(
  608. &::message::_Command_message_default_instance_);
  609. }
  610. inline ::message::Command_message* Locate_status_msg::release_cmd_msg() {
  611. // @@protoc_insertion_point(field_release:message.Locate_status_msg.cmd_msg)
  612. clear_has_cmd_msg();
  613. ::message::Command_message* temp = cmd_msg_;
  614. cmd_msg_ = NULL;
  615. return temp;
  616. }
  617. inline ::message::Command_message* Locate_status_msg::mutable_cmd_msg() {
  618. set_has_cmd_msg();
  619. if (cmd_msg_ == NULL) {
  620. cmd_msg_ = new ::message::Command_message;
  621. }
  622. // @@protoc_insertion_point(field_mutable:message.Locate_status_msg.cmd_msg)
  623. return cmd_msg_;
  624. }
  625. inline void Locate_status_msg::set_allocated_cmd_msg(::message::Command_message* cmd_msg) {
  626. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  627. if (message_arena == NULL) {
  628. delete reinterpret_cast< ::google::protobuf::MessageLite*>(cmd_msg_);
  629. }
  630. if (cmd_msg) {
  631. ::google::protobuf::Arena* submessage_arena = NULL;
  632. if (message_arena != submessage_arena) {
  633. cmd_msg = ::google::protobuf::internal::GetOwnedMessage(
  634. message_arena, cmd_msg, submessage_arena);
  635. }
  636. set_has_cmd_msg();
  637. } else {
  638. clear_has_cmd_msg();
  639. }
  640. cmd_msg_ = cmd_msg;
  641. // @@protoc_insertion_point(field_set_allocated:message.Locate_status_msg.cmd_msg)
  642. }
  643. // required .message.Lidar_statu dj_statu1 = 3;
  644. inline bool Locate_status_msg::has_dj_statu1() const {
  645. return (_has_bits_[0] & 0x00000004u) != 0;
  646. }
  647. inline void Locate_status_msg::set_has_dj_statu1() {
  648. _has_bits_[0] |= 0x00000004u;
  649. }
  650. inline void Locate_status_msg::clear_has_dj_statu1() {
  651. _has_bits_[0] &= ~0x00000004u;
  652. }
  653. inline void Locate_status_msg::clear_dj_statu1() {
  654. dj_statu1_ = 0;
  655. clear_has_dj_statu1();
  656. }
  657. inline ::message::Lidar_statu Locate_status_msg::dj_statu1() const {
  658. // @@protoc_insertion_point(field_get:message.Locate_status_msg.dj_statu1)
  659. return static_cast< ::message::Lidar_statu >(dj_statu1_);
  660. }
  661. inline void Locate_status_msg::set_dj_statu1(::message::Lidar_statu value) {
  662. assert(::message::Lidar_statu_IsValid(value));
  663. set_has_dj_statu1();
  664. dj_statu1_ = value;
  665. // @@protoc_insertion_point(field_set:message.Locate_status_msg.dj_statu1)
  666. }
  667. // required .message.Lidar_statu dj_statu2 = 4;
  668. inline bool Locate_status_msg::has_dj_statu2() const {
  669. return (_has_bits_[0] & 0x00000008u) != 0;
  670. }
  671. inline void Locate_status_msg::set_has_dj_statu2() {
  672. _has_bits_[0] |= 0x00000008u;
  673. }
  674. inline void Locate_status_msg::clear_has_dj_statu2() {
  675. _has_bits_[0] &= ~0x00000008u;
  676. }
  677. inline void Locate_status_msg::clear_dj_statu2() {
  678. dj_statu2_ = 0;
  679. clear_has_dj_statu2();
  680. }
  681. inline ::message::Lidar_statu Locate_status_msg::dj_statu2() const {
  682. // @@protoc_insertion_point(field_get:message.Locate_status_msg.dj_statu2)
  683. return static_cast< ::message::Lidar_statu >(dj_statu2_);
  684. }
  685. inline void Locate_status_msg::set_dj_statu2(::message::Lidar_statu value) {
  686. assert(::message::Lidar_statu_IsValid(value));
  687. set_has_dj_statu2();
  688. dj_statu2_ = value;
  689. // @@protoc_insertion_point(field_set:message.Locate_status_msg.dj_statu2)
  690. }
  691. // required .message.Lidar_statu dj_statu3 = 5;
  692. inline bool Locate_status_msg::has_dj_statu3() const {
  693. return (_has_bits_[0] & 0x00000010u) != 0;
  694. }
  695. inline void Locate_status_msg::set_has_dj_statu3() {
  696. _has_bits_[0] |= 0x00000010u;
  697. }
  698. inline void Locate_status_msg::clear_has_dj_statu3() {
  699. _has_bits_[0] &= ~0x00000010u;
  700. }
  701. inline void Locate_status_msg::clear_dj_statu3() {
  702. dj_statu3_ = 0;
  703. clear_has_dj_statu3();
  704. }
  705. inline ::message::Lidar_statu Locate_status_msg::dj_statu3() const {
  706. // @@protoc_insertion_point(field_get:message.Locate_status_msg.dj_statu3)
  707. return static_cast< ::message::Lidar_statu >(dj_statu3_);
  708. }
  709. inline void Locate_status_msg::set_dj_statu3(::message::Lidar_statu value) {
  710. assert(::message::Lidar_statu_IsValid(value));
  711. set_has_dj_statu3();
  712. dj_statu3_ = value;
  713. // @@protoc_insertion_point(field_set:message.Locate_status_msg.dj_statu3)
  714. }
  715. // required .message.Lidar_statu dj_statu4 = 6;
  716. inline bool Locate_status_msg::has_dj_statu4() const {
  717. return (_has_bits_[0] & 0x00000020u) != 0;
  718. }
  719. inline void Locate_status_msg::set_has_dj_statu4() {
  720. _has_bits_[0] |= 0x00000020u;
  721. }
  722. inline void Locate_status_msg::clear_has_dj_statu4() {
  723. _has_bits_[0] &= ~0x00000020u;
  724. }
  725. inline void Locate_status_msg::clear_dj_statu4() {
  726. dj_statu4_ = 0;
  727. clear_has_dj_statu4();
  728. }
  729. inline ::message::Lidar_statu Locate_status_msg::dj_statu4() const {
  730. // @@protoc_insertion_point(field_get:message.Locate_status_msg.dj_statu4)
  731. return static_cast< ::message::Lidar_statu >(dj_statu4_);
  732. }
  733. inline void Locate_status_msg::set_dj_statu4(::message::Lidar_statu value) {
  734. assert(::message::Lidar_statu_IsValid(value));
  735. set_has_dj_statu4();
  736. dj_statu4_ = value;
  737. // @@protoc_insertion_point(field_set:message.Locate_status_msg.dj_statu4)
  738. }
  739. // -------------------------------------------------------------------
  740. // Locate_request_msg
  741. // required .message.Message_type msg_type = 1;
  742. inline bool Locate_request_msg::has_msg_type() const {
  743. return (_has_bits_[0] & 0x00000002u) != 0;
  744. }
  745. inline void Locate_request_msg::set_has_msg_type() {
  746. _has_bits_[0] |= 0x00000002u;
  747. }
  748. inline void Locate_request_msg::clear_has_msg_type() {
  749. _has_bits_[0] &= ~0x00000002u;
  750. }
  751. inline void Locate_request_msg::clear_msg_type() {
  752. msg_type_ = 0;
  753. clear_has_msg_type();
  754. }
  755. inline ::message::Message_type Locate_request_msg::msg_type() const {
  756. // @@protoc_insertion_point(field_get:message.Locate_request_msg.msg_type)
  757. return static_cast< ::message::Message_type >(msg_type_);
  758. }
  759. inline void Locate_request_msg::set_msg_type(::message::Message_type value) {
  760. assert(::message::Message_type_IsValid(value));
  761. set_has_msg_type();
  762. msg_type_ = value;
  763. // @@protoc_insertion_point(field_set:message.Locate_request_msg.msg_type)
  764. }
  765. // required .message.Command_message cmd_msg = 2;
  766. inline bool Locate_request_msg::has_cmd_msg() const {
  767. return (_has_bits_[0] & 0x00000001u) != 0;
  768. }
  769. inline void Locate_request_msg::set_has_cmd_msg() {
  770. _has_bits_[0] |= 0x00000001u;
  771. }
  772. inline void Locate_request_msg::clear_has_cmd_msg() {
  773. _has_bits_[0] &= ~0x00000001u;
  774. }
  775. inline const ::message::Command_message& Locate_request_msg::cmd_msg() const {
  776. const ::message::Command_message* p = cmd_msg_;
  777. // @@protoc_insertion_point(field_get:message.Locate_request_msg.cmd_msg)
  778. return p != NULL ? *p : *reinterpret_cast<const ::message::Command_message*>(
  779. &::message::_Command_message_default_instance_);
  780. }
  781. inline ::message::Command_message* Locate_request_msg::release_cmd_msg() {
  782. // @@protoc_insertion_point(field_release:message.Locate_request_msg.cmd_msg)
  783. clear_has_cmd_msg();
  784. ::message::Command_message* temp = cmd_msg_;
  785. cmd_msg_ = NULL;
  786. return temp;
  787. }
  788. inline ::message::Command_message* Locate_request_msg::mutable_cmd_msg() {
  789. set_has_cmd_msg();
  790. if (cmd_msg_ == NULL) {
  791. cmd_msg_ = new ::message::Command_message;
  792. }
  793. // @@protoc_insertion_point(field_mutable:message.Locate_request_msg.cmd_msg)
  794. return cmd_msg_;
  795. }
  796. inline void Locate_request_msg::set_allocated_cmd_msg(::message::Command_message* cmd_msg) {
  797. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  798. if (message_arena == NULL) {
  799. delete reinterpret_cast< ::google::protobuf::MessageLite*>(cmd_msg_);
  800. }
  801. if (cmd_msg) {
  802. ::google::protobuf::Arena* submessage_arena = NULL;
  803. if (message_arena != submessage_arena) {
  804. cmd_msg = ::google::protobuf::internal::GetOwnedMessage(
  805. message_arena, cmd_msg, submessage_arena);
  806. }
  807. set_has_cmd_msg();
  808. } else {
  809. clear_has_cmd_msg();
  810. }
  811. cmd_msg_ = cmd_msg;
  812. // @@protoc_insertion_point(field_set_allocated:message.Locate_request_msg.cmd_msg)
  813. }
  814. // required .message.Locate_type locate_type = 3;
  815. inline bool Locate_request_msg::has_locate_type() const {
  816. return (_has_bits_[0] & 0x00000004u) != 0;
  817. }
  818. inline void Locate_request_msg::set_has_locate_type() {
  819. _has_bits_[0] |= 0x00000004u;
  820. }
  821. inline void Locate_request_msg::clear_has_locate_type() {
  822. _has_bits_[0] &= ~0x00000004u;
  823. }
  824. inline void Locate_request_msg::clear_locate_type() {
  825. locate_type_ = 0;
  826. clear_has_locate_type();
  827. }
  828. inline ::message::Locate_type Locate_request_msg::locate_type() const {
  829. // @@protoc_insertion_point(field_get:message.Locate_request_msg.locate_type)
  830. return static_cast< ::message::Locate_type >(locate_type_);
  831. }
  832. inline void Locate_request_msg::set_locate_type(::message::Locate_type value) {
  833. assert(::message::Locate_type_IsValid(value));
  834. set_has_locate_type();
  835. locate_type_ = value;
  836. // @@protoc_insertion_point(field_set:message.Locate_request_msg.locate_type)
  837. }
  838. // optional int32 time_out = 4 [default = 5000];
  839. inline bool Locate_request_msg::has_time_out() const {
  840. return (_has_bits_[0] & 0x00000008u) != 0;
  841. }
  842. inline void Locate_request_msg::set_has_time_out() {
  843. _has_bits_[0] |= 0x00000008u;
  844. }
  845. inline void Locate_request_msg::clear_has_time_out() {
  846. _has_bits_[0] &= ~0x00000008u;
  847. }
  848. inline void Locate_request_msg::clear_time_out() {
  849. time_out_ = 5000;
  850. clear_has_time_out();
  851. }
  852. inline ::google::protobuf::int32 Locate_request_msg::time_out() const {
  853. // @@protoc_insertion_point(field_get:message.Locate_request_msg.time_out)
  854. return time_out_;
  855. }
  856. inline void Locate_request_msg::set_time_out(::google::protobuf::int32 value) {
  857. set_has_time_out();
  858. time_out_ = value;
  859. // @@protoc_insertion_point(field_set:message.Locate_request_msg.time_out)
  860. }
  861. // -------------------------------------------------------------------
  862. // Locate_response_msg
  863. // required .message.Message_type msg_type = 1;
  864. inline bool Locate_response_msg::has_msg_type() const {
  865. return (_has_bits_[0] & 0x00000004u) != 0;
  866. }
  867. inline void Locate_response_msg::set_has_msg_type() {
  868. _has_bits_[0] |= 0x00000004u;
  869. }
  870. inline void Locate_response_msg::clear_has_msg_type() {
  871. _has_bits_[0] &= ~0x00000004u;
  872. }
  873. inline void Locate_response_msg::clear_msg_type() {
  874. msg_type_ = 0;
  875. clear_has_msg_type();
  876. }
  877. inline ::message::Message_type Locate_response_msg::msg_type() const {
  878. // @@protoc_insertion_point(field_get:message.Locate_response_msg.msg_type)
  879. return static_cast< ::message::Message_type >(msg_type_);
  880. }
  881. inline void Locate_response_msg::set_msg_type(::message::Message_type value) {
  882. assert(::message::Message_type_IsValid(value));
  883. set_has_msg_type();
  884. msg_type_ = value;
  885. // @@protoc_insertion_point(field_set:message.Locate_response_msg.msg_type)
  886. }
  887. // required .message.Command_message cmd_msg = 2;
  888. inline bool Locate_response_msg::has_cmd_msg() const {
  889. return (_has_bits_[0] & 0x00000002u) != 0;
  890. }
  891. inline void Locate_response_msg::set_has_cmd_msg() {
  892. _has_bits_[0] |= 0x00000002u;
  893. }
  894. inline void Locate_response_msg::clear_has_cmd_msg() {
  895. _has_bits_[0] &= ~0x00000002u;
  896. }
  897. inline const ::message::Command_message& Locate_response_msg::cmd_msg() const {
  898. const ::message::Command_message* p = cmd_msg_;
  899. // @@protoc_insertion_point(field_get:message.Locate_response_msg.cmd_msg)
  900. return p != NULL ? *p : *reinterpret_cast<const ::message::Command_message*>(
  901. &::message::_Command_message_default_instance_);
  902. }
  903. inline ::message::Command_message* Locate_response_msg::release_cmd_msg() {
  904. // @@protoc_insertion_point(field_release:message.Locate_response_msg.cmd_msg)
  905. clear_has_cmd_msg();
  906. ::message::Command_message* temp = cmd_msg_;
  907. cmd_msg_ = NULL;
  908. return temp;
  909. }
  910. inline ::message::Command_message* Locate_response_msg::mutable_cmd_msg() {
  911. set_has_cmd_msg();
  912. if (cmd_msg_ == NULL) {
  913. cmd_msg_ = new ::message::Command_message;
  914. }
  915. // @@protoc_insertion_point(field_mutable:message.Locate_response_msg.cmd_msg)
  916. return cmd_msg_;
  917. }
  918. inline void Locate_response_msg::set_allocated_cmd_msg(::message::Command_message* cmd_msg) {
  919. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  920. if (message_arena == NULL) {
  921. delete reinterpret_cast< ::google::protobuf::MessageLite*>(cmd_msg_);
  922. }
  923. if (cmd_msg) {
  924. ::google::protobuf::Arena* submessage_arena = NULL;
  925. if (message_arena != submessage_arena) {
  926. cmd_msg = ::google::protobuf::internal::GetOwnedMessage(
  927. message_arena, cmd_msg, submessage_arena);
  928. }
  929. set_has_cmd_msg();
  930. } else {
  931. clear_has_cmd_msg();
  932. }
  933. cmd_msg_ = cmd_msg;
  934. // @@protoc_insertion_point(field_set_allocated:message.Locate_response_msg.cmd_msg)
  935. }
  936. // required int32 error_code = 3;
  937. inline bool Locate_response_msg::has_error_code() const {
  938. return (_has_bits_[0] & 0x00000008u) != 0;
  939. }
  940. inline void Locate_response_msg::set_has_error_code() {
  941. _has_bits_[0] |= 0x00000008u;
  942. }
  943. inline void Locate_response_msg::clear_has_error_code() {
  944. _has_bits_[0] &= ~0x00000008u;
  945. }
  946. inline void Locate_response_msg::clear_error_code() {
  947. error_code_ = 0;
  948. clear_has_error_code();
  949. }
  950. inline ::google::protobuf::int32 Locate_response_msg::error_code() const {
  951. // @@protoc_insertion_point(field_get:message.Locate_response_msg.error_code)
  952. return error_code_;
  953. }
  954. inline void Locate_response_msg::set_error_code(::google::protobuf::int32 value) {
  955. set_has_error_code();
  956. error_code_ = value;
  957. // @@protoc_insertion_point(field_set:message.Locate_response_msg.error_code)
  958. }
  959. // optional string error_description = 4;
  960. inline bool Locate_response_msg::has_error_description() const {
  961. return (_has_bits_[0] & 0x00000001u) != 0;
  962. }
  963. inline void Locate_response_msg::set_has_error_description() {
  964. _has_bits_[0] |= 0x00000001u;
  965. }
  966. inline void Locate_response_msg::clear_has_error_description() {
  967. _has_bits_[0] &= ~0x00000001u;
  968. }
  969. inline void Locate_response_msg::clear_error_description() {
  970. error_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  971. clear_has_error_description();
  972. }
  973. inline const ::std::string& Locate_response_msg::error_description() const {
  974. // @@protoc_insertion_point(field_get:message.Locate_response_msg.error_description)
  975. return error_description_.GetNoArena();
  976. }
  977. inline void Locate_response_msg::set_error_description(const ::std::string& value) {
  978. set_has_error_description();
  979. error_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  980. // @@protoc_insertion_point(field_set:message.Locate_response_msg.error_description)
  981. }
  982. #if LANG_CXX11
  983. inline void Locate_response_msg::set_error_description(::std::string&& value) {
  984. set_has_error_description();
  985. error_description_.SetNoArena(
  986. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  987. // @@protoc_insertion_point(field_set_rvalue:message.Locate_response_msg.error_description)
  988. }
  989. #endif
  990. inline void Locate_response_msg::set_error_description(const char* value) {
  991. GOOGLE_DCHECK(value != NULL);
  992. set_has_error_description();
  993. error_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  994. // @@protoc_insertion_point(field_set_char:message.Locate_response_msg.error_description)
  995. }
  996. inline void Locate_response_msg::set_error_description(const char* value, size_t size) {
  997. set_has_error_description();
  998. error_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  999. ::std::string(reinterpret_cast<const char*>(value), size));
  1000. // @@protoc_insertion_point(field_set_pointer:message.Locate_response_msg.error_description)
  1001. }
  1002. inline ::std::string* Locate_response_msg::mutable_error_description() {
  1003. set_has_error_description();
  1004. // @@protoc_insertion_point(field_mutable:message.Locate_response_msg.error_description)
  1005. return error_description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1006. }
  1007. inline ::std::string* Locate_response_msg::release_error_description() {
  1008. // @@protoc_insertion_point(field_release:message.Locate_response_msg.error_description)
  1009. clear_has_error_description();
  1010. return error_description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1011. }
  1012. inline void Locate_response_msg::set_allocated_error_description(::std::string* error_description) {
  1013. if (error_description != NULL) {
  1014. set_has_error_description();
  1015. } else {
  1016. clear_has_error_description();
  1017. }
  1018. error_description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), error_description);
  1019. // @@protoc_insertion_point(field_set_allocated:message.Locate_response_msg.error_description)
  1020. }
  1021. // optional float length = 5;
  1022. inline bool Locate_response_msg::has_length() const {
  1023. return (_has_bits_[0] & 0x00000010u) != 0;
  1024. }
  1025. inline void Locate_response_msg::set_has_length() {
  1026. _has_bits_[0] |= 0x00000010u;
  1027. }
  1028. inline void Locate_response_msg::clear_has_length() {
  1029. _has_bits_[0] &= ~0x00000010u;
  1030. }
  1031. inline void Locate_response_msg::clear_length() {
  1032. length_ = 0;
  1033. clear_has_length();
  1034. }
  1035. inline float Locate_response_msg::length() const {
  1036. // @@protoc_insertion_point(field_get:message.Locate_response_msg.length)
  1037. return length_;
  1038. }
  1039. inline void Locate_response_msg::set_length(float value) {
  1040. set_has_length();
  1041. length_ = value;
  1042. // @@protoc_insertion_point(field_set:message.Locate_response_msg.length)
  1043. }
  1044. // optional float width = 6;
  1045. inline bool Locate_response_msg::has_width() const {
  1046. return (_has_bits_[0] & 0x00000020u) != 0;
  1047. }
  1048. inline void Locate_response_msg::set_has_width() {
  1049. _has_bits_[0] |= 0x00000020u;
  1050. }
  1051. inline void Locate_response_msg::clear_has_width() {
  1052. _has_bits_[0] &= ~0x00000020u;
  1053. }
  1054. inline void Locate_response_msg::clear_width() {
  1055. width_ = 0;
  1056. clear_has_width();
  1057. }
  1058. inline float Locate_response_msg::width() const {
  1059. // @@protoc_insertion_point(field_get:message.Locate_response_msg.width)
  1060. return width_;
  1061. }
  1062. inline void Locate_response_msg::set_width(float value) {
  1063. set_has_width();
  1064. width_ = value;
  1065. // @@protoc_insertion_point(field_set:message.Locate_response_msg.width)
  1066. }
  1067. // optional float height = 7;
  1068. inline bool Locate_response_msg::has_height() const {
  1069. return (_has_bits_[0] & 0x00000040u) != 0;
  1070. }
  1071. inline void Locate_response_msg::set_has_height() {
  1072. _has_bits_[0] |= 0x00000040u;
  1073. }
  1074. inline void Locate_response_msg::clear_has_height() {
  1075. _has_bits_[0] &= ~0x00000040u;
  1076. }
  1077. inline void Locate_response_msg::clear_height() {
  1078. height_ = 0;
  1079. clear_has_height();
  1080. }
  1081. inline float Locate_response_msg::height() const {
  1082. // @@protoc_insertion_point(field_get:message.Locate_response_msg.height)
  1083. return height_;
  1084. }
  1085. inline void Locate_response_msg::set_height(float value) {
  1086. set_has_height();
  1087. height_ = value;
  1088. // @@protoc_insertion_point(field_set:message.Locate_response_msg.height)
  1089. }
  1090. // optional float wheel_base = 8;
  1091. inline bool Locate_response_msg::has_wheel_base() const {
  1092. return (_has_bits_[0] & 0x00000080u) != 0;
  1093. }
  1094. inline void Locate_response_msg::set_has_wheel_base() {
  1095. _has_bits_[0] |= 0x00000080u;
  1096. }
  1097. inline void Locate_response_msg::clear_has_wheel_base() {
  1098. _has_bits_[0] &= ~0x00000080u;
  1099. }
  1100. inline void Locate_response_msg::clear_wheel_base() {
  1101. wheel_base_ = 0;
  1102. clear_has_wheel_base();
  1103. }
  1104. inline float Locate_response_msg::wheel_base() const {
  1105. // @@protoc_insertion_point(field_get:message.Locate_response_msg.wheel_base)
  1106. return wheel_base_;
  1107. }
  1108. inline void Locate_response_msg::set_wheel_base(float value) {
  1109. set_has_wheel_base();
  1110. wheel_base_ = value;
  1111. // @@protoc_insertion_point(field_set:message.Locate_response_msg.wheel_base)
  1112. }
  1113. // optional float x = 9;
  1114. inline bool Locate_response_msg::has_x() const {
  1115. return (_has_bits_[0] & 0x00000100u) != 0;
  1116. }
  1117. inline void Locate_response_msg::set_has_x() {
  1118. _has_bits_[0] |= 0x00000100u;
  1119. }
  1120. inline void Locate_response_msg::clear_has_x() {
  1121. _has_bits_[0] &= ~0x00000100u;
  1122. }
  1123. inline void Locate_response_msg::clear_x() {
  1124. x_ = 0;
  1125. clear_has_x();
  1126. }
  1127. inline float Locate_response_msg::x() const {
  1128. // @@protoc_insertion_point(field_get:message.Locate_response_msg.x)
  1129. return x_;
  1130. }
  1131. inline void Locate_response_msg::set_x(float value) {
  1132. set_has_x();
  1133. x_ = value;
  1134. // @@protoc_insertion_point(field_set:message.Locate_response_msg.x)
  1135. }
  1136. // optional float y = 10;
  1137. inline bool Locate_response_msg::has_y() const {
  1138. return (_has_bits_[0] & 0x00000200u) != 0;
  1139. }
  1140. inline void Locate_response_msg::set_has_y() {
  1141. _has_bits_[0] |= 0x00000200u;
  1142. }
  1143. inline void Locate_response_msg::clear_has_y() {
  1144. _has_bits_[0] &= ~0x00000200u;
  1145. }
  1146. inline void Locate_response_msg::clear_y() {
  1147. y_ = 0;
  1148. clear_has_y();
  1149. }
  1150. inline float Locate_response_msg::y() const {
  1151. // @@protoc_insertion_point(field_get:message.Locate_response_msg.y)
  1152. return y_;
  1153. }
  1154. inline void Locate_response_msg::set_y(float value) {
  1155. set_has_y();
  1156. y_ = value;
  1157. // @@protoc_insertion_point(field_set:message.Locate_response_msg.y)
  1158. }
  1159. // optional float theta = 11;
  1160. inline bool Locate_response_msg::has_theta() const {
  1161. return (_has_bits_[0] & 0x00000400u) != 0;
  1162. }
  1163. inline void Locate_response_msg::set_has_theta() {
  1164. _has_bits_[0] |= 0x00000400u;
  1165. }
  1166. inline void Locate_response_msg::clear_has_theta() {
  1167. _has_bits_[0] &= ~0x00000400u;
  1168. }
  1169. inline void Locate_response_msg::clear_theta() {
  1170. theta_ = 0;
  1171. clear_has_theta();
  1172. }
  1173. inline float Locate_response_msg::theta() const {
  1174. // @@protoc_insertion_point(field_get:message.Locate_response_msg.theta)
  1175. return theta_;
  1176. }
  1177. inline void Locate_response_msg::set_theta(float value) {
  1178. set_has_theta();
  1179. theta_ = value;
  1180. // @@protoc_insertion_point(field_set:message.Locate_response_msg.theta)
  1181. }
  1182. #ifdef __GNUC__
  1183. #pragma GCC diagnostic pop
  1184. #endif // __GNUC__
  1185. // -------------------------------------------------------------------
  1186. // -------------------------------------------------------------------
  1187. // @@protoc_insertion_point(namespace_scope)
  1188. } // namespace message
  1189. namespace google {
  1190. namespace protobuf {
  1191. template <> struct is_proto_enum< ::message::Lidar_statu> : ::google::protobuf::internal::true_type {};
  1192. template <>
  1193. inline const EnumDescriptor* GetEnumDescriptor< ::message::Lidar_statu>() {
  1194. return ::message::Lidar_statu_descriptor();
  1195. }
  1196. template <> struct is_proto_enum< ::message::Locate_type> : ::google::protobuf::internal::true_type {};
  1197. template <>
  1198. inline const EnumDescriptor* GetEnumDescriptor< ::message::Locate_type>() {
  1199. return ::message::Locate_type_descriptor();
  1200. }
  1201. } // namespace protobuf
  1202. } // namespace google
  1203. // @@protoc_insertion_point(global_scope)
  1204. #endif // PROTOBUF_locate_5fmessage_2eproto__INCLUDED