123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: ground_measure_msg.proto
- #ifndef PROTOBUF_ground_5fmeasure_5fmsg_2eproto__INCLUDED
- #define PROTOBUF_ground_5fmeasure_5fmsg_2eproto__INCLUDED
- #include <string>
- #include <google/protobuf/stubs/common.h>
- #if GOOGLE_PROTOBUF_VERSION < 3005000
- #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 3005000 < GOOGLE_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/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/metadata.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)
- namespace protobuf_ground_5fmeasure_5fmsg_2eproto {
- // Internal implementation detail -- do not use these members.
- struct TableStruct {
- static const ::google::protobuf::internal::ParseTableField entries[];
- static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
- static const ::google::protobuf::internal::ParseTable schema[1];
- static const ::google::protobuf::internal::FieldMetadata field_metadata[];
- static const ::google::protobuf::internal::SerializationTable serialization_table[];
- static const ::google::protobuf::uint32 offsets[];
- };
- void AddDescriptors();
- void InitDefaultsGround_measure_statu_msgImpl();
- void InitDefaultsGround_measure_statu_msg();
- inline void InitDefaults() {
- InitDefaultsGround_measure_statu_msg();
- }
- } // namespace protobuf_ground_5fmeasure_5fmsg_2eproto
- namespace message {
- class Ground_measure_statu_msg;
- class Ground_measure_statu_msgDefaultTypeInternal;
- extern Ground_measure_statu_msgDefaultTypeInternal _Ground_measure_statu_msg_default_instance_;
- } // namespace message
- namespace message {
- enum Laser_statu {
- LASER_DISCONNECT = 0,
- LASER_READY = 1,
- LASER_BUSY = 2,
- LASER_FAULT = 3
- };
- bool Laser_statu_IsValid(int value);
- const Laser_statu Laser_statu_MIN = LASER_DISCONNECT;
- const Laser_statu Laser_statu_MAX = LASER_FAULT;
- const int Laser_statu_ARRAYSIZE = Laser_statu_MAX + 1;
- const ::google::protobuf::EnumDescriptor* Laser_statu_descriptor();
- inline const ::std::string& Laser_statu_Name(Laser_statu value) {
- return ::google::protobuf::internal::NameOfEnum(
- Laser_statu_descriptor(), value);
- }
- inline bool Laser_statu_Parse(
- const ::std::string& name, Laser_statu* value) {
- return ::google::protobuf::internal::ParseNamedEnum<Laser_statu>(
- Laser_statu_descriptor(), name, value);
- }
- enum Ground_statu {
- Nothing = 0,
- Noise = 1,
- Car_correct = 2,
- Car_left_out = 3,
- Car_right_out = 4,
- Car_top_out = 5,
- Car_bottom_out = 6
- };
- bool Ground_statu_IsValid(int value);
- const Ground_statu Ground_statu_MIN = Nothing;
- const Ground_statu Ground_statu_MAX = Car_bottom_out;
- const int Ground_statu_ARRAYSIZE = Ground_statu_MAX + 1;
- const ::google::protobuf::EnumDescriptor* Ground_statu_descriptor();
- inline const ::std::string& Ground_statu_Name(Ground_statu value) {
- return ::google::protobuf::internal::NameOfEnum(
- Ground_statu_descriptor(), value);
- }
- inline bool Ground_statu_Parse(
- const ::std::string& name, Ground_statu* value) {
- return ::google::protobuf::internal::ParseNamedEnum<Ground_statu>(
- Ground_statu_descriptor(), name, value);
- }
- // ===================================================================
- class Ground_measure_statu_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Ground_measure_statu_msg) */ {
- public:
- Ground_measure_statu_msg();
- virtual ~Ground_measure_statu_msg();
- Ground_measure_statu_msg(const Ground_measure_statu_msg& from);
- inline Ground_measure_statu_msg& operator=(const Ground_measure_statu_msg& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- Ground_measure_statu_msg(Ground_measure_statu_msg&& from) noexcept
- : Ground_measure_statu_msg() {
- *this = ::std::move(from);
- }
- inline Ground_measure_statu_msg& operator=(Ground_measure_statu_msg&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const Ground_measure_statu_msg& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Ground_measure_statu_msg* internal_default_instance() {
- return reinterpret_cast<const Ground_measure_statu_msg*>(
- &_Ground_measure_statu_msg_default_instance_);
- }
- static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
- 0;
- void Swap(Ground_measure_statu_msg* other);
- friend void swap(Ground_measure_statu_msg& a, Ground_measure_statu_msg& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline Ground_measure_statu_msg* New() const PROTOBUF_FINAL { return New(NULL); }
- Ground_measure_statu_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
- void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void CopyFrom(const Ground_measure_statu_msg& from);
- void MergeFrom(const Ground_measure_statu_msg& from);
- void Clear() PROTOBUF_FINAL;
- bool IsInitialized() const PROTOBUF_FINAL;
- size_t ByteSizeLong() const PROTOBUF_FINAL;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
- int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const PROTOBUF_FINAL;
- void InternalSwap(Ground_measure_statu_msg* other);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
- }
- inline void* MaybeArenaPtr() const {
- return NULL;
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // repeated .message.Laser_statu laser_statu_vector = 3;
- int laser_statu_vector_size() const;
- void clear_laser_statu_vector();
- static const int kLaserStatuVectorFieldNumber = 3;
- ::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 ::google::protobuf::RepeatedField<int>& laser_statu_vector() const;
- ::google::protobuf::RepeatedField<int>* mutable_laser_statu_vector();
- // required .message.Base_info base_info = 1;
- bool has_base_info() const;
- void clear_base_info();
- static const int kBaseInfoFieldNumber = 1;
- 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);
- // optional .message.Locate_information locate_information_realtime = 5;
- bool has_locate_information_realtime() const;
- void clear_locate_information_realtime();
- static const int kLocateInformationRealtimeFieldNumber = 5;
- 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);
- // required int32 id = 2;
- bool has_id() const;
- void clear_id();
- static const int kIdFieldNumber = 2;
- ::google::protobuf::int32 id() const;
- void set_id(::google::protobuf::int32 value);
- // required .message.Ground_statu ground_statu = 4;
- bool has_ground_statu() const;
- void clear_ground_statu();
- static const int kGroundStatuFieldNumber = 4;
- ::message::Ground_statu ground_statu() const;
- void set_ground_statu(::message::Ground_statu value);
- // @@protoc_insertion_point(class_scope:message.Ground_measure_statu_msg)
- private:
- void set_has_base_info();
- void clear_has_base_info();
- void set_has_id();
- void clear_has_id();
- void set_has_ground_statu();
- void clear_has_ground_statu();
- void set_has_locate_information_realtime();
- void clear_has_locate_information_realtime();
- // helper for ByteSizeLong()
- size_t RequiredFieldsByteSizeFallback() const;
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable int _cached_size_;
- ::google::protobuf::RepeatedField<int> laser_statu_vector_;
- ::message::Base_info* base_info_;
- ::message::Locate_information* locate_information_realtime_;
- ::google::protobuf::int32 id_;
- int ground_statu_;
- friend struct ::protobuf_ground_5fmeasure_5fmsg_2eproto::TableStruct;
- friend void ::protobuf_ground_5fmeasure_5fmsg_2eproto::InitDefaultsGround_measure_statu_msgImpl();
- };
- // ===================================================================
- // ===================================================================
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
- #endif // __GNUC__
- // Ground_measure_statu_msg
- // required .message.Base_info base_info = 1;
- inline bool Ground_measure_statu_msg::has_base_info() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void Ground_measure_statu_msg::set_has_base_info() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void Ground_measure_statu_msg::clear_has_base_info() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline const ::message::Base_info& Ground_measure_statu_msg::base_info() const {
- const ::message::Base_info* p = base_info_;
- // @@protoc_insertion_point(field_get:message.Ground_measure_statu_msg.base_info)
- return p != NULL ? *p : *reinterpret_cast<const ::message::Base_info*>(
- &::message::_Base_info_default_instance_);
- }
- inline ::message::Base_info* Ground_measure_statu_msg::release_base_info() {
- // @@protoc_insertion_point(field_release:message.Ground_measure_statu_msg.base_info)
- clear_has_base_info();
- ::message::Base_info* temp = base_info_;
- base_info_ = NULL;
- return temp;
- }
- inline ::message::Base_info* Ground_measure_statu_msg::mutable_base_info() {
- set_has_base_info();
- if (base_info_ == NULL) {
- base_info_ = new ::message::Base_info;
- }
- // @@protoc_insertion_point(field_mutable:message.Ground_measure_statu_msg.base_info)
- return base_info_;
- }
- inline void Ground_measure_statu_msg::set_allocated_base_info(::message::Base_info* base_info) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete reinterpret_cast< ::google::protobuf::MessageLite*>(base_info_);
- }
- if (base_info) {
- ::google::protobuf::Arena* submessage_arena = NULL;
- if (message_arena != submessage_arena) {
- base_info = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, base_info, submessage_arena);
- }
- set_has_base_info();
- } else {
- clear_has_base_info();
- }
- base_info_ = base_info;
- // @@protoc_insertion_point(field_set_allocated:message.Ground_measure_statu_msg.base_info)
- }
- // required int32 id = 2;
- inline bool Ground_measure_statu_msg::has_id() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void Ground_measure_statu_msg::set_has_id() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void Ground_measure_statu_msg::clear_has_id() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void Ground_measure_statu_msg::clear_id() {
- id_ = 0;
- clear_has_id();
- }
- inline ::google::protobuf::int32 Ground_measure_statu_msg::id() const {
- // @@protoc_insertion_point(field_get:message.Ground_measure_statu_msg.id)
- return id_;
- }
- inline void Ground_measure_statu_msg::set_id(::google::protobuf::int32 value) {
- set_has_id();
- id_ = value;
- // @@protoc_insertion_point(field_set:message.Ground_measure_statu_msg.id)
- }
- // repeated .message.Laser_statu laser_statu_vector = 3;
- inline int Ground_measure_statu_msg::laser_statu_vector_size() const {
- return laser_statu_vector_.size();
- }
- inline void Ground_measure_statu_msg::clear_laser_statu_vector() {
- laser_statu_vector_.Clear();
- }
- inline ::message::Laser_statu Ground_measure_statu_msg::laser_statu_vector(int index) const {
- // @@protoc_insertion_point(field_get:message.Ground_measure_statu_msg.laser_statu_vector)
- return static_cast< ::message::Laser_statu >(laser_statu_vector_.Get(index));
- }
- inline void Ground_measure_statu_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.Ground_measure_statu_msg.laser_statu_vector)
- }
- inline void Ground_measure_statu_msg::add_laser_statu_vector(::message::Laser_statu value) {
- assert(::message::Laser_statu_IsValid(value));
- laser_statu_vector_.Add(value);
- // @@protoc_insertion_point(field_add:message.Ground_measure_statu_msg.laser_statu_vector)
- }
- inline const ::google::protobuf::RepeatedField<int>&
- Ground_measure_statu_msg::laser_statu_vector() const {
- // @@protoc_insertion_point(field_list:message.Ground_measure_statu_msg.laser_statu_vector)
- return laser_statu_vector_;
- }
- inline ::google::protobuf::RepeatedField<int>*
- Ground_measure_statu_msg::mutable_laser_statu_vector() {
- // @@protoc_insertion_point(field_mutable_list:message.Ground_measure_statu_msg.laser_statu_vector)
- return &laser_statu_vector_;
- }
- // required .message.Ground_statu ground_statu = 4;
- inline bool Ground_measure_statu_msg::has_ground_statu() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- inline void Ground_measure_statu_msg::set_has_ground_statu() {
- _has_bits_[0] |= 0x00000008u;
- }
- inline void Ground_measure_statu_msg::clear_has_ground_statu() {
- _has_bits_[0] &= ~0x00000008u;
- }
- inline void Ground_measure_statu_msg::clear_ground_statu() {
- ground_statu_ = 0;
- clear_has_ground_statu();
- }
- inline ::message::Ground_statu Ground_measure_statu_msg::ground_statu() const {
- // @@protoc_insertion_point(field_get:message.Ground_measure_statu_msg.ground_statu)
- return static_cast< ::message::Ground_statu >(ground_statu_);
- }
- inline void Ground_measure_statu_msg::set_ground_statu(::message::Ground_statu value) {
- assert(::message::Ground_statu_IsValid(value));
- set_has_ground_statu();
- ground_statu_ = value;
- // @@protoc_insertion_point(field_set:message.Ground_measure_statu_msg.ground_statu)
- }
- // optional .message.Locate_information locate_information_realtime = 5;
- inline bool Ground_measure_statu_msg::has_locate_information_realtime() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void Ground_measure_statu_msg::set_has_locate_information_realtime() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void Ground_measure_statu_msg::clear_has_locate_information_realtime() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline const ::message::Locate_information& Ground_measure_statu_msg::locate_information_realtime() const {
- const ::message::Locate_information* p = locate_information_realtime_;
- // @@protoc_insertion_point(field_get:message.Ground_measure_statu_msg.locate_information_realtime)
- return p != NULL ? *p : *reinterpret_cast<const ::message::Locate_information*>(
- &::message::_Locate_information_default_instance_);
- }
- inline ::message::Locate_information* Ground_measure_statu_msg::release_locate_information_realtime() {
- // @@protoc_insertion_point(field_release:message.Ground_measure_statu_msg.locate_information_realtime)
- clear_has_locate_information_realtime();
- ::message::Locate_information* temp = locate_information_realtime_;
- locate_information_realtime_ = NULL;
- return temp;
- }
- inline ::message::Locate_information* Ground_measure_statu_msg::mutable_locate_information_realtime() {
- set_has_locate_information_realtime();
- if (locate_information_realtime_ == NULL) {
- locate_information_realtime_ = new ::message::Locate_information;
- }
- // @@protoc_insertion_point(field_mutable:message.Ground_measure_statu_msg.locate_information_realtime)
- return locate_information_realtime_;
- }
- inline void Ground_measure_statu_msg::set_allocated_locate_information_realtime(::message::Locate_information* locate_information_realtime) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete reinterpret_cast< ::google::protobuf::MessageLite*>(locate_information_realtime_);
- }
- if (locate_information_realtime) {
- ::google::protobuf::Arena* submessage_arena = NULL;
- if (message_arena != submessage_arena) {
- locate_information_realtime = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, locate_information_realtime, submessage_arena);
- }
- set_has_locate_information_realtime();
- } else {
- clear_has_locate_information_realtime();
- }
- locate_information_realtime_ = locate_information_realtime;
- // @@protoc_insertion_point(field_set_allocated:message.Ground_measure_statu_msg.locate_information_realtime)
- }
- #ifdef __GNUC__
- #pragma GCC diagnostic pop
- #endif // __GNUC__
- // @@protoc_insertion_point(namespace_scope)
- } // namespace message
- namespace google {
- namespace protobuf {
- template <> struct is_proto_enum< ::message::Laser_statu> : ::google::protobuf::internal::true_type {};
- template <>
- inline const EnumDescriptor* GetEnumDescriptor< ::message::Laser_statu>() {
- return ::message::Laser_statu_descriptor();
- }
- template <> struct is_proto_enum< ::message::Ground_statu> : ::google::protobuf::internal::true_type {};
- template <>
- inline const EnumDescriptor* GetEnumDescriptor< ::message::Ground_statu>() {
- return ::message::Ground_statu_descriptor();
- }
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
- #endif // PROTOBUF_ground_5fmeasure_5fmsg_2eproto__INCLUDED
|