// Generated by the protocol buffer compiler. DO NOT EDIT! // source: plc_message.proto #ifndef PROTOBUF_plc_5fmessage_2eproto__INCLUDED #define PROTOBUF_plc_5fmessage_2eproto__INCLUDED #include #include #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 #include #include #include #include #include #include #include // IWYU pragma: export #include // IWYU pragma: export #include #include // @@protoc_insertion_point(includes) namespace protobuf_plc_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 InitDefaultsplcMsgImpl(); void InitDefaultsplcMsg(); inline void InitDefaults() { InitDefaultsplcMsg(); } } // namespace protobuf_plc_5fmessage_2eproto namespace plc_message { class plcMsg; class plcMsgDefaultTypeInternal; extern plcMsgDefaultTypeInternal _plcMsg_default_instance_; } // namespace plc_message namespace plc_message { enum plcStatus { ePLCConnected = 0, ePLCDisconnected = 1, ePLCRefused = 2, ePLCUnknown = 3 }; bool plcStatus_IsValid(int value); const plcStatus plcStatus_MIN = ePLCConnected; const plcStatus plcStatus_MAX = ePLCUnknown; const int plcStatus_ARRAYSIZE = plcStatus_MAX + 1; const ::google::protobuf::EnumDescriptor* plcStatus_descriptor(); inline const ::std::string& plcStatus_Name(plcStatus value) { return ::google::protobuf::internal::NameOfEnum( plcStatus_descriptor(), value); } inline bool plcStatus_Parse( const ::std::string& name, plcStatus* value) { return ::google::protobuf::internal::ParseNamedEnum( plcStatus_descriptor(), name, value); } // =================================================================== class plcMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:plc_message.plcMsg) */ { public: plcMsg(); virtual ~plcMsg(); plcMsg(const plcMsg& from); inline plcMsg& operator=(const plcMsg& from) { CopyFrom(from); return *this; } #if LANG_CXX11 plcMsg(plcMsg&& from) noexcept : plcMsg() { *this = ::std::move(from); } inline plcMsg& operator=(plcMsg&& 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 plcMsg& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const plcMsg* internal_default_instance() { return reinterpret_cast( &_plcMsg_default_instance_); } static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = 0; void Swap(plcMsg* other); friend void swap(plcMsg& a, plcMsg& b) { a.Swap(&b); } // implements Message ---------------------------------------------- inline plcMsg* New() const PROTOBUF_FINAL { return New(NULL); } plcMsg* 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 plcMsg& from); void MergeFrom(const plcMsg& 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(plcMsg* 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 int32 plc_values = 2; int plc_values_size() const; void clear_plc_values(); static const int kPlcValuesFieldNumber = 2; ::google::protobuf::int32 plc_values(int index) const; void set_plc_values(int index, ::google::protobuf::int32 value); void add_plc_values(::google::protobuf::int32 value); const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& plc_values() const; ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* mutable_plc_values(); // optional .plc_message.plcStatus plc_status = 1; bool has_plc_status() const; void clear_plc_status(); static const int kPlcStatusFieldNumber = 1; ::plc_message::plcStatus plc_status() const; void set_plc_status(::plc_message::plcStatus value); // @@protoc_insertion_point(class_scope:plc_message.plcMsg) private: void set_has_plc_status(); void clear_has_plc_status(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::RepeatedField< ::google::protobuf::int32 > plc_values_; int plc_status_; friend struct ::protobuf_plc_5fmessage_2eproto::TableStruct; friend void ::protobuf_plc_5fmessage_2eproto::InitDefaultsplcMsgImpl(); }; // =================================================================== // =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // plcMsg // optional .plc_message.plcStatus plc_status = 1; inline bool plcMsg::has_plc_status() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void plcMsg::set_has_plc_status() { _has_bits_[0] |= 0x00000001u; } inline void plcMsg::clear_has_plc_status() { _has_bits_[0] &= ~0x00000001u; } inline void plcMsg::clear_plc_status() { plc_status_ = 0; clear_has_plc_status(); } inline ::plc_message::plcStatus plcMsg::plc_status() const { // @@protoc_insertion_point(field_get:plc_message.plcMsg.plc_status) return static_cast< ::plc_message::plcStatus >(plc_status_); } inline void plcMsg::set_plc_status(::plc_message::plcStatus value) { assert(::plc_message::plcStatus_IsValid(value)); set_has_plc_status(); plc_status_ = value; // @@protoc_insertion_point(field_set:plc_message.plcMsg.plc_status) } // repeated int32 plc_values = 2; inline int plcMsg::plc_values_size() const { return plc_values_.size(); } inline void plcMsg::clear_plc_values() { plc_values_.Clear(); } inline ::google::protobuf::int32 plcMsg::plc_values(int index) const { // @@protoc_insertion_point(field_get:plc_message.plcMsg.plc_values) return plc_values_.Get(index); } inline void plcMsg::set_plc_values(int index, ::google::protobuf::int32 value) { plc_values_.Set(index, value); // @@protoc_insertion_point(field_set:plc_message.plcMsg.plc_values) } inline void plcMsg::add_plc_values(::google::protobuf::int32 value) { plc_values_.Add(value); // @@protoc_insertion_point(field_add:plc_message.plcMsg.plc_values) } inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& plcMsg::plc_values() const { // @@protoc_insertion_point(field_list:plc_message.plcMsg.plc_values) return plc_values_; } inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* plcMsg::mutable_plc_values() { // @@protoc_insertion_point(field_mutable_list:plc_message.plcMsg.plc_values) return &plc_values_; } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) } // namespace plc_message namespace google { namespace protobuf { template <> struct is_proto_enum< ::plc_message::plcStatus> : ::google::protobuf::internal::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::plc_message::plcStatus>() { return ::plc_message::plcStatus_descriptor(); } } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) #endif // PROTOBUF_plc_5fmessage_2eproto__INCLUDED