measure_message.pb.h 52 KB

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