ground_measure_msg.pb.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: ground_measure_msg.proto
  3. #ifndef PROTOBUF_ground_5fmeasure_5fmsg_2eproto__INCLUDED
  4. #define PROTOBUF_ground_5fmeasure_5fmsg_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_ground_5fmeasure_5fmsg_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[1];
  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 InitDefaultsGround_measure_statu_msgImpl();
  42. void InitDefaultsGround_measure_statu_msg();
  43. inline void InitDefaults() {
  44. InitDefaultsGround_measure_statu_msg();
  45. }
  46. } // namespace protobuf_ground_5fmeasure_5fmsg_2eproto
  47. namespace message {
  48. class Ground_measure_statu_msg;
  49. class Ground_measure_statu_msgDefaultTypeInternal;
  50. extern Ground_measure_statu_msgDefaultTypeInternal _Ground_measure_statu_msg_default_instance_;
  51. } // namespace message
  52. namespace message {
  53. enum Laser_statu {
  54. LASER_DISCONNECT = 0,
  55. LASER_READY = 1,
  56. LASER_BUSY = 2,
  57. LASER_FAULT = 3
  58. };
  59. bool Laser_statu_IsValid(int value);
  60. const Laser_statu Laser_statu_MIN = LASER_DISCONNECT;
  61. const Laser_statu Laser_statu_MAX = LASER_FAULT;
  62. const int Laser_statu_ARRAYSIZE = Laser_statu_MAX + 1;
  63. const ::google::protobuf::EnumDescriptor* Laser_statu_descriptor();
  64. inline const ::std::string& Laser_statu_Name(Laser_statu value) {
  65. return ::google::protobuf::internal::NameOfEnum(
  66. Laser_statu_descriptor(), value);
  67. }
  68. inline bool Laser_statu_Parse(
  69. const ::std::string& name, Laser_statu* value) {
  70. return ::google::protobuf::internal::ParseNamedEnum<Laser_statu>(
  71. Laser_statu_descriptor(), name, value);
  72. }
  73. enum Ground_statu {
  74. Nothing = 0,
  75. Noise = 1,
  76. Car_correct = 2,
  77. Car_left_out = 3,
  78. Car_right_out = 4,
  79. Car_top_out = 5,
  80. Car_bottom_out = 6
  81. };
  82. bool Ground_statu_IsValid(int value);
  83. const Ground_statu Ground_statu_MIN = Nothing;
  84. const Ground_statu Ground_statu_MAX = Car_bottom_out;
  85. const int Ground_statu_ARRAYSIZE = Ground_statu_MAX + 1;
  86. const ::google::protobuf::EnumDescriptor* Ground_statu_descriptor();
  87. inline const ::std::string& Ground_statu_Name(Ground_statu value) {
  88. return ::google::protobuf::internal::NameOfEnum(
  89. Ground_statu_descriptor(), value);
  90. }
  91. inline bool Ground_statu_Parse(
  92. const ::std::string& name, Ground_statu* value) {
  93. return ::google::protobuf::internal::ParseNamedEnum<Ground_statu>(
  94. Ground_statu_descriptor(), name, value);
  95. }
  96. // ===================================================================
  97. class Ground_measure_statu_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Ground_measure_statu_msg) */ {
  98. public:
  99. Ground_measure_statu_msg();
  100. virtual ~Ground_measure_statu_msg();
  101. Ground_measure_statu_msg(const Ground_measure_statu_msg& from);
  102. inline Ground_measure_statu_msg& operator=(const Ground_measure_statu_msg& from) {
  103. CopyFrom(from);
  104. return *this;
  105. }
  106. #if LANG_CXX11
  107. Ground_measure_statu_msg(Ground_measure_statu_msg&& from) noexcept
  108. : Ground_measure_statu_msg() {
  109. *this = ::std::move(from);
  110. }
  111. inline Ground_measure_statu_msg& operator=(Ground_measure_statu_msg&& from) noexcept {
  112. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  113. if (this != &from) InternalSwap(&from);
  114. } else {
  115. CopyFrom(from);
  116. }
  117. return *this;
  118. }
  119. #endif
  120. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  121. return _internal_metadata_.unknown_fields();
  122. }
  123. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  124. return _internal_metadata_.mutable_unknown_fields();
  125. }
  126. static const ::google::protobuf::Descriptor* descriptor();
  127. static const Ground_measure_statu_msg& default_instance();
  128. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  129. static inline const Ground_measure_statu_msg* internal_default_instance() {
  130. return reinterpret_cast<const Ground_measure_statu_msg*>(
  131. &_Ground_measure_statu_msg_default_instance_);
  132. }
  133. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  134. 0;
  135. void Swap(Ground_measure_statu_msg* other);
  136. friend void swap(Ground_measure_statu_msg& a, Ground_measure_statu_msg& b) {
  137. a.Swap(&b);
  138. }
  139. // implements Message ----------------------------------------------
  140. inline Ground_measure_statu_msg* New() const PROTOBUF_FINAL { return New(NULL); }
  141. Ground_measure_statu_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  142. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  143. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  144. void CopyFrom(const Ground_measure_statu_msg& from);
  145. void MergeFrom(const Ground_measure_statu_msg& from);
  146. void Clear() PROTOBUF_FINAL;
  147. bool IsInitialized() const PROTOBUF_FINAL;
  148. size_t ByteSizeLong() const PROTOBUF_FINAL;
  149. bool MergePartialFromCodedStream(
  150. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  151. void SerializeWithCachedSizes(
  152. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  153. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  154. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  155. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  156. private:
  157. void SharedCtor();
  158. void SharedDtor();
  159. void SetCachedSize(int size) const PROTOBUF_FINAL;
  160. void InternalSwap(Ground_measure_statu_msg* other);
  161. private:
  162. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  163. return NULL;
  164. }
  165. inline void* MaybeArenaPtr() const {
  166. return NULL;
  167. }
  168. public:
  169. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  170. // nested types ----------------------------------------------------
  171. // accessors -------------------------------------------------------
  172. // repeated .message.Laser_statu laser_statu_vector = 3;
  173. int laser_statu_vector_size() const;
  174. void clear_laser_statu_vector();
  175. static const int kLaserStatuVectorFieldNumber = 3;
  176. ::message::Laser_statu laser_statu_vector(int index) const;
  177. void set_laser_statu_vector(int index, ::message::Laser_statu value);
  178. void add_laser_statu_vector(::message::Laser_statu value);
  179. const ::google::protobuf::RepeatedField<int>& laser_statu_vector() const;
  180. ::google::protobuf::RepeatedField<int>* mutable_laser_statu_vector();
  181. // required .message.Base_info base_info = 1;
  182. bool has_base_info() const;
  183. void clear_base_info();
  184. static const int kBaseInfoFieldNumber = 1;
  185. const ::message::Base_info& base_info() const;
  186. ::message::Base_info* release_base_info();
  187. ::message::Base_info* mutable_base_info();
  188. void set_allocated_base_info(::message::Base_info* base_info);
  189. // optional .message.Locate_information locate_information_realtime = 5;
  190. bool has_locate_information_realtime() const;
  191. void clear_locate_information_realtime();
  192. static const int kLocateInformationRealtimeFieldNumber = 5;
  193. const ::message::Locate_information& locate_information_realtime() const;
  194. ::message::Locate_information* release_locate_information_realtime();
  195. ::message::Locate_information* mutable_locate_information_realtime();
  196. void set_allocated_locate_information_realtime(::message::Locate_information* locate_information_realtime);
  197. // required int32 id = 2;
  198. bool has_id() const;
  199. void clear_id();
  200. static const int kIdFieldNumber = 2;
  201. ::google::protobuf::int32 id() const;
  202. void set_id(::google::protobuf::int32 value);
  203. // required .message.Ground_statu ground_statu = 4;
  204. bool has_ground_statu() const;
  205. void clear_ground_statu();
  206. static const int kGroundStatuFieldNumber = 4;
  207. ::message::Ground_statu ground_statu() const;
  208. void set_ground_statu(::message::Ground_statu value);
  209. // @@protoc_insertion_point(class_scope:message.Ground_measure_statu_msg)
  210. private:
  211. void set_has_base_info();
  212. void clear_has_base_info();
  213. void set_has_id();
  214. void clear_has_id();
  215. void set_has_ground_statu();
  216. void clear_has_ground_statu();
  217. void set_has_locate_information_realtime();
  218. void clear_has_locate_information_realtime();
  219. // helper for ByteSizeLong()
  220. size_t RequiredFieldsByteSizeFallback() const;
  221. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  222. ::google::protobuf::internal::HasBits<1> _has_bits_;
  223. mutable int _cached_size_;
  224. ::google::protobuf::RepeatedField<int> laser_statu_vector_;
  225. ::message::Base_info* base_info_;
  226. ::message::Locate_information* locate_information_realtime_;
  227. ::google::protobuf::int32 id_;
  228. int ground_statu_;
  229. friend struct ::protobuf_ground_5fmeasure_5fmsg_2eproto::TableStruct;
  230. friend void ::protobuf_ground_5fmeasure_5fmsg_2eproto::InitDefaultsGround_measure_statu_msgImpl();
  231. };
  232. // ===================================================================
  233. // ===================================================================
  234. #ifdef __GNUC__
  235. #pragma GCC diagnostic push
  236. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  237. #endif // __GNUC__
  238. // Ground_measure_statu_msg
  239. // required .message.Base_info base_info = 1;
  240. inline bool Ground_measure_statu_msg::has_base_info() const {
  241. return (_has_bits_[0] & 0x00000001u) != 0;
  242. }
  243. inline void Ground_measure_statu_msg::set_has_base_info() {
  244. _has_bits_[0] |= 0x00000001u;
  245. }
  246. inline void Ground_measure_statu_msg::clear_has_base_info() {
  247. _has_bits_[0] &= ~0x00000001u;
  248. }
  249. inline const ::message::Base_info& Ground_measure_statu_msg::base_info() const {
  250. const ::message::Base_info* p = base_info_;
  251. // @@protoc_insertion_point(field_get:message.Ground_measure_statu_msg.base_info)
  252. return p != NULL ? *p : *reinterpret_cast<const ::message::Base_info*>(
  253. &::message::_Base_info_default_instance_);
  254. }
  255. inline ::message::Base_info* Ground_measure_statu_msg::release_base_info() {
  256. // @@protoc_insertion_point(field_release:message.Ground_measure_statu_msg.base_info)
  257. clear_has_base_info();
  258. ::message::Base_info* temp = base_info_;
  259. base_info_ = NULL;
  260. return temp;
  261. }
  262. inline ::message::Base_info* Ground_measure_statu_msg::mutable_base_info() {
  263. set_has_base_info();
  264. if (base_info_ == NULL) {
  265. base_info_ = new ::message::Base_info;
  266. }
  267. // @@protoc_insertion_point(field_mutable:message.Ground_measure_statu_msg.base_info)
  268. return base_info_;
  269. }
  270. inline void Ground_measure_statu_msg::set_allocated_base_info(::message::Base_info* base_info) {
  271. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  272. if (message_arena == NULL) {
  273. delete reinterpret_cast< ::google::protobuf::MessageLite*>(base_info_);
  274. }
  275. if (base_info) {
  276. ::google::protobuf::Arena* submessage_arena = NULL;
  277. if (message_arena != submessage_arena) {
  278. base_info = ::google::protobuf::internal::GetOwnedMessage(
  279. message_arena, base_info, submessage_arena);
  280. }
  281. set_has_base_info();
  282. } else {
  283. clear_has_base_info();
  284. }
  285. base_info_ = base_info;
  286. // @@protoc_insertion_point(field_set_allocated:message.Ground_measure_statu_msg.base_info)
  287. }
  288. // required int32 id = 2;
  289. inline bool Ground_measure_statu_msg::has_id() const {
  290. return (_has_bits_[0] & 0x00000004u) != 0;
  291. }
  292. inline void Ground_measure_statu_msg::set_has_id() {
  293. _has_bits_[0] |= 0x00000004u;
  294. }
  295. inline void Ground_measure_statu_msg::clear_has_id() {
  296. _has_bits_[0] &= ~0x00000004u;
  297. }
  298. inline void Ground_measure_statu_msg::clear_id() {
  299. id_ = 0;
  300. clear_has_id();
  301. }
  302. inline ::google::protobuf::int32 Ground_measure_statu_msg::id() const {
  303. // @@protoc_insertion_point(field_get:message.Ground_measure_statu_msg.id)
  304. return id_;
  305. }
  306. inline void Ground_measure_statu_msg::set_id(::google::protobuf::int32 value) {
  307. set_has_id();
  308. id_ = value;
  309. // @@protoc_insertion_point(field_set:message.Ground_measure_statu_msg.id)
  310. }
  311. // repeated .message.Laser_statu laser_statu_vector = 3;
  312. inline int Ground_measure_statu_msg::laser_statu_vector_size() const {
  313. return laser_statu_vector_.size();
  314. }
  315. inline void Ground_measure_statu_msg::clear_laser_statu_vector() {
  316. laser_statu_vector_.Clear();
  317. }
  318. inline ::message::Laser_statu Ground_measure_statu_msg::laser_statu_vector(int index) const {
  319. // @@protoc_insertion_point(field_get:message.Ground_measure_statu_msg.laser_statu_vector)
  320. return static_cast< ::message::Laser_statu >(laser_statu_vector_.Get(index));
  321. }
  322. inline void Ground_measure_statu_msg::set_laser_statu_vector(int index, ::message::Laser_statu value) {
  323. assert(::message::Laser_statu_IsValid(value));
  324. laser_statu_vector_.Set(index, value);
  325. // @@protoc_insertion_point(field_set:message.Ground_measure_statu_msg.laser_statu_vector)
  326. }
  327. inline void Ground_measure_statu_msg::add_laser_statu_vector(::message::Laser_statu value) {
  328. assert(::message::Laser_statu_IsValid(value));
  329. laser_statu_vector_.Add(value);
  330. // @@protoc_insertion_point(field_add:message.Ground_measure_statu_msg.laser_statu_vector)
  331. }
  332. inline const ::google::protobuf::RepeatedField<int>&
  333. Ground_measure_statu_msg::laser_statu_vector() const {
  334. // @@protoc_insertion_point(field_list:message.Ground_measure_statu_msg.laser_statu_vector)
  335. return laser_statu_vector_;
  336. }
  337. inline ::google::protobuf::RepeatedField<int>*
  338. Ground_measure_statu_msg::mutable_laser_statu_vector() {
  339. // @@protoc_insertion_point(field_mutable_list:message.Ground_measure_statu_msg.laser_statu_vector)
  340. return &laser_statu_vector_;
  341. }
  342. // required .message.Ground_statu ground_statu = 4;
  343. inline bool Ground_measure_statu_msg::has_ground_statu() const {
  344. return (_has_bits_[0] & 0x00000008u) != 0;
  345. }
  346. inline void Ground_measure_statu_msg::set_has_ground_statu() {
  347. _has_bits_[0] |= 0x00000008u;
  348. }
  349. inline void Ground_measure_statu_msg::clear_has_ground_statu() {
  350. _has_bits_[0] &= ~0x00000008u;
  351. }
  352. inline void Ground_measure_statu_msg::clear_ground_statu() {
  353. ground_statu_ = 0;
  354. clear_has_ground_statu();
  355. }
  356. inline ::message::Ground_statu Ground_measure_statu_msg::ground_statu() const {
  357. // @@protoc_insertion_point(field_get:message.Ground_measure_statu_msg.ground_statu)
  358. return static_cast< ::message::Ground_statu >(ground_statu_);
  359. }
  360. inline void Ground_measure_statu_msg::set_ground_statu(::message::Ground_statu value) {
  361. assert(::message::Ground_statu_IsValid(value));
  362. set_has_ground_statu();
  363. ground_statu_ = value;
  364. // @@protoc_insertion_point(field_set:message.Ground_measure_statu_msg.ground_statu)
  365. }
  366. // optional .message.Locate_information locate_information_realtime = 5;
  367. inline bool Ground_measure_statu_msg::has_locate_information_realtime() const {
  368. return (_has_bits_[0] & 0x00000002u) != 0;
  369. }
  370. inline void Ground_measure_statu_msg::set_has_locate_information_realtime() {
  371. _has_bits_[0] |= 0x00000002u;
  372. }
  373. inline void Ground_measure_statu_msg::clear_has_locate_information_realtime() {
  374. _has_bits_[0] &= ~0x00000002u;
  375. }
  376. inline const ::message::Locate_information& Ground_measure_statu_msg::locate_information_realtime() const {
  377. const ::message::Locate_information* p = locate_information_realtime_;
  378. // @@protoc_insertion_point(field_get:message.Ground_measure_statu_msg.locate_information_realtime)
  379. return p != NULL ? *p : *reinterpret_cast<const ::message::Locate_information*>(
  380. &::message::_Locate_information_default_instance_);
  381. }
  382. inline ::message::Locate_information* Ground_measure_statu_msg::release_locate_information_realtime() {
  383. // @@protoc_insertion_point(field_release:message.Ground_measure_statu_msg.locate_information_realtime)
  384. clear_has_locate_information_realtime();
  385. ::message::Locate_information* temp = locate_information_realtime_;
  386. locate_information_realtime_ = NULL;
  387. return temp;
  388. }
  389. inline ::message::Locate_information* Ground_measure_statu_msg::mutable_locate_information_realtime() {
  390. set_has_locate_information_realtime();
  391. if (locate_information_realtime_ == NULL) {
  392. locate_information_realtime_ = new ::message::Locate_information;
  393. }
  394. // @@protoc_insertion_point(field_mutable:message.Ground_measure_statu_msg.locate_information_realtime)
  395. return locate_information_realtime_;
  396. }
  397. inline void Ground_measure_statu_msg::set_allocated_locate_information_realtime(::message::Locate_information* locate_information_realtime) {
  398. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  399. if (message_arena == NULL) {
  400. delete reinterpret_cast< ::google::protobuf::MessageLite*>(locate_information_realtime_);
  401. }
  402. if (locate_information_realtime) {
  403. ::google::protobuf::Arena* submessage_arena = NULL;
  404. if (message_arena != submessage_arena) {
  405. locate_information_realtime = ::google::protobuf::internal::GetOwnedMessage(
  406. message_arena, locate_information_realtime, submessage_arena);
  407. }
  408. set_has_locate_information_realtime();
  409. } else {
  410. clear_has_locate_information_realtime();
  411. }
  412. locate_information_realtime_ = locate_information_realtime;
  413. // @@protoc_insertion_point(field_set_allocated:message.Ground_measure_statu_msg.locate_information_realtime)
  414. }
  415. #ifdef __GNUC__
  416. #pragma GCC diagnostic pop
  417. #endif // __GNUC__
  418. // @@protoc_insertion_point(namespace_scope)
  419. } // namespace message
  420. namespace google {
  421. namespace protobuf {
  422. template <> struct is_proto_enum< ::message::Laser_statu> : ::google::protobuf::internal::true_type {};
  423. template <>
  424. inline const EnumDescriptor* GetEnumDescriptor< ::message::Laser_statu>() {
  425. return ::message::Laser_statu_descriptor();
  426. }
  427. template <> struct is_proto_enum< ::message::Ground_statu> : ::google::protobuf::internal::true_type {};
  428. template <>
  429. inline const EnumDescriptor* GetEnumDescriptor< ::message::Ground_statu>() {
  430. return ::message::Ground_statu_descriptor();
  431. }
  432. } // namespace protobuf
  433. } // namespace google
  434. // @@protoc_insertion_point(global_scope)
  435. #endif // PROTOBUF_ground_5fmeasure_5fmsg_2eproto__INCLUDED