measure_message.pb.h 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241
  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 .message.Command_info command_info = 2;
  360. bool has_command_info() const;
  361. void clear_command_info();
  362. static const int kCommandInfoFieldNumber = 2;
  363. const ::message::Command_info& command_info() const;
  364. ::message::Command_info* release_command_info();
  365. ::message::Command_info* mutable_command_info();
  366. void set_allocated_command_info(::message::Command_info* command_info);
  367. // required int32 terminal_id = 3;
  368. bool has_terminal_id() const;
  369. void clear_terminal_id();
  370. static const int kTerminalIdFieldNumber = 3;
  371. ::google::protobuf::int32 terminal_id() const;
  372. void set_terminal_id(::google::protobuf::int32 value);
  373. // @@protoc_insertion_point(class_scope:message.Measure_request_msg)
  374. private:
  375. void set_has_base_info();
  376. void clear_has_base_info();
  377. void set_has_command_info();
  378. void clear_has_command_info();
  379. void set_has_terminal_id();
  380. void clear_has_terminal_id();
  381. // helper for ByteSizeLong()
  382. size_t RequiredFieldsByteSizeFallback() const;
  383. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  384. ::google::protobuf::internal::HasBits<1> _has_bits_;
  385. mutable int _cached_size_;
  386. ::message::Base_info* base_info_;
  387. ::message::Command_info* command_info_;
  388. ::google::protobuf::int32 terminal_id_;
  389. friend struct ::protobuf_measure_5fmessage_2eproto::TableStruct;
  390. friend void ::protobuf_measure_5fmessage_2eproto::InitDefaultsMeasure_request_msgImpl();
  391. };
  392. // -------------------------------------------------------------------
  393. class Measure_response_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Measure_response_msg) */ {
  394. public:
  395. Measure_response_msg();
  396. virtual ~Measure_response_msg();
  397. Measure_response_msg(const Measure_response_msg& from);
  398. inline Measure_response_msg& operator=(const Measure_response_msg& from) {
  399. CopyFrom(from);
  400. return *this;
  401. }
  402. #if LANG_CXX11
  403. Measure_response_msg(Measure_response_msg&& from) noexcept
  404. : Measure_response_msg() {
  405. *this = ::std::move(from);
  406. }
  407. inline Measure_response_msg& operator=(Measure_response_msg&& from) noexcept {
  408. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  409. if (this != &from) InternalSwap(&from);
  410. } else {
  411. CopyFrom(from);
  412. }
  413. return *this;
  414. }
  415. #endif
  416. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  417. return _internal_metadata_.unknown_fields();
  418. }
  419. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  420. return _internal_metadata_.mutable_unknown_fields();
  421. }
  422. static const ::google::protobuf::Descriptor* descriptor();
  423. static const Measure_response_msg& default_instance();
  424. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  425. static inline const Measure_response_msg* internal_default_instance() {
  426. return reinterpret_cast<const Measure_response_msg*>(
  427. &_Measure_response_msg_default_instance_);
  428. }
  429. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  430. 2;
  431. void Swap(Measure_response_msg* other);
  432. friend void swap(Measure_response_msg& a, Measure_response_msg& b) {
  433. a.Swap(&b);
  434. }
  435. // implements Message ----------------------------------------------
  436. inline Measure_response_msg* New() const PROTOBUF_FINAL { return New(NULL); }
  437. Measure_response_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  438. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  439. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  440. void CopyFrom(const Measure_response_msg& from);
  441. void MergeFrom(const Measure_response_msg& from);
  442. void Clear() PROTOBUF_FINAL;
  443. bool IsInitialized() const PROTOBUF_FINAL;
  444. size_t ByteSizeLong() const PROTOBUF_FINAL;
  445. bool MergePartialFromCodedStream(
  446. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  447. void SerializeWithCachedSizes(
  448. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  449. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  450. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  451. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  452. private:
  453. void SharedCtor();
  454. void SharedDtor();
  455. void SetCachedSize(int size) const PROTOBUF_FINAL;
  456. void InternalSwap(Measure_response_msg* other);
  457. private:
  458. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  459. return NULL;
  460. }
  461. inline void* MaybeArenaPtr() const {
  462. return NULL;
  463. }
  464. public:
  465. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  466. // nested types ----------------------------------------------------
  467. // accessors -------------------------------------------------------
  468. // required .message.Base_info base_info = 1;
  469. bool has_base_info() const;
  470. void clear_base_info();
  471. static const int kBaseInfoFieldNumber = 1;
  472. const ::message::Base_info& base_info() const;
  473. ::message::Base_info* release_base_info();
  474. ::message::Base_info* mutable_base_info();
  475. void set_allocated_base_info(::message::Base_info* base_info);
  476. // required .message.Command_info command_info = 2;
  477. bool has_command_info() const;
  478. void clear_command_info();
  479. static const int kCommandInfoFieldNumber = 2;
  480. const ::message::Command_info& command_info() const;
  481. ::message::Command_info* release_command_info();
  482. ::message::Command_info* mutable_command_info();
  483. void set_allocated_command_info(::message::Command_info* command_info);
  484. // optional .message.Locate_information locate_information = 4;
  485. bool has_locate_information() const;
  486. void clear_locate_information();
  487. static const int kLocateInformationFieldNumber = 4;
  488. const ::message::Locate_information& locate_information() const;
  489. ::message::Locate_information* release_locate_information();
  490. ::message::Locate_information* mutable_locate_information();
  491. void set_allocated_locate_information(::message::Locate_information* locate_information);
  492. // required .message.Error_manager error_manager = 5;
  493. bool has_error_manager() const;
  494. void clear_error_manager();
  495. static const int kErrorManagerFieldNumber = 5;
  496. const ::message::Error_manager& error_manager() const;
  497. ::message::Error_manager* release_error_manager();
  498. ::message::Error_manager* mutable_error_manager();
  499. void set_allocated_error_manager(::message::Error_manager* error_manager);
  500. // required int32 terminal_id = 3;
  501. bool has_terminal_id() const;
  502. void clear_terminal_id();
  503. static const int kTerminalIdFieldNumber = 3;
  504. ::google::protobuf::int32 terminal_id() const;
  505. void set_terminal_id(::google::protobuf::int32 value);
  506. // @@protoc_insertion_point(class_scope:message.Measure_response_msg)
  507. private:
  508. void set_has_base_info();
  509. void clear_has_base_info();
  510. void set_has_command_info();
  511. void clear_has_command_info();
  512. void set_has_terminal_id();
  513. void clear_has_terminal_id();
  514. void set_has_locate_information();
  515. void clear_has_locate_information();
  516. void set_has_error_manager();
  517. void clear_has_error_manager();
  518. // helper for ByteSizeLong()
  519. size_t RequiredFieldsByteSizeFallback() const;
  520. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  521. ::google::protobuf::internal::HasBits<1> _has_bits_;
  522. mutable int _cached_size_;
  523. ::message::Base_info* base_info_;
  524. ::message::Command_info* command_info_;
  525. ::message::Locate_information* locate_information_;
  526. ::message::Error_manager* error_manager_;
  527. ::google::protobuf::int32 terminal_id_;
  528. friend struct ::protobuf_measure_5fmessage_2eproto::TableStruct;
  529. friend void ::protobuf_measure_5fmessage_2eproto::InitDefaultsMeasure_response_msgImpl();
  530. };
  531. // ===================================================================
  532. // ===================================================================
  533. #ifdef __GNUC__
  534. #pragma GCC diagnostic push
  535. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  536. #endif // __GNUC__
  537. // Measure_status_msg
  538. // required .message.Base_info base_info = 1;
  539. inline bool Measure_status_msg::has_base_info() const {
  540. return (_has_bits_[0] & 0x00000001u) != 0;
  541. }
  542. inline void Measure_status_msg::set_has_base_info() {
  543. _has_bits_[0] |= 0x00000001u;
  544. }
  545. inline void Measure_status_msg::clear_has_base_info() {
  546. _has_bits_[0] &= ~0x00000001u;
  547. }
  548. inline const ::message::Base_info& Measure_status_msg::base_info() const {
  549. const ::message::Base_info* p = base_info_;
  550. // @@protoc_insertion_point(field_get:message.Measure_status_msg.base_info)
  551. return p != NULL ? *p : *reinterpret_cast<const ::message::Base_info*>(
  552. &::message::_Base_info_default_instance_);
  553. }
  554. inline ::message::Base_info* Measure_status_msg::release_base_info() {
  555. // @@protoc_insertion_point(field_release:message.Measure_status_msg.base_info)
  556. clear_has_base_info();
  557. ::message::Base_info* temp = base_info_;
  558. base_info_ = NULL;
  559. return temp;
  560. }
  561. inline ::message::Base_info* Measure_status_msg::mutable_base_info() {
  562. set_has_base_info();
  563. if (base_info_ == NULL) {
  564. base_info_ = new ::message::Base_info;
  565. }
  566. // @@protoc_insertion_point(field_mutable:message.Measure_status_msg.base_info)
  567. return base_info_;
  568. }
  569. inline void Measure_status_msg::set_allocated_base_info(::message::Base_info* base_info) {
  570. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  571. if (message_arena == NULL) {
  572. delete reinterpret_cast< ::google::protobuf::MessageLite*>(base_info_);
  573. }
  574. if (base_info) {
  575. ::google::protobuf::Arena* submessage_arena = NULL;
  576. if (message_arena != submessage_arena) {
  577. base_info = ::google::protobuf::internal::GetOwnedMessage(
  578. message_arena, base_info, submessage_arena);
  579. }
  580. set_has_base_info();
  581. } else {
  582. clear_has_base_info();
  583. }
  584. base_info_ = base_info;
  585. // @@protoc_insertion_point(field_set_allocated:message.Measure_status_msg.base_info)
  586. }
  587. // required .message.Laser_manager_status laser_manager_status = 2;
  588. inline bool Measure_status_msg::has_laser_manager_status() const {
  589. return (_has_bits_[0] & 0x00000008u) != 0;
  590. }
  591. inline void Measure_status_msg::set_has_laser_manager_status() {
  592. _has_bits_[0] |= 0x00000008u;
  593. }
  594. inline void Measure_status_msg::clear_has_laser_manager_status() {
  595. _has_bits_[0] &= ~0x00000008u;
  596. }
  597. inline void Measure_status_msg::clear_laser_manager_status() {
  598. laser_manager_status_ = 0;
  599. clear_has_laser_manager_status();
  600. }
  601. inline ::message::Laser_manager_status Measure_status_msg::laser_manager_status() const {
  602. // @@protoc_insertion_point(field_get:message.Measure_status_msg.laser_manager_status)
  603. return static_cast< ::message::Laser_manager_status >(laser_manager_status_);
  604. }
  605. inline void Measure_status_msg::set_laser_manager_status(::message::Laser_manager_status value) {
  606. assert(::message::Laser_manager_status_IsValid(value));
  607. set_has_laser_manager_status();
  608. laser_manager_status_ = value;
  609. // @@protoc_insertion_point(field_set:message.Measure_status_msg.laser_manager_status)
  610. }
  611. // repeated .message.Laser_statu laser_statu_vector = 3;
  612. inline int Measure_status_msg::laser_statu_vector_size() const {
  613. return laser_statu_vector_.size();
  614. }
  615. inline void Measure_status_msg::clear_laser_statu_vector() {
  616. laser_statu_vector_.Clear();
  617. }
  618. inline ::message::Laser_statu Measure_status_msg::laser_statu_vector(int index) const {
  619. // @@protoc_insertion_point(field_get:message.Measure_status_msg.laser_statu_vector)
  620. return static_cast< ::message::Laser_statu >(laser_statu_vector_.Get(index));
  621. }
  622. inline void Measure_status_msg::set_laser_statu_vector(int index, ::message::Laser_statu value) {
  623. assert(::message::Laser_statu_IsValid(value));
  624. laser_statu_vector_.Set(index, value);
  625. // @@protoc_insertion_point(field_set:message.Measure_status_msg.laser_statu_vector)
  626. }
  627. inline void Measure_status_msg::add_laser_statu_vector(::message::Laser_statu value) {
  628. assert(::message::Laser_statu_IsValid(value));
  629. laser_statu_vector_.Add(value);
  630. // @@protoc_insertion_point(field_add:message.Measure_status_msg.laser_statu_vector)
  631. }
  632. inline const ::google::protobuf::RepeatedField<int>&
  633. Measure_status_msg::laser_statu_vector() const {
  634. // @@protoc_insertion_point(field_list:message.Measure_status_msg.laser_statu_vector)
  635. return laser_statu_vector_;
  636. }
  637. inline ::google::protobuf::RepeatedField<int>*
  638. Measure_status_msg::mutable_laser_statu_vector() {
  639. // @@protoc_insertion_point(field_mutable_list:message.Measure_status_msg.laser_statu_vector)
  640. return &laser_statu_vector_;
  641. }
  642. // required .message.Locate_manager_status locate_manager_status = 4;
  643. inline bool Measure_status_msg::has_locate_manager_status() const {
  644. return (_has_bits_[0] & 0x00000010u) != 0;
  645. }
  646. inline void Measure_status_msg::set_has_locate_manager_status() {
  647. _has_bits_[0] |= 0x00000010u;
  648. }
  649. inline void Measure_status_msg::clear_has_locate_manager_status() {
  650. _has_bits_[0] &= ~0x00000010u;
  651. }
  652. inline void Measure_status_msg::clear_locate_manager_status() {
  653. locate_manager_status_ = 0;
  654. clear_has_locate_manager_status();
  655. }
  656. inline ::message::Locate_manager_status Measure_status_msg::locate_manager_status() const {
  657. // @@protoc_insertion_point(field_get:message.Measure_status_msg.locate_manager_status)
  658. return static_cast< ::message::Locate_manager_status >(locate_manager_status_);
  659. }
  660. inline void Measure_status_msg::set_locate_manager_status(::message::Locate_manager_status value) {
  661. assert(::message::Locate_manager_status_IsValid(value));
  662. set_has_locate_manager_status();
  663. locate_manager_status_ = value;
  664. // @@protoc_insertion_point(field_set:message.Measure_status_msg.locate_manager_status)
  665. }
  666. // optional .message.Locate_information locate_information_realtime = 5;
  667. inline bool Measure_status_msg::has_locate_information_realtime() const {
  668. return (_has_bits_[0] & 0x00000002u) != 0;
  669. }
  670. inline void Measure_status_msg::set_has_locate_information_realtime() {
  671. _has_bits_[0] |= 0x00000002u;
  672. }
  673. inline void Measure_status_msg::clear_has_locate_information_realtime() {
  674. _has_bits_[0] &= ~0x00000002u;
  675. }
  676. inline const ::message::Locate_information& Measure_status_msg::locate_information_realtime() const {
  677. const ::message::Locate_information* p = locate_information_realtime_;
  678. // @@protoc_insertion_point(field_get:message.Measure_status_msg.locate_information_realtime)
  679. return p != NULL ? *p : *reinterpret_cast<const ::message::Locate_information*>(
  680. &::message::_Locate_information_default_instance_);
  681. }
  682. inline ::message::Locate_information* Measure_status_msg::release_locate_information_realtime() {
  683. // @@protoc_insertion_point(field_release:message.Measure_status_msg.locate_information_realtime)
  684. clear_has_locate_information_realtime();
  685. ::message::Locate_information* temp = locate_information_realtime_;
  686. locate_information_realtime_ = NULL;
  687. return temp;
  688. }
  689. inline ::message::Locate_information* Measure_status_msg::mutable_locate_information_realtime() {
  690. set_has_locate_information_realtime();
  691. if (locate_information_realtime_ == NULL) {
  692. locate_information_realtime_ = new ::message::Locate_information;
  693. }
  694. // @@protoc_insertion_point(field_mutable:message.Measure_status_msg.locate_information_realtime)
  695. return locate_information_realtime_;
  696. }
  697. inline void Measure_status_msg::set_allocated_locate_information_realtime(::message::Locate_information* locate_information_realtime) {
  698. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  699. if (message_arena == NULL) {
  700. delete reinterpret_cast< ::google::protobuf::MessageLite*>(locate_information_realtime_);
  701. }
  702. if (locate_information_realtime) {
  703. ::google::protobuf::Arena* submessage_arena = NULL;
  704. if (message_arena != submessage_arena) {
  705. locate_information_realtime = ::google::protobuf::internal::GetOwnedMessage(
  706. message_arena, locate_information_realtime, submessage_arena);
  707. }
  708. set_has_locate_information_realtime();
  709. } else {
  710. clear_has_locate_information_realtime();
  711. }
  712. locate_information_realtime_ = locate_information_realtime;
  713. // @@protoc_insertion_point(field_set_allocated:message.Measure_status_msg.locate_information_realtime)
  714. }
  715. // required .message.Error_manager error_manager = 6;
  716. inline bool Measure_status_msg::has_error_manager() const {
  717. return (_has_bits_[0] & 0x00000004u) != 0;
  718. }
  719. inline void Measure_status_msg::set_has_error_manager() {
  720. _has_bits_[0] |= 0x00000004u;
  721. }
  722. inline void Measure_status_msg::clear_has_error_manager() {
  723. _has_bits_[0] &= ~0x00000004u;
  724. }
  725. inline const ::message::Error_manager& Measure_status_msg::error_manager() const {
  726. const ::message::Error_manager* p = error_manager_;
  727. // @@protoc_insertion_point(field_get:message.Measure_status_msg.error_manager)
  728. return p != NULL ? *p : *reinterpret_cast<const ::message::Error_manager*>(
  729. &::message::_Error_manager_default_instance_);
  730. }
  731. inline ::message::Error_manager* Measure_status_msg::release_error_manager() {
  732. // @@protoc_insertion_point(field_release:message.Measure_status_msg.error_manager)
  733. clear_has_error_manager();
  734. ::message::Error_manager* temp = error_manager_;
  735. error_manager_ = NULL;
  736. return temp;
  737. }
  738. inline ::message::Error_manager* Measure_status_msg::mutable_error_manager() {
  739. set_has_error_manager();
  740. if (error_manager_ == NULL) {
  741. error_manager_ = new ::message::Error_manager;
  742. }
  743. // @@protoc_insertion_point(field_mutable:message.Measure_status_msg.error_manager)
  744. return error_manager_;
  745. }
  746. inline void Measure_status_msg::set_allocated_error_manager(::message::Error_manager* error_manager) {
  747. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  748. if (message_arena == NULL) {
  749. delete reinterpret_cast< ::google::protobuf::MessageLite*>(error_manager_);
  750. }
  751. if (error_manager) {
  752. ::google::protobuf::Arena* submessage_arena = NULL;
  753. if (message_arena != submessage_arena) {
  754. error_manager = ::google::protobuf::internal::GetOwnedMessage(
  755. message_arena, error_manager, submessage_arena);
  756. }
  757. set_has_error_manager();
  758. } else {
  759. clear_has_error_manager();
  760. }
  761. error_manager_ = error_manager;
  762. // @@protoc_insertion_point(field_set_allocated:message.Measure_status_msg.error_manager)
  763. }
  764. // -------------------------------------------------------------------
  765. // Measure_request_msg
  766. // required .message.Base_info base_info = 1;
  767. inline bool Measure_request_msg::has_base_info() const {
  768. return (_has_bits_[0] & 0x00000001u) != 0;
  769. }
  770. inline void Measure_request_msg::set_has_base_info() {
  771. _has_bits_[0] |= 0x00000001u;
  772. }
  773. inline void Measure_request_msg::clear_has_base_info() {
  774. _has_bits_[0] &= ~0x00000001u;
  775. }
  776. inline const ::message::Base_info& Measure_request_msg::base_info() const {
  777. const ::message::Base_info* p = base_info_;
  778. // @@protoc_insertion_point(field_get:message.Measure_request_msg.base_info)
  779. return p != NULL ? *p : *reinterpret_cast<const ::message::Base_info*>(
  780. &::message::_Base_info_default_instance_);
  781. }
  782. inline ::message::Base_info* Measure_request_msg::release_base_info() {
  783. // @@protoc_insertion_point(field_release:message.Measure_request_msg.base_info)
  784. clear_has_base_info();
  785. ::message::Base_info* temp = base_info_;
  786. base_info_ = NULL;
  787. return temp;
  788. }
  789. inline ::message::Base_info* Measure_request_msg::mutable_base_info() {
  790. set_has_base_info();
  791. if (base_info_ == NULL) {
  792. base_info_ = new ::message::Base_info;
  793. }
  794. // @@protoc_insertion_point(field_mutable:message.Measure_request_msg.base_info)
  795. return base_info_;
  796. }
  797. inline void Measure_request_msg::set_allocated_base_info(::message::Base_info* base_info) {
  798. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  799. if (message_arena == NULL) {
  800. delete reinterpret_cast< ::google::protobuf::MessageLite*>(base_info_);
  801. }
  802. if (base_info) {
  803. ::google::protobuf::Arena* submessage_arena = NULL;
  804. if (message_arena != submessage_arena) {
  805. base_info = ::google::protobuf::internal::GetOwnedMessage(
  806. message_arena, base_info, submessage_arena);
  807. }
  808. set_has_base_info();
  809. } else {
  810. clear_has_base_info();
  811. }
  812. base_info_ = base_info;
  813. // @@protoc_insertion_point(field_set_allocated:message.Measure_request_msg.base_info)
  814. }
  815. // required .message.Command_info command_info = 2;
  816. inline bool Measure_request_msg::has_command_info() const {
  817. return (_has_bits_[0] & 0x00000002u) != 0;
  818. }
  819. inline void Measure_request_msg::set_has_command_info() {
  820. _has_bits_[0] |= 0x00000002u;
  821. }
  822. inline void Measure_request_msg::clear_has_command_info() {
  823. _has_bits_[0] &= ~0x00000002u;
  824. }
  825. inline const ::message::Command_info& Measure_request_msg::command_info() const {
  826. const ::message::Command_info* p = command_info_;
  827. // @@protoc_insertion_point(field_get:message.Measure_request_msg.command_info)
  828. return p != NULL ? *p : *reinterpret_cast<const ::message::Command_info*>(
  829. &::message::_Command_info_default_instance_);
  830. }
  831. inline ::message::Command_info* Measure_request_msg::release_command_info() {
  832. // @@protoc_insertion_point(field_release:message.Measure_request_msg.command_info)
  833. clear_has_command_info();
  834. ::message::Command_info* temp = command_info_;
  835. command_info_ = NULL;
  836. return temp;
  837. }
  838. inline ::message::Command_info* Measure_request_msg::mutable_command_info() {
  839. set_has_command_info();
  840. if (command_info_ == NULL) {
  841. command_info_ = new ::message::Command_info;
  842. }
  843. // @@protoc_insertion_point(field_mutable:message.Measure_request_msg.command_info)
  844. return command_info_;
  845. }
  846. inline void Measure_request_msg::set_allocated_command_info(::message::Command_info* command_info) {
  847. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  848. if (message_arena == NULL) {
  849. delete reinterpret_cast< ::google::protobuf::MessageLite*>(command_info_);
  850. }
  851. if (command_info) {
  852. ::google::protobuf::Arena* submessage_arena = NULL;
  853. if (message_arena != submessage_arena) {
  854. command_info = ::google::protobuf::internal::GetOwnedMessage(
  855. message_arena, command_info, submessage_arena);
  856. }
  857. set_has_command_info();
  858. } else {
  859. clear_has_command_info();
  860. }
  861. command_info_ = command_info;
  862. // @@protoc_insertion_point(field_set_allocated:message.Measure_request_msg.command_info)
  863. }
  864. // required int32 terminal_id = 3;
  865. inline bool Measure_request_msg::has_terminal_id() const {
  866. return (_has_bits_[0] & 0x00000004u) != 0;
  867. }
  868. inline void Measure_request_msg::set_has_terminal_id() {
  869. _has_bits_[0] |= 0x00000004u;
  870. }
  871. inline void Measure_request_msg::clear_has_terminal_id() {
  872. _has_bits_[0] &= ~0x00000004u;
  873. }
  874. inline void Measure_request_msg::clear_terminal_id() {
  875. terminal_id_ = 0;
  876. clear_has_terminal_id();
  877. }
  878. inline ::google::protobuf::int32 Measure_request_msg::terminal_id() const {
  879. // @@protoc_insertion_point(field_get:message.Measure_request_msg.terminal_id)
  880. return terminal_id_;
  881. }
  882. inline void Measure_request_msg::set_terminal_id(::google::protobuf::int32 value) {
  883. set_has_terminal_id();
  884. terminal_id_ = value;
  885. // @@protoc_insertion_point(field_set:message.Measure_request_msg.terminal_id)
  886. }
  887. // -------------------------------------------------------------------
  888. // Measure_response_msg
  889. // required .message.Base_info base_info = 1;
  890. inline bool Measure_response_msg::has_base_info() const {
  891. return (_has_bits_[0] & 0x00000001u) != 0;
  892. }
  893. inline void Measure_response_msg::set_has_base_info() {
  894. _has_bits_[0] |= 0x00000001u;
  895. }
  896. inline void Measure_response_msg::clear_has_base_info() {
  897. _has_bits_[0] &= ~0x00000001u;
  898. }
  899. inline const ::message::Base_info& Measure_response_msg::base_info() const {
  900. const ::message::Base_info* p = base_info_;
  901. // @@protoc_insertion_point(field_get:message.Measure_response_msg.base_info)
  902. return p != NULL ? *p : *reinterpret_cast<const ::message::Base_info*>(
  903. &::message::_Base_info_default_instance_);
  904. }
  905. inline ::message::Base_info* Measure_response_msg::release_base_info() {
  906. // @@protoc_insertion_point(field_release:message.Measure_response_msg.base_info)
  907. clear_has_base_info();
  908. ::message::Base_info* temp = base_info_;
  909. base_info_ = NULL;
  910. return temp;
  911. }
  912. inline ::message::Base_info* Measure_response_msg::mutable_base_info() {
  913. set_has_base_info();
  914. if (base_info_ == NULL) {
  915. base_info_ = new ::message::Base_info;
  916. }
  917. // @@protoc_insertion_point(field_mutable:message.Measure_response_msg.base_info)
  918. return base_info_;
  919. }
  920. inline void Measure_response_msg::set_allocated_base_info(::message::Base_info* base_info) {
  921. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  922. if (message_arena == NULL) {
  923. delete reinterpret_cast< ::google::protobuf::MessageLite*>(base_info_);
  924. }
  925. if (base_info) {
  926. ::google::protobuf::Arena* submessage_arena = NULL;
  927. if (message_arena != submessage_arena) {
  928. base_info = ::google::protobuf::internal::GetOwnedMessage(
  929. message_arena, base_info, submessage_arena);
  930. }
  931. set_has_base_info();
  932. } else {
  933. clear_has_base_info();
  934. }
  935. base_info_ = base_info;
  936. // @@protoc_insertion_point(field_set_allocated:message.Measure_response_msg.base_info)
  937. }
  938. // required .message.Command_info command_info = 2;
  939. inline bool Measure_response_msg::has_command_info() const {
  940. return (_has_bits_[0] & 0x00000002u) != 0;
  941. }
  942. inline void Measure_response_msg::set_has_command_info() {
  943. _has_bits_[0] |= 0x00000002u;
  944. }
  945. inline void Measure_response_msg::clear_has_command_info() {
  946. _has_bits_[0] &= ~0x00000002u;
  947. }
  948. inline const ::message::Command_info& Measure_response_msg::command_info() const {
  949. const ::message::Command_info* p = command_info_;
  950. // @@protoc_insertion_point(field_get:message.Measure_response_msg.command_info)
  951. return p != NULL ? *p : *reinterpret_cast<const ::message::Command_info*>(
  952. &::message::_Command_info_default_instance_);
  953. }
  954. inline ::message::Command_info* Measure_response_msg::release_command_info() {
  955. // @@protoc_insertion_point(field_release:message.Measure_response_msg.command_info)
  956. clear_has_command_info();
  957. ::message::Command_info* temp = command_info_;
  958. command_info_ = NULL;
  959. return temp;
  960. }
  961. inline ::message::Command_info* Measure_response_msg::mutable_command_info() {
  962. set_has_command_info();
  963. if (command_info_ == NULL) {
  964. command_info_ = new ::message::Command_info;
  965. }
  966. // @@protoc_insertion_point(field_mutable:message.Measure_response_msg.command_info)
  967. return command_info_;
  968. }
  969. inline void Measure_response_msg::set_allocated_command_info(::message::Command_info* command_info) {
  970. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  971. if (message_arena == NULL) {
  972. delete reinterpret_cast< ::google::protobuf::MessageLite*>(command_info_);
  973. }
  974. if (command_info) {
  975. ::google::protobuf::Arena* submessage_arena = NULL;
  976. if (message_arena != submessage_arena) {
  977. command_info = ::google::protobuf::internal::GetOwnedMessage(
  978. message_arena, command_info, submessage_arena);
  979. }
  980. set_has_command_info();
  981. } else {
  982. clear_has_command_info();
  983. }
  984. command_info_ = command_info;
  985. // @@protoc_insertion_point(field_set_allocated:message.Measure_response_msg.command_info)
  986. }
  987. // required int32 terminal_id = 3;
  988. inline bool Measure_response_msg::has_terminal_id() const {
  989. return (_has_bits_[0] & 0x00000010u) != 0;
  990. }
  991. inline void Measure_response_msg::set_has_terminal_id() {
  992. _has_bits_[0] |= 0x00000010u;
  993. }
  994. inline void Measure_response_msg::clear_has_terminal_id() {
  995. _has_bits_[0] &= ~0x00000010u;
  996. }
  997. inline void Measure_response_msg::clear_terminal_id() {
  998. terminal_id_ = 0;
  999. clear_has_terminal_id();
  1000. }
  1001. inline ::google::protobuf::int32 Measure_response_msg::terminal_id() const {
  1002. // @@protoc_insertion_point(field_get:message.Measure_response_msg.terminal_id)
  1003. return terminal_id_;
  1004. }
  1005. inline void Measure_response_msg::set_terminal_id(::google::protobuf::int32 value) {
  1006. set_has_terminal_id();
  1007. terminal_id_ = value;
  1008. // @@protoc_insertion_point(field_set:message.Measure_response_msg.terminal_id)
  1009. }
  1010. // optional .message.Locate_information locate_information = 4;
  1011. inline bool Measure_response_msg::has_locate_information() const {
  1012. return (_has_bits_[0] & 0x00000004u) != 0;
  1013. }
  1014. inline void Measure_response_msg::set_has_locate_information() {
  1015. _has_bits_[0] |= 0x00000004u;
  1016. }
  1017. inline void Measure_response_msg::clear_has_locate_information() {
  1018. _has_bits_[0] &= ~0x00000004u;
  1019. }
  1020. inline const ::message::Locate_information& Measure_response_msg::locate_information() const {
  1021. const ::message::Locate_information* p = locate_information_;
  1022. // @@protoc_insertion_point(field_get:message.Measure_response_msg.locate_information)
  1023. return p != NULL ? *p : *reinterpret_cast<const ::message::Locate_information*>(
  1024. &::message::_Locate_information_default_instance_);
  1025. }
  1026. inline ::message::Locate_information* Measure_response_msg::release_locate_information() {
  1027. // @@protoc_insertion_point(field_release:message.Measure_response_msg.locate_information)
  1028. clear_has_locate_information();
  1029. ::message::Locate_information* temp = locate_information_;
  1030. locate_information_ = NULL;
  1031. return temp;
  1032. }
  1033. inline ::message::Locate_information* Measure_response_msg::mutable_locate_information() {
  1034. set_has_locate_information();
  1035. if (locate_information_ == NULL) {
  1036. locate_information_ = new ::message::Locate_information;
  1037. }
  1038. // @@protoc_insertion_point(field_mutable:message.Measure_response_msg.locate_information)
  1039. return locate_information_;
  1040. }
  1041. inline void Measure_response_msg::set_allocated_locate_information(::message::Locate_information* locate_information) {
  1042. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1043. if (message_arena == NULL) {
  1044. delete reinterpret_cast< ::google::protobuf::MessageLite*>(locate_information_);
  1045. }
  1046. if (locate_information) {
  1047. ::google::protobuf::Arena* submessage_arena = NULL;
  1048. if (message_arena != submessage_arena) {
  1049. locate_information = ::google::protobuf::internal::GetOwnedMessage(
  1050. message_arena, locate_information, submessage_arena);
  1051. }
  1052. set_has_locate_information();
  1053. } else {
  1054. clear_has_locate_information();
  1055. }
  1056. locate_information_ = locate_information;
  1057. // @@protoc_insertion_point(field_set_allocated:message.Measure_response_msg.locate_information)
  1058. }
  1059. // required .message.Error_manager error_manager = 5;
  1060. inline bool Measure_response_msg::has_error_manager() const {
  1061. return (_has_bits_[0] & 0x00000008u) != 0;
  1062. }
  1063. inline void Measure_response_msg::set_has_error_manager() {
  1064. _has_bits_[0] |= 0x00000008u;
  1065. }
  1066. inline void Measure_response_msg::clear_has_error_manager() {
  1067. _has_bits_[0] &= ~0x00000008u;
  1068. }
  1069. inline const ::message::Error_manager& Measure_response_msg::error_manager() const {
  1070. const ::message::Error_manager* p = error_manager_;
  1071. // @@protoc_insertion_point(field_get:message.Measure_response_msg.error_manager)
  1072. return p != NULL ? *p : *reinterpret_cast<const ::message::Error_manager*>(
  1073. &::message::_Error_manager_default_instance_);
  1074. }
  1075. inline ::message::Error_manager* Measure_response_msg::release_error_manager() {
  1076. // @@protoc_insertion_point(field_release:message.Measure_response_msg.error_manager)
  1077. clear_has_error_manager();
  1078. ::message::Error_manager* temp = error_manager_;
  1079. error_manager_ = NULL;
  1080. return temp;
  1081. }
  1082. inline ::message::Error_manager* Measure_response_msg::mutable_error_manager() {
  1083. set_has_error_manager();
  1084. if (error_manager_ == NULL) {
  1085. error_manager_ = new ::message::Error_manager;
  1086. }
  1087. // @@protoc_insertion_point(field_mutable:message.Measure_response_msg.error_manager)
  1088. return error_manager_;
  1089. }
  1090. inline void Measure_response_msg::set_allocated_error_manager(::message::Error_manager* error_manager) {
  1091. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1092. if (message_arena == NULL) {
  1093. delete reinterpret_cast< ::google::protobuf::MessageLite*>(error_manager_);
  1094. }
  1095. if (error_manager) {
  1096. ::google::protobuf::Arena* submessage_arena = NULL;
  1097. if (message_arena != submessage_arena) {
  1098. error_manager = ::google::protobuf::internal::GetOwnedMessage(
  1099. message_arena, error_manager, submessage_arena);
  1100. }
  1101. set_has_error_manager();
  1102. } else {
  1103. clear_has_error_manager();
  1104. }
  1105. error_manager_ = error_manager;
  1106. // @@protoc_insertion_point(field_set_allocated:message.Measure_response_msg.error_manager)
  1107. }
  1108. #ifdef __GNUC__
  1109. #pragma GCC diagnostic pop
  1110. #endif // __GNUC__
  1111. // -------------------------------------------------------------------
  1112. // -------------------------------------------------------------------
  1113. // @@protoc_insertion_point(namespace_scope)
  1114. } // namespace message
  1115. namespace google {
  1116. namespace protobuf {
  1117. template <> struct is_proto_enum< ::message::Laser_manager_status> : ::google::protobuf::internal::true_type {};
  1118. template <>
  1119. inline const EnumDescriptor* GetEnumDescriptor< ::message::Laser_manager_status>() {
  1120. return ::message::Laser_manager_status_descriptor();
  1121. }
  1122. template <> struct is_proto_enum< ::message::Laser_statu> : ::google::protobuf::internal::true_type {};
  1123. template <>
  1124. inline const EnumDescriptor* GetEnumDescriptor< ::message::Laser_statu>() {
  1125. return ::message::Laser_statu_descriptor();
  1126. }
  1127. template <> struct is_proto_enum< ::message::Locate_manager_status> : ::google::protobuf::internal::true_type {};
  1128. template <>
  1129. inline const EnumDescriptor* GetEnumDescriptor< ::message::Locate_manager_status>() {
  1130. return ::message::Locate_manager_status_descriptor();
  1131. }
  1132. } // namespace protobuf
  1133. } // namespace google
  1134. // @@protoc_insertion_point(global_scope)
  1135. #endif // PROTOBUF_measure_5fmessage_2eproto__INCLUDED