123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: snap7_communication.proto
- #ifndef PROTOBUF_INCLUDED_snap7_5fcommunication_2eproto
- #define PROTOBUF_INCLUDED_snap7_5fcommunication_2eproto
- #include <string>
- #include <google/protobuf/stubs/common.h>
- #if GOOGLE_PROTOBUF_VERSION < 3006001
- #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 3006001 < 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/inlined_string_field.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/unknown_field_set.h>
- // @@protoc_insertion_point(includes)
- #define PROTOBUF_INTERNAL_EXPORT_protobuf_snap7_5fcommunication_2eproto
- namespace protobuf_snap7_5fcommunication_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[2];
- static const ::google::protobuf::internal::FieldMetadata field_metadata[];
- static const ::google::protobuf::internal::SerializationTable serialization_table[];
- static const ::google::protobuf::uint32 offsets[];
- };
- void AddDescriptors();
- } // namespace protobuf_snap7_5fcommunication_2eproto
- namespace Snap7_communication_proto {
- class Snap7_communication_parameter;
- class Snap7_communication_parameterDefaultTypeInternal;
- extern Snap7_communication_parameterDefaultTypeInternal _Snap7_communication_parameter_default_instance_;
- class Snap7_communication_parameter_all;
- class Snap7_communication_parameter_allDefaultTypeInternal;
- extern Snap7_communication_parameter_allDefaultTypeInternal _Snap7_communication_parameter_all_default_instance_;
- } // namespace Snap7_communication_proto
- namespace google {
- namespace protobuf {
- template<> ::Snap7_communication_proto::Snap7_communication_parameter* Arena::CreateMaybeMessage<::Snap7_communication_proto::Snap7_communication_parameter>(Arena*);
- template<> ::Snap7_communication_proto::Snap7_communication_parameter_all* Arena::CreateMaybeMessage<::Snap7_communication_proto::Snap7_communication_parameter_all>(Arena*);
- } // namespace protobuf
- } // namespace google
- namespace Snap7_communication_proto {
- // ===================================================================
- class Snap7_communication_parameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Snap7_communication_proto.Snap7_communication_parameter) */ {
- public:
- Snap7_communication_parameter();
- virtual ~Snap7_communication_parameter();
- Snap7_communication_parameter(const Snap7_communication_parameter& from);
- inline Snap7_communication_parameter& operator=(const Snap7_communication_parameter& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- Snap7_communication_parameter(Snap7_communication_parameter&& from) noexcept
- : Snap7_communication_parameter() {
- *this = ::std::move(from);
- }
- inline Snap7_communication_parameter& operator=(Snap7_communication_parameter&& 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 Snap7_communication_parameter& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Snap7_communication_parameter* internal_default_instance() {
- return reinterpret_cast<const Snap7_communication_parameter*>(
- &_Snap7_communication_parameter_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 0;
- void Swap(Snap7_communication_parameter* other);
- friend void swap(Snap7_communication_parameter& a, Snap7_communication_parameter& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline Snap7_communication_parameter* New() const final {
- return CreateMaybeMessage<Snap7_communication_parameter>(NULL);
- }
- Snap7_communication_parameter* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<Snap7_communication_parameter>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const Snap7_communication_parameter& from);
- void MergeFrom(const Snap7_communication_parameter& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(Snap7_communication_parameter* other);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
- }
- inline void* MaybeArenaPtr() const {
- return NULL;
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // required string ip_string = 1 [default = "192.168.0.1"];
- bool has_ip_string() const;
- void clear_ip_string();
- static const int kIpStringFieldNumber = 1;
- const ::std::string& ip_string() const;
- void set_ip_string(const ::std::string& value);
- #if LANG_CXX11
- void set_ip_string(::std::string&& value);
- #endif
- void set_ip_string(const char* value);
- void set_ip_string(const char* value, size_t size);
- ::std::string* mutable_ip_string();
- ::std::string* release_ip_string();
- void set_allocated_ip_string(::std::string* ip_string);
- // @@protoc_insertion_point(class_scope:Snap7_communication_proto.Snap7_communication_parameter)
- private:
- void set_has_ip_string();
- void clear_has_ip_string();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- public:
- static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_ip_string_;
- private:
- ::google::protobuf::internal::ArenaStringPtr ip_string_;
- friend struct ::protobuf_snap7_5fcommunication_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class Snap7_communication_parameter_all : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Snap7_communication_proto.Snap7_communication_parameter_all) */ {
- public:
- Snap7_communication_parameter_all();
- virtual ~Snap7_communication_parameter_all();
- Snap7_communication_parameter_all(const Snap7_communication_parameter_all& from);
- inline Snap7_communication_parameter_all& operator=(const Snap7_communication_parameter_all& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- Snap7_communication_parameter_all(Snap7_communication_parameter_all&& from) noexcept
- : Snap7_communication_parameter_all() {
- *this = ::std::move(from);
- }
- inline Snap7_communication_parameter_all& operator=(Snap7_communication_parameter_all&& 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 Snap7_communication_parameter_all& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Snap7_communication_parameter_all* internal_default_instance() {
- return reinterpret_cast<const Snap7_communication_parameter_all*>(
- &_Snap7_communication_parameter_all_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 1;
- void Swap(Snap7_communication_parameter_all* other);
- friend void swap(Snap7_communication_parameter_all& a, Snap7_communication_parameter_all& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline Snap7_communication_parameter_all* New() const final {
- return CreateMaybeMessage<Snap7_communication_parameter_all>(NULL);
- }
- Snap7_communication_parameter_all* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<Snap7_communication_parameter_all>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const Snap7_communication_parameter_all& from);
- void MergeFrom(const Snap7_communication_parameter_all& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(Snap7_communication_parameter_all* other);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
- }
- inline void* MaybeArenaPtr() const {
- return NULL;
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // required .Snap7_communication_proto.Snap7_communication_parameter snap7_communication_parameters = 1;
- bool has_snap7_communication_parameters() const;
- void clear_snap7_communication_parameters();
- static const int kSnap7CommunicationParametersFieldNumber = 1;
- private:
- const ::Snap7_communication_proto::Snap7_communication_parameter& _internal_snap7_communication_parameters() const;
- public:
- const ::Snap7_communication_proto::Snap7_communication_parameter& snap7_communication_parameters() const;
- ::Snap7_communication_proto::Snap7_communication_parameter* release_snap7_communication_parameters();
- ::Snap7_communication_proto::Snap7_communication_parameter* mutable_snap7_communication_parameters();
- void set_allocated_snap7_communication_parameters(::Snap7_communication_proto::Snap7_communication_parameter* snap7_communication_parameters);
- // @@protoc_insertion_point(class_scope:Snap7_communication_proto.Snap7_communication_parameter_all)
- private:
- void set_has_snap7_communication_parameters();
- void clear_has_snap7_communication_parameters();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::Snap7_communication_proto::Snap7_communication_parameter* snap7_communication_parameters_;
- friend struct ::protobuf_snap7_5fcommunication_2eproto::TableStruct;
- };
- // ===================================================================
- // ===================================================================
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
- #endif // __GNUC__
- // Snap7_communication_parameter
- // required string ip_string = 1 [default = "192.168.0.1"];
- inline bool Snap7_communication_parameter::has_ip_string() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void Snap7_communication_parameter::set_has_ip_string() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void Snap7_communication_parameter::clear_has_ip_string() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void Snap7_communication_parameter::clear_ip_string() {
- ip_string_.ClearToDefaultNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get());
- clear_has_ip_string();
- }
- inline const ::std::string& Snap7_communication_parameter::ip_string() const {
- // @@protoc_insertion_point(field_get:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
- return ip_string_.GetNoArena();
- }
- inline void Snap7_communication_parameter::set_ip_string(const ::std::string& value) {
- set_has_ip_string();
- ip_string_.SetNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get(), value);
- // @@protoc_insertion_point(field_set:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
- }
- #if LANG_CXX11
- inline void Snap7_communication_parameter::set_ip_string(::std::string&& value) {
- set_has_ip_string();
- ip_string_.SetNoArena(
- &::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
- }
- #endif
- inline void Snap7_communication_parameter::set_ip_string(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_ip_string();
- ip_string_.SetNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
- }
- inline void Snap7_communication_parameter::set_ip_string(const char* value, size_t size) {
- set_has_ip_string();
- ip_string_.SetNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get(),
- ::std::string(reinterpret_cast<const char*>(value), size));
- // @@protoc_insertion_point(field_set_pointer:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
- }
- inline ::std::string* Snap7_communication_parameter::mutable_ip_string() {
- set_has_ip_string();
- // @@protoc_insertion_point(field_mutable:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
- return ip_string_.MutableNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get());
- }
- inline ::std::string* Snap7_communication_parameter::release_ip_string() {
- // @@protoc_insertion_point(field_release:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
- if (!has_ip_string()) {
- return NULL;
- }
- clear_has_ip_string();
- return ip_string_.ReleaseNonDefaultNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get());
- }
- inline void Snap7_communication_parameter::set_allocated_ip_string(::std::string* ip_string) {
- if (ip_string != NULL) {
- set_has_ip_string();
- } else {
- clear_has_ip_string();
- }
- ip_string_.SetAllocatedNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get(), ip_string);
- // @@protoc_insertion_point(field_set_allocated:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
- }
- // -------------------------------------------------------------------
- // Snap7_communication_parameter_all
- // required .Snap7_communication_proto.Snap7_communication_parameter snap7_communication_parameters = 1;
- inline bool Snap7_communication_parameter_all::has_snap7_communication_parameters() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void Snap7_communication_parameter_all::set_has_snap7_communication_parameters() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void Snap7_communication_parameter_all::clear_has_snap7_communication_parameters() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void Snap7_communication_parameter_all::clear_snap7_communication_parameters() {
- if (snap7_communication_parameters_ != NULL) snap7_communication_parameters_->Clear();
- clear_has_snap7_communication_parameters();
- }
- inline const ::Snap7_communication_proto::Snap7_communication_parameter& Snap7_communication_parameter_all::_internal_snap7_communication_parameters() const {
- return *snap7_communication_parameters_;
- }
- inline const ::Snap7_communication_proto::Snap7_communication_parameter& Snap7_communication_parameter_all::snap7_communication_parameters() const {
- const ::Snap7_communication_proto::Snap7_communication_parameter* p = snap7_communication_parameters_;
- // @@protoc_insertion_point(field_get:Snap7_communication_proto.Snap7_communication_parameter_all.snap7_communication_parameters)
- return p != NULL ? *p : *reinterpret_cast<const ::Snap7_communication_proto::Snap7_communication_parameter*>(
- &::Snap7_communication_proto::_Snap7_communication_parameter_default_instance_);
- }
- inline ::Snap7_communication_proto::Snap7_communication_parameter* Snap7_communication_parameter_all::release_snap7_communication_parameters() {
- // @@protoc_insertion_point(field_release:Snap7_communication_proto.Snap7_communication_parameter_all.snap7_communication_parameters)
- clear_has_snap7_communication_parameters();
- ::Snap7_communication_proto::Snap7_communication_parameter* temp = snap7_communication_parameters_;
- snap7_communication_parameters_ = NULL;
- return temp;
- }
- inline ::Snap7_communication_proto::Snap7_communication_parameter* Snap7_communication_parameter_all::mutable_snap7_communication_parameters() {
- set_has_snap7_communication_parameters();
- if (snap7_communication_parameters_ == NULL) {
- auto* p = CreateMaybeMessage<::Snap7_communication_proto::Snap7_communication_parameter>(GetArenaNoVirtual());
- snap7_communication_parameters_ = p;
- }
- // @@protoc_insertion_point(field_mutable:Snap7_communication_proto.Snap7_communication_parameter_all.snap7_communication_parameters)
- return snap7_communication_parameters_;
- }
- inline void Snap7_communication_parameter_all::set_allocated_snap7_communication_parameters(::Snap7_communication_proto::Snap7_communication_parameter* snap7_communication_parameters) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete snap7_communication_parameters_;
- }
- if (snap7_communication_parameters) {
- ::google::protobuf::Arena* submessage_arena = NULL;
- if (message_arena != submessage_arena) {
- snap7_communication_parameters = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, snap7_communication_parameters, submessage_arena);
- }
- set_has_snap7_communication_parameters();
- } else {
- clear_has_snap7_communication_parameters();
- }
- snap7_communication_parameters_ = snap7_communication_parameters;
- // @@protoc_insertion_point(field_set_allocated:Snap7_communication_proto.Snap7_communication_parameter_all.snap7_communication_parameters)
- }
- #ifdef __GNUC__
- #pragma GCC diagnostic pop
- #endif // __GNUC__
- // -------------------------------------------------------------------
- // @@protoc_insertion_point(namespace_scope)
- } // namespace Snap7_communication_proto
- // @@protoc_insertion_point(global_scope)
- #endif // PROTOBUF_INCLUDED_snap7_5fcommunication_2eproto
|