measure_message.pb.h 72 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: measure_message.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_measure_5fmessage_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_measure_5fmessage_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3013000
  9. #error This file was generated by a newer version of protoc which is
  10. #error incompatible with your Protocol Buffer headers. Please update
  11. #error your headers.
  12. #endif
  13. #if 3013000 < PROTOBUF_MIN_PROTOC_VERSION
  14. #error This file was generated by an older version of protoc which is
  15. #error incompatible with your Protocol Buffer headers. Please
  16. #error regenerate this file with a newer version of protoc.
  17. #endif
  18. #include <google/protobuf/port_undef.inc>
  19. #include <google/protobuf/io/coded_stream.h>
  20. #include <google/protobuf/arena.h>
  21. #include <google/protobuf/arenastring.h>
  22. #include <google/protobuf/generated_message_table_driven.h>
  23. #include <google/protobuf/generated_message_util.h>
  24. #include <google/protobuf/inlined_string_field.h>
  25. #include <google/protobuf/metadata_lite.h>
  26. #include <google/protobuf/generated_message_reflection.h>
  27. #include <google/protobuf/message.h>
  28. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  29. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  30. #include <google/protobuf/generated_enum_reflection.h>
  31. #include <google/protobuf/unknown_field_set.h>
  32. #include "message_base.pb.h"
  33. // @@protoc_insertion_point(includes)
  34. #include <google/protobuf/port_def.inc>
  35. #define PROTOBUF_INTERNAL_EXPORT_measure_5fmessage_2eproto
  36. PROTOBUF_NAMESPACE_OPEN
  37. namespace internal {
  38. class AnyMetadata;
  39. } // namespace internal
  40. PROTOBUF_NAMESPACE_CLOSE
  41. // Internal implementation detail -- do not use these members.
  42. struct TableStruct_measure_5fmessage_2eproto {
  43. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  44. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  45. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  46. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  47. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
  48. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  49. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  50. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  51. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  52. };
  53. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_measure_5fmessage_2eproto;
  54. namespace message {
  55. class Measure_request_msg;
  56. class Measure_request_msgDefaultTypeInternal;
  57. extern Measure_request_msgDefaultTypeInternal _Measure_request_msg_default_instance_;
  58. class Measure_response_msg;
  59. class Measure_response_msgDefaultTypeInternal;
  60. extern Measure_response_msgDefaultTypeInternal _Measure_response_msg_default_instance_;
  61. class Measure_status_msg;
  62. class Measure_status_msgDefaultTypeInternal;
  63. extern Measure_status_msgDefaultTypeInternal _Measure_status_msg_default_instance_;
  64. } // namespace message
  65. PROTOBUF_NAMESPACE_OPEN
  66. template<> ::message::Measure_request_msg* Arena::CreateMaybeMessage<::message::Measure_request_msg>(Arena*);
  67. template<> ::message::Measure_response_msg* Arena::CreateMaybeMessage<::message::Measure_response_msg>(Arena*);
  68. template<> ::message::Measure_status_msg* Arena::CreateMaybeMessage<::message::Measure_status_msg>(Arena*);
  69. PROTOBUF_NAMESPACE_CLOSE
  70. namespace message {
  71. enum Laser_manager_status : int {
  72. LASER_MANAGER_UNKNOW = 0,
  73. LASER_MANAGER_READY = 1,
  74. LASER_MANAGER_ISSUED_TASK = 2,
  75. LASER_MANAGER_WAIT_REPLY = 3,
  76. LASER_MANAGER_FAULT = 4
  77. };
  78. bool Laser_manager_status_IsValid(int value);
  79. constexpr Laser_manager_status Laser_manager_status_MIN = LASER_MANAGER_UNKNOW;
  80. constexpr Laser_manager_status Laser_manager_status_MAX = LASER_MANAGER_FAULT;
  81. constexpr int Laser_manager_status_ARRAYSIZE = Laser_manager_status_MAX + 1;
  82. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Laser_manager_status_descriptor();
  83. template<typename T>
  84. inline const std::string& Laser_manager_status_Name(T enum_t_value) {
  85. static_assert(::std::is_same<T, Laser_manager_status>::value ||
  86. ::std::is_integral<T>::value,
  87. "Incorrect type passed to function Laser_manager_status_Name.");
  88. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  89. Laser_manager_status_descriptor(), enum_t_value);
  90. }
  91. inline bool Laser_manager_status_Parse(
  92. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Laser_manager_status* value) {
  93. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Laser_manager_status>(
  94. Laser_manager_status_descriptor(), name, value);
  95. }
  96. enum Laser_statu : int {
  97. LASER_DISCONNECT = 0,
  98. LASER_READY = 1,
  99. LASER_BUSY = 2,
  100. LASER_FAULT = 3
  101. };
  102. bool Laser_statu_IsValid(int value);
  103. constexpr Laser_statu Laser_statu_MIN = LASER_DISCONNECT;
  104. constexpr Laser_statu Laser_statu_MAX = LASER_FAULT;
  105. constexpr int Laser_statu_ARRAYSIZE = Laser_statu_MAX + 1;
  106. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Laser_statu_descriptor();
  107. template<typename T>
  108. inline const std::string& Laser_statu_Name(T enum_t_value) {
  109. static_assert(::std::is_same<T, Laser_statu>::value ||
  110. ::std::is_integral<T>::value,
  111. "Incorrect type passed to function Laser_statu_Name.");
  112. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  113. Laser_statu_descriptor(), enum_t_value);
  114. }
  115. inline bool Laser_statu_Parse(
  116. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Laser_statu* value) {
  117. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Laser_statu>(
  118. Laser_statu_descriptor(), name, value);
  119. }
  120. enum Locate_manager_status : int {
  121. LOCATE_MANAGER_UNKNOW = 0,
  122. LOCATE_MANAGER_READY = 1,
  123. LOCATE_MANAGER_SIFT = 2,
  124. LOCATE_MANAGER_CAR = 3,
  125. LOCATE_MANAGER_WHEEL = 4,
  126. LOCATE_MANAGER_FAULT = 5
  127. };
  128. bool Locate_manager_status_IsValid(int value);
  129. constexpr Locate_manager_status Locate_manager_status_MIN = LOCATE_MANAGER_UNKNOW;
  130. constexpr Locate_manager_status Locate_manager_status_MAX = LOCATE_MANAGER_FAULT;
  131. constexpr int Locate_manager_status_ARRAYSIZE = Locate_manager_status_MAX + 1;
  132. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Locate_manager_status_descriptor();
  133. template<typename T>
  134. inline const std::string& Locate_manager_status_Name(T enum_t_value) {
  135. static_assert(::std::is_same<T, Locate_manager_status>::value ||
  136. ::std::is_integral<T>::value,
  137. "Incorrect type passed to function Locate_manager_status_Name.");
  138. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  139. Locate_manager_status_descriptor(), enum_t_value);
  140. }
  141. inline bool Locate_manager_status_Parse(
  142. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Locate_manager_status* value) {
  143. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Locate_manager_status>(
  144. Locate_manager_status_descriptor(), name, value);
  145. }
  146. // ===================================================================
  147. class Measure_status_msg PROTOBUF_FINAL :
  148. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:message.Measure_status_msg) */ {
  149. public:
  150. inline Measure_status_msg() : Measure_status_msg(nullptr) {}
  151. virtual ~Measure_status_msg();
  152. Measure_status_msg(const Measure_status_msg& from);
  153. Measure_status_msg(Measure_status_msg&& from) noexcept
  154. : Measure_status_msg() {
  155. *this = ::std::move(from);
  156. }
  157. inline Measure_status_msg& operator=(const Measure_status_msg& from) {
  158. CopyFrom(from);
  159. return *this;
  160. }
  161. inline Measure_status_msg& operator=(Measure_status_msg&& from) noexcept {
  162. if (GetArena() == from.GetArena()) {
  163. if (this != &from) InternalSwap(&from);
  164. } else {
  165. CopyFrom(from);
  166. }
  167. return *this;
  168. }
  169. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  170. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  171. }
  172. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  173. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  174. }
  175. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  176. return GetDescriptor();
  177. }
  178. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  179. return GetMetadataStatic().descriptor;
  180. }
  181. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  182. return GetMetadataStatic().reflection;
  183. }
  184. static const Measure_status_msg& default_instance();
  185. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  186. static inline const Measure_status_msg* internal_default_instance() {
  187. return reinterpret_cast<const Measure_status_msg*>(
  188. &_Measure_status_msg_default_instance_);
  189. }
  190. static constexpr int kIndexInFileMessages =
  191. 0;
  192. friend void swap(Measure_status_msg& a, Measure_status_msg& b) {
  193. a.Swap(&b);
  194. }
  195. inline void Swap(Measure_status_msg* other) {
  196. if (other == this) return;
  197. if (GetArena() == other->GetArena()) {
  198. InternalSwap(other);
  199. } else {
  200. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  201. }
  202. }
  203. void UnsafeArenaSwap(Measure_status_msg* other) {
  204. if (other == this) return;
  205. GOOGLE_DCHECK(GetArena() == other->GetArena());
  206. InternalSwap(other);
  207. }
  208. // implements Message ----------------------------------------------
  209. inline Measure_status_msg* New() const final {
  210. return CreateMaybeMessage<Measure_status_msg>(nullptr);
  211. }
  212. Measure_status_msg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  213. return CreateMaybeMessage<Measure_status_msg>(arena);
  214. }
  215. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  216. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  217. void CopyFrom(const Measure_status_msg& from);
  218. void MergeFrom(const Measure_status_msg& from);
  219. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  220. bool IsInitialized() const final;
  221. size_t ByteSizeLong() const final;
  222. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  223. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  224. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  225. int GetCachedSize() const final { return _cached_size_.Get(); }
  226. private:
  227. inline void SharedCtor();
  228. inline void SharedDtor();
  229. void SetCachedSize(int size) const final;
  230. void InternalSwap(Measure_status_msg* other);
  231. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  232. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  233. return "message.Measure_status_msg";
  234. }
  235. protected:
  236. explicit Measure_status_msg(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  237. private:
  238. static void ArenaDtor(void* object);
  239. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  240. public:
  241. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  242. private:
  243. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  244. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_measure_5fmessage_2eproto);
  245. return ::descriptor_table_measure_5fmessage_2eproto.file_level_metadata[kIndexInFileMessages];
  246. }
  247. public:
  248. // nested types ----------------------------------------------------
  249. // accessors -------------------------------------------------------
  250. enum : int {
  251. kLaserStatuVectorFieldNumber = 4,
  252. kBaseInfoFieldNumber = 1,
  253. kLocateInformationRealtimeFieldNumber = 6,
  254. kErrorManagerFieldNumber = 7,
  255. kTerminalIdFieldNumber = 2,
  256. kLaserManagerStatusFieldNumber = 3,
  257. kLocateManagerStatusFieldNumber = 5,
  258. };
  259. // repeated .message.Laser_statu laser_statu_vector = 4;
  260. int laser_statu_vector_size() const;
  261. private:
  262. int _internal_laser_statu_vector_size() const;
  263. public:
  264. void clear_laser_statu_vector();
  265. private:
  266. ::message::Laser_statu _internal_laser_statu_vector(int index) const;
  267. void _internal_add_laser_statu_vector(::message::Laser_statu value);
  268. ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* _internal_mutable_laser_statu_vector();
  269. public:
  270. ::message::Laser_statu laser_statu_vector(int index) const;
  271. void set_laser_statu_vector(int index, ::message::Laser_statu value);
  272. void add_laser_statu_vector(::message::Laser_statu value);
  273. const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>& laser_statu_vector() const;
  274. ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* mutable_laser_statu_vector();
  275. // required .message.Base_info base_info = 1;
  276. bool has_base_info() const;
  277. private:
  278. bool _internal_has_base_info() const;
  279. public:
  280. void clear_base_info();
  281. const ::message::Base_info& base_info() const;
  282. ::message::Base_info* release_base_info();
  283. ::message::Base_info* mutable_base_info();
  284. void set_allocated_base_info(::message::Base_info* base_info);
  285. private:
  286. const ::message::Base_info& _internal_base_info() const;
  287. ::message::Base_info* _internal_mutable_base_info();
  288. public:
  289. void unsafe_arena_set_allocated_base_info(
  290. ::message::Base_info* base_info);
  291. ::message::Base_info* unsafe_arena_release_base_info();
  292. // optional .message.Locate_information locate_information_realtime = 6;
  293. bool has_locate_information_realtime() const;
  294. private:
  295. bool _internal_has_locate_information_realtime() const;
  296. public:
  297. void clear_locate_information_realtime();
  298. const ::message::Locate_information& locate_information_realtime() const;
  299. ::message::Locate_information* release_locate_information_realtime();
  300. ::message::Locate_information* mutable_locate_information_realtime();
  301. void set_allocated_locate_information_realtime(::message::Locate_information* locate_information_realtime);
  302. private:
  303. const ::message::Locate_information& _internal_locate_information_realtime() const;
  304. ::message::Locate_information* _internal_mutable_locate_information_realtime();
  305. public:
  306. void unsafe_arena_set_allocated_locate_information_realtime(
  307. ::message::Locate_information* locate_information_realtime);
  308. ::message::Locate_information* unsafe_arena_release_locate_information_realtime();
  309. // required .message.Error_manager error_manager = 7;
  310. bool has_error_manager() const;
  311. private:
  312. bool _internal_has_error_manager() const;
  313. public:
  314. void clear_error_manager();
  315. const ::message::Error_manager& error_manager() const;
  316. ::message::Error_manager* release_error_manager();
  317. ::message::Error_manager* mutable_error_manager();
  318. void set_allocated_error_manager(::message::Error_manager* error_manager);
  319. private:
  320. const ::message::Error_manager& _internal_error_manager() const;
  321. ::message::Error_manager* _internal_mutable_error_manager();
  322. public:
  323. void unsafe_arena_set_allocated_error_manager(
  324. ::message::Error_manager* error_manager);
  325. ::message::Error_manager* unsafe_arena_release_error_manager();
  326. // required int32 terminal_id = 2;
  327. bool has_terminal_id() const;
  328. private:
  329. bool _internal_has_terminal_id() const;
  330. public:
  331. void clear_terminal_id();
  332. ::PROTOBUF_NAMESPACE_ID::int32 terminal_id() const;
  333. void set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  334. private:
  335. ::PROTOBUF_NAMESPACE_ID::int32 _internal_terminal_id() const;
  336. void _internal_set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  337. public:
  338. // required .message.Laser_manager_status laser_manager_status = 3;
  339. bool has_laser_manager_status() const;
  340. private:
  341. bool _internal_has_laser_manager_status() const;
  342. public:
  343. void clear_laser_manager_status();
  344. ::message::Laser_manager_status laser_manager_status() const;
  345. void set_laser_manager_status(::message::Laser_manager_status value);
  346. private:
  347. ::message::Laser_manager_status _internal_laser_manager_status() const;
  348. void _internal_set_laser_manager_status(::message::Laser_manager_status value);
  349. public:
  350. // required .message.Locate_manager_status locate_manager_status = 5;
  351. bool has_locate_manager_status() const;
  352. private:
  353. bool _internal_has_locate_manager_status() const;
  354. public:
  355. void clear_locate_manager_status();
  356. ::message::Locate_manager_status locate_manager_status() const;
  357. void set_locate_manager_status(::message::Locate_manager_status value);
  358. private:
  359. ::message::Locate_manager_status _internal_locate_manager_status() const;
  360. void _internal_set_locate_manager_status(::message::Locate_manager_status value);
  361. public:
  362. // @@protoc_insertion_point(class_scope:message.Measure_status_msg)
  363. private:
  364. class _Internal;
  365. // helper for ByteSizeLong()
  366. size_t RequiredFieldsByteSizeFallback() const;
  367. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  368. typedef void InternalArenaConstructable_;
  369. typedef void DestructorSkippable_;
  370. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  371. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  372. ::PROTOBUF_NAMESPACE_ID::RepeatedField<int> laser_statu_vector_;
  373. ::message::Base_info* base_info_;
  374. ::message::Locate_information* locate_information_realtime_;
  375. ::message::Error_manager* error_manager_;
  376. ::PROTOBUF_NAMESPACE_ID::int32 terminal_id_;
  377. int laser_manager_status_;
  378. int locate_manager_status_;
  379. friend struct ::TableStruct_measure_5fmessage_2eproto;
  380. };
  381. // -------------------------------------------------------------------
  382. class Measure_request_msg PROTOBUF_FINAL :
  383. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:message.Measure_request_msg) */ {
  384. public:
  385. inline Measure_request_msg() : Measure_request_msg(nullptr) {}
  386. virtual ~Measure_request_msg();
  387. Measure_request_msg(const Measure_request_msg& from);
  388. Measure_request_msg(Measure_request_msg&& from) noexcept
  389. : Measure_request_msg() {
  390. *this = ::std::move(from);
  391. }
  392. inline Measure_request_msg& operator=(const Measure_request_msg& from) {
  393. CopyFrom(from);
  394. return *this;
  395. }
  396. inline Measure_request_msg& operator=(Measure_request_msg&& from) noexcept {
  397. if (GetArena() == from.GetArena()) {
  398. if (this != &from) InternalSwap(&from);
  399. } else {
  400. CopyFrom(from);
  401. }
  402. return *this;
  403. }
  404. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  405. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  406. }
  407. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  408. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  409. }
  410. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  411. return GetDescriptor();
  412. }
  413. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  414. return GetMetadataStatic().descriptor;
  415. }
  416. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  417. return GetMetadataStatic().reflection;
  418. }
  419. static const Measure_request_msg& default_instance();
  420. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  421. static inline const Measure_request_msg* internal_default_instance() {
  422. return reinterpret_cast<const Measure_request_msg*>(
  423. &_Measure_request_msg_default_instance_);
  424. }
  425. static constexpr int kIndexInFileMessages =
  426. 1;
  427. friend void swap(Measure_request_msg& a, Measure_request_msg& b) {
  428. a.Swap(&b);
  429. }
  430. inline void Swap(Measure_request_msg* other) {
  431. if (other == this) return;
  432. if (GetArena() == other->GetArena()) {
  433. InternalSwap(other);
  434. } else {
  435. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  436. }
  437. }
  438. void UnsafeArenaSwap(Measure_request_msg* other) {
  439. if (other == this) return;
  440. GOOGLE_DCHECK(GetArena() == other->GetArena());
  441. InternalSwap(other);
  442. }
  443. // implements Message ----------------------------------------------
  444. inline Measure_request_msg* New() const final {
  445. return CreateMaybeMessage<Measure_request_msg>(nullptr);
  446. }
  447. Measure_request_msg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  448. return CreateMaybeMessage<Measure_request_msg>(arena);
  449. }
  450. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  451. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  452. void CopyFrom(const Measure_request_msg& from);
  453. void MergeFrom(const Measure_request_msg& from);
  454. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  455. bool IsInitialized() const final;
  456. size_t ByteSizeLong() const final;
  457. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  458. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  459. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  460. int GetCachedSize() const final { return _cached_size_.Get(); }
  461. private:
  462. inline void SharedCtor();
  463. inline void SharedDtor();
  464. void SetCachedSize(int size) const final;
  465. void InternalSwap(Measure_request_msg* other);
  466. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  467. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  468. return "message.Measure_request_msg";
  469. }
  470. protected:
  471. explicit Measure_request_msg(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  472. private:
  473. static void ArenaDtor(void* object);
  474. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  475. public:
  476. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  477. private:
  478. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  479. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_measure_5fmessage_2eproto);
  480. return ::descriptor_table_measure_5fmessage_2eproto.file_level_metadata[kIndexInFileMessages];
  481. }
  482. public:
  483. // nested types ----------------------------------------------------
  484. // accessors -------------------------------------------------------
  485. enum : int {
  486. kCommandKeyFieldNumber = 2,
  487. kBaseInfoFieldNumber = 1,
  488. kTerminalIdFieldNumber = 3,
  489. };
  490. // required string command_key = 2;
  491. bool has_command_key() const;
  492. private:
  493. bool _internal_has_command_key() const;
  494. public:
  495. void clear_command_key();
  496. const std::string& command_key() const;
  497. void set_command_key(const std::string& value);
  498. void set_command_key(std::string&& value);
  499. void set_command_key(const char* value);
  500. void set_command_key(const char* value, size_t size);
  501. std::string* mutable_command_key();
  502. std::string* release_command_key();
  503. void set_allocated_command_key(std::string* command_key);
  504. private:
  505. const std::string& _internal_command_key() const;
  506. void _internal_set_command_key(const std::string& value);
  507. std::string* _internal_mutable_command_key();
  508. public:
  509. // required .message.Base_info base_info = 1;
  510. bool has_base_info() const;
  511. private:
  512. bool _internal_has_base_info() const;
  513. public:
  514. void clear_base_info();
  515. const ::message::Base_info& base_info() const;
  516. ::message::Base_info* release_base_info();
  517. ::message::Base_info* mutable_base_info();
  518. void set_allocated_base_info(::message::Base_info* base_info);
  519. private:
  520. const ::message::Base_info& _internal_base_info() const;
  521. ::message::Base_info* _internal_mutable_base_info();
  522. public:
  523. void unsafe_arena_set_allocated_base_info(
  524. ::message::Base_info* base_info);
  525. ::message::Base_info* unsafe_arena_release_base_info();
  526. // required int32 terminal_id = 3;
  527. bool has_terminal_id() const;
  528. private:
  529. bool _internal_has_terminal_id() const;
  530. public:
  531. void clear_terminal_id();
  532. ::PROTOBUF_NAMESPACE_ID::int32 terminal_id() const;
  533. void set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  534. private:
  535. ::PROTOBUF_NAMESPACE_ID::int32 _internal_terminal_id() const;
  536. void _internal_set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  537. public:
  538. // @@protoc_insertion_point(class_scope:message.Measure_request_msg)
  539. private:
  540. class _Internal;
  541. // helper for ByteSizeLong()
  542. size_t RequiredFieldsByteSizeFallback() const;
  543. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  544. typedef void InternalArenaConstructable_;
  545. typedef void DestructorSkippable_;
  546. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  547. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  548. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr command_key_;
  549. ::message::Base_info* base_info_;
  550. ::PROTOBUF_NAMESPACE_ID::int32 terminal_id_;
  551. friend struct ::TableStruct_measure_5fmessage_2eproto;
  552. };
  553. // -------------------------------------------------------------------
  554. class Measure_response_msg PROTOBUF_FINAL :
  555. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:message.Measure_response_msg) */ {
  556. public:
  557. inline Measure_response_msg() : Measure_response_msg(nullptr) {}
  558. virtual ~Measure_response_msg();
  559. Measure_response_msg(const Measure_response_msg& from);
  560. Measure_response_msg(Measure_response_msg&& from) noexcept
  561. : Measure_response_msg() {
  562. *this = ::std::move(from);
  563. }
  564. inline Measure_response_msg& operator=(const Measure_response_msg& from) {
  565. CopyFrom(from);
  566. return *this;
  567. }
  568. inline Measure_response_msg& operator=(Measure_response_msg&& from) noexcept {
  569. if (GetArena() == from.GetArena()) {
  570. if (this != &from) InternalSwap(&from);
  571. } else {
  572. CopyFrom(from);
  573. }
  574. return *this;
  575. }
  576. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  577. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  578. }
  579. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  580. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  581. }
  582. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  583. return GetDescriptor();
  584. }
  585. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  586. return GetMetadataStatic().descriptor;
  587. }
  588. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  589. return GetMetadataStatic().reflection;
  590. }
  591. static const Measure_response_msg& default_instance();
  592. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  593. static inline const Measure_response_msg* internal_default_instance() {
  594. return reinterpret_cast<const Measure_response_msg*>(
  595. &_Measure_response_msg_default_instance_);
  596. }
  597. static constexpr int kIndexInFileMessages =
  598. 2;
  599. friend void swap(Measure_response_msg& a, Measure_response_msg& b) {
  600. a.Swap(&b);
  601. }
  602. inline void Swap(Measure_response_msg* other) {
  603. if (other == this) return;
  604. if (GetArena() == other->GetArena()) {
  605. InternalSwap(other);
  606. } else {
  607. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  608. }
  609. }
  610. void UnsafeArenaSwap(Measure_response_msg* other) {
  611. if (other == this) return;
  612. GOOGLE_DCHECK(GetArena() == other->GetArena());
  613. InternalSwap(other);
  614. }
  615. // implements Message ----------------------------------------------
  616. inline Measure_response_msg* New() const final {
  617. return CreateMaybeMessage<Measure_response_msg>(nullptr);
  618. }
  619. Measure_response_msg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  620. return CreateMaybeMessage<Measure_response_msg>(arena);
  621. }
  622. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  623. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  624. void CopyFrom(const Measure_response_msg& from);
  625. void MergeFrom(const Measure_response_msg& from);
  626. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  627. bool IsInitialized() const final;
  628. size_t ByteSizeLong() const final;
  629. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  630. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  631. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  632. int GetCachedSize() const final { return _cached_size_.Get(); }
  633. private:
  634. inline void SharedCtor();
  635. inline void SharedDtor();
  636. void SetCachedSize(int size) const final;
  637. void InternalSwap(Measure_response_msg* other);
  638. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  639. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  640. return "message.Measure_response_msg";
  641. }
  642. protected:
  643. explicit Measure_response_msg(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  644. private:
  645. static void ArenaDtor(void* object);
  646. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  647. public:
  648. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  649. private:
  650. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  651. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_measure_5fmessage_2eproto);
  652. return ::descriptor_table_measure_5fmessage_2eproto.file_level_metadata[kIndexInFileMessages];
  653. }
  654. public:
  655. // nested types ----------------------------------------------------
  656. // accessors -------------------------------------------------------
  657. enum : int {
  658. kCommandKeyFieldNumber = 2,
  659. kBaseInfoFieldNumber = 1,
  660. kLocateInformationFieldNumber = 4,
  661. kErrorManagerFieldNumber = 5,
  662. kTerminalIdFieldNumber = 3,
  663. };
  664. // required string command_key = 2;
  665. bool has_command_key() const;
  666. private:
  667. bool _internal_has_command_key() const;
  668. public:
  669. void clear_command_key();
  670. const std::string& command_key() const;
  671. void set_command_key(const std::string& value);
  672. void set_command_key(std::string&& value);
  673. void set_command_key(const char* value);
  674. void set_command_key(const char* value, size_t size);
  675. std::string* mutable_command_key();
  676. std::string* release_command_key();
  677. void set_allocated_command_key(std::string* command_key);
  678. private:
  679. const std::string& _internal_command_key() const;
  680. void _internal_set_command_key(const std::string& value);
  681. std::string* _internal_mutable_command_key();
  682. public:
  683. // required .message.Base_info base_info = 1;
  684. bool has_base_info() const;
  685. private:
  686. bool _internal_has_base_info() const;
  687. public:
  688. void clear_base_info();
  689. const ::message::Base_info& base_info() const;
  690. ::message::Base_info* release_base_info();
  691. ::message::Base_info* mutable_base_info();
  692. void set_allocated_base_info(::message::Base_info* base_info);
  693. private:
  694. const ::message::Base_info& _internal_base_info() const;
  695. ::message::Base_info* _internal_mutable_base_info();
  696. public:
  697. void unsafe_arena_set_allocated_base_info(
  698. ::message::Base_info* base_info);
  699. ::message::Base_info* unsafe_arena_release_base_info();
  700. // optional .message.Locate_information locate_information = 4;
  701. bool has_locate_information() const;
  702. private:
  703. bool _internal_has_locate_information() const;
  704. public:
  705. void clear_locate_information();
  706. const ::message::Locate_information& locate_information() const;
  707. ::message::Locate_information* release_locate_information();
  708. ::message::Locate_information* mutable_locate_information();
  709. void set_allocated_locate_information(::message::Locate_information* locate_information);
  710. private:
  711. const ::message::Locate_information& _internal_locate_information() const;
  712. ::message::Locate_information* _internal_mutable_locate_information();
  713. public:
  714. void unsafe_arena_set_allocated_locate_information(
  715. ::message::Locate_information* locate_information);
  716. ::message::Locate_information* unsafe_arena_release_locate_information();
  717. // required .message.Error_manager error_manager = 5;
  718. bool has_error_manager() const;
  719. private:
  720. bool _internal_has_error_manager() const;
  721. public:
  722. void clear_error_manager();
  723. const ::message::Error_manager& error_manager() const;
  724. ::message::Error_manager* release_error_manager();
  725. ::message::Error_manager* mutable_error_manager();
  726. void set_allocated_error_manager(::message::Error_manager* error_manager);
  727. private:
  728. const ::message::Error_manager& _internal_error_manager() const;
  729. ::message::Error_manager* _internal_mutable_error_manager();
  730. public:
  731. void unsafe_arena_set_allocated_error_manager(
  732. ::message::Error_manager* error_manager);
  733. ::message::Error_manager* unsafe_arena_release_error_manager();
  734. // required int32 terminal_id = 3;
  735. bool has_terminal_id() const;
  736. private:
  737. bool _internal_has_terminal_id() const;
  738. public:
  739. void clear_terminal_id();
  740. ::PROTOBUF_NAMESPACE_ID::int32 terminal_id() const;
  741. void set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  742. private:
  743. ::PROTOBUF_NAMESPACE_ID::int32 _internal_terminal_id() const;
  744. void _internal_set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  745. public:
  746. // @@protoc_insertion_point(class_scope:message.Measure_response_msg)
  747. private:
  748. class _Internal;
  749. // helper for ByteSizeLong()
  750. size_t RequiredFieldsByteSizeFallback() const;
  751. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  752. typedef void InternalArenaConstructable_;
  753. typedef void DestructorSkippable_;
  754. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  755. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  756. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr command_key_;
  757. ::message::Base_info* base_info_;
  758. ::message::Locate_information* locate_information_;
  759. ::message::Error_manager* error_manager_;
  760. ::PROTOBUF_NAMESPACE_ID::int32 terminal_id_;
  761. friend struct ::TableStruct_measure_5fmessage_2eproto;
  762. };
  763. // ===================================================================
  764. // ===================================================================
  765. #ifdef __GNUC__
  766. #pragma GCC diagnostic push
  767. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  768. #endif // __GNUC__
  769. // Measure_status_msg
  770. // required .message.Base_info base_info = 1;
  771. inline bool Measure_status_msg::_internal_has_base_info() const {
  772. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  773. PROTOBUF_ASSUME(!value || base_info_ != nullptr);
  774. return value;
  775. }
  776. inline bool Measure_status_msg::has_base_info() const {
  777. return _internal_has_base_info();
  778. }
  779. inline const ::message::Base_info& Measure_status_msg::_internal_base_info() const {
  780. const ::message::Base_info* p = base_info_;
  781. return p != nullptr ? *p : *reinterpret_cast<const ::message::Base_info*>(
  782. &::message::_Base_info_default_instance_);
  783. }
  784. inline const ::message::Base_info& Measure_status_msg::base_info() const {
  785. // @@protoc_insertion_point(field_get:message.Measure_status_msg.base_info)
  786. return _internal_base_info();
  787. }
  788. inline void Measure_status_msg::unsafe_arena_set_allocated_base_info(
  789. ::message::Base_info* base_info) {
  790. if (GetArena() == nullptr) {
  791. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_info_);
  792. }
  793. base_info_ = base_info;
  794. if (base_info) {
  795. _has_bits_[0] |= 0x00000001u;
  796. } else {
  797. _has_bits_[0] &= ~0x00000001u;
  798. }
  799. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:message.Measure_status_msg.base_info)
  800. }
  801. inline ::message::Base_info* Measure_status_msg::release_base_info() {
  802. _has_bits_[0] &= ~0x00000001u;
  803. ::message::Base_info* temp = base_info_;
  804. base_info_ = nullptr;
  805. if (GetArena() != nullptr) {
  806. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  807. }
  808. return temp;
  809. }
  810. inline ::message::Base_info* Measure_status_msg::unsafe_arena_release_base_info() {
  811. // @@protoc_insertion_point(field_release:message.Measure_status_msg.base_info)
  812. _has_bits_[0] &= ~0x00000001u;
  813. ::message::Base_info* temp = base_info_;
  814. base_info_ = nullptr;
  815. return temp;
  816. }
  817. inline ::message::Base_info* Measure_status_msg::_internal_mutable_base_info() {
  818. _has_bits_[0] |= 0x00000001u;
  819. if (base_info_ == nullptr) {
  820. auto* p = CreateMaybeMessage<::message::Base_info>(GetArena());
  821. base_info_ = p;
  822. }
  823. return base_info_;
  824. }
  825. inline ::message::Base_info* Measure_status_msg::mutable_base_info() {
  826. // @@protoc_insertion_point(field_mutable:message.Measure_status_msg.base_info)
  827. return _internal_mutable_base_info();
  828. }
  829. inline void Measure_status_msg::set_allocated_base_info(::message::Base_info* base_info) {
  830. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
  831. if (message_arena == nullptr) {
  832. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_info_);
  833. }
  834. if (base_info) {
  835. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  836. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_info)->GetArena();
  837. if (message_arena != submessage_arena) {
  838. base_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  839. message_arena, base_info, submessage_arena);
  840. }
  841. _has_bits_[0] |= 0x00000001u;
  842. } else {
  843. _has_bits_[0] &= ~0x00000001u;
  844. }
  845. base_info_ = base_info;
  846. // @@protoc_insertion_point(field_set_allocated:message.Measure_status_msg.base_info)
  847. }
  848. // required int32 terminal_id = 2;
  849. inline bool Measure_status_msg::_internal_has_terminal_id() const {
  850. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  851. return value;
  852. }
  853. inline bool Measure_status_msg::has_terminal_id() const {
  854. return _internal_has_terminal_id();
  855. }
  856. inline void Measure_status_msg::clear_terminal_id() {
  857. terminal_id_ = 0;
  858. _has_bits_[0] &= ~0x00000008u;
  859. }
  860. inline ::PROTOBUF_NAMESPACE_ID::int32 Measure_status_msg::_internal_terminal_id() const {
  861. return terminal_id_;
  862. }
  863. inline ::PROTOBUF_NAMESPACE_ID::int32 Measure_status_msg::terminal_id() const {
  864. // @@protoc_insertion_point(field_get:message.Measure_status_msg.terminal_id)
  865. return _internal_terminal_id();
  866. }
  867. inline void Measure_status_msg::_internal_set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  868. _has_bits_[0] |= 0x00000008u;
  869. terminal_id_ = value;
  870. }
  871. inline void Measure_status_msg::set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  872. _internal_set_terminal_id(value);
  873. // @@protoc_insertion_point(field_set:message.Measure_status_msg.terminal_id)
  874. }
  875. // required .message.Laser_manager_status laser_manager_status = 3;
  876. inline bool Measure_status_msg::_internal_has_laser_manager_status() const {
  877. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  878. return value;
  879. }
  880. inline bool Measure_status_msg::has_laser_manager_status() const {
  881. return _internal_has_laser_manager_status();
  882. }
  883. inline void Measure_status_msg::clear_laser_manager_status() {
  884. laser_manager_status_ = 0;
  885. _has_bits_[0] &= ~0x00000010u;
  886. }
  887. inline ::message::Laser_manager_status Measure_status_msg::_internal_laser_manager_status() const {
  888. return static_cast< ::message::Laser_manager_status >(laser_manager_status_);
  889. }
  890. inline ::message::Laser_manager_status Measure_status_msg::laser_manager_status() const {
  891. // @@protoc_insertion_point(field_get:message.Measure_status_msg.laser_manager_status)
  892. return _internal_laser_manager_status();
  893. }
  894. inline void Measure_status_msg::_internal_set_laser_manager_status(::message::Laser_manager_status value) {
  895. assert(::message::Laser_manager_status_IsValid(value));
  896. _has_bits_[0] |= 0x00000010u;
  897. laser_manager_status_ = value;
  898. }
  899. inline void Measure_status_msg::set_laser_manager_status(::message::Laser_manager_status value) {
  900. _internal_set_laser_manager_status(value);
  901. // @@protoc_insertion_point(field_set:message.Measure_status_msg.laser_manager_status)
  902. }
  903. // repeated .message.Laser_statu laser_statu_vector = 4;
  904. inline int Measure_status_msg::_internal_laser_statu_vector_size() const {
  905. return laser_statu_vector_.size();
  906. }
  907. inline int Measure_status_msg::laser_statu_vector_size() const {
  908. return _internal_laser_statu_vector_size();
  909. }
  910. inline void Measure_status_msg::clear_laser_statu_vector() {
  911. laser_statu_vector_.Clear();
  912. }
  913. inline ::message::Laser_statu Measure_status_msg::_internal_laser_statu_vector(int index) const {
  914. return static_cast< ::message::Laser_statu >(laser_statu_vector_.Get(index));
  915. }
  916. inline ::message::Laser_statu Measure_status_msg::laser_statu_vector(int index) const {
  917. // @@protoc_insertion_point(field_get:message.Measure_status_msg.laser_statu_vector)
  918. return _internal_laser_statu_vector(index);
  919. }
  920. inline void Measure_status_msg::set_laser_statu_vector(int index, ::message::Laser_statu value) {
  921. assert(::message::Laser_statu_IsValid(value));
  922. laser_statu_vector_.Set(index, value);
  923. // @@protoc_insertion_point(field_set:message.Measure_status_msg.laser_statu_vector)
  924. }
  925. inline void Measure_status_msg::_internal_add_laser_statu_vector(::message::Laser_statu value) {
  926. assert(::message::Laser_statu_IsValid(value));
  927. laser_statu_vector_.Add(value);
  928. }
  929. inline void Measure_status_msg::add_laser_statu_vector(::message::Laser_statu value) {
  930. // @@protoc_insertion_point(field_add:message.Measure_status_msg.laser_statu_vector)
  931. _internal_add_laser_statu_vector(value);
  932. }
  933. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>&
  934. Measure_status_msg::laser_statu_vector() const {
  935. // @@protoc_insertion_point(field_list:message.Measure_status_msg.laser_statu_vector)
  936. return laser_statu_vector_;
  937. }
  938. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>*
  939. Measure_status_msg::_internal_mutable_laser_statu_vector() {
  940. return &laser_statu_vector_;
  941. }
  942. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>*
  943. Measure_status_msg::mutable_laser_statu_vector() {
  944. // @@protoc_insertion_point(field_mutable_list:message.Measure_status_msg.laser_statu_vector)
  945. return _internal_mutable_laser_statu_vector();
  946. }
  947. // required .message.Locate_manager_status locate_manager_status = 5;
  948. inline bool Measure_status_msg::_internal_has_locate_manager_status() const {
  949. bool value = (_has_bits_[0] & 0x00000020u) != 0;
  950. return value;
  951. }
  952. inline bool Measure_status_msg::has_locate_manager_status() const {
  953. return _internal_has_locate_manager_status();
  954. }
  955. inline void Measure_status_msg::clear_locate_manager_status() {
  956. locate_manager_status_ = 0;
  957. _has_bits_[0] &= ~0x00000020u;
  958. }
  959. inline ::message::Locate_manager_status Measure_status_msg::_internal_locate_manager_status() const {
  960. return static_cast< ::message::Locate_manager_status >(locate_manager_status_);
  961. }
  962. inline ::message::Locate_manager_status Measure_status_msg::locate_manager_status() const {
  963. // @@protoc_insertion_point(field_get:message.Measure_status_msg.locate_manager_status)
  964. return _internal_locate_manager_status();
  965. }
  966. inline void Measure_status_msg::_internal_set_locate_manager_status(::message::Locate_manager_status value) {
  967. assert(::message::Locate_manager_status_IsValid(value));
  968. _has_bits_[0] |= 0x00000020u;
  969. locate_manager_status_ = value;
  970. }
  971. inline void Measure_status_msg::set_locate_manager_status(::message::Locate_manager_status value) {
  972. _internal_set_locate_manager_status(value);
  973. // @@protoc_insertion_point(field_set:message.Measure_status_msg.locate_manager_status)
  974. }
  975. // optional .message.Locate_information locate_information_realtime = 6;
  976. inline bool Measure_status_msg::_internal_has_locate_information_realtime() const {
  977. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  978. PROTOBUF_ASSUME(!value || locate_information_realtime_ != nullptr);
  979. return value;
  980. }
  981. inline bool Measure_status_msg::has_locate_information_realtime() const {
  982. return _internal_has_locate_information_realtime();
  983. }
  984. inline const ::message::Locate_information& Measure_status_msg::_internal_locate_information_realtime() const {
  985. const ::message::Locate_information* p = locate_information_realtime_;
  986. return p != nullptr ? *p : *reinterpret_cast<const ::message::Locate_information*>(
  987. &::message::_Locate_information_default_instance_);
  988. }
  989. inline const ::message::Locate_information& Measure_status_msg::locate_information_realtime() const {
  990. // @@protoc_insertion_point(field_get:message.Measure_status_msg.locate_information_realtime)
  991. return _internal_locate_information_realtime();
  992. }
  993. inline void Measure_status_msg::unsafe_arena_set_allocated_locate_information_realtime(
  994. ::message::Locate_information* locate_information_realtime) {
  995. if (GetArena() == nullptr) {
  996. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(locate_information_realtime_);
  997. }
  998. locate_information_realtime_ = locate_information_realtime;
  999. if (locate_information_realtime) {
  1000. _has_bits_[0] |= 0x00000002u;
  1001. } else {
  1002. _has_bits_[0] &= ~0x00000002u;
  1003. }
  1004. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:message.Measure_status_msg.locate_information_realtime)
  1005. }
  1006. inline ::message::Locate_information* Measure_status_msg::release_locate_information_realtime() {
  1007. _has_bits_[0] &= ~0x00000002u;
  1008. ::message::Locate_information* temp = locate_information_realtime_;
  1009. locate_information_realtime_ = nullptr;
  1010. if (GetArena() != nullptr) {
  1011. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1012. }
  1013. return temp;
  1014. }
  1015. inline ::message::Locate_information* Measure_status_msg::unsafe_arena_release_locate_information_realtime() {
  1016. // @@protoc_insertion_point(field_release:message.Measure_status_msg.locate_information_realtime)
  1017. _has_bits_[0] &= ~0x00000002u;
  1018. ::message::Locate_information* temp = locate_information_realtime_;
  1019. locate_information_realtime_ = nullptr;
  1020. return temp;
  1021. }
  1022. inline ::message::Locate_information* Measure_status_msg::_internal_mutable_locate_information_realtime() {
  1023. _has_bits_[0] |= 0x00000002u;
  1024. if (locate_information_realtime_ == nullptr) {
  1025. auto* p = CreateMaybeMessage<::message::Locate_information>(GetArena());
  1026. locate_information_realtime_ = p;
  1027. }
  1028. return locate_information_realtime_;
  1029. }
  1030. inline ::message::Locate_information* Measure_status_msg::mutable_locate_information_realtime() {
  1031. // @@protoc_insertion_point(field_mutable:message.Measure_status_msg.locate_information_realtime)
  1032. return _internal_mutable_locate_information_realtime();
  1033. }
  1034. inline void Measure_status_msg::set_allocated_locate_information_realtime(::message::Locate_information* locate_information_realtime) {
  1035. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
  1036. if (message_arena == nullptr) {
  1037. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(locate_information_realtime_);
  1038. }
  1039. if (locate_information_realtime) {
  1040. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  1041. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(locate_information_realtime)->GetArena();
  1042. if (message_arena != submessage_arena) {
  1043. locate_information_realtime = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1044. message_arena, locate_information_realtime, submessage_arena);
  1045. }
  1046. _has_bits_[0] |= 0x00000002u;
  1047. } else {
  1048. _has_bits_[0] &= ~0x00000002u;
  1049. }
  1050. locate_information_realtime_ = locate_information_realtime;
  1051. // @@protoc_insertion_point(field_set_allocated:message.Measure_status_msg.locate_information_realtime)
  1052. }
  1053. // required .message.Error_manager error_manager = 7;
  1054. inline bool Measure_status_msg::_internal_has_error_manager() const {
  1055. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  1056. PROTOBUF_ASSUME(!value || error_manager_ != nullptr);
  1057. return value;
  1058. }
  1059. inline bool Measure_status_msg::has_error_manager() const {
  1060. return _internal_has_error_manager();
  1061. }
  1062. inline const ::message::Error_manager& Measure_status_msg::_internal_error_manager() const {
  1063. const ::message::Error_manager* p = error_manager_;
  1064. return p != nullptr ? *p : *reinterpret_cast<const ::message::Error_manager*>(
  1065. &::message::_Error_manager_default_instance_);
  1066. }
  1067. inline const ::message::Error_manager& Measure_status_msg::error_manager() const {
  1068. // @@protoc_insertion_point(field_get:message.Measure_status_msg.error_manager)
  1069. return _internal_error_manager();
  1070. }
  1071. inline void Measure_status_msg::unsafe_arena_set_allocated_error_manager(
  1072. ::message::Error_manager* error_manager) {
  1073. if (GetArena() == nullptr) {
  1074. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(error_manager_);
  1075. }
  1076. error_manager_ = error_manager;
  1077. if (error_manager) {
  1078. _has_bits_[0] |= 0x00000004u;
  1079. } else {
  1080. _has_bits_[0] &= ~0x00000004u;
  1081. }
  1082. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:message.Measure_status_msg.error_manager)
  1083. }
  1084. inline ::message::Error_manager* Measure_status_msg::release_error_manager() {
  1085. _has_bits_[0] &= ~0x00000004u;
  1086. ::message::Error_manager* temp = error_manager_;
  1087. error_manager_ = nullptr;
  1088. if (GetArena() != nullptr) {
  1089. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1090. }
  1091. return temp;
  1092. }
  1093. inline ::message::Error_manager* Measure_status_msg::unsafe_arena_release_error_manager() {
  1094. // @@protoc_insertion_point(field_release:message.Measure_status_msg.error_manager)
  1095. _has_bits_[0] &= ~0x00000004u;
  1096. ::message::Error_manager* temp = error_manager_;
  1097. error_manager_ = nullptr;
  1098. return temp;
  1099. }
  1100. inline ::message::Error_manager* Measure_status_msg::_internal_mutable_error_manager() {
  1101. _has_bits_[0] |= 0x00000004u;
  1102. if (error_manager_ == nullptr) {
  1103. auto* p = CreateMaybeMessage<::message::Error_manager>(GetArena());
  1104. error_manager_ = p;
  1105. }
  1106. return error_manager_;
  1107. }
  1108. inline ::message::Error_manager* Measure_status_msg::mutable_error_manager() {
  1109. // @@protoc_insertion_point(field_mutable:message.Measure_status_msg.error_manager)
  1110. return _internal_mutable_error_manager();
  1111. }
  1112. inline void Measure_status_msg::set_allocated_error_manager(::message::Error_manager* error_manager) {
  1113. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
  1114. if (message_arena == nullptr) {
  1115. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(error_manager_);
  1116. }
  1117. if (error_manager) {
  1118. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  1119. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(error_manager)->GetArena();
  1120. if (message_arena != submessage_arena) {
  1121. error_manager = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1122. message_arena, error_manager, submessage_arena);
  1123. }
  1124. _has_bits_[0] |= 0x00000004u;
  1125. } else {
  1126. _has_bits_[0] &= ~0x00000004u;
  1127. }
  1128. error_manager_ = error_manager;
  1129. // @@protoc_insertion_point(field_set_allocated:message.Measure_status_msg.error_manager)
  1130. }
  1131. // -------------------------------------------------------------------
  1132. // Measure_request_msg
  1133. // required .message.Base_info base_info = 1;
  1134. inline bool Measure_request_msg::_internal_has_base_info() const {
  1135. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  1136. PROTOBUF_ASSUME(!value || base_info_ != nullptr);
  1137. return value;
  1138. }
  1139. inline bool Measure_request_msg::has_base_info() const {
  1140. return _internal_has_base_info();
  1141. }
  1142. inline const ::message::Base_info& Measure_request_msg::_internal_base_info() const {
  1143. const ::message::Base_info* p = base_info_;
  1144. return p != nullptr ? *p : *reinterpret_cast<const ::message::Base_info*>(
  1145. &::message::_Base_info_default_instance_);
  1146. }
  1147. inline const ::message::Base_info& Measure_request_msg::base_info() const {
  1148. // @@protoc_insertion_point(field_get:message.Measure_request_msg.base_info)
  1149. return _internal_base_info();
  1150. }
  1151. inline void Measure_request_msg::unsafe_arena_set_allocated_base_info(
  1152. ::message::Base_info* base_info) {
  1153. if (GetArena() == nullptr) {
  1154. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_info_);
  1155. }
  1156. base_info_ = base_info;
  1157. if (base_info) {
  1158. _has_bits_[0] |= 0x00000002u;
  1159. } else {
  1160. _has_bits_[0] &= ~0x00000002u;
  1161. }
  1162. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:message.Measure_request_msg.base_info)
  1163. }
  1164. inline ::message::Base_info* Measure_request_msg::release_base_info() {
  1165. _has_bits_[0] &= ~0x00000002u;
  1166. ::message::Base_info* temp = base_info_;
  1167. base_info_ = nullptr;
  1168. if (GetArena() != nullptr) {
  1169. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1170. }
  1171. return temp;
  1172. }
  1173. inline ::message::Base_info* Measure_request_msg::unsafe_arena_release_base_info() {
  1174. // @@protoc_insertion_point(field_release:message.Measure_request_msg.base_info)
  1175. _has_bits_[0] &= ~0x00000002u;
  1176. ::message::Base_info* temp = base_info_;
  1177. base_info_ = nullptr;
  1178. return temp;
  1179. }
  1180. inline ::message::Base_info* Measure_request_msg::_internal_mutable_base_info() {
  1181. _has_bits_[0] |= 0x00000002u;
  1182. if (base_info_ == nullptr) {
  1183. auto* p = CreateMaybeMessage<::message::Base_info>(GetArena());
  1184. base_info_ = p;
  1185. }
  1186. return base_info_;
  1187. }
  1188. inline ::message::Base_info* Measure_request_msg::mutable_base_info() {
  1189. // @@protoc_insertion_point(field_mutable:message.Measure_request_msg.base_info)
  1190. return _internal_mutable_base_info();
  1191. }
  1192. inline void Measure_request_msg::set_allocated_base_info(::message::Base_info* base_info) {
  1193. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
  1194. if (message_arena == nullptr) {
  1195. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_info_);
  1196. }
  1197. if (base_info) {
  1198. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  1199. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_info)->GetArena();
  1200. if (message_arena != submessage_arena) {
  1201. base_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1202. message_arena, base_info, submessage_arena);
  1203. }
  1204. _has_bits_[0] |= 0x00000002u;
  1205. } else {
  1206. _has_bits_[0] &= ~0x00000002u;
  1207. }
  1208. base_info_ = base_info;
  1209. // @@protoc_insertion_point(field_set_allocated:message.Measure_request_msg.base_info)
  1210. }
  1211. // required string command_key = 2;
  1212. inline bool Measure_request_msg::_internal_has_command_key() const {
  1213. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  1214. return value;
  1215. }
  1216. inline bool Measure_request_msg::has_command_key() const {
  1217. return _internal_has_command_key();
  1218. }
  1219. inline void Measure_request_msg::clear_command_key() {
  1220. command_key_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1221. _has_bits_[0] &= ~0x00000001u;
  1222. }
  1223. inline const std::string& Measure_request_msg::command_key() const {
  1224. // @@protoc_insertion_point(field_get:message.Measure_request_msg.command_key)
  1225. return _internal_command_key();
  1226. }
  1227. inline void Measure_request_msg::set_command_key(const std::string& value) {
  1228. _internal_set_command_key(value);
  1229. // @@protoc_insertion_point(field_set:message.Measure_request_msg.command_key)
  1230. }
  1231. inline std::string* Measure_request_msg::mutable_command_key() {
  1232. // @@protoc_insertion_point(field_mutable:message.Measure_request_msg.command_key)
  1233. return _internal_mutable_command_key();
  1234. }
  1235. inline const std::string& Measure_request_msg::_internal_command_key() const {
  1236. return command_key_.Get();
  1237. }
  1238. inline void Measure_request_msg::_internal_set_command_key(const std::string& value) {
  1239. _has_bits_[0] |= 0x00000001u;
  1240. command_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
  1241. }
  1242. inline void Measure_request_msg::set_command_key(std::string&& value) {
  1243. _has_bits_[0] |= 0x00000001u;
  1244. command_key_.Set(
  1245. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
  1246. // @@protoc_insertion_point(field_set_rvalue:message.Measure_request_msg.command_key)
  1247. }
  1248. inline void Measure_request_msg::set_command_key(const char* value) {
  1249. GOOGLE_DCHECK(value != nullptr);
  1250. _has_bits_[0] |= 0x00000001u;
  1251. command_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  1252. GetArena());
  1253. // @@protoc_insertion_point(field_set_char:message.Measure_request_msg.command_key)
  1254. }
  1255. inline void Measure_request_msg::set_command_key(const char* value,
  1256. size_t size) {
  1257. _has_bits_[0] |= 0x00000001u;
  1258. command_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1259. reinterpret_cast<const char*>(value), size), GetArena());
  1260. // @@protoc_insertion_point(field_set_pointer:message.Measure_request_msg.command_key)
  1261. }
  1262. inline std::string* Measure_request_msg::_internal_mutable_command_key() {
  1263. _has_bits_[0] |= 0x00000001u;
  1264. return command_key_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1265. }
  1266. inline std::string* Measure_request_msg::release_command_key() {
  1267. // @@protoc_insertion_point(field_release:message.Measure_request_msg.command_key)
  1268. if (!_internal_has_command_key()) {
  1269. return nullptr;
  1270. }
  1271. _has_bits_[0] &= ~0x00000001u;
  1272. return command_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1273. }
  1274. inline void Measure_request_msg::set_allocated_command_key(std::string* command_key) {
  1275. if (command_key != nullptr) {
  1276. _has_bits_[0] |= 0x00000001u;
  1277. } else {
  1278. _has_bits_[0] &= ~0x00000001u;
  1279. }
  1280. command_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), command_key,
  1281. GetArena());
  1282. // @@protoc_insertion_point(field_set_allocated:message.Measure_request_msg.command_key)
  1283. }
  1284. // required int32 terminal_id = 3;
  1285. inline bool Measure_request_msg::_internal_has_terminal_id() const {
  1286. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  1287. return value;
  1288. }
  1289. inline bool Measure_request_msg::has_terminal_id() const {
  1290. return _internal_has_terminal_id();
  1291. }
  1292. inline void Measure_request_msg::clear_terminal_id() {
  1293. terminal_id_ = 0;
  1294. _has_bits_[0] &= ~0x00000004u;
  1295. }
  1296. inline ::PROTOBUF_NAMESPACE_ID::int32 Measure_request_msg::_internal_terminal_id() const {
  1297. return terminal_id_;
  1298. }
  1299. inline ::PROTOBUF_NAMESPACE_ID::int32 Measure_request_msg::terminal_id() const {
  1300. // @@protoc_insertion_point(field_get:message.Measure_request_msg.terminal_id)
  1301. return _internal_terminal_id();
  1302. }
  1303. inline void Measure_request_msg::_internal_set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  1304. _has_bits_[0] |= 0x00000004u;
  1305. terminal_id_ = value;
  1306. }
  1307. inline void Measure_request_msg::set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  1308. _internal_set_terminal_id(value);
  1309. // @@protoc_insertion_point(field_set:message.Measure_request_msg.terminal_id)
  1310. }
  1311. // -------------------------------------------------------------------
  1312. // Measure_response_msg
  1313. // required .message.Base_info base_info = 1;
  1314. inline bool Measure_response_msg::_internal_has_base_info() const {
  1315. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  1316. PROTOBUF_ASSUME(!value || base_info_ != nullptr);
  1317. return value;
  1318. }
  1319. inline bool Measure_response_msg::has_base_info() const {
  1320. return _internal_has_base_info();
  1321. }
  1322. inline const ::message::Base_info& Measure_response_msg::_internal_base_info() const {
  1323. const ::message::Base_info* p = base_info_;
  1324. return p != nullptr ? *p : *reinterpret_cast<const ::message::Base_info*>(
  1325. &::message::_Base_info_default_instance_);
  1326. }
  1327. inline const ::message::Base_info& Measure_response_msg::base_info() const {
  1328. // @@protoc_insertion_point(field_get:message.Measure_response_msg.base_info)
  1329. return _internal_base_info();
  1330. }
  1331. inline void Measure_response_msg::unsafe_arena_set_allocated_base_info(
  1332. ::message::Base_info* base_info) {
  1333. if (GetArena() == nullptr) {
  1334. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_info_);
  1335. }
  1336. base_info_ = base_info;
  1337. if (base_info) {
  1338. _has_bits_[0] |= 0x00000002u;
  1339. } else {
  1340. _has_bits_[0] &= ~0x00000002u;
  1341. }
  1342. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:message.Measure_response_msg.base_info)
  1343. }
  1344. inline ::message::Base_info* Measure_response_msg::release_base_info() {
  1345. _has_bits_[0] &= ~0x00000002u;
  1346. ::message::Base_info* temp = base_info_;
  1347. base_info_ = nullptr;
  1348. if (GetArena() != nullptr) {
  1349. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1350. }
  1351. return temp;
  1352. }
  1353. inline ::message::Base_info* Measure_response_msg::unsafe_arena_release_base_info() {
  1354. // @@protoc_insertion_point(field_release:message.Measure_response_msg.base_info)
  1355. _has_bits_[0] &= ~0x00000002u;
  1356. ::message::Base_info* temp = base_info_;
  1357. base_info_ = nullptr;
  1358. return temp;
  1359. }
  1360. inline ::message::Base_info* Measure_response_msg::_internal_mutable_base_info() {
  1361. _has_bits_[0] |= 0x00000002u;
  1362. if (base_info_ == nullptr) {
  1363. auto* p = CreateMaybeMessage<::message::Base_info>(GetArena());
  1364. base_info_ = p;
  1365. }
  1366. return base_info_;
  1367. }
  1368. inline ::message::Base_info* Measure_response_msg::mutable_base_info() {
  1369. // @@protoc_insertion_point(field_mutable:message.Measure_response_msg.base_info)
  1370. return _internal_mutable_base_info();
  1371. }
  1372. inline void Measure_response_msg::set_allocated_base_info(::message::Base_info* base_info) {
  1373. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
  1374. if (message_arena == nullptr) {
  1375. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_info_);
  1376. }
  1377. if (base_info) {
  1378. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  1379. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_info)->GetArena();
  1380. if (message_arena != submessage_arena) {
  1381. base_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1382. message_arena, base_info, submessage_arena);
  1383. }
  1384. _has_bits_[0] |= 0x00000002u;
  1385. } else {
  1386. _has_bits_[0] &= ~0x00000002u;
  1387. }
  1388. base_info_ = base_info;
  1389. // @@protoc_insertion_point(field_set_allocated:message.Measure_response_msg.base_info)
  1390. }
  1391. // required string command_key = 2;
  1392. inline bool Measure_response_msg::_internal_has_command_key() const {
  1393. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  1394. return value;
  1395. }
  1396. inline bool Measure_response_msg::has_command_key() const {
  1397. return _internal_has_command_key();
  1398. }
  1399. inline void Measure_response_msg::clear_command_key() {
  1400. command_key_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1401. _has_bits_[0] &= ~0x00000001u;
  1402. }
  1403. inline const std::string& Measure_response_msg::command_key() const {
  1404. // @@protoc_insertion_point(field_get:message.Measure_response_msg.command_key)
  1405. return _internal_command_key();
  1406. }
  1407. inline void Measure_response_msg::set_command_key(const std::string& value) {
  1408. _internal_set_command_key(value);
  1409. // @@protoc_insertion_point(field_set:message.Measure_response_msg.command_key)
  1410. }
  1411. inline std::string* Measure_response_msg::mutable_command_key() {
  1412. // @@protoc_insertion_point(field_mutable:message.Measure_response_msg.command_key)
  1413. return _internal_mutable_command_key();
  1414. }
  1415. inline const std::string& Measure_response_msg::_internal_command_key() const {
  1416. return command_key_.Get();
  1417. }
  1418. inline void Measure_response_msg::_internal_set_command_key(const std::string& value) {
  1419. _has_bits_[0] |= 0x00000001u;
  1420. command_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
  1421. }
  1422. inline void Measure_response_msg::set_command_key(std::string&& value) {
  1423. _has_bits_[0] |= 0x00000001u;
  1424. command_key_.Set(
  1425. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
  1426. // @@protoc_insertion_point(field_set_rvalue:message.Measure_response_msg.command_key)
  1427. }
  1428. inline void Measure_response_msg::set_command_key(const char* value) {
  1429. GOOGLE_DCHECK(value != nullptr);
  1430. _has_bits_[0] |= 0x00000001u;
  1431. command_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  1432. GetArena());
  1433. // @@protoc_insertion_point(field_set_char:message.Measure_response_msg.command_key)
  1434. }
  1435. inline void Measure_response_msg::set_command_key(const char* value,
  1436. size_t size) {
  1437. _has_bits_[0] |= 0x00000001u;
  1438. command_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1439. reinterpret_cast<const char*>(value), size), GetArena());
  1440. // @@protoc_insertion_point(field_set_pointer:message.Measure_response_msg.command_key)
  1441. }
  1442. inline std::string* Measure_response_msg::_internal_mutable_command_key() {
  1443. _has_bits_[0] |= 0x00000001u;
  1444. return command_key_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1445. }
  1446. inline std::string* Measure_response_msg::release_command_key() {
  1447. // @@protoc_insertion_point(field_release:message.Measure_response_msg.command_key)
  1448. if (!_internal_has_command_key()) {
  1449. return nullptr;
  1450. }
  1451. _has_bits_[0] &= ~0x00000001u;
  1452. return command_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1453. }
  1454. inline void Measure_response_msg::set_allocated_command_key(std::string* command_key) {
  1455. if (command_key != nullptr) {
  1456. _has_bits_[0] |= 0x00000001u;
  1457. } else {
  1458. _has_bits_[0] &= ~0x00000001u;
  1459. }
  1460. command_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), command_key,
  1461. GetArena());
  1462. // @@protoc_insertion_point(field_set_allocated:message.Measure_response_msg.command_key)
  1463. }
  1464. // required int32 terminal_id = 3;
  1465. inline bool Measure_response_msg::_internal_has_terminal_id() const {
  1466. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  1467. return value;
  1468. }
  1469. inline bool Measure_response_msg::has_terminal_id() const {
  1470. return _internal_has_terminal_id();
  1471. }
  1472. inline void Measure_response_msg::clear_terminal_id() {
  1473. terminal_id_ = 0;
  1474. _has_bits_[0] &= ~0x00000010u;
  1475. }
  1476. inline ::PROTOBUF_NAMESPACE_ID::int32 Measure_response_msg::_internal_terminal_id() const {
  1477. return terminal_id_;
  1478. }
  1479. inline ::PROTOBUF_NAMESPACE_ID::int32 Measure_response_msg::terminal_id() const {
  1480. // @@protoc_insertion_point(field_get:message.Measure_response_msg.terminal_id)
  1481. return _internal_terminal_id();
  1482. }
  1483. inline void Measure_response_msg::_internal_set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  1484. _has_bits_[0] |= 0x00000010u;
  1485. terminal_id_ = value;
  1486. }
  1487. inline void Measure_response_msg::set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  1488. _internal_set_terminal_id(value);
  1489. // @@protoc_insertion_point(field_set:message.Measure_response_msg.terminal_id)
  1490. }
  1491. // optional .message.Locate_information locate_information = 4;
  1492. inline bool Measure_response_msg::_internal_has_locate_information() const {
  1493. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  1494. PROTOBUF_ASSUME(!value || locate_information_ != nullptr);
  1495. return value;
  1496. }
  1497. inline bool Measure_response_msg::has_locate_information() const {
  1498. return _internal_has_locate_information();
  1499. }
  1500. inline const ::message::Locate_information& Measure_response_msg::_internal_locate_information() const {
  1501. const ::message::Locate_information* p = locate_information_;
  1502. return p != nullptr ? *p : *reinterpret_cast<const ::message::Locate_information*>(
  1503. &::message::_Locate_information_default_instance_);
  1504. }
  1505. inline const ::message::Locate_information& Measure_response_msg::locate_information() const {
  1506. // @@protoc_insertion_point(field_get:message.Measure_response_msg.locate_information)
  1507. return _internal_locate_information();
  1508. }
  1509. inline void Measure_response_msg::unsafe_arena_set_allocated_locate_information(
  1510. ::message::Locate_information* locate_information) {
  1511. if (GetArena() == nullptr) {
  1512. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(locate_information_);
  1513. }
  1514. locate_information_ = locate_information;
  1515. if (locate_information) {
  1516. _has_bits_[0] |= 0x00000004u;
  1517. } else {
  1518. _has_bits_[0] &= ~0x00000004u;
  1519. }
  1520. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:message.Measure_response_msg.locate_information)
  1521. }
  1522. inline ::message::Locate_information* Measure_response_msg::release_locate_information() {
  1523. _has_bits_[0] &= ~0x00000004u;
  1524. ::message::Locate_information* temp = locate_information_;
  1525. locate_information_ = nullptr;
  1526. if (GetArena() != nullptr) {
  1527. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1528. }
  1529. return temp;
  1530. }
  1531. inline ::message::Locate_information* Measure_response_msg::unsafe_arena_release_locate_information() {
  1532. // @@protoc_insertion_point(field_release:message.Measure_response_msg.locate_information)
  1533. _has_bits_[0] &= ~0x00000004u;
  1534. ::message::Locate_information* temp = locate_information_;
  1535. locate_information_ = nullptr;
  1536. return temp;
  1537. }
  1538. inline ::message::Locate_information* Measure_response_msg::_internal_mutable_locate_information() {
  1539. _has_bits_[0] |= 0x00000004u;
  1540. if (locate_information_ == nullptr) {
  1541. auto* p = CreateMaybeMessage<::message::Locate_information>(GetArena());
  1542. locate_information_ = p;
  1543. }
  1544. return locate_information_;
  1545. }
  1546. inline ::message::Locate_information* Measure_response_msg::mutable_locate_information() {
  1547. // @@protoc_insertion_point(field_mutable:message.Measure_response_msg.locate_information)
  1548. return _internal_mutable_locate_information();
  1549. }
  1550. inline void Measure_response_msg::set_allocated_locate_information(::message::Locate_information* locate_information) {
  1551. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
  1552. if (message_arena == nullptr) {
  1553. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(locate_information_);
  1554. }
  1555. if (locate_information) {
  1556. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  1557. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(locate_information)->GetArena();
  1558. if (message_arena != submessage_arena) {
  1559. locate_information = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1560. message_arena, locate_information, submessage_arena);
  1561. }
  1562. _has_bits_[0] |= 0x00000004u;
  1563. } else {
  1564. _has_bits_[0] &= ~0x00000004u;
  1565. }
  1566. locate_information_ = locate_information;
  1567. // @@protoc_insertion_point(field_set_allocated:message.Measure_response_msg.locate_information)
  1568. }
  1569. // required .message.Error_manager error_manager = 5;
  1570. inline bool Measure_response_msg::_internal_has_error_manager() const {
  1571. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  1572. PROTOBUF_ASSUME(!value || error_manager_ != nullptr);
  1573. return value;
  1574. }
  1575. inline bool Measure_response_msg::has_error_manager() const {
  1576. return _internal_has_error_manager();
  1577. }
  1578. inline const ::message::Error_manager& Measure_response_msg::_internal_error_manager() const {
  1579. const ::message::Error_manager* p = error_manager_;
  1580. return p != nullptr ? *p : *reinterpret_cast<const ::message::Error_manager*>(
  1581. &::message::_Error_manager_default_instance_);
  1582. }
  1583. inline const ::message::Error_manager& Measure_response_msg::error_manager() const {
  1584. // @@protoc_insertion_point(field_get:message.Measure_response_msg.error_manager)
  1585. return _internal_error_manager();
  1586. }
  1587. inline void Measure_response_msg::unsafe_arena_set_allocated_error_manager(
  1588. ::message::Error_manager* error_manager) {
  1589. if (GetArena() == nullptr) {
  1590. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(error_manager_);
  1591. }
  1592. error_manager_ = error_manager;
  1593. if (error_manager) {
  1594. _has_bits_[0] |= 0x00000008u;
  1595. } else {
  1596. _has_bits_[0] &= ~0x00000008u;
  1597. }
  1598. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:message.Measure_response_msg.error_manager)
  1599. }
  1600. inline ::message::Error_manager* Measure_response_msg::release_error_manager() {
  1601. _has_bits_[0] &= ~0x00000008u;
  1602. ::message::Error_manager* temp = error_manager_;
  1603. error_manager_ = nullptr;
  1604. if (GetArena() != nullptr) {
  1605. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1606. }
  1607. return temp;
  1608. }
  1609. inline ::message::Error_manager* Measure_response_msg::unsafe_arena_release_error_manager() {
  1610. // @@protoc_insertion_point(field_release:message.Measure_response_msg.error_manager)
  1611. _has_bits_[0] &= ~0x00000008u;
  1612. ::message::Error_manager* temp = error_manager_;
  1613. error_manager_ = nullptr;
  1614. return temp;
  1615. }
  1616. inline ::message::Error_manager* Measure_response_msg::_internal_mutable_error_manager() {
  1617. _has_bits_[0] |= 0x00000008u;
  1618. if (error_manager_ == nullptr) {
  1619. auto* p = CreateMaybeMessage<::message::Error_manager>(GetArena());
  1620. error_manager_ = p;
  1621. }
  1622. return error_manager_;
  1623. }
  1624. inline ::message::Error_manager* Measure_response_msg::mutable_error_manager() {
  1625. // @@protoc_insertion_point(field_mutable:message.Measure_response_msg.error_manager)
  1626. return _internal_mutable_error_manager();
  1627. }
  1628. inline void Measure_response_msg::set_allocated_error_manager(::message::Error_manager* error_manager) {
  1629. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
  1630. if (message_arena == nullptr) {
  1631. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(error_manager_);
  1632. }
  1633. if (error_manager) {
  1634. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  1635. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(error_manager)->GetArena();
  1636. if (message_arena != submessage_arena) {
  1637. error_manager = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1638. message_arena, error_manager, submessage_arena);
  1639. }
  1640. _has_bits_[0] |= 0x00000008u;
  1641. } else {
  1642. _has_bits_[0] &= ~0x00000008u;
  1643. }
  1644. error_manager_ = error_manager;
  1645. // @@protoc_insertion_point(field_set_allocated:message.Measure_response_msg.error_manager)
  1646. }
  1647. #ifdef __GNUC__
  1648. #pragma GCC diagnostic pop
  1649. #endif // __GNUC__
  1650. // -------------------------------------------------------------------
  1651. // -------------------------------------------------------------------
  1652. // @@protoc_insertion_point(namespace_scope)
  1653. } // namespace message
  1654. PROTOBUF_NAMESPACE_OPEN
  1655. template <> struct is_proto_enum< ::message::Laser_manager_status> : ::std::true_type {};
  1656. template <>
  1657. inline const EnumDescriptor* GetEnumDescriptor< ::message::Laser_manager_status>() {
  1658. return ::message::Laser_manager_status_descriptor();
  1659. }
  1660. template <> struct is_proto_enum< ::message::Laser_statu> : ::std::true_type {};
  1661. template <>
  1662. inline const EnumDescriptor* GetEnumDescriptor< ::message::Laser_statu>() {
  1663. return ::message::Laser_statu_descriptor();
  1664. }
  1665. template <> struct is_proto_enum< ::message::Locate_manager_status> : ::std::true_type {};
  1666. template <>
  1667. inline const EnumDescriptor* GetEnumDescriptor< ::message::Locate_manager_status>() {
  1668. return ::message::Locate_manager_status_descriptor();
  1669. }
  1670. PROTOBUF_NAMESPACE_CLOSE
  1671. // @@protoc_insertion_point(global_scope)
  1672. #include <google/protobuf/port_undef.inc>
  1673. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_measure_5fmessage_2eproto