123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: central_control_message.proto
- #ifndef PROTOBUF_central_5fcontrol_5fmessage_2eproto__INCLUDED
- #define PROTOBUF_central_5fcontrol_5fmessage_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_central_5fcontrol_5fmessage_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 InitDefaultsCentral_controller_statu_msgImpl();
- void InitDefaultsCentral_controller_statu_msg();
- inline void InitDefaults() {
- InitDefaultsCentral_controller_statu_msg();
- }
- } // namespace protobuf_central_5fcontrol_5fmessage_2eproto
- namespace message {
- class Central_controller_statu_msg;
- class Central_controller_statu_msgDefaultTypeInternal;
- extern Central_controller_statu_msgDefaultTypeInternal _Central_controller_statu_msg_default_instance_;
- } // namespace message
- namespace message {
- enum Entrance_statu {
- eEnable = 0,
- eDisable = 1
- };
- bool Entrance_statu_IsValid(int value);
- const Entrance_statu Entrance_statu_MIN = eEnable;
- const Entrance_statu Entrance_statu_MAX = eDisable;
- const int Entrance_statu_ARRAYSIZE = Entrance_statu_MAX + 1;
- const ::google::protobuf::EnumDescriptor* Entrance_statu_descriptor();
- inline const ::std::string& Entrance_statu_Name(Entrance_statu value) {
- return ::google::protobuf::internal::NameOfEnum(
- Entrance_statu_descriptor(), value);
- }
- inline bool Entrance_statu_Parse(
- const ::std::string& name, Entrance_statu* value) {
- return ::google::protobuf::internal::ParseNamedEnum<Entrance_statu>(
- Entrance_statu_descriptor(), name, value);
- }
- // ===================================================================
- class Central_controller_statu_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Central_controller_statu_msg) */ {
- public:
- Central_controller_statu_msg();
- virtual ~Central_controller_statu_msg();
- Central_controller_statu_msg(const Central_controller_statu_msg& from);
- inline Central_controller_statu_msg& operator=(const Central_controller_statu_msg& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- Central_controller_statu_msg(Central_controller_statu_msg&& from) noexcept
- : Central_controller_statu_msg() {
- *this = ::std::move(from);
- }
- inline Central_controller_statu_msg& operator=(Central_controller_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 Central_controller_statu_msg& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Central_controller_statu_msg* internal_default_instance() {
- return reinterpret_cast<const Central_controller_statu_msg*>(
- &_Central_controller_statu_msg_default_instance_);
- }
- static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
- 0;
- void Swap(Central_controller_statu_msg* other);
- friend void swap(Central_controller_statu_msg& a, Central_controller_statu_msg& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline Central_controller_statu_msg* New() const PROTOBUF_FINAL { return New(NULL); }
- Central_controller_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 Central_controller_statu_msg& from);
- void MergeFrom(const Central_controller_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(Central_controller_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.Entrance_statu entrance_statu_vector = 3;
- int entrance_statu_vector_size() const;
- void clear_entrance_statu_vector();
- static const int kEntranceStatuVectorFieldNumber = 3;
- ::message::Entrance_statu entrance_statu_vector(int index) const;
- void set_entrance_statu_vector(int index, ::message::Entrance_statu value);
- void add_entrance_statu_vector(::message::Entrance_statu value);
- const ::google::protobuf::RepeatedField<int>& entrance_statu_vector() const;
- ::google::protobuf::RepeatedField<int>* mutable_entrance_statu_vector();
- // repeated .message.Entrance_statu export_statu_vector = 4;
- int export_statu_vector_size() const;
- void clear_export_statu_vector();
- static const int kExportStatuVectorFieldNumber = 4;
- ::message::Entrance_statu export_statu_vector(int index) const;
- void set_export_statu_vector(int index, ::message::Entrance_statu value);
- void add_export_statu_vector(::message::Entrance_statu value);
- const ::google::protobuf::RepeatedField<int>& export_statu_vector() const;
- ::google::protobuf::RepeatedField<int>* mutable_export_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);
- // required bool paused = 2;
- bool has_paused() const;
- void clear_paused();
- static const int kPausedFieldNumber = 2;
- bool paused() const;
- void set_paused(bool value);
- // @@protoc_insertion_point(class_scope:message.Central_controller_statu_msg)
- private:
- void set_has_base_info();
- void clear_has_base_info();
- void set_has_paused();
- void clear_has_paused();
- // 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> entrance_statu_vector_;
- ::google::protobuf::RepeatedField<int> export_statu_vector_;
- ::message::Base_info* base_info_;
- bool paused_;
- friend struct ::protobuf_central_5fcontrol_5fmessage_2eproto::TableStruct;
- friend void ::protobuf_central_5fcontrol_5fmessage_2eproto::InitDefaultsCentral_controller_statu_msgImpl();
- };
- // ===================================================================
- // ===================================================================
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
- #endif // __GNUC__
- // Central_controller_statu_msg
- // required .message.Base_info base_info = 1;
- inline bool Central_controller_statu_msg::has_base_info() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void Central_controller_statu_msg::set_has_base_info() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void Central_controller_statu_msg::clear_has_base_info() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline const ::message::Base_info& Central_controller_statu_msg::base_info() const {
- const ::message::Base_info* p = base_info_;
- // @@protoc_insertion_point(field_get:message.Central_controller_statu_msg.base_info)
- return p != NULL ? *p : *reinterpret_cast<const ::message::Base_info*>(
- &::message::_Base_info_default_instance_);
- }
- inline ::message::Base_info* Central_controller_statu_msg::release_base_info() {
- // @@protoc_insertion_point(field_release:message.Central_controller_statu_msg.base_info)
- clear_has_base_info();
- ::message::Base_info* temp = base_info_;
- base_info_ = NULL;
- return temp;
- }
- inline ::message::Base_info* Central_controller_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.Central_controller_statu_msg.base_info)
- return base_info_;
- }
- inline void Central_controller_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.Central_controller_statu_msg.base_info)
- }
- // required bool paused = 2;
- inline bool Central_controller_statu_msg::has_paused() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void Central_controller_statu_msg::set_has_paused() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void Central_controller_statu_msg::clear_has_paused() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void Central_controller_statu_msg::clear_paused() {
- paused_ = false;
- clear_has_paused();
- }
- inline bool Central_controller_statu_msg::paused() const {
- // @@protoc_insertion_point(field_get:message.Central_controller_statu_msg.paused)
- return paused_;
- }
- inline void Central_controller_statu_msg::set_paused(bool value) {
- set_has_paused();
- paused_ = value;
- // @@protoc_insertion_point(field_set:message.Central_controller_statu_msg.paused)
- }
- // repeated .message.Entrance_statu entrance_statu_vector = 3;
- inline int Central_controller_statu_msg::entrance_statu_vector_size() const {
- return entrance_statu_vector_.size();
- }
- inline void Central_controller_statu_msg::clear_entrance_statu_vector() {
- entrance_statu_vector_.Clear();
- }
- inline ::message::Entrance_statu Central_controller_statu_msg::entrance_statu_vector(int index) const {
- // @@protoc_insertion_point(field_get:message.Central_controller_statu_msg.entrance_statu_vector)
- return static_cast< ::message::Entrance_statu >(entrance_statu_vector_.Get(index));
- }
- inline void Central_controller_statu_msg::set_entrance_statu_vector(int index, ::message::Entrance_statu value) {
- assert(::message::Entrance_statu_IsValid(value));
- entrance_statu_vector_.Set(index, value);
- // @@protoc_insertion_point(field_set:message.Central_controller_statu_msg.entrance_statu_vector)
- }
- inline void Central_controller_statu_msg::add_entrance_statu_vector(::message::Entrance_statu value) {
- assert(::message::Entrance_statu_IsValid(value));
- entrance_statu_vector_.Add(value);
- // @@protoc_insertion_point(field_add:message.Central_controller_statu_msg.entrance_statu_vector)
- }
- inline const ::google::protobuf::RepeatedField<int>&
- Central_controller_statu_msg::entrance_statu_vector() const {
- // @@protoc_insertion_point(field_list:message.Central_controller_statu_msg.entrance_statu_vector)
- return entrance_statu_vector_;
- }
- inline ::google::protobuf::RepeatedField<int>*
- Central_controller_statu_msg::mutable_entrance_statu_vector() {
- // @@protoc_insertion_point(field_mutable_list:message.Central_controller_statu_msg.entrance_statu_vector)
- return &entrance_statu_vector_;
- }
- // repeated .message.Entrance_statu export_statu_vector = 4;
- inline int Central_controller_statu_msg::export_statu_vector_size() const {
- return export_statu_vector_.size();
- }
- inline void Central_controller_statu_msg::clear_export_statu_vector() {
- export_statu_vector_.Clear();
- }
- inline ::message::Entrance_statu Central_controller_statu_msg::export_statu_vector(int index) const {
- // @@protoc_insertion_point(field_get:message.Central_controller_statu_msg.export_statu_vector)
- return static_cast< ::message::Entrance_statu >(export_statu_vector_.Get(index));
- }
- inline void Central_controller_statu_msg::set_export_statu_vector(int index, ::message::Entrance_statu value) {
- assert(::message::Entrance_statu_IsValid(value));
- export_statu_vector_.Set(index, value);
- // @@protoc_insertion_point(field_set:message.Central_controller_statu_msg.export_statu_vector)
- }
- inline void Central_controller_statu_msg::add_export_statu_vector(::message::Entrance_statu value) {
- assert(::message::Entrance_statu_IsValid(value));
- export_statu_vector_.Add(value);
- // @@protoc_insertion_point(field_add:message.Central_controller_statu_msg.export_statu_vector)
- }
- inline const ::google::protobuf::RepeatedField<int>&
- Central_controller_statu_msg::export_statu_vector() const {
- // @@protoc_insertion_point(field_list:message.Central_controller_statu_msg.export_statu_vector)
- return export_statu_vector_;
- }
- inline ::google::protobuf::RepeatedField<int>*
- Central_controller_statu_msg::mutable_export_statu_vector() {
- // @@protoc_insertion_point(field_mutable_list:message.Central_controller_statu_msg.export_statu_vector)
- return &export_statu_vector_;
- }
- #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::Entrance_statu> : ::google::protobuf::internal::true_type {};
- template <>
- inline const EnumDescriptor* GetEnumDescriptor< ::message::Entrance_statu>() {
- return ::message::Entrance_statu_descriptor();
- }
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
- #endif // PROTOBUF_central_5fcontrol_5fmessage_2eproto__INCLUDED
|