1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: measure_message.proto
- #ifndef GOOGLE_PROTOBUF_INCLUDED_measure_5fmessage_2eproto
- #define GOOGLE_PROTOBUF_INCLUDED_measure_5fmessage_2eproto
- #include <limits>
- #include <string>
- #include <google/protobuf/port_def.inc>
- #if PROTOBUF_VERSION < 3013000
- #error This file was generated by a newer version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please update
- #error your headers.
- #endif
- #if 3013000 < PROTOBUF_MIN_PROTOC_VERSION
- #error This file was generated by an older version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please
- #error regenerate this file with a newer version of protoc.
- #endif
- #include <google/protobuf/port_undef.inc>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/arena.h>
- #include <google/protobuf/arenastring.h>
- #include <google/protobuf/generated_message_table_driven.h>
- #include <google/protobuf/generated_message_util.h>
- #include <google/protobuf/inlined_string_field.h>
- #include <google/protobuf/metadata_lite.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/message.h>
- #include <google/protobuf/repeated_field.h> // IWYU pragma: export
- #include <google/protobuf/extension_set.h> // IWYU pragma: export
- #include <google/protobuf/generated_enum_reflection.h>
- #include <google/protobuf/unknown_field_set.h>
- #include "message_base.pb.h"
- // @@protoc_insertion_point(includes)
- #include <google/protobuf/port_def.inc>
- #define PROTOBUF_INTERNAL_EXPORT_measure_5fmessage_2eproto
- PROTOBUF_NAMESPACE_OPEN
- namespace internal {
- class AnyMetadata;
- } // namespace internal
- PROTOBUF_NAMESPACE_CLOSE
- // Internal implementation detail -- do not use these members.
- struct TableStruct_measure_5fmessage_2eproto {
- static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
- PROTOBUF_SECTION_VARIABLE(protodesc_cold);
- static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
- PROTOBUF_SECTION_VARIABLE(protodesc_cold);
- static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
- PROTOBUF_SECTION_VARIABLE(protodesc_cold);
- static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
- static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
- static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
- };
- extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_measure_5fmessage_2eproto;
- namespace message {
- class Measure_request_msg;
- class Measure_request_msgDefaultTypeInternal;
- extern Measure_request_msgDefaultTypeInternal _Measure_request_msg_default_instance_;
- class Measure_response_msg;
- class Measure_response_msgDefaultTypeInternal;
- extern Measure_response_msgDefaultTypeInternal _Measure_response_msg_default_instance_;
- class Measure_status_msg;
- class Measure_status_msgDefaultTypeInternal;
- extern Measure_status_msgDefaultTypeInternal _Measure_status_msg_default_instance_;
- } // namespace message
- PROTOBUF_NAMESPACE_OPEN
- template<> ::message::Measure_request_msg* Arena::CreateMaybeMessage<::message::Measure_request_msg>(Arena*);
- template<> ::message::Measure_response_msg* Arena::CreateMaybeMessage<::message::Measure_response_msg>(Arena*);
- template<> ::message::Measure_status_msg* Arena::CreateMaybeMessage<::message::Measure_status_msg>(Arena*);
- PROTOBUF_NAMESPACE_CLOSE
- namespace message {
- enum Laser_manager_status : int {
- LASER_MANAGER_UNKNOW = 0,
- LASER_MANAGER_READY = 1,
- LASER_MANAGER_ISSUED_TASK = 2,
- LASER_MANAGER_WAIT_REPLY = 3,
- LASER_MANAGER_FAULT = 4
- };
- bool Laser_manager_status_IsValid(int value);
- constexpr Laser_manager_status Laser_manager_status_MIN = LASER_MANAGER_UNKNOW;
- constexpr Laser_manager_status Laser_manager_status_MAX = LASER_MANAGER_FAULT;
- constexpr int Laser_manager_status_ARRAYSIZE = Laser_manager_status_MAX + 1;
- const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Laser_manager_status_descriptor();
- template<typename T>
- inline const std::string& Laser_manager_status_Name(T enum_t_value) {
- static_assert(::std::is_same<T, Laser_manager_status>::value ||
- ::std::is_integral<T>::value,
- "Incorrect type passed to function Laser_manager_status_Name.");
- return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
- Laser_manager_status_descriptor(), enum_t_value);
- }
- inline bool Laser_manager_status_Parse(
- ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Laser_manager_status* value) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Laser_manager_status>(
- Laser_manager_status_descriptor(), name, value);
- }
- enum Laser_statu : int {
- LASER_DISCONNECT = 0,
- LASER_READY = 1,
- LASER_BUSY = 2,
- LASER_FAULT = 3
- };
- bool Laser_statu_IsValid(int value);
- constexpr Laser_statu Laser_statu_MIN = LASER_DISCONNECT;
- constexpr Laser_statu Laser_statu_MAX = LASER_FAULT;
- constexpr int Laser_statu_ARRAYSIZE = Laser_statu_MAX + 1;
- const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Laser_statu_descriptor();
- template<typename T>
- inline const std::string& Laser_statu_Name(T enum_t_value) {
- static_assert(::std::is_same<T, Laser_statu>::value ||
- ::std::is_integral<T>::value,
- "Incorrect type passed to function Laser_statu_Name.");
- return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
- Laser_statu_descriptor(), enum_t_value);
- }
- inline bool Laser_statu_Parse(
- ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Laser_statu* value) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Laser_statu>(
- Laser_statu_descriptor(), name, value);
- }
- enum Locate_manager_status : int {
- LOCATE_MANAGER_UNKNOW = 0,
- LOCATE_MANAGER_READY = 1,
- LOCATE_MANAGER_SIFT = 2,
- LOCATE_MANAGER_CAR = 3,
- LOCATE_MANAGER_WHEEL = 4,
- LOCATE_MANAGER_FAULT = 5
- };
- bool Locate_manager_status_IsValid(int value);
- constexpr Locate_manager_status Locate_manager_status_MIN = LOCATE_MANAGER_UNKNOW;
- constexpr Locate_manager_status Locate_manager_status_MAX = LOCATE_MANAGER_FAULT;
- constexpr int Locate_manager_status_ARRAYSIZE = Locate_manager_status_MAX + 1;
- const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Locate_manager_status_descriptor();
- template<typename T>
- inline const std::string& Locate_manager_status_Name(T enum_t_value) {
- static_assert(::std::is_same<T, Locate_manager_status>::value ||
- ::std::is_integral<T>::value,
- "Incorrect type passed to function Locate_manager_status_Name.");
- return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
- Locate_manager_status_descriptor(), enum_t_value);
- }
- inline bool Locate_manager_status_Parse(
- ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Locate_manager_status* value) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Locate_manager_status>(
- Locate_manager_status_descriptor(), name, value);
- }
- // ===================================================================
- class Measure_status_msg PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:message.Measure_status_msg) */ {
- public:
- inline Measure_status_msg() : Measure_status_msg(nullptr) {}
- virtual ~Measure_status_msg();
- Measure_status_msg(const Measure_status_msg& from);
- Measure_status_msg(Measure_status_msg&& from) noexcept
- : Measure_status_msg() {
- *this = ::std::move(from);
- }
- inline Measure_status_msg& operator=(const Measure_status_msg& from) {
- CopyFrom(from);
- return *this;
- }
- inline Measure_status_msg& operator=(Measure_status_msg&& from) noexcept {
- if (GetArena() == from.GetArena()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
- }
- inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const Measure_status_msg& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Measure_status_msg* internal_default_instance() {
- return reinterpret_cast<const Measure_status_msg*>(
- &_Measure_status_msg_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 0;
- friend void swap(Measure_status_msg& a, Measure_status_msg& b) {
- a.Swap(&b);
- }
- inline void Swap(Measure_status_msg* other) {
- if (other == this) return;
- if (GetArena() == other->GetArena()) {
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(Measure_status_msg* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArena() == other->GetArena());
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- inline Measure_status_msg* New() const final {
- return CreateMaybeMessage<Measure_status_msg>(nullptr);
- }
- Measure_status_msg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<Measure_status_msg>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const Measure_status_msg& from);
- void MergeFrom(const Measure_status_msg& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(Measure_status_msg* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "message.Measure_status_msg";
- }
- protected:
- explicit Measure_status_msg(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- public:
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_measure_5fmessage_2eproto);
- return ::descriptor_table_measure_5fmessage_2eproto.file_level_metadata[kIndexInFileMessages];
- }
- public:
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kLaserStatuVectorFieldNumber = 4,
- kBaseInfoFieldNumber = 1,
- kLocateInformationRealtimeFieldNumber = 6,
- kErrorManagerFieldNumber = 7,
- kTerminalIdFieldNumber = 2,
- kLaserManagerStatusFieldNumber = 3,
- kLocateManagerStatusFieldNumber = 5,
- };
- // repeated .message.Laser_statu laser_statu_vector = 4;
- int laser_statu_vector_size() const;
- private:
- int _internal_laser_statu_vector_size() const;
- public:
- void clear_laser_statu_vector();
- private:
- ::message::Laser_statu _internal_laser_statu_vector(int index) const;
- void _internal_add_laser_statu_vector(::message::Laser_statu value);
- ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* _internal_mutable_laser_statu_vector();
- public:
- ::message::Laser_statu laser_statu_vector(int index) const;
- void set_laser_statu_vector(int index, ::message::Laser_statu value);
- void add_laser_statu_vector(::message::Laser_statu value);
- const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>& laser_statu_vector() const;
- ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* mutable_laser_statu_vector();
- // required .message.Base_info base_info = 1;
- bool has_base_info() const;
- private:
- bool _internal_has_base_info() const;
- public:
- void clear_base_info();
- const ::message::Base_info& base_info() const;
- ::message::Base_info* release_base_info();
- ::message::Base_info* mutable_base_info();
- void set_allocated_base_info(::message::Base_info* base_info);
- private:
- const ::message::Base_info& _internal_base_info() const;
- ::message::Base_info* _internal_mutable_base_info();
- public:
- void unsafe_arena_set_allocated_base_info(
- ::message::Base_info* base_info);
- ::message::Base_info* unsafe_arena_release_base_info();
- // optional .message.Locate_information locate_information_realtime = 6;
- bool has_locate_information_realtime() const;
- private:
- bool _internal_has_locate_information_realtime() const;
- public:
- void clear_locate_information_realtime();
- const ::message::Locate_information& locate_information_realtime() const;
- ::message::Locate_information* release_locate_information_realtime();
- ::message::Locate_information* mutable_locate_information_realtime();
- void set_allocated_locate_information_realtime(::message::Locate_information* locate_information_realtime);
- private:
- const ::message::Locate_information& _internal_locate_information_realtime() const;
- ::message::Locate_information* _internal_mutable_locate_information_realtime();
- public:
- void unsafe_arena_set_allocated_locate_information_realtime(
- ::message::Locate_information* locate_information_realtime);
- ::message::Locate_information* unsafe_arena_release_locate_information_realtime();
- // required .message.Error_manager error_manager = 7;
- bool has_error_manager() const;
- private:
- bool _internal_has_error_manager() const;
- public:
- void clear_error_manager();
- const ::message::Error_manager& error_manager() const;
- ::message::Error_manager* release_error_manager();
- ::message::Error_manager* mutable_error_manager();
- void set_allocated_error_manager(::message::Error_manager* error_manager);
- private:
- const ::message::Error_manager& _internal_error_manager() const;
- ::message::Error_manager* _internal_mutable_error_manager();
- public:
- void unsafe_arena_set_allocated_error_manager(
- ::message::Error_manager* error_manager);
- ::message::Error_manager* unsafe_arena_release_error_manager();
- // required int32 terminal_id = 2;
- bool has_terminal_id() const;
- private:
- bool _internal_has_terminal_id() const;
- public:
- void clear_terminal_id();
- ::PROTOBUF_NAMESPACE_ID::int32 terminal_id() const;
- void set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value);
- private:
- ::PROTOBUF_NAMESPACE_ID::int32 _internal_terminal_id() const;
- void _internal_set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value);
- public:
- // required .message.Laser_manager_status laser_manager_status = 3;
- bool has_laser_manager_status() const;
- private:
- bool _internal_has_laser_manager_status() const;
- public:
- void clear_laser_manager_status();
- ::message::Laser_manager_status laser_manager_status() const;
- void set_laser_manager_status(::message::Laser_manager_status value);
- private:
- ::message::Laser_manager_status _internal_laser_manager_status() const;
- void _internal_set_laser_manager_status(::message::Laser_manager_status value);
- public:
- // required .message.Locate_manager_status locate_manager_status = 5;
- bool has_locate_manager_status() const;
- private:
- bool _internal_has_locate_manager_status() const;
- public:
- void clear_locate_manager_status();
- ::message::Locate_manager_status locate_manager_status() const;
- void set_locate_manager_status(::message::Locate_manager_status value);
- private:
- ::message::Locate_manager_status _internal_locate_manager_status() const;
- void _internal_set_locate_manager_status(::message::Locate_manager_status value);
- public:
- // @@protoc_insertion_point(class_scope:message.Measure_status_msg)
- private:
- class _Internal;
- // helper for ByteSizeLong()
- size_t RequiredFieldsByteSizeFallback() const;
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- ::PROTOBUF_NAMESPACE_ID::RepeatedField<int> laser_statu_vector_;
- ::message::Base_info* base_info_;
- ::message::Locate_information* locate_information_realtime_;
- ::message::Error_manager* error_manager_;
- ::PROTOBUF_NAMESPACE_ID::int32 terminal_id_;
- int laser_manager_status_;
- int locate_manager_status_;
- friend struct ::TableStruct_measure_5fmessage_2eproto;
- };
- // -------------------------------------------------------------------
- class Measure_request_msg PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:message.Measure_request_msg) */ {
- public:
- inline Measure_request_msg() : Measure_request_msg(nullptr) {}
- virtual ~Measure_request_msg();
- Measure_request_msg(const Measure_request_msg& from);
- Measure_request_msg(Measure_request_msg&& from) noexcept
- : Measure_request_msg() {
- *this = ::std::move(from);
- }
- inline Measure_request_msg& operator=(const Measure_request_msg& from) {
- CopyFrom(from);
- return *this;
- }
- inline Measure_request_msg& operator=(Measure_request_msg&& from) noexcept {
- if (GetArena() == from.GetArena()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
- }
- inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const Measure_request_msg& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Measure_request_msg* internal_default_instance() {
- return reinterpret_cast<const Measure_request_msg*>(
- &_Measure_request_msg_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 1;
- friend void swap(Measure_request_msg& a, Measure_request_msg& b) {
- a.Swap(&b);
- }
- inline void Swap(Measure_request_msg* other) {
- if (other == this) return;
- if (GetArena() == other->GetArena()) {
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(Measure_request_msg* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArena() == other->GetArena());
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- inline Measure_request_msg* New() const final {
- return CreateMaybeMessage<Measure_request_msg>(nullptr);
- }
- Measure_request_msg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<Measure_request_msg>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const Measure_request_msg& from);
- void MergeFrom(const Measure_request_msg& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(Measure_request_msg* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "message.Measure_request_msg";
- }
- protected:
- explicit Measure_request_msg(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- public:
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_measure_5fmessage_2eproto);
- return ::descriptor_table_measure_5fmessage_2eproto.file_level_metadata[kIndexInFileMessages];
- }
- public:
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kCommandKeyFieldNumber = 2,
- kBaseInfoFieldNumber = 1,
- kTerminalIdFieldNumber = 3,
- };
- // required string command_key = 2;
- bool has_command_key() const;
- private:
- bool _internal_has_command_key() const;
- public:
- void clear_command_key();
- const std::string& command_key() const;
- void set_command_key(const std::string& value);
- void set_command_key(std::string&& value);
- void set_command_key(const char* value);
- void set_command_key(const char* value, size_t size);
- std::string* mutable_command_key();
- std::string* release_command_key();
- void set_allocated_command_key(std::string* command_key);
- private:
- const std::string& _internal_command_key() const;
- void _internal_set_command_key(const std::string& value);
- std::string* _internal_mutable_command_key();
- public:
- // required .message.Base_info base_info = 1;
- bool has_base_info() const;
- private:
- bool _internal_has_base_info() const;
- public:
- void clear_base_info();
- const ::message::Base_info& base_info() const;
- ::message::Base_info* release_base_info();
- ::message::Base_info* mutable_base_info();
- void set_allocated_base_info(::message::Base_info* base_info);
- private:
- const ::message::Base_info& _internal_base_info() const;
- ::message::Base_info* _internal_mutable_base_info();
- public:
- void unsafe_arena_set_allocated_base_info(
- ::message::Base_info* base_info);
- ::message::Base_info* unsafe_arena_release_base_info();
- // required int32 terminal_id = 3;
- bool has_terminal_id() const;
- private:
- bool _internal_has_terminal_id() const;
- public:
- void clear_terminal_id();
- ::PROTOBUF_NAMESPACE_ID::int32 terminal_id() const;
- void set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value);
- private:
- ::PROTOBUF_NAMESPACE_ID::int32 _internal_terminal_id() const;
- void _internal_set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value);
- public:
- // @@protoc_insertion_point(class_scope:message.Measure_request_msg)
- private:
- class _Internal;
- // helper for ByteSizeLong()
- size_t RequiredFieldsByteSizeFallback() const;
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr command_key_;
- ::message::Base_info* base_info_;
- ::PROTOBUF_NAMESPACE_ID::int32 terminal_id_;
- friend struct ::TableStruct_measure_5fmessage_2eproto;
- };
- // -------------------------------------------------------------------
- class Measure_response_msg PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:message.Measure_response_msg) */ {
- public:
- inline Measure_response_msg() : Measure_response_msg(nullptr) {}
- virtual ~Measure_response_msg();
- Measure_response_msg(const Measure_response_msg& from);
- Measure_response_msg(Measure_response_msg&& from) noexcept
- : Measure_response_msg() {
- *this = ::std::move(from);
- }
- inline Measure_response_msg& operator=(const Measure_response_msg& from) {
- CopyFrom(from);
- return *this;
- }
- inline Measure_response_msg& operator=(Measure_response_msg&& from) noexcept {
- if (GetArena() == from.GetArena()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
- }
- inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const Measure_response_msg& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Measure_response_msg* internal_default_instance() {
- return reinterpret_cast<const Measure_response_msg*>(
- &_Measure_response_msg_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 2;
- friend void swap(Measure_response_msg& a, Measure_response_msg& b) {
- a.Swap(&b);
- }
- inline void Swap(Measure_response_msg* other) {
- if (other == this) return;
- if (GetArena() == other->GetArena()) {
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(Measure_response_msg* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArena() == other->GetArena());
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- inline Measure_response_msg* New() const final {
- return CreateMaybeMessage<Measure_response_msg>(nullptr);
- }
- Measure_response_msg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<Measure_response_msg>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const Measure_response_msg& from);
- void MergeFrom(const Measure_response_msg& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(Measure_response_msg* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "message.Measure_response_msg";
- }
- protected:
- explicit Measure_response_msg(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- public:
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_measure_5fmessage_2eproto);
- return ::descriptor_table_measure_5fmessage_2eproto.file_level_metadata[kIndexInFileMessages];
- }
- public:
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kCommandKeyFieldNumber = 2,
- kBaseInfoFieldNumber = 1,
- kLocateInformationFieldNumber = 4,
- kErrorManagerFieldNumber = 5,
- kTerminalIdFieldNumber = 3,
- };
- // required string command_key = 2;
- bool has_command_key() const;
- private:
- bool _internal_has_command_key() const;
- public:
- void clear_command_key();
- const std::string& command_key() const;
- void set_command_key(const std::string& value);
- void set_command_key(std::string&& value);
- void set_command_key(const char* value);
- void set_command_key(const char* value, size_t size);
- std::string* mutable_command_key();
- std::string* release_command_key();
- void set_allocated_command_key(std::string* command_key);
- private:
- const std::string& _internal_command_key() const;
- void _internal_set_command_key(const std::string& value);
- std::string* _internal_mutable_command_key();
- public:
- // required .message.Base_info base_info = 1;
- bool has_base_info() const;
- private:
- bool _internal_has_base_info() const;
- public:
- void clear_base_info();
- const ::message::Base_info& base_info() const;
- ::message::Base_info* release_base_info();
- ::message::Base_info* mutable_base_info();
- void set_allocated_base_info(::message::Base_info* base_info);
- private:
- const ::message::Base_info& _internal_base_info() const;
- ::message::Base_info* _internal_mutable_base_info();
- public:
- void unsafe_arena_set_allocated_base_info(
- ::message::Base_info* base_info);
- ::message::Base_info* unsafe_arena_release_base_info();
- // optional .message.Locate_information locate_information = 4;
- bool has_locate_information() const;
- private:
- bool _internal_has_locate_information() const;
- public:
- void clear_locate_information();
- const ::message::Locate_information& locate_information() const;
- ::message::Locate_information* release_locate_information();
- ::message::Locate_information* mutable_locate_information();
- void set_allocated_locate_information(::message::Locate_information* locate_information);
- private:
- const ::message::Locate_information& _internal_locate_information() const;
- ::message::Locate_information* _internal_mutable_locate_information();
- public:
- void unsafe_arena_set_allocated_locate_information(
- ::message::Locate_information* locate_information);
- ::message::Locate_information* unsafe_arena_release_locate_information();
- // required .message.Error_manager error_manager = 5;
- bool has_error_manager() const;
- private:
- bool _internal_has_error_manager() const;
- public:
- void clear_error_manager();
- const ::message::Error_manager& error_manager() const;
- ::message::Error_manager* release_error_manager();
- ::message::Error_manager* mutable_error_manager();
- void set_allocated_error_manager(::message::Error_manager* error_manager);
- private:
- const ::message::Error_manager& _internal_error_manager() const;
- ::message::Error_manager* _internal_mutable_error_manager();
- public:
- void unsafe_arena_set_allocated_error_manager(
- ::message::Error_manager* error_manager);
- ::message::Error_manager* unsafe_arena_release_error_manager();
- // required int32 terminal_id = 3;
- bool has_terminal_id() const;
- private:
- bool _internal_has_terminal_id() const;
- public:
- void clear_terminal_id();
- ::PROTOBUF_NAMESPACE_ID::int32 terminal_id() const;
- void set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value);
- private:
- ::PROTOBUF_NAMESPACE_ID::int32 _internal_terminal_id() const;
- void _internal_set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value);
- public:
- // @@protoc_insertion_point(class_scope:message.Measure_response_msg)
- private:
- class _Internal;
- // helper for ByteSizeLong()
- size_t RequiredFieldsByteSizeFallback() const;
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr command_key_;
- ::message::Base_info* base_info_;
- ::message::Locate_information* locate_information_;
- ::message::Error_manager* error_manager_;
- ::PROTOBUF_NAMESPACE_ID::int32 terminal_id_;
- friend struct ::TableStruct_measure_5fmessage_2eproto;
- };
- // ===================================================================
- // ===================================================================
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
- #endif // __GNUC__
- // Measure_status_msg
- // required .message.Base_info base_info = 1;
- inline bool Measure_status_msg::_internal_has_base_info() const {
- bool value = (_has_bits_[0] & 0x00000001u) != 0;
- PROTOBUF_ASSUME(!value || base_info_ != nullptr);
- return value;
- }
- inline bool Measure_status_msg::has_base_info() const {
- return _internal_has_base_info();
- }
- inline const ::message::Base_info& Measure_status_msg::_internal_base_info() const {
- const ::message::Base_info* p = base_info_;
- return p != nullptr ? *p : *reinterpret_cast<const ::message::Base_info*>(
- &::message::_Base_info_default_instance_);
- }
- inline const ::message::Base_info& Measure_status_msg::base_info() const {
- // @@protoc_insertion_point(field_get:message.Measure_status_msg.base_info)
- return _internal_base_info();
- }
- inline void Measure_status_msg::unsafe_arena_set_allocated_base_info(
- ::message::Base_info* base_info) {
- if (GetArena() == nullptr) {
- delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_info_);
- }
- base_info_ = base_info;
- if (base_info) {
- _has_bits_[0] |= 0x00000001u;
- } else {
- _has_bits_[0] &= ~0x00000001u;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:message.Measure_status_msg.base_info)
- }
- inline ::message::Base_info* Measure_status_msg::release_base_info() {
- _has_bits_[0] &= ~0x00000001u;
- ::message::Base_info* temp = base_info_;
- base_info_ = nullptr;
- if (GetArena() != nullptr) {
- temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
- }
- return temp;
- }
- inline ::message::Base_info* Measure_status_msg::unsafe_arena_release_base_info() {
- // @@protoc_insertion_point(field_release:message.Measure_status_msg.base_info)
- _has_bits_[0] &= ~0x00000001u;
- ::message::Base_info* temp = base_info_;
- base_info_ = nullptr;
- return temp;
- }
- inline ::message::Base_info* Measure_status_msg::_internal_mutable_base_info() {
- _has_bits_[0] |= 0x00000001u;
- if (base_info_ == nullptr) {
- auto* p = CreateMaybeMessage<::message::Base_info>(GetArena());
- base_info_ = p;
- }
- return base_info_;
- }
- inline ::message::Base_info* Measure_status_msg::mutable_base_info() {
- // @@protoc_insertion_point(field_mutable:message.Measure_status_msg.base_info)
- return _internal_mutable_base_info();
- }
- inline void Measure_status_msg::set_allocated_base_info(::message::Base_info* base_info) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
- if (message_arena == nullptr) {
- delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_info_);
- }
- if (base_info) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_info)->GetArena();
- if (message_arena != submessage_arena) {
- base_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, base_info, submessage_arena);
- }
- _has_bits_[0] |= 0x00000001u;
- } else {
- _has_bits_[0] &= ~0x00000001u;
- }
- base_info_ = base_info;
- // @@protoc_insertion_point(field_set_allocated:message.Measure_status_msg.base_info)
- }
- // required int32 terminal_id = 2;
- inline bool Measure_status_msg::_internal_has_terminal_id() const {
- bool value = (_has_bits_[0] & 0x00000008u) != 0;
- return value;
- }
- inline bool Measure_status_msg::has_terminal_id() const {
- return _internal_has_terminal_id();
- }
- inline void Measure_status_msg::clear_terminal_id() {
- terminal_id_ = 0;
- _has_bits_[0] &= ~0x00000008u;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 Measure_status_msg::_internal_terminal_id() const {
- return terminal_id_;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 Measure_status_msg::terminal_id() const {
- // @@protoc_insertion_point(field_get:message.Measure_status_msg.terminal_id)
- return _internal_terminal_id();
- }
- inline void Measure_status_msg::_internal_set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
- _has_bits_[0] |= 0x00000008u;
- terminal_id_ = value;
- }
- inline void Measure_status_msg::set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
- _internal_set_terminal_id(value);
- // @@protoc_insertion_point(field_set:message.Measure_status_msg.terminal_id)
- }
- // required .message.Laser_manager_status laser_manager_status = 3;
- inline bool Measure_status_msg::_internal_has_laser_manager_status() const {
- bool value = (_has_bits_[0] & 0x00000010u) != 0;
- return value;
- }
- inline bool Measure_status_msg::has_laser_manager_status() const {
- return _internal_has_laser_manager_status();
- }
- inline void Measure_status_msg::clear_laser_manager_status() {
- laser_manager_status_ = 0;
- _has_bits_[0] &= ~0x00000010u;
- }
- inline ::message::Laser_manager_status Measure_status_msg::_internal_laser_manager_status() const {
- return static_cast< ::message::Laser_manager_status >(laser_manager_status_);
- }
- inline ::message::Laser_manager_status Measure_status_msg::laser_manager_status() const {
- // @@protoc_insertion_point(field_get:message.Measure_status_msg.laser_manager_status)
- return _internal_laser_manager_status();
- }
- inline void Measure_status_msg::_internal_set_laser_manager_status(::message::Laser_manager_status value) {
- assert(::message::Laser_manager_status_IsValid(value));
- _has_bits_[0] |= 0x00000010u;
- laser_manager_status_ = value;
- }
- inline void Measure_status_msg::set_laser_manager_status(::message::Laser_manager_status value) {
- _internal_set_laser_manager_status(value);
- // @@protoc_insertion_point(field_set:message.Measure_status_msg.laser_manager_status)
- }
- // repeated .message.Laser_statu laser_statu_vector = 4;
- inline int Measure_status_msg::_internal_laser_statu_vector_size() const {
- return laser_statu_vector_.size();
- }
- inline int Measure_status_msg::laser_statu_vector_size() const {
- return _internal_laser_statu_vector_size();
- }
- inline void Measure_status_msg::clear_laser_statu_vector() {
- laser_statu_vector_.Clear();
- }
- inline ::message::Laser_statu Measure_status_msg::_internal_laser_statu_vector(int index) const {
- return static_cast< ::message::Laser_statu >(laser_statu_vector_.Get(index));
- }
- inline ::message::Laser_statu Measure_status_msg::laser_statu_vector(int index) const {
- // @@protoc_insertion_point(field_get:message.Measure_status_msg.laser_statu_vector)
- return _internal_laser_statu_vector(index);
- }
- inline void Measure_status_msg::set_laser_statu_vector(int index, ::message::Laser_statu value) {
- assert(::message::Laser_statu_IsValid(value));
- laser_statu_vector_.Set(index, value);
- // @@protoc_insertion_point(field_set:message.Measure_status_msg.laser_statu_vector)
- }
- inline void Measure_status_msg::_internal_add_laser_statu_vector(::message::Laser_statu value) {
- assert(::message::Laser_statu_IsValid(value));
- laser_statu_vector_.Add(value);
- }
- inline void Measure_status_msg::add_laser_statu_vector(::message::Laser_statu value) {
- // @@protoc_insertion_point(field_add:message.Measure_status_msg.laser_statu_vector)
- _internal_add_laser_statu_vector(value);
- }
- inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>&
- Measure_status_msg::laser_statu_vector() const {
- // @@protoc_insertion_point(field_list:message.Measure_status_msg.laser_statu_vector)
- return laser_statu_vector_;
- }
- inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>*
- Measure_status_msg::_internal_mutable_laser_statu_vector() {
- return &laser_statu_vector_;
- }
- inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>*
- Measure_status_msg::mutable_laser_statu_vector() {
- // @@protoc_insertion_point(field_mutable_list:message.Measure_status_msg.laser_statu_vector)
- return _internal_mutable_laser_statu_vector();
- }
- // required .message.Locate_manager_status locate_manager_status = 5;
- inline bool Measure_status_msg::_internal_has_locate_manager_status() const {
- bool value = (_has_bits_[0] & 0x00000020u) != 0;
- return value;
- }
- inline bool Measure_status_msg::has_locate_manager_status() const {
- return _internal_has_locate_manager_status();
- }
- inline void Measure_status_msg::clear_locate_manager_status() {
- locate_manager_status_ = 0;
- _has_bits_[0] &= ~0x00000020u;
- }
- inline ::message::Locate_manager_status Measure_status_msg::_internal_locate_manager_status() const {
- return static_cast< ::message::Locate_manager_status >(locate_manager_status_);
- }
- inline ::message::Locate_manager_status Measure_status_msg::locate_manager_status() const {
- // @@protoc_insertion_point(field_get:message.Measure_status_msg.locate_manager_status)
- return _internal_locate_manager_status();
- }
- inline void Measure_status_msg::_internal_set_locate_manager_status(::message::Locate_manager_status value) {
- assert(::message::Locate_manager_status_IsValid(value));
- _has_bits_[0] |= 0x00000020u;
- locate_manager_status_ = value;
- }
- inline void Measure_status_msg::set_locate_manager_status(::message::Locate_manager_status value) {
- _internal_set_locate_manager_status(value);
- // @@protoc_insertion_point(field_set:message.Measure_status_msg.locate_manager_status)
- }
- // optional .message.Locate_information locate_information_realtime = 6;
- inline bool Measure_status_msg::_internal_has_locate_information_realtime() const {
- bool value = (_has_bits_[0] & 0x00000002u) != 0;
- PROTOBUF_ASSUME(!value || locate_information_realtime_ != nullptr);
- return value;
- }
- inline bool Measure_status_msg::has_locate_information_realtime() const {
- return _internal_has_locate_information_realtime();
- }
- inline const ::message::Locate_information& Measure_status_msg::_internal_locate_information_realtime() const {
- const ::message::Locate_information* p = locate_information_realtime_;
- return p != nullptr ? *p : *reinterpret_cast<const ::message::Locate_information*>(
- &::message::_Locate_information_default_instance_);
- }
- inline const ::message::Locate_information& Measure_status_msg::locate_information_realtime() const {
- // @@protoc_insertion_point(field_get:message.Measure_status_msg.locate_information_realtime)
- return _internal_locate_information_realtime();
- }
- inline void Measure_status_msg::unsafe_arena_set_allocated_locate_information_realtime(
- ::message::Locate_information* locate_information_realtime) {
- if (GetArena() == nullptr) {
- delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(locate_information_realtime_);
- }
- locate_information_realtime_ = locate_information_realtime;
- if (locate_information_realtime) {
- _has_bits_[0] |= 0x00000002u;
- } else {
- _has_bits_[0] &= ~0x00000002u;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:message.Measure_status_msg.locate_information_realtime)
- }
- inline ::message::Locate_information* Measure_status_msg::release_locate_information_realtime() {
- _has_bits_[0] &= ~0x00000002u;
- ::message::Locate_information* temp = locate_information_realtime_;
- locate_information_realtime_ = nullptr;
- if (GetArena() != nullptr) {
- temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
- }
- return temp;
- }
- inline ::message::Locate_information* Measure_status_msg::unsafe_arena_release_locate_information_realtime() {
- // @@protoc_insertion_point(field_release:message.Measure_status_msg.locate_information_realtime)
- _has_bits_[0] &= ~0x00000002u;
- ::message::Locate_information* temp = locate_information_realtime_;
- locate_information_realtime_ = nullptr;
- return temp;
- }
- inline ::message::Locate_information* Measure_status_msg::_internal_mutable_locate_information_realtime() {
- _has_bits_[0] |= 0x00000002u;
- if (locate_information_realtime_ == nullptr) {
- auto* p = CreateMaybeMessage<::message::Locate_information>(GetArena());
- locate_information_realtime_ = p;
- }
- return locate_information_realtime_;
- }
- inline ::message::Locate_information* Measure_status_msg::mutable_locate_information_realtime() {
- // @@protoc_insertion_point(field_mutable:message.Measure_status_msg.locate_information_realtime)
- return _internal_mutable_locate_information_realtime();
- }
- inline void Measure_status_msg::set_allocated_locate_information_realtime(::message::Locate_information* locate_information_realtime) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
- if (message_arena == nullptr) {
- delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(locate_information_realtime_);
- }
- if (locate_information_realtime) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(locate_information_realtime)->GetArena();
- if (message_arena != submessage_arena) {
- locate_information_realtime = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, locate_information_realtime, submessage_arena);
- }
- _has_bits_[0] |= 0x00000002u;
- } else {
- _has_bits_[0] &= ~0x00000002u;
- }
- locate_information_realtime_ = locate_information_realtime;
- // @@protoc_insertion_point(field_set_allocated:message.Measure_status_msg.locate_information_realtime)
- }
- // required .message.Error_manager error_manager = 7;
- inline bool Measure_status_msg::_internal_has_error_manager() const {
- bool value = (_has_bits_[0] & 0x00000004u) != 0;
- PROTOBUF_ASSUME(!value || error_manager_ != nullptr);
- return value;
- }
- inline bool Measure_status_msg::has_error_manager() const {
- return _internal_has_error_manager();
- }
- inline const ::message::Error_manager& Measure_status_msg::_internal_error_manager() const {
- const ::message::Error_manager* p = error_manager_;
- return p != nullptr ? *p : *reinterpret_cast<const ::message::Error_manager*>(
- &::message::_Error_manager_default_instance_);
- }
- inline const ::message::Error_manager& Measure_status_msg::error_manager() const {
- // @@protoc_insertion_point(field_get:message.Measure_status_msg.error_manager)
- return _internal_error_manager();
- }
- inline void Measure_status_msg::unsafe_arena_set_allocated_error_manager(
- ::message::Error_manager* error_manager) {
- if (GetArena() == nullptr) {
- delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(error_manager_);
- }
- error_manager_ = error_manager;
- if (error_manager) {
- _has_bits_[0] |= 0x00000004u;
- } else {
- _has_bits_[0] &= ~0x00000004u;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:message.Measure_status_msg.error_manager)
- }
- inline ::message::Error_manager* Measure_status_msg::release_error_manager() {
- _has_bits_[0] &= ~0x00000004u;
- ::message::Error_manager* temp = error_manager_;
- error_manager_ = nullptr;
- if (GetArena() != nullptr) {
- temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
- }
- return temp;
- }
- inline ::message::Error_manager* Measure_status_msg::unsafe_arena_release_error_manager() {
- // @@protoc_insertion_point(field_release:message.Measure_status_msg.error_manager)
- _has_bits_[0] &= ~0x00000004u;
- ::message::Error_manager* temp = error_manager_;
- error_manager_ = nullptr;
- return temp;
- }
- inline ::message::Error_manager* Measure_status_msg::_internal_mutable_error_manager() {
- _has_bits_[0] |= 0x00000004u;
- if (error_manager_ == nullptr) {
- auto* p = CreateMaybeMessage<::message::Error_manager>(GetArena());
- error_manager_ = p;
- }
- return error_manager_;
- }
- inline ::message::Error_manager* Measure_status_msg::mutable_error_manager() {
- // @@protoc_insertion_point(field_mutable:message.Measure_status_msg.error_manager)
- return _internal_mutable_error_manager();
- }
- inline void Measure_status_msg::set_allocated_error_manager(::message::Error_manager* error_manager) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
- if (message_arena == nullptr) {
- delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(error_manager_);
- }
- if (error_manager) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(error_manager)->GetArena();
- if (message_arena != submessage_arena) {
- error_manager = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, error_manager, submessage_arena);
- }
- _has_bits_[0] |= 0x00000004u;
- } else {
- _has_bits_[0] &= ~0x00000004u;
- }
- error_manager_ = error_manager;
- // @@protoc_insertion_point(field_set_allocated:message.Measure_status_msg.error_manager)
- }
- // -------------------------------------------------------------------
- // Measure_request_msg
- // required .message.Base_info base_info = 1;
- inline bool Measure_request_msg::_internal_has_base_info() const {
- bool value = (_has_bits_[0] & 0x00000002u) != 0;
- PROTOBUF_ASSUME(!value || base_info_ != nullptr);
- return value;
- }
- inline bool Measure_request_msg::has_base_info() const {
- return _internal_has_base_info();
- }
- inline const ::message::Base_info& Measure_request_msg::_internal_base_info() const {
- const ::message::Base_info* p = base_info_;
- return p != nullptr ? *p : *reinterpret_cast<const ::message::Base_info*>(
- &::message::_Base_info_default_instance_);
- }
- inline const ::message::Base_info& Measure_request_msg::base_info() const {
- // @@protoc_insertion_point(field_get:message.Measure_request_msg.base_info)
- return _internal_base_info();
- }
- inline void Measure_request_msg::unsafe_arena_set_allocated_base_info(
- ::message::Base_info* base_info) {
- if (GetArena() == nullptr) {
- delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_info_);
- }
- base_info_ = base_info;
- if (base_info) {
- _has_bits_[0] |= 0x00000002u;
- } else {
- _has_bits_[0] &= ~0x00000002u;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:message.Measure_request_msg.base_info)
- }
- inline ::message::Base_info* Measure_request_msg::release_base_info() {
- _has_bits_[0] &= ~0x00000002u;
- ::message::Base_info* temp = base_info_;
- base_info_ = nullptr;
- if (GetArena() != nullptr) {
- temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
- }
- return temp;
- }
- inline ::message::Base_info* Measure_request_msg::unsafe_arena_release_base_info() {
- // @@protoc_insertion_point(field_release:message.Measure_request_msg.base_info)
- _has_bits_[0] &= ~0x00000002u;
- ::message::Base_info* temp = base_info_;
- base_info_ = nullptr;
- return temp;
- }
- inline ::message::Base_info* Measure_request_msg::_internal_mutable_base_info() {
- _has_bits_[0] |= 0x00000002u;
- if (base_info_ == nullptr) {
- auto* p = CreateMaybeMessage<::message::Base_info>(GetArena());
- base_info_ = p;
- }
- return base_info_;
- }
- inline ::message::Base_info* Measure_request_msg::mutable_base_info() {
- // @@protoc_insertion_point(field_mutable:message.Measure_request_msg.base_info)
- return _internal_mutable_base_info();
- }
- inline void Measure_request_msg::set_allocated_base_info(::message::Base_info* base_info) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
- if (message_arena == nullptr) {
- delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_info_);
- }
- if (base_info) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_info)->GetArena();
- if (message_arena != submessage_arena) {
- base_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, base_info, submessage_arena);
- }
- _has_bits_[0] |= 0x00000002u;
- } else {
- _has_bits_[0] &= ~0x00000002u;
- }
- base_info_ = base_info;
- // @@protoc_insertion_point(field_set_allocated:message.Measure_request_msg.base_info)
- }
- // required string command_key = 2;
- inline bool Measure_request_msg::_internal_has_command_key() const {
- bool value = (_has_bits_[0] & 0x00000001u) != 0;
- return value;
- }
- inline bool Measure_request_msg::has_command_key() const {
- return _internal_has_command_key();
- }
- inline void Measure_request_msg::clear_command_key() {
- command_key_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- _has_bits_[0] &= ~0x00000001u;
- }
- inline const std::string& Measure_request_msg::command_key() const {
- // @@protoc_insertion_point(field_get:message.Measure_request_msg.command_key)
- return _internal_command_key();
- }
- inline void Measure_request_msg::set_command_key(const std::string& value) {
- _internal_set_command_key(value);
- // @@protoc_insertion_point(field_set:message.Measure_request_msg.command_key)
- }
- inline std::string* Measure_request_msg::mutable_command_key() {
- // @@protoc_insertion_point(field_mutable:message.Measure_request_msg.command_key)
- return _internal_mutable_command_key();
- }
- inline const std::string& Measure_request_msg::_internal_command_key() const {
- return command_key_.Get();
- }
- inline void Measure_request_msg::_internal_set_command_key(const std::string& value) {
- _has_bits_[0] |= 0x00000001u;
- command_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
- }
- inline void Measure_request_msg::set_command_key(std::string&& value) {
- _has_bits_[0] |= 0x00000001u;
- command_key_.Set(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:message.Measure_request_msg.command_key)
- }
- inline void Measure_request_msg::set_command_key(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
- _has_bits_[0] |= 0x00000001u;
- command_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArena());
- // @@protoc_insertion_point(field_set_char:message.Measure_request_msg.command_key)
- }
- inline void Measure_request_msg::set_command_key(const char* value,
- size_t size) {
- _has_bits_[0] |= 0x00000001u;
- command_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:message.Measure_request_msg.command_key)
- }
- inline std::string* Measure_request_msg::_internal_mutable_command_key() {
- _has_bits_[0] |= 0x00000001u;
- return command_key_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- }
- inline std::string* Measure_request_msg::release_command_key() {
- // @@protoc_insertion_point(field_release:message.Measure_request_msg.command_key)
- if (!_internal_has_command_key()) {
- return nullptr;
- }
- _has_bits_[0] &= ~0x00000001u;
- return command_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- }
- inline void Measure_request_msg::set_allocated_command_key(std::string* command_key) {
- if (command_key != nullptr) {
- _has_bits_[0] |= 0x00000001u;
- } else {
- _has_bits_[0] &= ~0x00000001u;
- }
- command_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), command_key,
- GetArena());
- // @@protoc_insertion_point(field_set_allocated:message.Measure_request_msg.command_key)
- }
- // required int32 terminal_id = 3;
- inline bool Measure_request_msg::_internal_has_terminal_id() const {
- bool value = (_has_bits_[0] & 0x00000004u) != 0;
- return value;
- }
- inline bool Measure_request_msg::has_terminal_id() const {
- return _internal_has_terminal_id();
- }
- inline void Measure_request_msg::clear_terminal_id() {
- terminal_id_ = 0;
- _has_bits_[0] &= ~0x00000004u;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 Measure_request_msg::_internal_terminal_id() const {
- return terminal_id_;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 Measure_request_msg::terminal_id() const {
- // @@protoc_insertion_point(field_get:message.Measure_request_msg.terminal_id)
- return _internal_terminal_id();
- }
- inline void Measure_request_msg::_internal_set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
- _has_bits_[0] |= 0x00000004u;
- terminal_id_ = value;
- }
- inline void Measure_request_msg::set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
- _internal_set_terminal_id(value);
- // @@protoc_insertion_point(field_set:message.Measure_request_msg.terminal_id)
- }
- // -------------------------------------------------------------------
- // Measure_response_msg
- // required .message.Base_info base_info = 1;
- inline bool Measure_response_msg::_internal_has_base_info() const {
- bool value = (_has_bits_[0] & 0x00000002u) != 0;
- PROTOBUF_ASSUME(!value || base_info_ != nullptr);
- return value;
- }
- inline bool Measure_response_msg::has_base_info() const {
- return _internal_has_base_info();
- }
- inline const ::message::Base_info& Measure_response_msg::_internal_base_info() const {
- const ::message::Base_info* p = base_info_;
- return p != nullptr ? *p : *reinterpret_cast<const ::message::Base_info*>(
- &::message::_Base_info_default_instance_);
- }
- inline const ::message::Base_info& Measure_response_msg::base_info() const {
- // @@protoc_insertion_point(field_get:message.Measure_response_msg.base_info)
- return _internal_base_info();
- }
- inline void Measure_response_msg::unsafe_arena_set_allocated_base_info(
- ::message::Base_info* base_info) {
- if (GetArena() == nullptr) {
- delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_info_);
- }
- base_info_ = base_info;
- if (base_info) {
- _has_bits_[0] |= 0x00000002u;
- } else {
- _has_bits_[0] &= ~0x00000002u;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:message.Measure_response_msg.base_info)
- }
- inline ::message::Base_info* Measure_response_msg::release_base_info() {
- _has_bits_[0] &= ~0x00000002u;
- ::message::Base_info* temp = base_info_;
- base_info_ = nullptr;
- if (GetArena() != nullptr) {
- temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
- }
- return temp;
- }
- inline ::message::Base_info* Measure_response_msg::unsafe_arena_release_base_info() {
- // @@protoc_insertion_point(field_release:message.Measure_response_msg.base_info)
- _has_bits_[0] &= ~0x00000002u;
- ::message::Base_info* temp = base_info_;
- base_info_ = nullptr;
- return temp;
- }
- inline ::message::Base_info* Measure_response_msg::_internal_mutable_base_info() {
- _has_bits_[0] |= 0x00000002u;
- if (base_info_ == nullptr) {
- auto* p = CreateMaybeMessage<::message::Base_info>(GetArena());
- base_info_ = p;
- }
- return base_info_;
- }
- inline ::message::Base_info* Measure_response_msg::mutable_base_info() {
- // @@protoc_insertion_point(field_mutable:message.Measure_response_msg.base_info)
- return _internal_mutable_base_info();
- }
- inline void Measure_response_msg::set_allocated_base_info(::message::Base_info* base_info) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
- if (message_arena == nullptr) {
- delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_info_);
- }
- if (base_info) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(base_info)->GetArena();
- if (message_arena != submessage_arena) {
- base_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, base_info, submessage_arena);
- }
- _has_bits_[0] |= 0x00000002u;
- } else {
- _has_bits_[0] &= ~0x00000002u;
- }
- base_info_ = base_info;
- // @@protoc_insertion_point(field_set_allocated:message.Measure_response_msg.base_info)
- }
- // required string command_key = 2;
- inline bool Measure_response_msg::_internal_has_command_key() const {
- bool value = (_has_bits_[0] & 0x00000001u) != 0;
- return value;
- }
- inline bool Measure_response_msg::has_command_key() const {
- return _internal_has_command_key();
- }
- inline void Measure_response_msg::clear_command_key() {
- command_key_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- _has_bits_[0] &= ~0x00000001u;
- }
- inline const std::string& Measure_response_msg::command_key() const {
- // @@protoc_insertion_point(field_get:message.Measure_response_msg.command_key)
- return _internal_command_key();
- }
- inline void Measure_response_msg::set_command_key(const std::string& value) {
- _internal_set_command_key(value);
- // @@protoc_insertion_point(field_set:message.Measure_response_msg.command_key)
- }
- inline std::string* Measure_response_msg::mutable_command_key() {
- // @@protoc_insertion_point(field_mutable:message.Measure_response_msg.command_key)
- return _internal_mutable_command_key();
- }
- inline const std::string& Measure_response_msg::_internal_command_key() const {
- return command_key_.Get();
- }
- inline void Measure_response_msg::_internal_set_command_key(const std::string& value) {
- _has_bits_[0] |= 0x00000001u;
- command_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
- }
- inline void Measure_response_msg::set_command_key(std::string&& value) {
- _has_bits_[0] |= 0x00000001u;
- command_key_.Set(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:message.Measure_response_msg.command_key)
- }
- inline void Measure_response_msg::set_command_key(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
- _has_bits_[0] |= 0x00000001u;
- command_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArena());
- // @@protoc_insertion_point(field_set_char:message.Measure_response_msg.command_key)
- }
- inline void Measure_response_msg::set_command_key(const char* value,
- size_t size) {
- _has_bits_[0] |= 0x00000001u;
- command_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:message.Measure_response_msg.command_key)
- }
- inline std::string* Measure_response_msg::_internal_mutable_command_key() {
- _has_bits_[0] |= 0x00000001u;
- return command_key_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- }
- inline std::string* Measure_response_msg::release_command_key() {
- // @@protoc_insertion_point(field_release:message.Measure_response_msg.command_key)
- if (!_internal_has_command_key()) {
- return nullptr;
- }
- _has_bits_[0] &= ~0x00000001u;
- return command_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- }
- inline void Measure_response_msg::set_allocated_command_key(std::string* command_key) {
- if (command_key != nullptr) {
- _has_bits_[0] |= 0x00000001u;
- } else {
- _has_bits_[0] &= ~0x00000001u;
- }
- command_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), command_key,
- GetArena());
- // @@protoc_insertion_point(field_set_allocated:message.Measure_response_msg.command_key)
- }
- // required int32 terminal_id = 3;
- inline bool Measure_response_msg::_internal_has_terminal_id() const {
- bool value = (_has_bits_[0] & 0x00000010u) != 0;
- return value;
- }
- inline bool Measure_response_msg::has_terminal_id() const {
- return _internal_has_terminal_id();
- }
- inline void Measure_response_msg::clear_terminal_id() {
- terminal_id_ = 0;
- _has_bits_[0] &= ~0x00000010u;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 Measure_response_msg::_internal_terminal_id() const {
- return terminal_id_;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 Measure_response_msg::terminal_id() const {
- // @@protoc_insertion_point(field_get:message.Measure_response_msg.terminal_id)
- return _internal_terminal_id();
- }
- inline void Measure_response_msg::_internal_set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
- _has_bits_[0] |= 0x00000010u;
- terminal_id_ = value;
- }
- inline void Measure_response_msg::set_terminal_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
- _internal_set_terminal_id(value);
- // @@protoc_insertion_point(field_set:message.Measure_response_msg.terminal_id)
- }
- // optional .message.Locate_information locate_information = 4;
- inline bool Measure_response_msg::_internal_has_locate_information() const {
- bool value = (_has_bits_[0] & 0x00000004u) != 0;
- PROTOBUF_ASSUME(!value || locate_information_ != nullptr);
- return value;
- }
- inline bool Measure_response_msg::has_locate_information() const {
- return _internal_has_locate_information();
- }
- inline const ::message::Locate_information& Measure_response_msg::_internal_locate_information() const {
- const ::message::Locate_information* p = locate_information_;
- return p != nullptr ? *p : *reinterpret_cast<const ::message::Locate_information*>(
- &::message::_Locate_information_default_instance_);
- }
- inline const ::message::Locate_information& Measure_response_msg::locate_information() const {
- // @@protoc_insertion_point(field_get:message.Measure_response_msg.locate_information)
- return _internal_locate_information();
- }
- inline void Measure_response_msg::unsafe_arena_set_allocated_locate_information(
- ::message::Locate_information* locate_information) {
- if (GetArena() == nullptr) {
- delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(locate_information_);
- }
- locate_information_ = locate_information;
- if (locate_information) {
- _has_bits_[0] |= 0x00000004u;
- } else {
- _has_bits_[0] &= ~0x00000004u;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:message.Measure_response_msg.locate_information)
- }
- inline ::message::Locate_information* Measure_response_msg::release_locate_information() {
- _has_bits_[0] &= ~0x00000004u;
- ::message::Locate_information* temp = locate_information_;
- locate_information_ = nullptr;
- if (GetArena() != nullptr) {
- temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
- }
- return temp;
- }
- inline ::message::Locate_information* Measure_response_msg::unsafe_arena_release_locate_information() {
- // @@protoc_insertion_point(field_release:message.Measure_response_msg.locate_information)
- _has_bits_[0] &= ~0x00000004u;
- ::message::Locate_information* temp = locate_information_;
- locate_information_ = nullptr;
- return temp;
- }
- inline ::message::Locate_information* Measure_response_msg::_internal_mutable_locate_information() {
- _has_bits_[0] |= 0x00000004u;
- if (locate_information_ == nullptr) {
- auto* p = CreateMaybeMessage<::message::Locate_information>(GetArena());
- locate_information_ = p;
- }
- return locate_information_;
- }
- inline ::message::Locate_information* Measure_response_msg::mutable_locate_information() {
- // @@protoc_insertion_point(field_mutable:message.Measure_response_msg.locate_information)
- return _internal_mutable_locate_information();
- }
- inline void Measure_response_msg::set_allocated_locate_information(::message::Locate_information* locate_information) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
- if (message_arena == nullptr) {
- delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(locate_information_);
- }
- if (locate_information) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(locate_information)->GetArena();
- if (message_arena != submessage_arena) {
- locate_information = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, locate_information, submessage_arena);
- }
- _has_bits_[0] |= 0x00000004u;
- } else {
- _has_bits_[0] &= ~0x00000004u;
- }
- locate_information_ = locate_information;
- // @@protoc_insertion_point(field_set_allocated:message.Measure_response_msg.locate_information)
- }
- // required .message.Error_manager error_manager = 5;
- inline bool Measure_response_msg::_internal_has_error_manager() const {
- bool value = (_has_bits_[0] & 0x00000008u) != 0;
- PROTOBUF_ASSUME(!value || error_manager_ != nullptr);
- return value;
- }
- inline bool Measure_response_msg::has_error_manager() const {
- return _internal_has_error_manager();
- }
- inline const ::message::Error_manager& Measure_response_msg::_internal_error_manager() const {
- const ::message::Error_manager* p = error_manager_;
- return p != nullptr ? *p : *reinterpret_cast<const ::message::Error_manager*>(
- &::message::_Error_manager_default_instance_);
- }
- inline const ::message::Error_manager& Measure_response_msg::error_manager() const {
- // @@protoc_insertion_point(field_get:message.Measure_response_msg.error_manager)
- return _internal_error_manager();
- }
- inline void Measure_response_msg::unsafe_arena_set_allocated_error_manager(
- ::message::Error_manager* error_manager) {
- if (GetArena() == nullptr) {
- delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(error_manager_);
- }
- error_manager_ = error_manager;
- if (error_manager) {
- _has_bits_[0] |= 0x00000008u;
- } else {
- _has_bits_[0] &= ~0x00000008u;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:message.Measure_response_msg.error_manager)
- }
- inline ::message::Error_manager* Measure_response_msg::release_error_manager() {
- _has_bits_[0] &= ~0x00000008u;
- ::message::Error_manager* temp = error_manager_;
- error_manager_ = nullptr;
- if (GetArena() != nullptr) {
- temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
- }
- return temp;
- }
- inline ::message::Error_manager* Measure_response_msg::unsafe_arena_release_error_manager() {
- // @@protoc_insertion_point(field_release:message.Measure_response_msg.error_manager)
- _has_bits_[0] &= ~0x00000008u;
- ::message::Error_manager* temp = error_manager_;
- error_manager_ = nullptr;
- return temp;
- }
- inline ::message::Error_manager* Measure_response_msg::_internal_mutable_error_manager() {
- _has_bits_[0] |= 0x00000008u;
- if (error_manager_ == nullptr) {
- auto* p = CreateMaybeMessage<::message::Error_manager>(GetArena());
- error_manager_ = p;
- }
- return error_manager_;
- }
- inline ::message::Error_manager* Measure_response_msg::mutable_error_manager() {
- // @@protoc_insertion_point(field_mutable:message.Measure_response_msg.error_manager)
- return _internal_mutable_error_manager();
- }
- inline void Measure_response_msg::set_allocated_error_manager(::message::Error_manager* error_manager) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
- if (message_arena == nullptr) {
- delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(error_manager_);
- }
- if (error_manager) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(error_manager)->GetArena();
- if (message_arena != submessage_arena) {
- error_manager = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, error_manager, submessage_arena);
- }
- _has_bits_[0] |= 0x00000008u;
- } else {
- _has_bits_[0] &= ~0x00000008u;
- }
- error_manager_ = error_manager;
- // @@protoc_insertion_point(field_set_allocated:message.Measure_response_msg.error_manager)
- }
- #ifdef __GNUC__
- #pragma GCC diagnostic pop
- #endif // __GNUC__
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // @@protoc_insertion_point(namespace_scope)
- } // namespace message
- PROTOBUF_NAMESPACE_OPEN
- template <> struct is_proto_enum< ::message::Laser_manager_status> : ::std::true_type {};
- template <>
- inline const EnumDescriptor* GetEnumDescriptor< ::message::Laser_manager_status>() {
- return ::message::Laser_manager_status_descriptor();
- }
- template <> struct is_proto_enum< ::message::Laser_statu> : ::std::true_type {};
- template <>
- inline const EnumDescriptor* GetEnumDescriptor< ::message::Laser_statu>() {
- return ::message::Laser_statu_descriptor();
- }
- template <> struct is_proto_enum< ::message::Locate_manager_status> : ::std::true_type {};
- template <>
- inline const EnumDescriptor* GetEnumDescriptor< ::message::Locate_manager_status>() {
- return ::message::Locate_manager_status_descriptor();
- }
- PROTOBUF_NAMESPACE_CLOSE
- // @@protoc_insertion_point(global_scope)
- #include <google/protobuf/port_undef.inc>
- #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_measure_5fmessage_2eproto
|