message_base.pb.h 37 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: message_base.proto
  3. #ifndef PROTOBUF_message_5fbase_2eproto__INCLUDED
  4. #define PROTOBUF_message_5fbase_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. // @@protoc_insertion_point(includes)
  29. namespace protobuf_message_5fbase_2eproto {
  30. // Internal implementation detail -- do not use these members.
  31. struct TableStruct {
  32. static const ::google::protobuf::internal::ParseTableField entries[];
  33. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  34. static const ::google::protobuf::internal::ParseTable schema[3];
  35. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  36. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  37. static const ::google::protobuf::uint32 offsets[];
  38. };
  39. void AddDescriptors();
  40. void InitDefaultsBase_msgImpl();
  41. void InitDefaultsBase_msg();
  42. void InitDefaultsError_managerImpl();
  43. void InitDefaultsError_manager();
  44. void InitDefaultsLocate_informationImpl();
  45. void InitDefaultsLocate_information();
  46. inline void InitDefaults() {
  47. InitDefaultsBase_msg();
  48. InitDefaultsError_manager();
  49. InitDefaultsLocate_information();
  50. }
  51. } // namespace protobuf_message_5fbase_2eproto
  52. namespace message {
  53. class Base_msg;
  54. class Base_msgDefaultTypeInternal;
  55. extern Base_msgDefaultTypeInternal _Base_msg_default_instance_;
  56. class Error_manager;
  57. class Error_managerDefaultTypeInternal;
  58. extern Error_managerDefaultTypeInternal _Error_manager_default_instance_;
  59. class Locate_information;
  60. class Locate_informationDefaultTypeInternal;
  61. extern Locate_informationDefaultTypeInternal _Locate_information_default_instance_;
  62. } // namespace message
  63. namespace message {
  64. enum Message_type {
  65. eBase_msg = 0,
  66. eCommand_msg = 1,
  67. eLocate_status_msg = 17,
  68. eLocate_request_msg = 18,
  69. eLocate_response_msg = 19,
  70. eHarware_statu_msg = 33,
  71. eExecute_request_msg = 34,
  72. eExecute_response_msg = 35
  73. };
  74. bool Message_type_IsValid(int value);
  75. const Message_type Message_type_MIN = eBase_msg;
  76. const Message_type Message_type_MAX = eExecute_response_msg;
  77. const int Message_type_ARRAYSIZE = Message_type_MAX + 1;
  78. const ::google::protobuf::EnumDescriptor* Message_type_descriptor();
  79. inline const ::std::string& Message_type_Name(Message_type value) {
  80. return ::google::protobuf::internal::NameOfEnum(
  81. Message_type_descriptor(), value);
  82. }
  83. inline bool Message_type_Parse(
  84. const ::std::string& name, Message_type* value) {
  85. return ::google::protobuf::internal::ParseNamedEnum<Message_type>(
  86. Message_type_descriptor(), name, value);
  87. }
  88. enum Communicator {
  89. eEmpty = 0,
  90. eMain = 1,
  91. eTerminor = 256,
  92. eTable = 512,
  93. eMeasurer = 768,
  94. eProcess = 1024
  95. };
  96. bool Communicator_IsValid(int value);
  97. const Communicator Communicator_MIN = eEmpty;
  98. const Communicator Communicator_MAX = eProcess;
  99. const int Communicator_ARRAYSIZE = Communicator_MAX + 1;
  100. const ::google::protobuf::EnumDescriptor* Communicator_descriptor();
  101. inline const ::std::string& Communicator_Name(Communicator value) {
  102. return ::google::protobuf::internal::NameOfEnum(
  103. Communicator_descriptor(), value);
  104. }
  105. inline bool Communicator_Parse(
  106. const ::std::string& name, Communicator* value) {
  107. return ::google::protobuf::internal::ParseNamedEnum<Communicator>(
  108. Communicator_descriptor(), name, value);
  109. }
  110. enum Error_level {
  111. NORMAL = 0,
  112. NEGLIGIBLE_ERROR = 1,
  113. MINOR_ERROR = 2,
  114. MAJOR_ERROR = 3,
  115. CRITICAL_ERROR = 4
  116. };
  117. bool Error_level_IsValid(int value);
  118. const Error_level Error_level_MIN = NORMAL;
  119. const Error_level Error_level_MAX = CRITICAL_ERROR;
  120. const int Error_level_ARRAYSIZE = Error_level_MAX + 1;
  121. const ::google::protobuf::EnumDescriptor* Error_level_descriptor();
  122. inline const ::std::string& Error_level_Name(Error_level value) {
  123. return ::google::protobuf::internal::NameOfEnum(
  124. Error_level_descriptor(), value);
  125. }
  126. inline bool Error_level_Parse(
  127. const ::std::string& name, Error_level* value) {
  128. return ::google::protobuf::internal::ParseNamedEnum<Error_level>(
  129. Error_level_descriptor(), name, value);
  130. }
  131. // ===================================================================
  132. class Base_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Base_msg) */ {
  133. public:
  134. Base_msg();
  135. virtual ~Base_msg();
  136. Base_msg(const Base_msg& from);
  137. inline Base_msg& operator=(const Base_msg& from) {
  138. CopyFrom(from);
  139. return *this;
  140. }
  141. #if LANG_CXX11
  142. Base_msg(Base_msg&& from) noexcept
  143. : Base_msg() {
  144. *this = ::std::move(from);
  145. }
  146. inline Base_msg& operator=(Base_msg&& from) noexcept {
  147. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  148. if (this != &from) InternalSwap(&from);
  149. } else {
  150. CopyFrom(from);
  151. }
  152. return *this;
  153. }
  154. #endif
  155. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  156. return _internal_metadata_.unknown_fields();
  157. }
  158. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  159. return _internal_metadata_.mutable_unknown_fields();
  160. }
  161. static const ::google::protobuf::Descriptor* descriptor();
  162. static const Base_msg& default_instance();
  163. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  164. static inline const Base_msg* internal_default_instance() {
  165. return reinterpret_cast<const Base_msg*>(
  166. &_Base_msg_default_instance_);
  167. }
  168. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  169. 0;
  170. void Swap(Base_msg* other);
  171. friend void swap(Base_msg& a, Base_msg& b) {
  172. a.Swap(&b);
  173. }
  174. // implements Message ----------------------------------------------
  175. inline Base_msg* New() const PROTOBUF_FINAL { return New(NULL); }
  176. Base_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  177. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  178. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  179. void CopyFrom(const Base_msg& from);
  180. void MergeFrom(const Base_msg& from);
  181. void Clear() PROTOBUF_FINAL;
  182. bool IsInitialized() const PROTOBUF_FINAL;
  183. size_t ByteSizeLong() const PROTOBUF_FINAL;
  184. bool MergePartialFromCodedStream(
  185. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  186. void SerializeWithCachedSizes(
  187. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  188. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  189. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  190. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  191. private:
  192. void SharedCtor();
  193. void SharedDtor();
  194. void SetCachedSize(int size) const PROTOBUF_FINAL;
  195. void InternalSwap(Base_msg* other);
  196. private:
  197. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  198. return NULL;
  199. }
  200. inline void* MaybeArenaPtr() const {
  201. return NULL;
  202. }
  203. public:
  204. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  205. // nested types ----------------------------------------------------
  206. // accessors -------------------------------------------------------
  207. // required .message.Message_type msg_type = 1;
  208. bool has_msg_type() const;
  209. void clear_msg_type();
  210. static const int kMsgTypeFieldNumber = 1;
  211. ::message::Message_type msg_type() const;
  212. void set_msg_type(::message::Message_type value);
  213. // optional int32 timeout_ms = 2;
  214. bool has_timeout_ms() const;
  215. void clear_timeout_ms();
  216. static const int kTimeoutMsFieldNumber = 2;
  217. ::google::protobuf::int32 timeout_ms() const;
  218. void set_timeout_ms(::google::protobuf::int32 value);
  219. // required .message.Communicator sender = 3;
  220. bool has_sender() const;
  221. void clear_sender();
  222. static const int kSenderFieldNumber = 3;
  223. ::message::Communicator sender() const;
  224. void set_sender(::message::Communicator value);
  225. // required .message.Communicator receiver = 4;
  226. bool has_receiver() const;
  227. void clear_receiver();
  228. static const int kReceiverFieldNumber = 4;
  229. ::message::Communicator receiver() const;
  230. void set_receiver(::message::Communicator value);
  231. // @@protoc_insertion_point(class_scope:message.Base_msg)
  232. private:
  233. void set_has_msg_type();
  234. void clear_has_msg_type();
  235. void set_has_timeout_ms();
  236. void clear_has_timeout_ms();
  237. void set_has_sender();
  238. void clear_has_sender();
  239. void set_has_receiver();
  240. void clear_has_receiver();
  241. // helper for ByteSizeLong()
  242. size_t RequiredFieldsByteSizeFallback() const;
  243. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  244. ::google::protobuf::internal::HasBits<1> _has_bits_;
  245. mutable int _cached_size_;
  246. int msg_type_;
  247. ::google::protobuf::int32 timeout_ms_;
  248. int sender_;
  249. int receiver_;
  250. friend struct ::protobuf_message_5fbase_2eproto::TableStruct;
  251. friend void ::protobuf_message_5fbase_2eproto::InitDefaultsBase_msgImpl();
  252. };
  253. // -------------------------------------------------------------------
  254. class Error_manager : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Error_manager) */ {
  255. public:
  256. Error_manager();
  257. virtual ~Error_manager();
  258. Error_manager(const Error_manager& from);
  259. inline Error_manager& operator=(const Error_manager& from) {
  260. CopyFrom(from);
  261. return *this;
  262. }
  263. #if LANG_CXX11
  264. Error_manager(Error_manager&& from) noexcept
  265. : Error_manager() {
  266. *this = ::std::move(from);
  267. }
  268. inline Error_manager& operator=(Error_manager&& from) noexcept {
  269. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  270. if (this != &from) InternalSwap(&from);
  271. } else {
  272. CopyFrom(from);
  273. }
  274. return *this;
  275. }
  276. #endif
  277. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  278. return _internal_metadata_.unknown_fields();
  279. }
  280. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  281. return _internal_metadata_.mutable_unknown_fields();
  282. }
  283. static const ::google::protobuf::Descriptor* descriptor();
  284. static const Error_manager& default_instance();
  285. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  286. static inline const Error_manager* internal_default_instance() {
  287. return reinterpret_cast<const Error_manager*>(
  288. &_Error_manager_default_instance_);
  289. }
  290. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  291. 1;
  292. void Swap(Error_manager* other);
  293. friend void swap(Error_manager& a, Error_manager& b) {
  294. a.Swap(&b);
  295. }
  296. // implements Message ----------------------------------------------
  297. inline Error_manager* New() const PROTOBUF_FINAL { return New(NULL); }
  298. Error_manager* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  299. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  300. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  301. void CopyFrom(const Error_manager& from);
  302. void MergeFrom(const Error_manager& from);
  303. void Clear() PROTOBUF_FINAL;
  304. bool IsInitialized() const PROTOBUF_FINAL;
  305. size_t ByteSizeLong() const PROTOBUF_FINAL;
  306. bool MergePartialFromCodedStream(
  307. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  308. void SerializeWithCachedSizes(
  309. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  310. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  311. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  312. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  313. private:
  314. void SharedCtor();
  315. void SharedDtor();
  316. void SetCachedSize(int size) const PROTOBUF_FINAL;
  317. void InternalSwap(Error_manager* other);
  318. private:
  319. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  320. return NULL;
  321. }
  322. inline void* MaybeArenaPtr() const {
  323. return NULL;
  324. }
  325. public:
  326. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  327. // nested types ----------------------------------------------------
  328. // accessors -------------------------------------------------------
  329. // optional string error_description = 3;
  330. bool has_error_description() const;
  331. void clear_error_description();
  332. static const int kErrorDescriptionFieldNumber = 3;
  333. const ::std::string& error_description() const;
  334. void set_error_description(const ::std::string& value);
  335. #if LANG_CXX11
  336. void set_error_description(::std::string&& value);
  337. #endif
  338. void set_error_description(const char* value);
  339. void set_error_description(const char* value, size_t size);
  340. ::std::string* mutable_error_description();
  341. ::std::string* release_error_description();
  342. void set_allocated_error_description(::std::string* error_description);
  343. // required int32 error_code = 1;
  344. bool has_error_code() const;
  345. void clear_error_code();
  346. static const int kErrorCodeFieldNumber = 1;
  347. ::google::protobuf::int32 error_code() const;
  348. void set_error_code(::google::protobuf::int32 value);
  349. // optional .message.Error_level error_level = 2;
  350. bool has_error_level() const;
  351. void clear_error_level();
  352. static const int kErrorLevelFieldNumber = 2;
  353. ::message::Error_level error_level() const;
  354. void set_error_level(::message::Error_level value);
  355. // @@protoc_insertion_point(class_scope:message.Error_manager)
  356. private:
  357. void set_has_error_code();
  358. void clear_has_error_code();
  359. void set_has_error_level();
  360. void clear_has_error_level();
  361. void set_has_error_description();
  362. void clear_has_error_description();
  363. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  364. ::google::protobuf::internal::HasBits<1> _has_bits_;
  365. mutable int _cached_size_;
  366. ::google::protobuf::internal::ArenaStringPtr error_description_;
  367. ::google::protobuf::int32 error_code_;
  368. int error_level_;
  369. friend struct ::protobuf_message_5fbase_2eproto::TableStruct;
  370. friend void ::protobuf_message_5fbase_2eproto::InitDefaultsError_managerImpl();
  371. };
  372. // -------------------------------------------------------------------
  373. class Locate_information : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Locate_information) */ {
  374. public:
  375. Locate_information();
  376. virtual ~Locate_information();
  377. Locate_information(const Locate_information& from);
  378. inline Locate_information& operator=(const Locate_information& from) {
  379. CopyFrom(from);
  380. return *this;
  381. }
  382. #if LANG_CXX11
  383. Locate_information(Locate_information&& from) noexcept
  384. : Locate_information() {
  385. *this = ::std::move(from);
  386. }
  387. inline Locate_information& operator=(Locate_information&& from) noexcept {
  388. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  389. if (this != &from) InternalSwap(&from);
  390. } else {
  391. CopyFrom(from);
  392. }
  393. return *this;
  394. }
  395. #endif
  396. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  397. return _internal_metadata_.unknown_fields();
  398. }
  399. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  400. return _internal_metadata_.mutable_unknown_fields();
  401. }
  402. static const ::google::protobuf::Descriptor* descriptor();
  403. static const Locate_information& default_instance();
  404. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  405. static inline const Locate_information* internal_default_instance() {
  406. return reinterpret_cast<const Locate_information*>(
  407. &_Locate_information_default_instance_);
  408. }
  409. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  410. 2;
  411. void Swap(Locate_information* other);
  412. friend void swap(Locate_information& a, Locate_information& b) {
  413. a.Swap(&b);
  414. }
  415. // implements Message ----------------------------------------------
  416. inline Locate_information* New() const PROTOBUF_FINAL { return New(NULL); }
  417. Locate_information* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  418. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  419. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  420. void CopyFrom(const Locate_information& from);
  421. void MergeFrom(const Locate_information& from);
  422. void Clear() PROTOBUF_FINAL;
  423. bool IsInitialized() const PROTOBUF_FINAL;
  424. size_t ByteSizeLong() const PROTOBUF_FINAL;
  425. bool MergePartialFromCodedStream(
  426. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  427. void SerializeWithCachedSizes(
  428. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  429. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  430. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  431. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  432. private:
  433. void SharedCtor();
  434. void SharedDtor();
  435. void SetCachedSize(int size) const PROTOBUF_FINAL;
  436. void InternalSwap(Locate_information* other);
  437. private:
  438. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  439. return NULL;
  440. }
  441. inline void* MaybeArenaPtr() const {
  442. return NULL;
  443. }
  444. public:
  445. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  446. // nested types ----------------------------------------------------
  447. // accessors -------------------------------------------------------
  448. // optional float locate_x = 1;
  449. bool has_locate_x() const;
  450. void clear_locate_x();
  451. static const int kLocateXFieldNumber = 1;
  452. float locate_x() const;
  453. void set_locate_x(float value);
  454. // optional float locate_y = 2;
  455. bool has_locate_y() const;
  456. void clear_locate_y();
  457. static const int kLocateYFieldNumber = 2;
  458. float locate_y() const;
  459. void set_locate_y(float value);
  460. // optional float locate_angle = 3;
  461. bool has_locate_angle() const;
  462. void clear_locate_angle();
  463. static const int kLocateAngleFieldNumber = 3;
  464. float locate_angle() const;
  465. void set_locate_angle(float value);
  466. // optional float locate_length = 4;
  467. bool has_locate_length() const;
  468. void clear_locate_length();
  469. static const int kLocateLengthFieldNumber = 4;
  470. float locate_length() const;
  471. void set_locate_length(float value);
  472. // optional float locate_width = 5;
  473. bool has_locate_width() const;
  474. void clear_locate_width();
  475. static const int kLocateWidthFieldNumber = 5;
  476. float locate_width() const;
  477. void set_locate_width(float value);
  478. // optional float locate_height = 6;
  479. bool has_locate_height() const;
  480. void clear_locate_height();
  481. static const int kLocateHeightFieldNumber = 6;
  482. float locate_height() const;
  483. void set_locate_height(float value);
  484. // optional float locate_wheel_base = 7;
  485. bool has_locate_wheel_base() const;
  486. void clear_locate_wheel_base();
  487. static const int kLocateWheelBaseFieldNumber = 7;
  488. float locate_wheel_base() const;
  489. void set_locate_wheel_base(float value);
  490. // optional float locate_wheel_width = 8;
  491. bool has_locate_wheel_width() const;
  492. void clear_locate_wheel_width();
  493. static const int kLocateWheelWidthFieldNumber = 8;
  494. float locate_wheel_width() const;
  495. void set_locate_wheel_width(float value);
  496. // optional bool locate_correct = 9;
  497. bool has_locate_correct() const;
  498. void clear_locate_correct();
  499. static const int kLocateCorrectFieldNumber = 9;
  500. bool locate_correct() const;
  501. void set_locate_correct(bool value);
  502. // @@protoc_insertion_point(class_scope:message.Locate_information)
  503. private:
  504. void set_has_locate_x();
  505. void clear_has_locate_x();
  506. void set_has_locate_y();
  507. void clear_has_locate_y();
  508. void set_has_locate_angle();
  509. void clear_has_locate_angle();
  510. void set_has_locate_length();
  511. void clear_has_locate_length();
  512. void set_has_locate_width();
  513. void clear_has_locate_width();
  514. void set_has_locate_height();
  515. void clear_has_locate_height();
  516. void set_has_locate_wheel_base();
  517. void clear_has_locate_wheel_base();
  518. void set_has_locate_wheel_width();
  519. void clear_has_locate_wheel_width();
  520. void set_has_locate_correct();
  521. void clear_has_locate_correct();
  522. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  523. ::google::protobuf::internal::HasBits<1> _has_bits_;
  524. mutable int _cached_size_;
  525. float locate_x_;
  526. float locate_y_;
  527. float locate_angle_;
  528. float locate_length_;
  529. float locate_width_;
  530. float locate_height_;
  531. float locate_wheel_base_;
  532. float locate_wheel_width_;
  533. bool locate_correct_;
  534. friend struct ::protobuf_message_5fbase_2eproto::TableStruct;
  535. friend void ::protobuf_message_5fbase_2eproto::InitDefaultsLocate_informationImpl();
  536. };
  537. // ===================================================================
  538. // ===================================================================
  539. #ifdef __GNUC__
  540. #pragma GCC diagnostic push
  541. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  542. #endif // __GNUC__
  543. // Base_msg
  544. // required .message.Message_type msg_type = 1;
  545. inline bool Base_msg::has_msg_type() const {
  546. return (_has_bits_[0] & 0x00000001u) != 0;
  547. }
  548. inline void Base_msg::set_has_msg_type() {
  549. _has_bits_[0] |= 0x00000001u;
  550. }
  551. inline void Base_msg::clear_has_msg_type() {
  552. _has_bits_[0] &= ~0x00000001u;
  553. }
  554. inline void Base_msg::clear_msg_type() {
  555. msg_type_ = 0;
  556. clear_has_msg_type();
  557. }
  558. inline ::message::Message_type Base_msg::msg_type() const {
  559. // @@protoc_insertion_point(field_get:message.Base_msg.msg_type)
  560. return static_cast< ::message::Message_type >(msg_type_);
  561. }
  562. inline void Base_msg::set_msg_type(::message::Message_type value) {
  563. assert(::message::Message_type_IsValid(value));
  564. set_has_msg_type();
  565. msg_type_ = value;
  566. // @@protoc_insertion_point(field_set:message.Base_msg.msg_type)
  567. }
  568. // optional int32 timeout_ms = 2;
  569. inline bool Base_msg::has_timeout_ms() const {
  570. return (_has_bits_[0] & 0x00000002u) != 0;
  571. }
  572. inline void Base_msg::set_has_timeout_ms() {
  573. _has_bits_[0] |= 0x00000002u;
  574. }
  575. inline void Base_msg::clear_has_timeout_ms() {
  576. _has_bits_[0] &= ~0x00000002u;
  577. }
  578. inline void Base_msg::clear_timeout_ms() {
  579. timeout_ms_ = 0;
  580. clear_has_timeout_ms();
  581. }
  582. inline ::google::protobuf::int32 Base_msg::timeout_ms() const {
  583. // @@protoc_insertion_point(field_get:message.Base_msg.timeout_ms)
  584. return timeout_ms_;
  585. }
  586. inline void Base_msg::set_timeout_ms(::google::protobuf::int32 value) {
  587. set_has_timeout_ms();
  588. timeout_ms_ = value;
  589. // @@protoc_insertion_point(field_set:message.Base_msg.timeout_ms)
  590. }
  591. // required .message.Communicator sender = 3;
  592. inline bool Base_msg::has_sender() const {
  593. return (_has_bits_[0] & 0x00000004u) != 0;
  594. }
  595. inline void Base_msg::set_has_sender() {
  596. _has_bits_[0] |= 0x00000004u;
  597. }
  598. inline void Base_msg::clear_has_sender() {
  599. _has_bits_[0] &= ~0x00000004u;
  600. }
  601. inline void Base_msg::clear_sender() {
  602. sender_ = 0;
  603. clear_has_sender();
  604. }
  605. inline ::message::Communicator Base_msg::sender() const {
  606. // @@protoc_insertion_point(field_get:message.Base_msg.sender)
  607. return static_cast< ::message::Communicator >(sender_);
  608. }
  609. inline void Base_msg::set_sender(::message::Communicator value) {
  610. assert(::message::Communicator_IsValid(value));
  611. set_has_sender();
  612. sender_ = value;
  613. // @@protoc_insertion_point(field_set:message.Base_msg.sender)
  614. }
  615. // required .message.Communicator receiver = 4;
  616. inline bool Base_msg::has_receiver() const {
  617. return (_has_bits_[0] & 0x00000008u) != 0;
  618. }
  619. inline void Base_msg::set_has_receiver() {
  620. _has_bits_[0] |= 0x00000008u;
  621. }
  622. inline void Base_msg::clear_has_receiver() {
  623. _has_bits_[0] &= ~0x00000008u;
  624. }
  625. inline void Base_msg::clear_receiver() {
  626. receiver_ = 0;
  627. clear_has_receiver();
  628. }
  629. inline ::message::Communicator Base_msg::receiver() const {
  630. // @@protoc_insertion_point(field_get:message.Base_msg.receiver)
  631. return static_cast< ::message::Communicator >(receiver_);
  632. }
  633. inline void Base_msg::set_receiver(::message::Communicator value) {
  634. assert(::message::Communicator_IsValid(value));
  635. set_has_receiver();
  636. receiver_ = value;
  637. // @@protoc_insertion_point(field_set:message.Base_msg.receiver)
  638. }
  639. // -------------------------------------------------------------------
  640. // Error_manager
  641. // required int32 error_code = 1;
  642. inline bool Error_manager::has_error_code() const {
  643. return (_has_bits_[0] & 0x00000002u) != 0;
  644. }
  645. inline void Error_manager::set_has_error_code() {
  646. _has_bits_[0] |= 0x00000002u;
  647. }
  648. inline void Error_manager::clear_has_error_code() {
  649. _has_bits_[0] &= ~0x00000002u;
  650. }
  651. inline void Error_manager::clear_error_code() {
  652. error_code_ = 0;
  653. clear_has_error_code();
  654. }
  655. inline ::google::protobuf::int32 Error_manager::error_code() const {
  656. // @@protoc_insertion_point(field_get:message.Error_manager.error_code)
  657. return error_code_;
  658. }
  659. inline void Error_manager::set_error_code(::google::protobuf::int32 value) {
  660. set_has_error_code();
  661. error_code_ = value;
  662. // @@protoc_insertion_point(field_set:message.Error_manager.error_code)
  663. }
  664. // optional .message.Error_level error_level = 2;
  665. inline bool Error_manager::has_error_level() const {
  666. return (_has_bits_[0] & 0x00000004u) != 0;
  667. }
  668. inline void Error_manager::set_has_error_level() {
  669. _has_bits_[0] |= 0x00000004u;
  670. }
  671. inline void Error_manager::clear_has_error_level() {
  672. _has_bits_[0] &= ~0x00000004u;
  673. }
  674. inline void Error_manager::clear_error_level() {
  675. error_level_ = 0;
  676. clear_has_error_level();
  677. }
  678. inline ::message::Error_level Error_manager::error_level() const {
  679. // @@protoc_insertion_point(field_get:message.Error_manager.error_level)
  680. return static_cast< ::message::Error_level >(error_level_);
  681. }
  682. inline void Error_manager::set_error_level(::message::Error_level value) {
  683. assert(::message::Error_level_IsValid(value));
  684. set_has_error_level();
  685. error_level_ = value;
  686. // @@protoc_insertion_point(field_set:message.Error_manager.error_level)
  687. }
  688. // optional string error_description = 3;
  689. inline bool Error_manager::has_error_description() const {
  690. return (_has_bits_[0] & 0x00000001u) != 0;
  691. }
  692. inline void Error_manager::set_has_error_description() {
  693. _has_bits_[0] |= 0x00000001u;
  694. }
  695. inline void Error_manager::clear_has_error_description() {
  696. _has_bits_[0] &= ~0x00000001u;
  697. }
  698. inline void Error_manager::clear_error_description() {
  699. error_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  700. clear_has_error_description();
  701. }
  702. inline const ::std::string& Error_manager::error_description() const {
  703. // @@protoc_insertion_point(field_get:message.Error_manager.error_description)
  704. return error_description_.GetNoArena();
  705. }
  706. inline void Error_manager::set_error_description(const ::std::string& value) {
  707. set_has_error_description();
  708. error_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  709. // @@protoc_insertion_point(field_set:message.Error_manager.error_description)
  710. }
  711. #if LANG_CXX11
  712. inline void Error_manager::set_error_description(::std::string&& value) {
  713. set_has_error_description();
  714. error_description_.SetNoArena(
  715. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  716. // @@protoc_insertion_point(field_set_rvalue:message.Error_manager.error_description)
  717. }
  718. #endif
  719. inline void Error_manager::set_error_description(const char* value) {
  720. GOOGLE_DCHECK(value != NULL);
  721. set_has_error_description();
  722. error_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  723. // @@protoc_insertion_point(field_set_char:message.Error_manager.error_description)
  724. }
  725. inline void Error_manager::set_error_description(const char* value, size_t size) {
  726. set_has_error_description();
  727. error_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  728. ::std::string(reinterpret_cast<const char*>(value), size));
  729. // @@protoc_insertion_point(field_set_pointer:message.Error_manager.error_description)
  730. }
  731. inline ::std::string* Error_manager::mutable_error_description() {
  732. set_has_error_description();
  733. // @@protoc_insertion_point(field_mutable:message.Error_manager.error_description)
  734. return error_description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  735. }
  736. inline ::std::string* Error_manager::release_error_description() {
  737. // @@protoc_insertion_point(field_release:message.Error_manager.error_description)
  738. clear_has_error_description();
  739. return error_description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  740. }
  741. inline void Error_manager::set_allocated_error_description(::std::string* error_description) {
  742. if (error_description != NULL) {
  743. set_has_error_description();
  744. } else {
  745. clear_has_error_description();
  746. }
  747. error_description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), error_description);
  748. // @@protoc_insertion_point(field_set_allocated:message.Error_manager.error_description)
  749. }
  750. // -------------------------------------------------------------------
  751. // Locate_information
  752. // optional float locate_x = 1;
  753. inline bool Locate_information::has_locate_x() const {
  754. return (_has_bits_[0] & 0x00000001u) != 0;
  755. }
  756. inline void Locate_information::set_has_locate_x() {
  757. _has_bits_[0] |= 0x00000001u;
  758. }
  759. inline void Locate_information::clear_has_locate_x() {
  760. _has_bits_[0] &= ~0x00000001u;
  761. }
  762. inline void Locate_information::clear_locate_x() {
  763. locate_x_ = 0;
  764. clear_has_locate_x();
  765. }
  766. inline float Locate_information::locate_x() const {
  767. // @@protoc_insertion_point(field_get:message.Locate_information.locate_x)
  768. return locate_x_;
  769. }
  770. inline void Locate_information::set_locate_x(float value) {
  771. set_has_locate_x();
  772. locate_x_ = value;
  773. // @@protoc_insertion_point(field_set:message.Locate_information.locate_x)
  774. }
  775. // optional float locate_y = 2;
  776. inline bool Locate_information::has_locate_y() const {
  777. return (_has_bits_[0] & 0x00000002u) != 0;
  778. }
  779. inline void Locate_information::set_has_locate_y() {
  780. _has_bits_[0] |= 0x00000002u;
  781. }
  782. inline void Locate_information::clear_has_locate_y() {
  783. _has_bits_[0] &= ~0x00000002u;
  784. }
  785. inline void Locate_information::clear_locate_y() {
  786. locate_y_ = 0;
  787. clear_has_locate_y();
  788. }
  789. inline float Locate_information::locate_y() const {
  790. // @@protoc_insertion_point(field_get:message.Locate_information.locate_y)
  791. return locate_y_;
  792. }
  793. inline void Locate_information::set_locate_y(float value) {
  794. set_has_locate_y();
  795. locate_y_ = value;
  796. // @@protoc_insertion_point(field_set:message.Locate_information.locate_y)
  797. }
  798. // optional float locate_angle = 3;
  799. inline bool Locate_information::has_locate_angle() const {
  800. return (_has_bits_[0] & 0x00000004u) != 0;
  801. }
  802. inline void Locate_information::set_has_locate_angle() {
  803. _has_bits_[0] |= 0x00000004u;
  804. }
  805. inline void Locate_information::clear_has_locate_angle() {
  806. _has_bits_[0] &= ~0x00000004u;
  807. }
  808. inline void Locate_information::clear_locate_angle() {
  809. locate_angle_ = 0;
  810. clear_has_locate_angle();
  811. }
  812. inline float Locate_information::locate_angle() const {
  813. // @@protoc_insertion_point(field_get:message.Locate_information.locate_angle)
  814. return locate_angle_;
  815. }
  816. inline void Locate_information::set_locate_angle(float value) {
  817. set_has_locate_angle();
  818. locate_angle_ = value;
  819. // @@protoc_insertion_point(field_set:message.Locate_information.locate_angle)
  820. }
  821. // optional float locate_length = 4;
  822. inline bool Locate_information::has_locate_length() const {
  823. return (_has_bits_[0] & 0x00000008u) != 0;
  824. }
  825. inline void Locate_information::set_has_locate_length() {
  826. _has_bits_[0] |= 0x00000008u;
  827. }
  828. inline void Locate_information::clear_has_locate_length() {
  829. _has_bits_[0] &= ~0x00000008u;
  830. }
  831. inline void Locate_information::clear_locate_length() {
  832. locate_length_ = 0;
  833. clear_has_locate_length();
  834. }
  835. inline float Locate_information::locate_length() const {
  836. // @@protoc_insertion_point(field_get:message.Locate_information.locate_length)
  837. return locate_length_;
  838. }
  839. inline void Locate_information::set_locate_length(float value) {
  840. set_has_locate_length();
  841. locate_length_ = value;
  842. // @@protoc_insertion_point(field_set:message.Locate_information.locate_length)
  843. }
  844. // optional float locate_width = 5;
  845. inline bool Locate_information::has_locate_width() const {
  846. return (_has_bits_[0] & 0x00000010u) != 0;
  847. }
  848. inline void Locate_information::set_has_locate_width() {
  849. _has_bits_[0] |= 0x00000010u;
  850. }
  851. inline void Locate_information::clear_has_locate_width() {
  852. _has_bits_[0] &= ~0x00000010u;
  853. }
  854. inline void Locate_information::clear_locate_width() {
  855. locate_width_ = 0;
  856. clear_has_locate_width();
  857. }
  858. inline float Locate_information::locate_width() const {
  859. // @@protoc_insertion_point(field_get:message.Locate_information.locate_width)
  860. return locate_width_;
  861. }
  862. inline void Locate_information::set_locate_width(float value) {
  863. set_has_locate_width();
  864. locate_width_ = value;
  865. // @@protoc_insertion_point(field_set:message.Locate_information.locate_width)
  866. }
  867. // optional float locate_height = 6;
  868. inline bool Locate_information::has_locate_height() const {
  869. return (_has_bits_[0] & 0x00000020u) != 0;
  870. }
  871. inline void Locate_information::set_has_locate_height() {
  872. _has_bits_[0] |= 0x00000020u;
  873. }
  874. inline void Locate_information::clear_has_locate_height() {
  875. _has_bits_[0] &= ~0x00000020u;
  876. }
  877. inline void Locate_information::clear_locate_height() {
  878. locate_height_ = 0;
  879. clear_has_locate_height();
  880. }
  881. inline float Locate_information::locate_height() const {
  882. // @@protoc_insertion_point(field_get:message.Locate_information.locate_height)
  883. return locate_height_;
  884. }
  885. inline void Locate_information::set_locate_height(float value) {
  886. set_has_locate_height();
  887. locate_height_ = value;
  888. // @@protoc_insertion_point(field_set:message.Locate_information.locate_height)
  889. }
  890. // optional float locate_wheel_base = 7;
  891. inline bool Locate_information::has_locate_wheel_base() const {
  892. return (_has_bits_[0] & 0x00000040u) != 0;
  893. }
  894. inline void Locate_information::set_has_locate_wheel_base() {
  895. _has_bits_[0] |= 0x00000040u;
  896. }
  897. inline void Locate_information::clear_has_locate_wheel_base() {
  898. _has_bits_[0] &= ~0x00000040u;
  899. }
  900. inline void Locate_information::clear_locate_wheel_base() {
  901. locate_wheel_base_ = 0;
  902. clear_has_locate_wheel_base();
  903. }
  904. inline float Locate_information::locate_wheel_base() const {
  905. // @@protoc_insertion_point(field_get:message.Locate_information.locate_wheel_base)
  906. return locate_wheel_base_;
  907. }
  908. inline void Locate_information::set_locate_wheel_base(float value) {
  909. set_has_locate_wheel_base();
  910. locate_wheel_base_ = value;
  911. // @@protoc_insertion_point(field_set:message.Locate_information.locate_wheel_base)
  912. }
  913. // optional float locate_wheel_width = 8;
  914. inline bool Locate_information::has_locate_wheel_width() const {
  915. return (_has_bits_[0] & 0x00000080u) != 0;
  916. }
  917. inline void Locate_information::set_has_locate_wheel_width() {
  918. _has_bits_[0] |= 0x00000080u;
  919. }
  920. inline void Locate_information::clear_has_locate_wheel_width() {
  921. _has_bits_[0] &= ~0x00000080u;
  922. }
  923. inline void Locate_information::clear_locate_wheel_width() {
  924. locate_wheel_width_ = 0;
  925. clear_has_locate_wheel_width();
  926. }
  927. inline float Locate_information::locate_wheel_width() const {
  928. // @@protoc_insertion_point(field_get:message.Locate_information.locate_wheel_width)
  929. return locate_wheel_width_;
  930. }
  931. inline void Locate_information::set_locate_wheel_width(float value) {
  932. set_has_locate_wheel_width();
  933. locate_wheel_width_ = value;
  934. // @@protoc_insertion_point(field_set:message.Locate_information.locate_wheel_width)
  935. }
  936. // optional bool locate_correct = 9;
  937. inline bool Locate_information::has_locate_correct() const {
  938. return (_has_bits_[0] & 0x00000100u) != 0;
  939. }
  940. inline void Locate_information::set_has_locate_correct() {
  941. _has_bits_[0] |= 0x00000100u;
  942. }
  943. inline void Locate_information::clear_has_locate_correct() {
  944. _has_bits_[0] &= ~0x00000100u;
  945. }
  946. inline void Locate_information::clear_locate_correct() {
  947. locate_correct_ = false;
  948. clear_has_locate_correct();
  949. }
  950. inline bool Locate_information::locate_correct() const {
  951. // @@protoc_insertion_point(field_get:message.Locate_information.locate_correct)
  952. return locate_correct_;
  953. }
  954. inline void Locate_information::set_locate_correct(bool value) {
  955. set_has_locate_correct();
  956. locate_correct_ = value;
  957. // @@protoc_insertion_point(field_set:message.Locate_information.locate_correct)
  958. }
  959. #ifdef __GNUC__
  960. #pragma GCC diagnostic pop
  961. #endif // __GNUC__
  962. // -------------------------------------------------------------------
  963. // -------------------------------------------------------------------
  964. // @@protoc_insertion_point(namespace_scope)
  965. } // namespace message
  966. namespace google {
  967. namespace protobuf {
  968. template <> struct is_proto_enum< ::message::Message_type> : ::google::protobuf::internal::true_type {};
  969. template <>
  970. inline const EnumDescriptor* GetEnumDescriptor< ::message::Message_type>() {
  971. return ::message::Message_type_descriptor();
  972. }
  973. template <> struct is_proto_enum< ::message::Communicator> : ::google::protobuf::internal::true_type {};
  974. template <>
  975. inline const EnumDescriptor* GetEnumDescriptor< ::message::Communicator>() {
  976. return ::message::Communicator_descriptor();
  977. }
  978. template <> struct is_proto_enum< ::message::Error_level> : ::google::protobuf::internal::true_type {};
  979. template <>
  980. inline const EnumDescriptor* GetEnumDescriptor< ::message::Error_level>() {
  981. return ::message::Error_level_descriptor();
  982. }
  983. } // namespace protobuf
  984. } // namespace google
  985. // @@protoc_insertion_point(global_scope)
  986. #endif // PROTOBUF_message_5fbase_2eproto__INCLUDED