measure_message.pb.h 46 KB

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