measure_message.pb.h 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: measure_message.proto
  3. #ifndef PROTOBUF_INCLUDED_measure_5fmessage_2eproto
  4. #define PROTOBUF_INCLUDED_measure_5fmessage_2eproto
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3006000
  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 3006000 < 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/inlined_string_field.h>
  23. #include <google/protobuf/metadata.h>
  24. #include <google/protobuf/message.h>
  25. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  26. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  27. #include <google/protobuf/generated_enum_reflection.h>
  28. #include <google/protobuf/unknown_field_set.h>
  29. #include "message_base.pb.h"
  30. // @@protoc_insertion_point(includes)
  31. #define PROTOBUF_INTERNAL_EXPORT_protobuf_measure_5fmessage_2eproto
  32. namespace protobuf_measure_5fmessage_2eproto {
  33. // Internal implementation detail -- do not use these members.
  34. struct TableStruct {
  35. static const ::google::protobuf::internal::ParseTableField entries[];
  36. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  37. static const ::google::protobuf::internal::ParseTable schema[3];
  38. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  39. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  40. static const ::google::protobuf::uint32 offsets[];
  41. };
  42. void AddDescriptors();
  43. } // namespace protobuf_measure_5fmessage_2eproto
  44. namespace message {
  45. class Measure_request_msg;
  46. class Measure_request_msgDefaultTypeInternal;
  47. extern Measure_request_msgDefaultTypeInternal _Measure_request_msg_default_instance_;
  48. class Measure_response_msg;
  49. class Measure_response_msgDefaultTypeInternal;
  50. extern Measure_response_msgDefaultTypeInternal _Measure_response_msg_default_instance_;
  51. class Measure_status_msg;
  52. class Measure_status_msgDefaultTypeInternal;
  53. extern Measure_status_msgDefaultTypeInternal _Measure_status_msg_default_instance_;
  54. } // namespace message
  55. namespace google {
  56. namespace protobuf {
  57. template<> ::message::Measure_request_msg* Arena::CreateMaybeMessage<::message::Measure_request_msg>(Arena*);
  58. template<> ::message::Measure_response_msg* Arena::CreateMaybeMessage<::message::Measure_response_msg>(Arena*);
  59. template<> ::message::Measure_status_msg* Arena::CreateMaybeMessage<::message::Measure_status_msg>(Arena*);
  60. } // namespace protobuf
  61. } // namespace google
  62. namespace message {
  63. enum Laser_manager_status {
  64. LASER_MANAGER_UNKNOW = 0,
  65. LASER_MANAGER_READY = 1,
  66. LASER_MANAGER_ISSUED_TASK = 2,
  67. LASER_MANAGER_WAIT_REPLY = 3,
  68. LASER_MANAGER_FAULT = 4
  69. };
  70. bool Laser_manager_status_IsValid(int value);
  71. const Laser_manager_status Laser_manager_status_MIN = LASER_MANAGER_UNKNOW;
  72. const Laser_manager_status Laser_manager_status_MAX = LASER_MANAGER_FAULT;
  73. const int Laser_manager_status_ARRAYSIZE = Laser_manager_status_MAX + 1;
  74. const ::google::protobuf::EnumDescriptor* Laser_manager_status_descriptor();
  75. inline const ::std::string& Laser_manager_status_Name(Laser_manager_status value) {
  76. return ::google::protobuf::internal::NameOfEnum(
  77. Laser_manager_status_descriptor(), value);
  78. }
  79. inline bool Laser_manager_status_Parse(
  80. const ::std::string& name, Laser_manager_status* value) {
  81. return ::google::protobuf::internal::ParseNamedEnum<Laser_manager_status>(
  82. Laser_manager_status_descriptor(), name, value);
  83. }
  84. enum Laser_statu {
  85. LASER_DISCONNECT = 0,
  86. LASER_READY = 1,
  87. LASER_BUSY = 2,
  88. LASER_FAULT = 3
  89. };
  90. bool Laser_statu_IsValid(int value);
  91. const Laser_statu Laser_statu_MIN = LASER_DISCONNECT;
  92. const Laser_statu Laser_statu_MAX = LASER_FAULT;
  93. const int Laser_statu_ARRAYSIZE = Laser_statu_MAX + 1;
  94. const ::google::protobuf::EnumDescriptor* Laser_statu_descriptor();
  95. inline const ::std::string& Laser_statu_Name(Laser_statu value) {
  96. return ::google::protobuf::internal::NameOfEnum(
  97. Laser_statu_descriptor(), value);
  98. }
  99. inline bool Laser_statu_Parse(
  100. const ::std::string& name, Laser_statu* value) {
  101. return ::google::protobuf::internal::ParseNamedEnum<Laser_statu>(
  102. Laser_statu_descriptor(), name, value);
  103. }
  104. enum Locate_manager_status {
  105. LOCATE_MANAGER_UNKNOW = 0,
  106. LOCATE_MANAGER_READY = 1,
  107. LOCATE_MANAGER_SIFT = 2,
  108. LOCATE_MANAGER_CAR = 3,
  109. LOCATE_MANAGER_WHEEL = 4,
  110. LOCATE_MANAGER_FAULT = 5
  111. };
  112. bool Locate_manager_status_IsValid(int value);
  113. const Locate_manager_status Locate_manager_status_MIN = LOCATE_MANAGER_UNKNOW;
  114. const Locate_manager_status Locate_manager_status_MAX = LOCATE_MANAGER_FAULT;
  115. const int Locate_manager_status_ARRAYSIZE = Locate_manager_status_MAX + 1;
  116. const ::google::protobuf::EnumDescriptor* Locate_manager_status_descriptor();
  117. inline const ::std::string& Locate_manager_status_Name(Locate_manager_status value) {
  118. return ::google::protobuf::internal::NameOfEnum(
  119. Locate_manager_status_descriptor(), value);
  120. }
  121. inline bool Locate_manager_status_Parse(
  122. const ::std::string& name, Locate_manager_status* value) {
  123. return ::google::protobuf::internal::ParseNamedEnum<Locate_manager_status>(
  124. Locate_manager_status_descriptor(), name, value);
  125. }
  126. // ===================================================================
  127. class Measure_status_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Measure_status_msg) */ {
  128. public:
  129. Measure_status_msg();
  130. virtual ~Measure_status_msg();
  131. Measure_status_msg(const Measure_status_msg& from);
  132. inline Measure_status_msg& operator=(const Measure_status_msg& from) {
  133. CopyFrom(from);
  134. return *this;
  135. }
  136. #if LANG_CXX11
  137. Measure_status_msg(Measure_status_msg&& from) noexcept
  138. : Measure_status_msg() {
  139. *this = ::std::move(from);
  140. }
  141. inline Measure_status_msg& operator=(Measure_status_msg&& from) noexcept {
  142. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  143. if (this != &from) InternalSwap(&from);
  144. } else {
  145. CopyFrom(from);
  146. }
  147. return *this;
  148. }
  149. #endif
  150. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  151. return _internal_metadata_.unknown_fields();
  152. }
  153. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  154. return _internal_metadata_.mutable_unknown_fields();
  155. }
  156. static const ::google::protobuf::Descriptor* descriptor();
  157. static const Measure_status_msg& default_instance();
  158. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  159. static inline const Measure_status_msg* internal_default_instance() {
  160. return reinterpret_cast<const Measure_status_msg*>(
  161. &_Measure_status_msg_default_instance_);
  162. }
  163. static constexpr int kIndexInFileMessages =
  164. 0;
  165. void Swap(Measure_status_msg* other);
  166. friend void swap(Measure_status_msg& a, Measure_status_msg& b) {
  167. a.Swap(&b);
  168. }
  169. // implements Message ----------------------------------------------
  170. inline Measure_status_msg* New() const final {
  171. return CreateMaybeMessage<Measure_status_msg>(NULL);
  172. }
  173. Measure_status_msg* New(::google::protobuf::Arena* arena) const final {
  174. return CreateMaybeMessage<Measure_status_msg>(arena);
  175. }
  176. void CopyFrom(const ::google::protobuf::Message& from) final;
  177. void MergeFrom(const ::google::protobuf::Message& from) final;
  178. void CopyFrom(const Measure_status_msg& from);
  179. void MergeFrom(const Measure_status_msg& from);
  180. void Clear() final;
  181. bool IsInitialized() const final;
  182. size_t ByteSizeLong() const final;
  183. bool MergePartialFromCodedStream(
  184. ::google::protobuf::io::CodedInputStream* input) final;
  185. void SerializeWithCachedSizes(
  186. ::google::protobuf::io::CodedOutputStream* output) const final;
  187. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  188. bool deterministic, ::google::protobuf::uint8* target) const final;
  189. int GetCachedSize() const final { return _cached_size_.Get(); }
  190. private:
  191. void SharedCtor();
  192. void SharedDtor();
  193. void SetCachedSize(int size) const final;
  194. void InternalSwap(Measure_status_msg* other);
  195. private:
  196. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  197. return NULL;
  198. }
  199. inline void* MaybeArenaPtr() const {
  200. return NULL;
  201. }
  202. public:
  203. ::google::protobuf::Metadata GetMetadata() const final;
  204. // nested types ----------------------------------------------------
  205. // accessors -------------------------------------------------------
  206. // repeated .message.Laser_statu laser_statu_vector = 4;
  207. int laser_statu_vector_size() const;
  208. void clear_laser_statu_vector();
  209. static const int kLaserStatuVectorFieldNumber = 4;
  210. ::message::Laser_statu laser_statu_vector(int index) const;
  211. void set_laser_statu_vector(int index, ::message::Laser_statu value);
  212. void add_laser_statu_vector(::message::Laser_statu value);
  213. const ::google::protobuf::RepeatedField<int>& laser_statu_vector() const;
  214. ::google::protobuf::RepeatedField<int>* mutable_laser_statu_vector();
  215. // required .message.Base_info base_info = 1;
  216. bool has_base_info() const;
  217. void clear_base_info();
  218. static const int kBaseInfoFieldNumber = 1;
  219. private:
  220. const ::message::Base_info& _internal_base_info() const;
  221. public:
  222. const ::message::Base_info& base_info() const;
  223. ::message::Base_info* release_base_info();
  224. ::message::Base_info* mutable_base_info();
  225. void set_allocated_base_info(::message::Base_info* base_info);
  226. // optional .message.Locate_information locate_information_realtime = 6;
  227. bool has_locate_information_realtime() const;
  228. void clear_locate_information_realtime();
  229. static const int kLocateInformationRealtimeFieldNumber = 6;
  230. private:
  231. const ::message::Locate_information& _internal_locate_information_realtime() const;
  232. public:
  233. const ::message::Locate_information& locate_information_realtime() const;
  234. ::message::Locate_information* release_locate_information_realtime();
  235. ::message::Locate_information* mutable_locate_information_realtime();
  236. void set_allocated_locate_information_realtime(::message::Locate_information* locate_information_realtime);
  237. // required .message.Error_manager error_manager = 7;
  238. bool has_error_manager() const;
  239. void clear_error_manager();
  240. static const int kErrorManagerFieldNumber = 7;
  241. private:
  242. const ::message::Error_manager& _internal_error_manager() const;
  243. public:
  244. const ::message::Error_manager& error_manager() const;
  245. ::message::Error_manager* release_error_manager();
  246. ::message::Error_manager* mutable_error_manager();
  247. void set_allocated_error_manager(::message::Error_manager* error_manager);
  248. // required int32 terminal_id = 2;
  249. bool has_terminal_id() const;
  250. void clear_terminal_id();
  251. static const int kTerminalIdFieldNumber = 2;
  252. ::google::protobuf::int32 terminal_id() const;
  253. void set_terminal_id(::google::protobuf::int32 value);
  254. // required .message.Laser_manager_status laser_manager_status = 3;
  255. bool has_laser_manager_status() const;
  256. void clear_laser_manager_status();
  257. static const int kLaserManagerStatusFieldNumber = 3;
  258. ::message::Laser_manager_status laser_manager_status() const;
  259. void set_laser_manager_status(::message::Laser_manager_status value);
  260. // required .message.Locate_manager_status locate_manager_status = 5;
  261. bool has_locate_manager_status() const;
  262. void clear_locate_manager_status();
  263. static const int kLocateManagerStatusFieldNumber = 5;
  264. ::message::Locate_manager_status locate_manager_status() const;
  265. void set_locate_manager_status(::message::Locate_manager_status value);
  266. // @@protoc_insertion_point(class_scope:message.Measure_status_msg)
  267. private:
  268. void set_has_base_info();
  269. void clear_has_base_info();
  270. void set_has_terminal_id();
  271. void clear_has_terminal_id();
  272. void set_has_laser_manager_status();
  273. void clear_has_laser_manager_status();
  274. void set_has_locate_manager_status();
  275. void clear_has_locate_manager_status();
  276. void set_has_locate_information_realtime();
  277. void clear_has_locate_information_realtime();
  278. void set_has_error_manager();
  279. void clear_has_error_manager();
  280. // helper for ByteSizeLong()
  281. size_t RequiredFieldsByteSizeFallback() const;
  282. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  283. ::google::protobuf::internal::HasBits<1> _has_bits_;
  284. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  285. ::google::protobuf::RepeatedField<int> laser_statu_vector_;
  286. ::message::Base_info* base_info_;
  287. ::message::Locate_information* locate_information_realtime_;
  288. ::message::Error_manager* error_manager_;
  289. ::google::protobuf::int32 terminal_id_;
  290. int laser_manager_status_;
  291. int locate_manager_status_;
  292. friend struct ::protobuf_measure_5fmessage_2eproto::TableStruct;
  293. };
  294. // -------------------------------------------------------------------
  295. class Measure_request_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Measure_request_msg) */ {
  296. public:
  297. Measure_request_msg();
  298. virtual ~Measure_request_msg();
  299. Measure_request_msg(const Measure_request_msg& from);
  300. inline Measure_request_msg& operator=(const Measure_request_msg& from) {
  301. CopyFrom(from);
  302. return *this;
  303. }
  304. #if LANG_CXX11
  305. Measure_request_msg(Measure_request_msg&& from) noexcept
  306. : Measure_request_msg() {
  307. *this = ::std::move(from);
  308. }
  309. inline Measure_request_msg& operator=(Measure_request_msg&& from) noexcept {
  310. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  311. if (this != &from) InternalSwap(&from);
  312. } else {
  313. CopyFrom(from);
  314. }
  315. return *this;
  316. }
  317. #endif
  318. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  319. return _internal_metadata_.unknown_fields();
  320. }
  321. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  322. return _internal_metadata_.mutable_unknown_fields();
  323. }
  324. static const ::google::protobuf::Descriptor* descriptor();
  325. static const Measure_request_msg& default_instance();
  326. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  327. static inline const Measure_request_msg* internal_default_instance() {
  328. return reinterpret_cast<const Measure_request_msg*>(
  329. &_Measure_request_msg_default_instance_);
  330. }
  331. static constexpr int kIndexInFileMessages =
  332. 1;
  333. void Swap(Measure_request_msg* other);
  334. friend void swap(Measure_request_msg& a, Measure_request_msg& b) {
  335. a.Swap(&b);
  336. }
  337. // implements Message ----------------------------------------------
  338. inline Measure_request_msg* New() const final {
  339. return CreateMaybeMessage<Measure_request_msg>(NULL);
  340. }
  341. Measure_request_msg* New(::google::protobuf::Arena* arena) const final {
  342. return CreateMaybeMessage<Measure_request_msg>(arena);
  343. }
  344. void CopyFrom(const ::google::protobuf::Message& from) final;
  345. void MergeFrom(const ::google::protobuf::Message& from) final;
  346. void CopyFrom(const Measure_request_msg& from);
  347. void MergeFrom(const Measure_request_msg& from);
  348. void Clear() final;
  349. bool IsInitialized() const final;
  350. size_t ByteSizeLong() const final;
  351. bool MergePartialFromCodedStream(
  352. ::google::protobuf::io::CodedInputStream* input) final;
  353. void SerializeWithCachedSizes(
  354. ::google::protobuf::io::CodedOutputStream* output) const final;
  355. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  356. bool deterministic, ::google::protobuf::uint8* target) const final;
  357. int GetCachedSize() const final { return _cached_size_.Get(); }
  358. private:
  359. void SharedCtor();
  360. void SharedDtor();
  361. void SetCachedSize(int size) const final;
  362. void InternalSwap(Measure_request_msg* other);
  363. private:
  364. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  365. return NULL;
  366. }
  367. inline void* MaybeArenaPtr() const {
  368. return NULL;
  369. }
  370. public:
  371. ::google::protobuf::Metadata GetMetadata() const final;
  372. // nested types ----------------------------------------------------
  373. // accessors -------------------------------------------------------
  374. // required string command_key = 2;
  375. bool has_command_key() const;
  376. void clear_command_key();
  377. static const int kCommandKeyFieldNumber = 2;
  378. const ::std::string& command_key() const;
  379. void set_command_key(const ::std::string& value);
  380. #if LANG_CXX11
  381. void set_command_key(::std::string&& value);
  382. #endif
  383. void set_command_key(const char* value);
  384. void set_command_key(const char* value, size_t size);
  385. ::std::string* mutable_command_key();
  386. ::std::string* release_command_key();
  387. void set_allocated_command_key(::std::string* command_key);
  388. // required .message.Base_info base_info = 1;
  389. bool has_base_info() const;
  390. void clear_base_info();
  391. static const int kBaseInfoFieldNumber = 1;
  392. private:
  393. const ::message::Base_info& _internal_base_info() const;
  394. public:
  395. const ::message::Base_info& base_info() const;
  396. ::message::Base_info* release_base_info();
  397. ::message::Base_info* mutable_base_info();
  398. void set_allocated_base_info(::message::Base_info* base_info);
  399. // required int32 terminal_id = 3;
  400. bool has_terminal_id() const;
  401. void clear_terminal_id();
  402. static const int kTerminalIdFieldNumber = 3;
  403. ::google::protobuf::int32 terminal_id() const;
  404. void set_terminal_id(::google::protobuf::int32 value);
  405. // @@protoc_insertion_point(class_scope:message.Measure_request_msg)
  406. private:
  407. void set_has_base_info();
  408. void clear_has_base_info();
  409. void set_has_command_key();
  410. void clear_has_command_key();
  411. void set_has_terminal_id();
  412. void clear_has_terminal_id();
  413. // helper for ByteSizeLong()
  414. size_t RequiredFieldsByteSizeFallback() const;
  415. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  416. ::google::protobuf::internal::HasBits<1> _has_bits_;
  417. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  418. ::google::protobuf::internal::ArenaStringPtr command_key_;
  419. ::message::Base_info* base_info_;
  420. ::google::protobuf::int32 terminal_id_;
  421. friend struct ::protobuf_measure_5fmessage_2eproto::TableStruct;
  422. };
  423. // -------------------------------------------------------------------
  424. class Measure_response_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Measure_response_msg) */ {
  425. public:
  426. Measure_response_msg();
  427. virtual ~Measure_response_msg();
  428. Measure_response_msg(const Measure_response_msg& from);
  429. inline Measure_response_msg& operator=(const Measure_response_msg& from) {
  430. CopyFrom(from);
  431. return *this;
  432. }
  433. #if LANG_CXX11
  434. Measure_response_msg(Measure_response_msg&& from) noexcept
  435. : Measure_response_msg() {
  436. *this = ::std::move(from);
  437. }
  438. inline Measure_response_msg& operator=(Measure_response_msg&& from) noexcept {
  439. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  440. if (this != &from) InternalSwap(&from);
  441. } else {
  442. CopyFrom(from);
  443. }
  444. return *this;
  445. }
  446. #endif
  447. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  448. return _internal_metadata_.unknown_fields();
  449. }
  450. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  451. return _internal_metadata_.mutable_unknown_fields();
  452. }
  453. static const ::google::protobuf::Descriptor* descriptor();
  454. static const Measure_response_msg& default_instance();
  455. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  456. static inline const Measure_response_msg* internal_default_instance() {
  457. return reinterpret_cast<const Measure_response_msg*>(
  458. &_Measure_response_msg_default_instance_);
  459. }
  460. static constexpr int kIndexInFileMessages =
  461. 2;
  462. void Swap(Measure_response_msg* other);
  463. friend void swap(Measure_response_msg& a, Measure_response_msg& b) {
  464. a.Swap(&b);
  465. }
  466. // implements Message ----------------------------------------------
  467. inline Measure_response_msg* New() const final {
  468. return CreateMaybeMessage<Measure_response_msg>(NULL);
  469. }
  470. Measure_response_msg* New(::google::protobuf::Arena* arena) const final {
  471. return CreateMaybeMessage<Measure_response_msg>(arena);
  472. }
  473. void CopyFrom(const ::google::protobuf::Message& from) final;
  474. void MergeFrom(const ::google::protobuf::Message& from) final;
  475. void CopyFrom(const Measure_response_msg& from);
  476. void MergeFrom(const Measure_response_msg& from);
  477. void Clear() final;
  478. bool IsInitialized() const final;
  479. size_t ByteSizeLong() const final;
  480. bool MergePartialFromCodedStream(
  481. ::google::protobuf::io::CodedInputStream* input) final;
  482. void SerializeWithCachedSizes(
  483. ::google::protobuf::io::CodedOutputStream* output) const final;
  484. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  485. bool deterministic, ::google::protobuf::uint8* target) const final;
  486. int GetCachedSize() const final { return _cached_size_.Get(); }
  487. private:
  488. void SharedCtor();
  489. void SharedDtor();
  490. void SetCachedSize(int size) const final;
  491. void InternalSwap(Measure_response_msg* other);
  492. private:
  493. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  494. return NULL;
  495. }
  496. inline void* MaybeArenaPtr() const {
  497. return NULL;
  498. }
  499. public:
  500. ::google::protobuf::Metadata GetMetadata() const final;
  501. // nested types ----------------------------------------------------
  502. // accessors -------------------------------------------------------
  503. // required string command_key = 2;
  504. bool has_command_key() const;
  505. void clear_command_key();
  506. static const int kCommandKeyFieldNumber = 2;
  507. const ::std::string& command_key() const;
  508. void set_command_key(const ::std::string& value);
  509. #if LANG_CXX11
  510. void set_command_key(::std::string&& value);
  511. #endif
  512. void set_command_key(const char* value);
  513. void set_command_key(const char* value, size_t size);
  514. ::std::string* mutable_command_key();
  515. ::std::string* release_command_key();
  516. void set_allocated_command_key(::std::string* command_key);
  517. // required .message.Base_info base_info = 1;
  518. bool has_base_info() const;
  519. void clear_base_info();
  520. static const int kBaseInfoFieldNumber = 1;
  521. private:
  522. const ::message::Base_info& _internal_base_info() const;
  523. public:
  524. const ::message::Base_info& base_info() const;
  525. ::message::Base_info* release_base_info();
  526. ::message::Base_info* mutable_base_info();
  527. void set_allocated_base_info(::message::Base_info* base_info);
  528. // optional .message.Locate_information locate_information = 4;
  529. bool has_locate_information() const;
  530. void clear_locate_information();
  531. static const int kLocateInformationFieldNumber = 4;
  532. private:
  533. const ::message::Locate_information& _internal_locate_information() const;
  534. public:
  535. const ::message::Locate_information& locate_information() const;
  536. ::message::Locate_information* release_locate_information();
  537. ::message::Locate_information* mutable_locate_information();
  538. void set_allocated_locate_information(::message::Locate_information* locate_information);
  539. // required .message.Error_manager error_manager = 5;
  540. bool has_error_manager() const;
  541. void clear_error_manager();
  542. static const int kErrorManagerFieldNumber = 5;
  543. private:
  544. const ::message::Error_manager& _internal_error_manager() const;
  545. public:
  546. const ::message::Error_manager& error_manager() const;
  547. ::message::Error_manager* release_error_manager();
  548. ::message::Error_manager* mutable_error_manager();
  549. void set_allocated_error_manager(::message::Error_manager* error_manager);
  550. // required int32 terminal_id = 3;
  551. bool has_terminal_id() const;
  552. void clear_terminal_id();
  553. static const int kTerminalIdFieldNumber = 3;
  554. ::google::protobuf::int32 terminal_id() const;
  555. void set_terminal_id(::google::protobuf::int32 value);
  556. // @@protoc_insertion_point(class_scope:message.Measure_response_msg)
  557. private:
  558. void set_has_base_info();
  559. void clear_has_base_info();
  560. void set_has_command_key();
  561. void clear_has_command_key();
  562. void set_has_terminal_id();
  563. void clear_has_terminal_id();
  564. void set_has_locate_information();
  565. void clear_has_locate_information();
  566. void set_has_error_manager();
  567. void clear_has_error_manager();
  568. // helper for ByteSizeLong()
  569. size_t RequiredFieldsByteSizeFallback() const;
  570. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  571. ::google::protobuf::internal::HasBits<1> _has_bits_;
  572. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  573. ::google::protobuf::internal::ArenaStringPtr command_key_;
  574. ::message::Base_info* base_info_;
  575. ::message::Locate_information* locate_information_;
  576. ::message::Error_manager* error_manager_;
  577. ::google::protobuf::int32 terminal_id_;
  578. friend struct ::protobuf_measure_5fmessage_2eproto::TableStruct;
  579. };
  580. // ===================================================================
  581. // ===================================================================
  582. #ifdef __GNUC__
  583. #pragma GCC diagnostic push
  584. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  585. #endif // __GNUC__
  586. // Measure_status_msg
  587. // required .message.Base_info base_info = 1;
  588. inline bool Measure_status_msg::has_base_info() const {
  589. return (_has_bits_[0] & 0x00000001u) != 0;
  590. }
  591. inline void Measure_status_msg::set_has_base_info() {
  592. _has_bits_[0] |= 0x00000001u;
  593. }
  594. inline void Measure_status_msg::clear_has_base_info() {
  595. _has_bits_[0] &= ~0x00000001u;
  596. }
  597. inline const ::message::Base_info& Measure_status_msg::_internal_base_info() const {
  598. return *base_info_;
  599. }
  600. inline const ::message::Base_info& Measure_status_msg::base_info() const {
  601. const ::message::Base_info* p = base_info_;
  602. // @@protoc_insertion_point(field_get:message.Measure_status_msg.base_info)
  603. return p != NULL ? *p : *reinterpret_cast<const ::message::Base_info*>(
  604. &::message::_Base_info_default_instance_);
  605. }
  606. inline ::message::Base_info* Measure_status_msg::release_base_info() {
  607. // @@protoc_insertion_point(field_release:message.Measure_status_msg.base_info)
  608. clear_has_base_info();
  609. ::message::Base_info* temp = base_info_;
  610. base_info_ = NULL;
  611. return temp;
  612. }
  613. inline ::message::Base_info* Measure_status_msg::mutable_base_info() {
  614. set_has_base_info();
  615. if (base_info_ == NULL) {
  616. auto* p = CreateMaybeMessage<::message::Base_info>(GetArenaNoVirtual());
  617. base_info_ = p;
  618. }
  619. // @@protoc_insertion_point(field_mutable:message.Measure_status_msg.base_info)
  620. return base_info_;
  621. }
  622. inline void Measure_status_msg::set_allocated_base_info(::message::Base_info* base_info) {
  623. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  624. if (message_arena == NULL) {
  625. delete reinterpret_cast< ::google::protobuf::MessageLite*>(base_info_);
  626. }
  627. if (base_info) {
  628. ::google::protobuf::Arena* submessage_arena = NULL;
  629. if (message_arena != submessage_arena) {
  630. base_info = ::google::protobuf::internal::GetOwnedMessage(
  631. message_arena, base_info, submessage_arena);
  632. }
  633. set_has_base_info();
  634. } else {
  635. clear_has_base_info();
  636. }
  637. base_info_ = base_info;
  638. // @@protoc_insertion_point(field_set_allocated:message.Measure_status_msg.base_info)
  639. }
  640. // required int32 terminal_id = 2;
  641. inline bool Measure_status_msg::has_terminal_id() const {
  642. return (_has_bits_[0] & 0x00000008u) != 0;
  643. }
  644. inline void Measure_status_msg::set_has_terminal_id() {
  645. _has_bits_[0] |= 0x00000008u;
  646. }
  647. inline void Measure_status_msg::clear_has_terminal_id() {
  648. _has_bits_[0] &= ~0x00000008u;
  649. }
  650. inline void Measure_status_msg::clear_terminal_id() {
  651. terminal_id_ = 0;
  652. clear_has_terminal_id();
  653. }
  654. inline ::google::protobuf::int32 Measure_status_msg::terminal_id() const {
  655. // @@protoc_insertion_point(field_get:message.Measure_status_msg.terminal_id)
  656. return terminal_id_;
  657. }
  658. inline void Measure_status_msg::set_terminal_id(::google::protobuf::int32 value) {
  659. set_has_terminal_id();
  660. terminal_id_ = value;
  661. // @@protoc_insertion_point(field_set:message.Measure_status_msg.terminal_id)
  662. }
  663. // required .message.Laser_manager_status laser_manager_status = 3;
  664. inline bool Measure_status_msg::has_laser_manager_status() const {
  665. return (_has_bits_[0] & 0x00000010u) != 0;
  666. }
  667. inline void Measure_status_msg::set_has_laser_manager_status() {
  668. _has_bits_[0] |= 0x00000010u;
  669. }
  670. inline void Measure_status_msg::clear_has_laser_manager_status() {
  671. _has_bits_[0] &= ~0x00000010u;
  672. }
  673. inline void Measure_status_msg::clear_laser_manager_status() {
  674. laser_manager_status_ = 0;
  675. clear_has_laser_manager_status();
  676. }
  677. inline ::message::Laser_manager_status Measure_status_msg::laser_manager_status() const {
  678. // @@protoc_insertion_point(field_get:message.Measure_status_msg.laser_manager_status)
  679. return static_cast< ::message::Laser_manager_status >(laser_manager_status_);
  680. }
  681. inline void Measure_status_msg::set_laser_manager_status(::message::Laser_manager_status value) {
  682. assert(::message::Laser_manager_status_IsValid(value));
  683. set_has_laser_manager_status();
  684. laser_manager_status_ = value;
  685. // @@protoc_insertion_point(field_set:message.Measure_status_msg.laser_manager_status)
  686. }
  687. // repeated .message.Laser_statu laser_statu_vector = 4;
  688. inline int Measure_status_msg::laser_statu_vector_size() const {
  689. return laser_statu_vector_.size();
  690. }
  691. inline void Measure_status_msg::clear_laser_statu_vector() {
  692. laser_statu_vector_.Clear();
  693. }
  694. inline ::message::Laser_statu Measure_status_msg::laser_statu_vector(int index) const {
  695. // @@protoc_insertion_point(field_get:message.Measure_status_msg.laser_statu_vector)
  696. return static_cast< ::message::Laser_statu >(laser_statu_vector_.Get(index));
  697. }
  698. inline void Measure_status_msg::set_laser_statu_vector(int index, ::message::Laser_statu value) {
  699. assert(::message::Laser_statu_IsValid(value));
  700. laser_statu_vector_.Set(index, value);
  701. // @@protoc_insertion_point(field_set:message.Measure_status_msg.laser_statu_vector)
  702. }
  703. inline void Measure_status_msg::add_laser_statu_vector(::message::Laser_statu value) {
  704. assert(::message::Laser_statu_IsValid(value));
  705. laser_statu_vector_.Add(value);
  706. // @@protoc_insertion_point(field_add:message.Measure_status_msg.laser_statu_vector)
  707. }
  708. inline const ::google::protobuf::RepeatedField<int>&
  709. Measure_status_msg::laser_statu_vector() const {
  710. // @@protoc_insertion_point(field_list:message.Measure_status_msg.laser_statu_vector)
  711. return laser_statu_vector_;
  712. }
  713. inline ::google::protobuf::RepeatedField<int>*
  714. Measure_status_msg::mutable_laser_statu_vector() {
  715. // @@protoc_insertion_point(field_mutable_list:message.Measure_status_msg.laser_statu_vector)
  716. return &laser_statu_vector_;
  717. }
  718. // required .message.Locate_manager_status locate_manager_status = 5;
  719. inline bool Measure_status_msg::has_locate_manager_status() const {
  720. return (_has_bits_[0] & 0x00000020u) != 0;
  721. }
  722. inline void Measure_status_msg::set_has_locate_manager_status() {
  723. _has_bits_[0] |= 0x00000020u;
  724. }
  725. inline void Measure_status_msg::clear_has_locate_manager_status() {
  726. _has_bits_[0] &= ~0x00000020u;
  727. }
  728. inline void Measure_status_msg::clear_locate_manager_status() {
  729. locate_manager_status_ = 0;
  730. clear_has_locate_manager_status();
  731. }
  732. inline ::message::Locate_manager_status Measure_status_msg::locate_manager_status() const {
  733. // @@protoc_insertion_point(field_get:message.Measure_status_msg.locate_manager_status)
  734. return static_cast< ::message::Locate_manager_status >(locate_manager_status_);
  735. }
  736. inline void Measure_status_msg::set_locate_manager_status(::message::Locate_manager_status value) {
  737. assert(::message::Locate_manager_status_IsValid(value));
  738. set_has_locate_manager_status();
  739. locate_manager_status_ = value;
  740. // @@protoc_insertion_point(field_set:message.Measure_status_msg.locate_manager_status)
  741. }
  742. // optional .message.Locate_information locate_information_realtime = 6;
  743. inline bool Measure_status_msg::has_locate_information_realtime() const {
  744. return (_has_bits_[0] & 0x00000002u) != 0;
  745. }
  746. inline void Measure_status_msg::set_has_locate_information_realtime() {
  747. _has_bits_[0] |= 0x00000002u;
  748. }
  749. inline void Measure_status_msg::clear_has_locate_information_realtime() {
  750. _has_bits_[0] &= ~0x00000002u;
  751. }
  752. inline const ::message::Locate_information& Measure_status_msg::_internal_locate_information_realtime() const {
  753. return *locate_information_realtime_;
  754. }
  755. inline const ::message::Locate_information& Measure_status_msg::locate_information_realtime() const {
  756. const ::message::Locate_information* p = locate_information_realtime_;
  757. // @@protoc_insertion_point(field_get:message.Measure_status_msg.locate_information_realtime)
  758. return p != NULL ? *p : *reinterpret_cast<const ::message::Locate_information*>(
  759. &::message::_Locate_information_default_instance_);
  760. }
  761. inline ::message::Locate_information* Measure_status_msg::release_locate_information_realtime() {
  762. // @@protoc_insertion_point(field_release:message.Measure_status_msg.locate_information_realtime)
  763. clear_has_locate_information_realtime();
  764. ::message::Locate_information* temp = locate_information_realtime_;
  765. locate_information_realtime_ = NULL;
  766. return temp;
  767. }
  768. inline ::message::Locate_information* Measure_status_msg::mutable_locate_information_realtime() {
  769. set_has_locate_information_realtime();
  770. if (locate_information_realtime_ == NULL) {
  771. auto* p = CreateMaybeMessage<::message::Locate_information>(GetArenaNoVirtual());
  772. locate_information_realtime_ = p;
  773. }
  774. // @@protoc_insertion_point(field_mutable:message.Measure_status_msg.locate_information_realtime)
  775. return locate_information_realtime_;
  776. }
  777. inline void Measure_status_msg::set_allocated_locate_information_realtime(::message::Locate_information* locate_information_realtime) {
  778. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  779. if (message_arena == NULL) {
  780. delete reinterpret_cast< ::google::protobuf::MessageLite*>(locate_information_realtime_);
  781. }
  782. if (locate_information_realtime) {
  783. ::google::protobuf::Arena* submessage_arena = NULL;
  784. if (message_arena != submessage_arena) {
  785. locate_information_realtime = ::google::protobuf::internal::GetOwnedMessage(
  786. message_arena, locate_information_realtime, submessage_arena);
  787. }
  788. set_has_locate_information_realtime();
  789. } else {
  790. clear_has_locate_information_realtime();
  791. }
  792. locate_information_realtime_ = locate_information_realtime;
  793. // @@protoc_insertion_point(field_set_allocated:message.Measure_status_msg.locate_information_realtime)
  794. }
  795. // required .message.Error_manager error_manager = 7;
  796. inline bool Measure_status_msg::has_error_manager() const {
  797. return (_has_bits_[0] & 0x00000004u) != 0;
  798. }
  799. inline void Measure_status_msg::set_has_error_manager() {
  800. _has_bits_[0] |= 0x00000004u;
  801. }
  802. inline void Measure_status_msg::clear_has_error_manager() {
  803. _has_bits_[0] &= ~0x00000004u;
  804. }
  805. inline const ::message::Error_manager& Measure_status_msg::_internal_error_manager() const {
  806. return *error_manager_;
  807. }
  808. inline const ::message::Error_manager& Measure_status_msg::error_manager() const {
  809. const ::message::Error_manager* p = error_manager_;
  810. // @@protoc_insertion_point(field_get:message.Measure_status_msg.error_manager)
  811. return p != NULL ? *p : *reinterpret_cast<const ::message::Error_manager*>(
  812. &::message::_Error_manager_default_instance_);
  813. }
  814. inline ::message::Error_manager* Measure_status_msg::release_error_manager() {
  815. // @@protoc_insertion_point(field_release:message.Measure_status_msg.error_manager)
  816. clear_has_error_manager();
  817. ::message::Error_manager* temp = error_manager_;
  818. error_manager_ = NULL;
  819. return temp;
  820. }
  821. inline ::message::Error_manager* Measure_status_msg::mutable_error_manager() {
  822. set_has_error_manager();
  823. if (error_manager_ == NULL) {
  824. auto* p = CreateMaybeMessage<::message::Error_manager>(GetArenaNoVirtual());
  825. error_manager_ = p;
  826. }
  827. // @@protoc_insertion_point(field_mutable:message.Measure_status_msg.error_manager)
  828. return error_manager_;
  829. }
  830. inline void Measure_status_msg::set_allocated_error_manager(::message::Error_manager* error_manager) {
  831. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  832. if (message_arena == NULL) {
  833. delete reinterpret_cast< ::google::protobuf::MessageLite*>(error_manager_);
  834. }
  835. if (error_manager) {
  836. ::google::protobuf::Arena* submessage_arena = NULL;
  837. if (message_arena != submessage_arena) {
  838. error_manager = ::google::protobuf::internal::GetOwnedMessage(
  839. message_arena, error_manager, submessage_arena);
  840. }
  841. set_has_error_manager();
  842. } else {
  843. clear_has_error_manager();
  844. }
  845. error_manager_ = error_manager;
  846. // @@protoc_insertion_point(field_set_allocated:message.Measure_status_msg.error_manager)
  847. }
  848. // -------------------------------------------------------------------
  849. // Measure_request_msg
  850. // required .message.Base_info base_info = 1;
  851. inline bool Measure_request_msg::has_base_info() const {
  852. return (_has_bits_[0] & 0x00000002u) != 0;
  853. }
  854. inline void Measure_request_msg::set_has_base_info() {
  855. _has_bits_[0] |= 0x00000002u;
  856. }
  857. inline void Measure_request_msg::clear_has_base_info() {
  858. _has_bits_[0] &= ~0x00000002u;
  859. }
  860. inline const ::message::Base_info& Measure_request_msg::_internal_base_info() const {
  861. return *base_info_;
  862. }
  863. inline const ::message::Base_info& Measure_request_msg::base_info() const {
  864. const ::message::Base_info* p = base_info_;
  865. // @@protoc_insertion_point(field_get:message.Measure_request_msg.base_info)
  866. return p != NULL ? *p : *reinterpret_cast<const ::message::Base_info*>(
  867. &::message::_Base_info_default_instance_);
  868. }
  869. inline ::message::Base_info* Measure_request_msg::release_base_info() {
  870. // @@protoc_insertion_point(field_release:message.Measure_request_msg.base_info)
  871. clear_has_base_info();
  872. ::message::Base_info* temp = base_info_;
  873. base_info_ = NULL;
  874. return temp;
  875. }
  876. inline ::message::Base_info* Measure_request_msg::mutable_base_info() {
  877. set_has_base_info();
  878. if (base_info_ == NULL) {
  879. auto* p = CreateMaybeMessage<::message::Base_info>(GetArenaNoVirtual());
  880. base_info_ = p;
  881. }
  882. // @@protoc_insertion_point(field_mutable:message.Measure_request_msg.base_info)
  883. return base_info_;
  884. }
  885. inline void Measure_request_msg::set_allocated_base_info(::message::Base_info* base_info) {
  886. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  887. if (message_arena == NULL) {
  888. delete reinterpret_cast< ::google::protobuf::MessageLite*>(base_info_);
  889. }
  890. if (base_info) {
  891. ::google::protobuf::Arena* submessage_arena = NULL;
  892. if (message_arena != submessage_arena) {
  893. base_info = ::google::protobuf::internal::GetOwnedMessage(
  894. message_arena, base_info, submessage_arena);
  895. }
  896. set_has_base_info();
  897. } else {
  898. clear_has_base_info();
  899. }
  900. base_info_ = base_info;
  901. // @@protoc_insertion_point(field_set_allocated:message.Measure_request_msg.base_info)
  902. }
  903. // required string command_key = 2;
  904. inline bool Measure_request_msg::has_command_key() const {
  905. return (_has_bits_[0] & 0x00000001u) != 0;
  906. }
  907. inline void Measure_request_msg::set_has_command_key() {
  908. _has_bits_[0] |= 0x00000001u;
  909. }
  910. inline void Measure_request_msg::clear_has_command_key() {
  911. _has_bits_[0] &= ~0x00000001u;
  912. }
  913. inline void Measure_request_msg::clear_command_key() {
  914. command_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  915. clear_has_command_key();
  916. }
  917. inline const ::std::string& Measure_request_msg::command_key() const {
  918. // @@protoc_insertion_point(field_get:message.Measure_request_msg.command_key)
  919. return command_key_.GetNoArena();
  920. }
  921. inline void Measure_request_msg::set_command_key(const ::std::string& value) {
  922. set_has_command_key();
  923. command_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  924. // @@protoc_insertion_point(field_set:message.Measure_request_msg.command_key)
  925. }
  926. #if LANG_CXX11
  927. inline void Measure_request_msg::set_command_key(::std::string&& value) {
  928. set_has_command_key();
  929. command_key_.SetNoArena(
  930. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  931. // @@protoc_insertion_point(field_set_rvalue:message.Measure_request_msg.command_key)
  932. }
  933. #endif
  934. inline void Measure_request_msg::set_command_key(const char* value) {
  935. GOOGLE_DCHECK(value != NULL);
  936. set_has_command_key();
  937. command_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  938. // @@protoc_insertion_point(field_set_char:message.Measure_request_msg.command_key)
  939. }
  940. inline void Measure_request_msg::set_command_key(const char* value, size_t size) {
  941. set_has_command_key();
  942. command_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  943. ::std::string(reinterpret_cast<const char*>(value), size));
  944. // @@protoc_insertion_point(field_set_pointer:message.Measure_request_msg.command_key)
  945. }
  946. inline ::std::string* Measure_request_msg::mutable_command_key() {
  947. set_has_command_key();
  948. // @@protoc_insertion_point(field_mutable:message.Measure_request_msg.command_key)
  949. return command_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  950. }
  951. inline ::std::string* Measure_request_msg::release_command_key() {
  952. // @@protoc_insertion_point(field_release:message.Measure_request_msg.command_key)
  953. if (!has_command_key()) {
  954. return NULL;
  955. }
  956. clear_has_command_key();
  957. return command_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  958. }
  959. inline void Measure_request_msg::set_allocated_command_key(::std::string* command_key) {
  960. if (command_key != NULL) {
  961. set_has_command_key();
  962. } else {
  963. clear_has_command_key();
  964. }
  965. command_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), command_key);
  966. // @@protoc_insertion_point(field_set_allocated:message.Measure_request_msg.command_key)
  967. }
  968. // required int32 terminal_id = 3;
  969. inline bool Measure_request_msg::has_terminal_id() const {
  970. return (_has_bits_[0] & 0x00000004u) != 0;
  971. }
  972. inline void Measure_request_msg::set_has_terminal_id() {
  973. _has_bits_[0] |= 0x00000004u;
  974. }
  975. inline void Measure_request_msg::clear_has_terminal_id() {
  976. _has_bits_[0] &= ~0x00000004u;
  977. }
  978. inline void Measure_request_msg::clear_terminal_id() {
  979. terminal_id_ = 0;
  980. clear_has_terminal_id();
  981. }
  982. inline ::google::protobuf::int32 Measure_request_msg::terminal_id() const {
  983. // @@protoc_insertion_point(field_get:message.Measure_request_msg.terminal_id)
  984. return terminal_id_;
  985. }
  986. inline void Measure_request_msg::set_terminal_id(::google::protobuf::int32 value) {
  987. set_has_terminal_id();
  988. terminal_id_ = value;
  989. // @@protoc_insertion_point(field_set:message.Measure_request_msg.terminal_id)
  990. }
  991. // -------------------------------------------------------------------
  992. // Measure_response_msg
  993. // required .message.Base_info base_info = 1;
  994. inline bool Measure_response_msg::has_base_info() const {
  995. return (_has_bits_[0] & 0x00000002u) != 0;
  996. }
  997. inline void Measure_response_msg::set_has_base_info() {
  998. _has_bits_[0] |= 0x00000002u;
  999. }
  1000. inline void Measure_response_msg::clear_has_base_info() {
  1001. _has_bits_[0] &= ~0x00000002u;
  1002. }
  1003. inline const ::message::Base_info& Measure_response_msg::_internal_base_info() const {
  1004. return *base_info_;
  1005. }
  1006. inline const ::message::Base_info& Measure_response_msg::base_info() const {
  1007. const ::message::Base_info* p = base_info_;
  1008. // @@protoc_insertion_point(field_get:message.Measure_response_msg.base_info)
  1009. return p != NULL ? *p : *reinterpret_cast<const ::message::Base_info*>(
  1010. &::message::_Base_info_default_instance_);
  1011. }
  1012. inline ::message::Base_info* Measure_response_msg::release_base_info() {
  1013. // @@protoc_insertion_point(field_release:message.Measure_response_msg.base_info)
  1014. clear_has_base_info();
  1015. ::message::Base_info* temp = base_info_;
  1016. base_info_ = NULL;
  1017. return temp;
  1018. }
  1019. inline ::message::Base_info* Measure_response_msg::mutable_base_info() {
  1020. set_has_base_info();
  1021. if (base_info_ == NULL) {
  1022. auto* p = CreateMaybeMessage<::message::Base_info>(GetArenaNoVirtual());
  1023. base_info_ = p;
  1024. }
  1025. // @@protoc_insertion_point(field_mutable:message.Measure_response_msg.base_info)
  1026. return base_info_;
  1027. }
  1028. inline void Measure_response_msg::set_allocated_base_info(::message::Base_info* base_info) {
  1029. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1030. if (message_arena == NULL) {
  1031. delete reinterpret_cast< ::google::protobuf::MessageLite*>(base_info_);
  1032. }
  1033. if (base_info) {
  1034. ::google::protobuf::Arena* submessage_arena = NULL;
  1035. if (message_arena != submessage_arena) {
  1036. base_info = ::google::protobuf::internal::GetOwnedMessage(
  1037. message_arena, base_info, submessage_arena);
  1038. }
  1039. set_has_base_info();
  1040. } else {
  1041. clear_has_base_info();
  1042. }
  1043. base_info_ = base_info;
  1044. // @@protoc_insertion_point(field_set_allocated:message.Measure_response_msg.base_info)
  1045. }
  1046. // required string command_key = 2;
  1047. inline bool Measure_response_msg::has_command_key() const {
  1048. return (_has_bits_[0] & 0x00000001u) != 0;
  1049. }
  1050. inline void Measure_response_msg::set_has_command_key() {
  1051. _has_bits_[0] |= 0x00000001u;
  1052. }
  1053. inline void Measure_response_msg::clear_has_command_key() {
  1054. _has_bits_[0] &= ~0x00000001u;
  1055. }
  1056. inline void Measure_response_msg::clear_command_key() {
  1057. command_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1058. clear_has_command_key();
  1059. }
  1060. inline const ::std::string& Measure_response_msg::command_key() const {
  1061. // @@protoc_insertion_point(field_get:message.Measure_response_msg.command_key)
  1062. return command_key_.GetNoArena();
  1063. }
  1064. inline void Measure_response_msg::set_command_key(const ::std::string& value) {
  1065. set_has_command_key();
  1066. command_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  1067. // @@protoc_insertion_point(field_set:message.Measure_response_msg.command_key)
  1068. }
  1069. #if LANG_CXX11
  1070. inline void Measure_response_msg::set_command_key(::std::string&& value) {
  1071. set_has_command_key();
  1072. command_key_.SetNoArena(
  1073. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1074. // @@protoc_insertion_point(field_set_rvalue:message.Measure_response_msg.command_key)
  1075. }
  1076. #endif
  1077. inline void Measure_response_msg::set_command_key(const char* value) {
  1078. GOOGLE_DCHECK(value != NULL);
  1079. set_has_command_key();
  1080. command_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1081. // @@protoc_insertion_point(field_set_char:message.Measure_response_msg.command_key)
  1082. }
  1083. inline void Measure_response_msg::set_command_key(const char* value, size_t size) {
  1084. set_has_command_key();
  1085. command_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1086. ::std::string(reinterpret_cast<const char*>(value), size));
  1087. // @@protoc_insertion_point(field_set_pointer:message.Measure_response_msg.command_key)
  1088. }
  1089. inline ::std::string* Measure_response_msg::mutable_command_key() {
  1090. set_has_command_key();
  1091. // @@protoc_insertion_point(field_mutable:message.Measure_response_msg.command_key)
  1092. return command_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1093. }
  1094. inline ::std::string* Measure_response_msg::release_command_key() {
  1095. // @@protoc_insertion_point(field_release:message.Measure_response_msg.command_key)
  1096. if (!has_command_key()) {
  1097. return NULL;
  1098. }
  1099. clear_has_command_key();
  1100. return command_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1101. }
  1102. inline void Measure_response_msg::set_allocated_command_key(::std::string* command_key) {
  1103. if (command_key != NULL) {
  1104. set_has_command_key();
  1105. } else {
  1106. clear_has_command_key();
  1107. }
  1108. command_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), command_key);
  1109. // @@protoc_insertion_point(field_set_allocated:message.Measure_response_msg.command_key)
  1110. }
  1111. // required int32 terminal_id = 3;
  1112. inline bool Measure_response_msg::has_terminal_id() const {
  1113. return (_has_bits_[0] & 0x00000010u) != 0;
  1114. }
  1115. inline void Measure_response_msg::set_has_terminal_id() {
  1116. _has_bits_[0] |= 0x00000010u;
  1117. }
  1118. inline void Measure_response_msg::clear_has_terminal_id() {
  1119. _has_bits_[0] &= ~0x00000010u;
  1120. }
  1121. inline void Measure_response_msg::clear_terminal_id() {
  1122. terminal_id_ = 0;
  1123. clear_has_terminal_id();
  1124. }
  1125. inline ::google::protobuf::int32 Measure_response_msg::terminal_id() const {
  1126. // @@protoc_insertion_point(field_get:message.Measure_response_msg.terminal_id)
  1127. return terminal_id_;
  1128. }
  1129. inline void Measure_response_msg::set_terminal_id(::google::protobuf::int32 value) {
  1130. set_has_terminal_id();
  1131. terminal_id_ = value;
  1132. // @@protoc_insertion_point(field_set:message.Measure_response_msg.terminal_id)
  1133. }
  1134. // optional .message.Locate_information locate_information = 4;
  1135. inline bool Measure_response_msg::has_locate_information() const {
  1136. return (_has_bits_[0] & 0x00000004u) != 0;
  1137. }
  1138. inline void Measure_response_msg::set_has_locate_information() {
  1139. _has_bits_[0] |= 0x00000004u;
  1140. }
  1141. inline void Measure_response_msg::clear_has_locate_information() {
  1142. _has_bits_[0] &= ~0x00000004u;
  1143. }
  1144. inline const ::message::Locate_information& Measure_response_msg::_internal_locate_information() const {
  1145. return *locate_information_;
  1146. }
  1147. inline const ::message::Locate_information& Measure_response_msg::locate_information() const {
  1148. const ::message::Locate_information* p = locate_information_;
  1149. // @@protoc_insertion_point(field_get:message.Measure_response_msg.locate_information)
  1150. return p != NULL ? *p : *reinterpret_cast<const ::message::Locate_information*>(
  1151. &::message::_Locate_information_default_instance_);
  1152. }
  1153. inline ::message::Locate_information* Measure_response_msg::release_locate_information() {
  1154. // @@protoc_insertion_point(field_release:message.Measure_response_msg.locate_information)
  1155. clear_has_locate_information();
  1156. ::message::Locate_information* temp = locate_information_;
  1157. locate_information_ = NULL;
  1158. return temp;
  1159. }
  1160. inline ::message::Locate_information* Measure_response_msg::mutable_locate_information() {
  1161. set_has_locate_information();
  1162. if (locate_information_ == NULL) {
  1163. auto* p = CreateMaybeMessage<::message::Locate_information>(GetArenaNoVirtual());
  1164. locate_information_ = p;
  1165. }
  1166. // @@protoc_insertion_point(field_mutable:message.Measure_response_msg.locate_information)
  1167. return locate_information_;
  1168. }
  1169. inline void Measure_response_msg::set_allocated_locate_information(::message::Locate_information* locate_information) {
  1170. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1171. if (message_arena == NULL) {
  1172. delete reinterpret_cast< ::google::protobuf::MessageLite*>(locate_information_);
  1173. }
  1174. if (locate_information) {
  1175. ::google::protobuf::Arena* submessage_arena = NULL;
  1176. if (message_arena != submessage_arena) {
  1177. locate_information = ::google::protobuf::internal::GetOwnedMessage(
  1178. message_arena, locate_information, submessage_arena);
  1179. }
  1180. set_has_locate_information();
  1181. } else {
  1182. clear_has_locate_information();
  1183. }
  1184. locate_information_ = locate_information;
  1185. // @@protoc_insertion_point(field_set_allocated:message.Measure_response_msg.locate_information)
  1186. }
  1187. // required .message.Error_manager error_manager = 5;
  1188. inline bool Measure_response_msg::has_error_manager() const {
  1189. return (_has_bits_[0] & 0x00000008u) != 0;
  1190. }
  1191. inline void Measure_response_msg::set_has_error_manager() {
  1192. _has_bits_[0] |= 0x00000008u;
  1193. }
  1194. inline void Measure_response_msg::clear_has_error_manager() {
  1195. _has_bits_[0] &= ~0x00000008u;
  1196. }
  1197. inline const ::message::Error_manager& Measure_response_msg::_internal_error_manager() const {
  1198. return *error_manager_;
  1199. }
  1200. inline const ::message::Error_manager& Measure_response_msg::error_manager() const {
  1201. const ::message::Error_manager* p = error_manager_;
  1202. // @@protoc_insertion_point(field_get:message.Measure_response_msg.error_manager)
  1203. return p != NULL ? *p : *reinterpret_cast<const ::message::Error_manager*>(
  1204. &::message::_Error_manager_default_instance_);
  1205. }
  1206. inline ::message::Error_manager* Measure_response_msg::release_error_manager() {
  1207. // @@protoc_insertion_point(field_release:message.Measure_response_msg.error_manager)
  1208. clear_has_error_manager();
  1209. ::message::Error_manager* temp = error_manager_;
  1210. error_manager_ = NULL;
  1211. return temp;
  1212. }
  1213. inline ::message::Error_manager* Measure_response_msg::mutable_error_manager() {
  1214. set_has_error_manager();
  1215. if (error_manager_ == NULL) {
  1216. auto* p = CreateMaybeMessage<::message::Error_manager>(GetArenaNoVirtual());
  1217. error_manager_ = p;
  1218. }
  1219. // @@protoc_insertion_point(field_mutable:message.Measure_response_msg.error_manager)
  1220. return error_manager_;
  1221. }
  1222. inline void Measure_response_msg::set_allocated_error_manager(::message::Error_manager* error_manager) {
  1223. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1224. if (message_arena == NULL) {
  1225. delete reinterpret_cast< ::google::protobuf::MessageLite*>(error_manager_);
  1226. }
  1227. if (error_manager) {
  1228. ::google::protobuf::Arena* submessage_arena = NULL;
  1229. if (message_arena != submessage_arena) {
  1230. error_manager = ::google::protobuf::internal::GetOwnedMessage(
  1231. message_arena, error_manager, submessage_arena);
  1232. }
  1233. set_has_error_manager();
  1234. } else {
  1235. clear_has_error_manager();
  1236. }
  1237. error_manager_ = error_manager;
  1238. // @@protoc_insertion_point(field_set_allocated:message.Measure_response_msg.error_manager)
  1239. }
  1240. #ifdef __GNUC__
  1241. #pragma GCC diagnostic pop
  1242. #endif // __GNUC__
  1243. // -------------------------------------------------------------------
  1244. // -------------------------------------------------------------------
  1245. // @@protoc_insertion_point(namespace_scope)
  1246. } // namespace message
  1247. namespace google {
  1248. namespace protobuf {
  1249. template <> struct is_proto_enum< ::message::Laser_manager_status> : ::std::true_type {};
  1250. template <>
  1251. inline const EnumDescriptor* GetEnumDescriptor< ::message::Laser_manager_status>() {
  1252. return ::message::Laser_manager_status_descriptor();
  1253. }
  1254. template <> struct is_proto_enum< ::message::Laser_statu> : ::std::true_type {};
  1255. template <>
  1256. inline const EnumDescriptor* GetEnumDescriptor< ::message::Laser_statu>() {
  1257. return ::message::Laser_statu_descriptor();
  1258. }
  1259. template <> struct is_proto_enum< ::message::Locate_manager_status> : ::std::true_type {};
  1260. template <>
  1261. inline const EnumDescriptor* GetEnumDescriptor< ::message::Locate_manager_status>() {
  1262. return ::message::Locate_manager_status_descriptor();
  1263. }
  1264. } // namespace protobuf
  1265. } // namespace google
  1266. // @@protoc_insertion_point(global_scope)
  1267. #endif // PROTOBUF_INCLUDED_measure_5fmessage_2eproto