|
@@ -1,57 +1,60 @@
|
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
// source: plc_module.proto
|
|
|
|
|
|
-#ifndef PROTOBUF_plc_5fmodule_2eproto__INCLUDED
|
|
|
-#define PROTOBUF_plc_5fmodule_2eproto__INCLUDED
|
|
|
+#ifndef GOOGLE_PROTOBUF_INCLUDED_plc_5fmodule_2eproto
|
|
|
+#define GOOGLE_PROTOBUF_INCLUDED_plc_5fmodule_2eproto
|
|
|
|
|
|
+#include <limits>
|
|
|
#include <string>
|
|
|
|
|
|
-#include <google/protobuf/stubs/common.h>
|
|
|
-
|
|
|
-#if GOOGLE_PROTOBUF_VERSION < 3005000
|
|
|
+#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 incompatible with your Protocol Buffer headers. Please update
|
|
|
#error your headers.
|
|
|
#endif
|
|
|
-#if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
|
|
+#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 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/metadata.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>
|
|
|
// @@protoc_insertion_point(includes)
|
|
|
+#include <google/protobuf/port_def.inc>
|
|
|
+#define PROTOBUF_INTERNAL_EXPORT_plc_5fmodule_2eproto
|
|
|
+PROTOBUF_NAMESPACE_OPEN
|
|
|
+namespace internal {
|
|
|
+class AnyMetadata;
|
|
|
+} // namespace internal
|
|
|
+PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
|
|
-namespace protobuf_plc_5fmodule_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[];
|
|
|
+struct TableStruct_plc_5fmodule_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[2]
|
|
|
+ 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[];
|
|
|
};
|
|
|
-void AddDescriptors();
|
|
|
-void InitDefaultsplc_connection_paramsImpl();
|
|
|
-void InitDefaultsplc_connection_params();
|
|
|
-void InitDefaultsPlc_msgImpl();
|
|
|
-void InitDefaultsPlc_msg();
|
|
|
-inline void InitDefaults() {
|
|
|
- InitDefaultsplc_connection_params();
|
|
|
- InitDefaultsPlc_msg();
|
|
|
-}
|
|
|
-} // namespace protobuf_plc_5fmodule_2eproto
|
|
|
+extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_plc_5fmodule_2eproto;
|
|
|
namespace plc_module {
|
|
|
class Plc_msg;
|
|
|
class Plc_msgDefaultTypeInternal;
|
|
@@ -60,65 +63,80 @@ class plc_connection_params;
|
|
|
class plc_connection_paramsDefaultTypeInternal;
|
|
|
extern plc_connection_paramsDefaultTypeInternal _plc_connection_params_default_instance_;
|
|
|
} // namespace plc_module
|
|
|
+PROTOBUF_NAMESPACE_OPEN
|
|
|
+template<> ::plc_module::Plc_msg* Arena::CreateMaybeMessage<::plc_module::Plc_msg>(Arena*);
|
|
|
+template<> ::plc_module::plc_connection_params* Arena::CreateMaybeMessage<::plc_module::plc_connection_params>(Arena*);
|
|
|
+PROTOBUF_NAMESPACE_CLOSE
|
|
|
namespace plc_module {
|
|
|
|
|
|
-enum PLC_STATUS {
|
|
|
+enum PLC_STATUS : int {
|
|
|
ePLCConnected = 0,
|
|
|
ePLCDisconnected = 1,
|
|
|
ePLCRefused = 2,
|
|
|
ePLCUnknown = 3
|
|
|
};
|
|
|
bool PLC_STATUS_IsValid(int value);
|
|
|
-const PLC_STATUS PLC_STATUS_MIN = ePLCConnected;
|
|
|
-const PLC_STATUS PLC_STATUS_MAX = ePLCUnknown;
|
|
|
-const int PLC_STATUS_ARRAYSIZE = PLC_STATUS_MAX + 1;
|
|
|
-
|
|
|
-const ::google::protobuf::EnumDescriptor* PLC_STATUS_descriptor();
|
|
|
-inline const ::std::string& PLC_STATUS_Name(PLC_STATUS value) {
|
|
|
- return ::google::protobuf::internal::NameOfEnum(
|
|
|
- PLC_STATUS_descriptor(), value);
|
|
|
+constexpr PLC_STATUS PLC_STATUS_MIN = ePLCConnected;
|
|
|
+constexpr PLC_STATUS PLC_STATUS_MAX = ePLCUnknown;
|
|
|
+constexpr int PLC_STATUS_ARRAYSIZE = PLC_STATUS_MAX + 1;
|
|
|
+
|
|
|
+const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PLC_STATUS_descriptor();
|
|
|
+template<typename T>
|
|
|
+inline const std::string& PLC_STATUS_Name(T enum_t_value) {
|
|
|
+ static_assert(::std::is_same<T, PLC_STATUS>::value ||
|
|
|
+ ::std::is_integral<T>::value,
|
|
|
+ "Incorrect type passed to function PLC_STATUS_Name.");
|
|
|
+ return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
|
|
+ PLC_STATUS_descriptor(), enum_t_value);
|
|
|
}
|
|
|
inline bool PLC_STATUS_Parse(
|
|
|
- const ::std::string& name, PLC_STATUS* value) {
|
|
|
- return ::google::protobuf::internal::ParseNamedEnum<PLC_STATUS>(
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PLC_STATUS* value) {
|
|
|
+ return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<PLC_STATUS>(
|
|
|
PLC_STATUS_descriptor(), name, value);
|
|
|
}
|
|
|
// ===================================================================
|
|
|
|
|
|
-class plc_connection_params : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:plc_module.plc_connection_params) */ {
|
|
|
+class plc_connection_params PROTOBUF_FINAL :
|
|
|
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:plc_module.plc_connection_params) */ {
|
|
|
public:
|
|
|
- plc_connection_params();
|
|
|
+ inline plc_connection_params() : plc_connection_params(nullptr) {}
|
|
|
virtual ~plc_connection_params();
|
|
|
|
|
|
plc_connection_params(const plc_connection_params& from);
|
|
|
-
|
|
|
- inline plc_connection_params& operator=(const plc_connection_params& from) {
|
|
|
- CopyFrom(from);
|
|
|
- return *this;
|
|
|
- }
|
|
|
- #if LANG_CXX11
|
|
|
plc_connection_params(plc_connection_params&& from) noexcept
|
|
|
: plc_connection_params() {
|
|
|
*this = ::std::move(from);
|
|
|
}
|
|
|
|
|
|
+ inline plc_connection_params& operator=(const plc_connection_params& from) {
|
|
|
+ CopyFrom(from);
|
|
|
+ return *this;
|
|
|
+ }
|
|
|
inline plc_connection_params& operator=(plc_connection_params&& from) noexcept {
|
|
|
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
|
|
|
+ if (GetArena() == from.GetArena()) {
|
|
|
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 const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
|
|
|
+ return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
|
|
|
}
|
|
|
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
|
|
|
- return _internal_metadata_.mutable_unknown_fields();
|
|
|
+ inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
|
|
|
+ return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
}
|
|
|
|
|
|
- static const ::google::protobuf::Descriptor* descriptor();
|
|
|
+ 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 plc_connection_params& default_instance();
|
|
|
|
|
|
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
|
@@ -126,140 +144,188 @@ class plc_connection_params : public ::google::protobuf::Message /* @@protoc_ins
|
|
|
return reinterpret_cast<const plc_connection_params*>(
|
|
|
&_plc_connection_params_default_instance_);
|
|
|
}
|
|
|
- static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
|
|
|
+ static constexpr int kIndexInFileMessages =
|
|
|
0;
|
|
|
|
|
|
- void Swap(plc_connection_params* other);
|
|
|
friend void swap(plc_connection_params& a, plc_connection_params& b) {
|
|
|
a.Swap(&b);
|
|
|
}
|
|
|
+ inline void Swap(plc_connection_params* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ if (GetArena() == other->GetArena()) {
|
|
|
+ InternalSwap(other);
|
|
|
+ } else {
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ void UnsafeArenaSwap(plc_connection_params* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
|
+ InternalSwap(other);
|
|
|
+ }
|
|
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
|
|
- inline plc_connection_params* New() const PROTOBUF_FINAL { return New(NULL); }
|
|
|
+ inline plc_connection_params* New() const final {
|
|
|
+ return CreateMaybeMessage<plc_connection_params>(nullptr);
|
|
|
+ }
|
|
|
|
|
|
- plc_connection_params* 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;
|
|
|
+ plc_connection_params* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
|
+ return CreateMaybeMessage<plc_connection_params>(arena);
|
|
|
+ }
|
|
|
+ void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
|
+ void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
|
void CopyFrom(const plc_connection_params& from);
|
|
|
void MergeFrom(const plc_connection_params& 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_; }
|
|
|
+ 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:
|
|
|
- void SharedCtor();
|
|
|
- void SharedDtor();
|
|
|
- void SetCachedSize(int size) const PROTOBUF_FINAL;
|
|
|
+ inline void SharedCtor();
|
|
|
+ inline void SharedDtor();
|
|
|
+ void SetCachedSize(int size) const final;
|
|
|
void InternalSwap(plc_connection_params* other);
|
|
|
- private:
|
|
|
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
|
|
|
- return NULL;
|
|
|
- }
|
|
|
- inline void* MaybeArenaPtr() const {
|
|
|
- return NULL;
|
|
|
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
|
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
|
+ return "plc_module.plc_connection_params";
|
|
|
}
|
|
|
+ protected:
|
|
|
+ explicit plc_connection_params(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
|
|
+ private:
|
|
|
+ static void ArenaDtor(void* object);
|
|
|
+ inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
|
|
public:
|
|
|
|
|
|
- ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
|
|
+ private:
|
|
|
+ static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_plc_5fmodule_2eproto);
|
|
|
+ return ::descriptor_table_plc_5fmodule_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
|
+ }
|
|
|
+
|
|
|
+ public:
|
|
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
|
|
+ enum : int {
|
|
|
+ kIpFieldNumber = 1,
|
|
|
+ kPortFieldNumber = 2,
|
|
|
+ kSlaveIdFieldNumber = 3,
|
|
|
+ };
|
|
|
// required string ip = 1;
|
|
|
bool has_ip() const;
|
|
|
+ private:
|
|
|
+ bool _internal_has_ip() const;
|
|
|
+ public:
|
|
|
void clear_ip();
|
|
|
- static const int kIpFieldNumber = 1;
|
|
|
- const ::std::string& ip() const;
|
|
|
- void set_ip(const ::std::string& value);
|
|
|
- #if LANG_CXX11
|
|
|
- void set_ip(::std::string&& value);
|
|
|
- #endif
|
|
|
+ const std::string& ip() const;
|
|
|
+ void set_ip(const std::string& value);
|
|
|
+ void set_ip(std::string&& value);
|
|
|
void set_ip(const char* value);
|
|
|
void set_ip(const char* value, size_t size);
|
|
|
- ::std::string* mutable_ip();
|
|
|
- ::std::string* release_ip();
|
|
|
- void set_allocated_ip(::std::string* ip);
|
|
|
+ std::string* mutable_ip();
|
|
|
+ std::string* release_ip();
|
|
|
+ void set_allocated_ip(std::string* ip);
|
|
|
+ private:
|
|
|
+ const std::string& _internal_ip() const;
|
|
|
+ void _internal_set_ip(const std::string& value);
|
|
|
+ std::string* _internal_mutable_ip();
|
|
|
+ public:
|
|
|
|
|
|
// required int32 port = 2;
|
|
|
bool has_port() const;
|
|
|
+ private:
|
|
|
+ bool _internal_has_port() const;
|
|
|
+ public:
|
|
|
void clear_port();
|
|
|
- static const int kPortFieldNumber = 2;
|
|
|
- ::google::protobuf::int32 port() const;
|
|
|
- void set_port(::google::protobuf::int32 value);
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::int32 port() const;
|
|
|
+ void set_port(::PROTOBUF_NAMESPACE_ID::int32 value);
|
|
|
+ private:
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::int32 _internal_port() const;
|
|
|
+ void _internal_set_port(::PROTOBUF_NAMESPACE_ID::int32 value);
|
|
|
+ public:
|
|
|
|
|
|
// required int32 slave_id = 3;
|
|
|
bool has_slave_id() const;
|
|
|
+ private:
|
|
|
+ bool _internal_has_slave_id() const;
|
|
|
+ public:
|
|
|
void clear_slave_id();
|
|
|
- static const int kSlaveIdFieldNumber = 3;
|
|
|
- ::google::protobuf::int32 slave_id() const;
|
|
|
- void set_slave_id(::google::protobuf::int32 value);
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::int32 slave_id() const;
|
|
|
+ void set_slave_id(::PROTOBUF_NAMESPACE_ID::int32 value);
|
|
|
+ private:
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::int32 _internal_slave_id() const;
|
|
|
+ void _internal_set_slave_id(::PROTOBUF_NAMESPACE_ID::int32 value);
|
|
|
+ public:
|
|
|
|
|
|
// @@protoc_insertion_point(class_scope:plc_module.plc_connection_params)
|
|
|
private:
|
|
|
- void set_has_ip();
|
|
|
- void clear_has_ip();
|
|
|
- void set_has_port();
|
|
|
- void clear_has_port();
|
|
|
- void set_has_slave_id();
|
|
|
- void clear_has_slave_id();
|
|
|
+ class _Internal;
|
|
|
|
|
|
// 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::internal::ArenaStringPtr ip_;
|
|
|
- ::google::protobuf::int32 port_;
|
|
|
- ::google::protobuf::int32 slave_id_;
|
|
|
- friend struct ::protobuf_plc_5fmodule_2eproto::TableStruct;
|
|
|
- friend void ::protobuf_plc_5fmodule_2eproto::InitDefaultsplc_connection_paramsImpl();
|
|
|
+ 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 ip_;
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::int32 port_;
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::int32 slave_id_;
|
|
|
+ friend struct ::TableStruct_plc_5fmodule_2eproto;
|
|
|
};
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
-class Plc_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:plc_module.Plc_msg) */ {
|
|
|
+class Plc_msg PROTOBUF_FINAL :
|
|
|
+ public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:plc_module.Plc_msg) */ {
|
|
|
public:
|
|
|
- Plc_msg();
|
|
|
+ inline Plc_msg() : Plc_msg(nullptr) {}
|
|
|
virtual ~Plc_msg();
|
|
|
|
|
|
Plc_msg(const Plc_msg& from);
|
|
|
-
|
|
|
- inline Plc_msg& operator=(const Plc_msg& from) {
|
|
|
- CopyFrom(from);
|
|
|
- return *this;
|
|
|
- }
|
|
|
- #if LANG_CXX11
|
|
|
Plc_msg(Plc_msg&& from) noexcept
|
|
|
: Plc_msg() {
|
|
|
*this = ::std::move(from);
|
|
|
}
|
|
|
|
|
|
+ inline Plc_msg& operator=(const Plc_msg& from) {
|
|
|
+ CopyFrom(from);
|
|
|
+ return *this;
|
|
|
+ }
|
|
|
inline Plc_msg& operator=(Plc_msg&& from) noexcept {
|
|
|
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
|
|
|
+ if (GetArena() == from.GetArena()) {
|
|
|
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 const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
|
|
|
+ return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
|
|
|
}
|
|
|
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
|
|
|
- return _internal_metadata_.mutable_unknown_fields();
|
|
|
+ inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
|
|
|
+ return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
}
|
|
|
|
|
|
- static const ::google::protobuf::Descriptor* descriptor();
|
|
|
+ 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 Plc_msg& default_instance();
|
|
|
|
|
|
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
|
@@ -267,85 +333,128 @@ class Plc_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(c
|
|
|
return reinterpret_cast<const Plc_msg*>(
|
|
|
&_Plc_msg_default_instance_);
|
|
|
}
|
|
|
- static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
|
|
|
+ static constexpr int kIndexInFileMessages =
|
|
|
1;
|
|
|
|
|
|
- void Swap(Plc_msg* other);
|
|
|
friend void swap(Plc_msg& a, Plc_msg& b) {
|
|
|
a.Swap(&b);
|
|
|
}
|
|
|
+ inline void Swap(Plc_msg* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ if (GetArena() == other->GetArena()) {
|
|
|
+ InternalSwap(other);
|
|
|
+ } else {
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ void UnsafeArenaSwap(Plc_msg* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
|
+ InternalSwap(other);
|
|
|
+ }
|
|
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
|
|
- inline Plc_msg* New() const PROTOBUF_FINAL { return New(NULL); }
|
|
|
+ inline Plc_msg* New() const final {
|
|
|
+ return CreateMaybeMessage<Plc_msg>(nullptr);
|
|
|
+ }
|
|
|
|
|
|
- Plc_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;
|
|
|
+ Plc_msg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
|
+ return CreateMaybeMessage<Plc_msg>(arena);
|
|
|
+ }
|
|
|
+ void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
|
+ void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
|
void CopyFrom(const Plc_msg& from);
|
|
|
void MergeFrom(const Plc_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_; }
|
|
|
+ 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:
|
|
|
- void SharedCtor();
|
|
|
- void SharedDtor();
|
|
|
- void SetCachedSize(int size) const PROTOBUF_FINAL;
|
|
|
+ inline void SharedCtor();
|
|
|
+ inline void SharedDtor();
|
|
|
+ void SetCachedSize(int size) const final;
|
|
|
void InternalSwap(Plc_msg* other);
|
|
|
- private:
|
|
|
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
|
|
|
- return NULL;
|
|
|
- }
|
|
|
- inline void* MaybeArenaPtr() const {
|
|
|
- return NULL;
|
|
|
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
|
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
|
+ return "plc_module.Plc_msg";
|
|
|
}
|
|
|
+ protected:
|
|
|
+ explicit Plc_msg(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
|
|
+ private:
|
|
|
+ static void ArenaDtor(void* object);
|
|
|
+ inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
|
|
public:
|
|
|
|
|
|
- ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
|
|
+ private:
|
|
|
+ static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_plc_5fmodule_2eproto);
|
|
|
+ return ::descriptor_table_plc_5fmodule_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
|
+ }
|
|
|
+
|
|
|
+ public:
|
|
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
|
|
+ enum : int {
|
|
|
+ kPlcValuesFieldNumber = 2,
|
|
|
+ kStatusFieldNumber = 1,
|
|
|
+ };
|
|
|
// repeated int32 plc_values = 2;
|
|
|
int plc_values_size() const;
|
|
|
+ private:
|
|
|
+ int _internal_plc_values_size() const;
|
|
|
+ public:
|
|
|
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 >&
|
|
|
+ private:
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::int32 _internal_plc_values(int index) const;
|
|
|
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
|
|
|
+ _internal_plc_values() const;
|
|
|
+ void _internal_add_plc_values(::PROTOBUF_NAMESPACE_ID::int32 value);
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
|
|
|
+ _internal_mutable_plc_values();
|
|
|
+ public:
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::int32 plc_values(int index) const;
|
|
|
+ void set_plc_values(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
|
|
|
+ void add_plc_values(::PROTOBUF_NAMESPACE_ID::int32 value);
|
|
|
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
|
|
|
plc_values() const;
|
|
|
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
|
|
|
mutable_plc_values();
|
|
|
|
|
|
// optional .plc_module.PLC_STATUS status = 1;
|
|
|
bool has_status() const;
|
|
|
+ private:
|
|
|
+ bool _internal_has_status() const;
|
|
|
+ public:
|
|
|
void clear_status();
|
|
|
- static const int kStatusFieldNumber = 1;
|
|
|
::plc_module::PLC_STATUS status() const;
|
|
|
void set_status(::plc_module::PLC_STATUS value);
|
|
|
+ private:
|
|
|
+ ::plc_module::PLC_STATUS _internal_status() const;
|
|
|
+ void _internal_set_status(::plc_module::PLC_STATUS value);
|
|
|
+ public:
|
|
|
|
|
|
// @@protoc_insertion_point(class_scope:plc_module.Plc_msg)
|
|
|
private:
|
|
|
- void set_has_status();
|
|
|
- void clear_has_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_;
|
|
|
+ class _Internal;
|
|
|
+
|
|
|
+ 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< ::PROTOBUF_NAMESPACE_ID::int32 > plc_values_;
|
|
|
int status_;
|
|
|
- friend struct ::protobuf_plc_5fmodule_2eproto::TableStruct;
|
|
|
- friend void ::protobuf_plc_5fmodule_2eproto::InitDefaultsPlc_msgImpl();
|
|
|
+ friend struct ::TableStruct_plc_5fmodule_2eproto;
|
|
|
};
|
|
|
// ===================================================================
|
|
|
|
|
@@ -359,113 +468,132 @@ class Plc_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(c
|
|
|
// plc_connection_params
|
|
|
|
|
|
// required string ip = 1;
|
|
|
-inline bool plc_connection_params::has_ip() const {
|
|
|
- return (_has_bits_[0] & 0x00000001u) != 0;
|
|
|
+inline bool plc_connection_params::_internal_has_ip() const {
|
|
|
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
|
+ return value;
|
|
|
}
|
|
|
-inline void plc_connection_params::set_has_ip() {
|
|
|
- _has_bits_[0] |= 0x00000001u;
|
|
|
-}
|
|
|
-inline void plc_connection_params::clear_has_ip() {
|
|
|
- _has_bits_[0] &= ~0x00000001u;
|
|
|
+inline bool plc_connection_params::has_ip() const {
|
|
|
+ return _internal_has_ip();
|
|
|
}
|
|
|
inline void plc_connection_params::clear_ip() {
|
|
|
- ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
- clear_has_ip();
|
|
|
+ ip_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
+ _has_bits_[0] &= ~0x00000001u;
|
|
|
}
|
|
|
-inline const ::std::string& plc_connection_params::ip() const {
|
|
|
+inline const std::string& plc_connection_params::ip() const {
|
|
|
// @@protoc_insertion_point(field_get:plc_module.plc_connection_params.ip)
|
|
|
- return ip_.GetNoArena();
|
|
|
+ return _internal_ip();
|
|
|
}
|
|
|
-inline void plc_connection_params::set_ip(const ::std::string& value) {
|
|
|
- set_has_ip();
|
|
|
- ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
|
|
|
+inline void plc_connection_params::set_ip(const std::string& value) {
|
|
|
+ _internal_set_ip(value);
|
|
|
// @@protoc_insertion_point(field_set:plc_module.plc_connection_params.ip)
|
|
|
}
|
|
|
-#if LANG_CXX11
|
|
|
-inline void plc_connection_params::set_ip(::std::string&& value) {
|
|
|
- set_has_ip();
|
|
|
- ip_.SetNoArena(
|
|
|
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
|
|
|
+inline std::string* plc_connection_params::mutable_ip() {
|
|
|
+ // @@protoc_insertion_point(field_mutable:plc_module.plc_connection_params.ip)
|
|
|
+ return _internal_mutable_ip();
|
|
|
+}
|
|
|
+inline const std::string& plc_connection_params::_internal_ip() const {
|
|
|
+ return ip_.Get();
|
|
|
+}
|
|
|
+inline void plc_connection_params::_internal_set_ip(const std::string& value) {
|
|
|
+ _has_bits_[0] |= 0x00000001u;
|
|
|
+ ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
|
|
|
+}
|
|
|
+inline void plc_connection_params::set_ip(std::string&& value) {
|
|
|
+ _has_bits_[0] |= 0x00000001u;
|
|
|
+ ip_.Set(
|
|
|
+ &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
|
|
|
// @@protoc_insertion_point(field_set_rvalue:plc_module.plc_connection_params.ip)
|
|
|
}
|
|
|
-#endif
|
|
|
inline void plc_connection_params::set_ip(const char* value) {
|
|
|
- GOOGLE_DCHECK(value != NULL);
|
|
|
- set_has_ip();
|
|
|
- ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
|
|
|
+ GOOGLE_DCHECK(value != nullptr);
|
|
|
+ _has_bits_[0] |= 0x00000001u;
|
|
|
+ ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
|
|
|
+ GetArena());
|
|
|
// @@protoc_insertion_point(field_set_char:plc_module.plc_connection_params.ip)
|
|
|
}
|
|
|
-inline void plc_connection_params::set_ip(const char* value, size_t size) {
|
|
|
- set_has_ip();
|
|
|
- ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
- ::std::string(reinterpret_cast<const char*>(value), size));
|
|
|
+inline void plc_connection_params::set_ip(const char* value,
|
|
|
+ size_t size) {
|
|
|
+ _has_bits_[0] |= 0x00000001u;
|
|
|
+ ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
|
|
|
+ reinterpret_cast<const char*>(value), size), GetArena());
|
|
|
// @@protoc_insertion_point(field_set_pointer:plc_module.plc_connection_params.ip)
|
|
|
}
|
|
|
-inline ::std::string* plc_connection_params::mutable_ip() {
|
|
|
- set_has_ip();
|
|
|
- // @@protoc_insertion_point(field_mutable:plc_module.plc_connection_params.ip)
|
|
|
- return ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
+inline std::string* plc_connection_params::_internal_mutable_ip() {
|
|
|
+ _has_bits_[0] |= 0x00000001u;
|
|
|
+ return ip_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
}
|
|
|
-inline ::std::string* plc_connection_params::release_ip() {
|
|
|
+inline std::string* plc_connection_params::release_ip() {
|
|
|
// @@protoc_insertion_point(field_release:plc_module.plc_connection_params.ip)
|
|
|
- clear_has_ip();
|
|
|
- return ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
+ if (!_internal_has_ip()) {
|
|
|
+ return nullptr;
|
|
|
+ }
|
|
|
+ _has_bits_[0] &= ~0x00000001u;
|
|
|
+ return ip_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
}
|
|
|
-inline void plc_connection_params::set_allocated_ip(::std::string* ip) {
|
|
|
- if (ip != NULL) {
|
|
|
- set_has_ip();
|
|
|
+inline void plc_connection_params::set_allocated_ip(std::string* ip) {
|
|
|
+ if (ip != nullptr) {
|
|
|
+ _has_bits_[0] |= 0x00000001u;
|
|
|
} else {
|
|
|
- clear_has_ip();
|
|
|
+ _has_bits_[0] &= ~0x00000001u;
|
|
|
}
|
|
|
- ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ip);
|
|
|
+ ip_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ip,
|
|
|
+ GetArena());
|
|
|
// @@protoc_insertion_point(field_set_allocated:plc_module.plc_connection_params.ip)
|
|
|
}
|
|
|
|
|
|
// required int32 port = 2;
|
|
|
-inline bool plc_connection_params::has_port() const {
|
|
|
- return (_has_bits_[0] & 0x00000002u) != 0;
|
|
|
-}
|
|
|
-inline void plc_connection_params::set_has_port() {
|
|
|
- _has_bits_[0] |= 0x00000002u;
|
|
|
+inline bool plc_connection_params::_internal_has_port() const {
|
|
|
+ bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
|
+ return value;
|
|
|
}
|
|
|
-inline void plc_connection_params::clear_has_port() {
|
|
|
- _has_bits_[0] &= ~0x00000002u;
|
|
|
+inline bool plc_connection_params::has_port() const {
|
|
|
+ return _internal_has_port();
|
|
|
}
|
|
|
inline void plc_connection_params::clear_port() {
|
|
|
port_ = 0;
|
|
|
- clear_has_port();
|
|
|
+ _has_bits_[0] &= ~0x00000002u;
|
|
|
}
|
|
|
-inline ::google::protobuf::int32 plc_connection_params::port() const {
|
|
|
- // @@protoc_insertion_point(field_get:plc_module.plc_connection_params.port)
|
|
|
+inline ::PROTOBUF_NAMESPACE_ID::int32 plc_connection_params::_internal_port() const {
|
|
|
return port_;
|
|
|
}
|
|
|
-inline void plc_connection_params::set_port(::google::protobuf::int32 value) {
|
|
|
- set_has_port();
|
|
|
+inline ::PROTOBUF_NAMESPACE_ID::int32 plc_connection_params::port() const {
|
|
|
+ // @@protoc_insertion_point(field_get:plc_module.plc_connection_params.port)
|
|
|
+ return _internal_port();
|
|
|
+}
|
|
|
+inline void plc_connection_params::_internal_set_port(::PROTOBUF_NAMESPACE_ID::int32 value) {
|
|
|
+ _has_bits_[0] |= 0x00000002u;
|
|
|
port_ = value;
|
|
|
+}
|
|
|
+inline void plc_connection_params::set_port(::PROTOBUF_NAMESPACE_ID::int32 value) {
|
|
|
+ _internal_set_port(value);
|
|
|
// @@protoc_insertion_point(field_set:plc_module.plc_connection_params.port)
|
|
|
}
|
|
|
|
|
|
// required int32 slave_id = 3;
|
|
|
-inline bool plc_connection_params::has_slave_id() const {
|
|
|
- return (_has_bits_[0] & 0x00000004u) != 0;
|
|
|
+inline bool plc_connection_params::_internal_has_slave_id() const {
|
|
|
+ bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
|
+ return value;
|
|
|
}
|
|
|
-inline void plc_connection_params::set_has_slave_id() {
|
|
|
- _has_bits_[0] |= 0x00000004u;
|
|
|
-}
|
|
|
-inline void plc_connection_params::clear_has_slave_id() {
|
|
|
- _has_bits_[0] &= ~0x00000004u;
|
|
|
+inline bool plc_connection_params::has_slave_id() const {
|
|
|
+ return _internal_has_slave_id();
|
|
|
}
|
|
|
inline void plc_connection_params::clear_slave_id() {
|
|
|
slave_id_ = 0;
|
|
|
- clear_has_slave_id();
|
|
|
+ _has_bits_[0] &= ~0x00000004u;
|
|
|
}
|
|
|
-inline ::google::protobuf::int32 plc_connection_params::slave_id() const {
|
|
|
- // @@protoc_insertion_point(field_get:plc_module.plc_connection_params.slave_id)
|
|
|
+inline ::PROTOBUF_NAMESPACE_ID::int32 plc_connection_params::_internal_slave_id() const {
|
|
|
return slave_id_;
|
|
|
}
|
|
|
-inline void plc_connection_params::set_slave_id(::google::protobuf::int32 value) {
|
|
|
- set_has_slave_id();
|
|
|
+inline ::PROTOBUF_NAMESPACE_ID::int32 plc_connection_params::slave_id() const {
|
|
|
+ // @@protoc_insertion_point(field_get:plc_module.plc_connection_params.slave_id)
|
|
|
+ return _internal_slave_id();
|
|
|
+}
|
|
|
+inline void plc_connection_params::_internal_set_slave_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
|
|
|
+ _has_bits_[0] |= 0x00000004u;
|
|
|
slave_id_ = value;
|
|
|
+}
|
|
|
+inline void plc_connection_params::set_slave_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
|
|
|
+ _internal_set_slave_id(value);
|
|
|
// @@protoc_insertion_point(field_set:plc_module.plc_connection_params.slave_id)
|
|
|
}
|
|
|
|
|
@@ -474,58 +602,79 @@ inline void plc_connection_params::set_slave_id(::google::protobuf::int32 value)
|
|
|
// Plc_msg
|
|
|
|
|
|
// optional .plc_module.PLC_STATUS status = 1;
|
|
|
-inline bool Plc_msg::has_status() const {
|
|
|
- return (_has_bits_[0] & 0x00000001u) != 0;
|
|
|
+inline bool Plc_msg::_internal_has_status() const {
|
|
|
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
|
+ return value;
|
|
|
}
|
|
|
-inline void Plc_msg::set_has_status() {
|
|
|
- _has_bits_[0] |= 0x00000001u;
|
|
|
-}
|
|
|
-inline void Plc_msg::clear_has_status() {
|
|
|
- _has_bits_[0] &= ~0x00000001u;
|
|
|
+inline bool Plc_msg::has_status() const {
|
|
|
+ return _internal_has_status();
|
|
|
}
|
|
|
inline void Plc_msg::clear_status() {
|
|
|
status_ = 0;
|
|
|
- clear_has_status();
|
|
|
+ _has_bits_[0] &= ~0x00000001u;
|
|
|
+}
|
|
|
+inline ::plc_module::PLC_STATUS Plc_msg::_internal_status() const {
|
|
|
+ return static_cast< ::plc_module::PLC_STATUS >(status_);
|
|
|
}
|
|
|
inline ::plc_module::PLC_STATUS Plc_msg::status() const {
|
|
|
// @@protoc_insertion_point(field_get:plc_module.Plc_msg.status)
|
|
|
- return static_cast< ::plc_module::PLC_STATUS >(status_);
|
|
|
+ return _internal_status();
|
|
|
}
|
|
|
-inline void Plc_msg::set_status(::plc_module::PLC_STATUS value) {
|
|
|
+inline void Plc_msg::_internal_set_status(::plc_module::PLC_STATUS value) {
|
|
|
assert(::plc_module::PLC_STATUS_IsValid(value));
|
|
|
- set_has_status();
|
|
|
+ _has_bits_[0] |= 0x00000001u;
|
|
|
status_ = value;
|
|
|
+}
|
|
|
+inline void Plc_msg::set_status(::plc_module::PLC_STATUS value) {
|
|
|
+ _internal_set_status(value);
|
|
|
// @@protoc_insertion_point(field_set:plc_module.Plc_msg.status)
|
|
|
}
|
|
|
|
|
|
// repeated int32 plc_values = 2;
|
|
|
-inline int Plc_msg::plc_values_size() const {
|
|
|
+inline int Plc_msg::_internal_plc_values_size() const {
|
|
|
return plc_values_.size();
|
|
|
}
|
|
|
+inline int Plc_msg::plc_values_size() const {
|
|
|
+ return _internal_plc_values_size();
|
|
|
+}
|
|
|
inline void Plc_msg::clear_plc_values() {
|
|
|
plc_values_.Clear();
|
|
|
}
|
|
|
-inline ::google::protobuf::int32 Plc_msg::plc_values(int index) const {
|
|
|
- // @@protoc_insertion_point(field_get:plc_module.Plc_msg.plc_values)
|
|
|
+inline ::PROTOBUF_NAMESPACE_ID::int32 Plc_msg::_internal_plc_values(int index) const {
|
|
|
return plc_values_.Get(index);
|
|
|
}
|
|
|
-inline void Plc_msg::set_plc_values(int index, ::google::protobuf::int32 value) {
|
|
|
+inline ::PROTOBUF_NAMESPACE_ID::int32 Plc_msg::plc_values(int index) const {
|
|
|
+ // @@protoc_insertion_point(field_get:plc_module.Plc_msg.plc_values)
|
|
|
+ return _internal_plc_values(index);
|
|
|
+}
|
|
|
+inline void Plc_msg::set_plc_values(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
|
|
|
plc_values_.Set(index, value);
|
|
|
// @@protoc_insertion_point(field_set:plc_module.Plc_msg.plc_values)
|
|
|
}
|
|
|
-inline void Plc_msg::add_plc_values(::google::protobuf::int32 value) {
|
|
|
+inline void Plc_msg::_internal_add_plc_values(::PROTOBUF_NAMESPACE_ID::int32 value) {
|
|
|
plc_values_.Add(value);
|
|
|
+}
|
|
|
+inline void Plc_msg::add_plc_values(::PROTOBUF_NAMESPACE_ID::int32 value) {
|
|
|
+ _internal_add_plc_values(value);
|
|
|
// @@protoc_insertion_point(field_add:plc_module.Plc_msg.plc_values)
|
|
|
}
|
|
|
-inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
|
|
|
+inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
|
|
|
+Plc_msg::_internal_plc_values() const {
|
|
|
+ return plc_values_;
|
|
|
+}
|
|
|
+inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
|
|
|
Plc_msg::plc_values() const {
|
|
|
// @@protoc_insertion_point(field_list:plc_module.Plc_msg.plc_values)
|
|
|
- return plc_values_;
|
|
|
+ return _internal_plc_values();
|
|
|
+}
|
|
|
+inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
|
|
|
+Plc_msg::_internal_mutable_plc_values() {
|
|
|
+ return &plc_values_;
|
|
|
}
|
|
|
-inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
|
|
|
+inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
|
|
|
Plc_msg::mutable_plc_values() {
|
|
|
// @@protoc_insertion_point(field_mutable_list:plc_module.Plc_msg.plc_values)
|
|
|
- return &plc_values_;
|
|
|
+ return _internal_mutable_plc_values();
|
|
|
}
|
|
|
|
|
|
#ifdef __GNUC__
|
|
@@ -538,18 +687,17 @@ Plc_msg::mutable_plc_values() {
|
|
|
|
|
|
} // namespace plc_module
|
|
|
|
|
|
-namespace google {
|
|
|
-namespace protobuf {
|
|
|
+PROTOBUF_NAMESPACE_OPEN
|
|
|
|
|
|
-template <> struct is_proto_enum< ::plc_module::PLC_STATUS> : ::google::protobuf::internal::true_type {};
|
|
|
+template <> struct is_proto_enum< ::plc_module::PLC_STATUS> : ::std::true_type {};
|
|
|
template <>
|
|
|
inline const EnumDescriptor* GetEnumDescriptor< ::plc_module::PLC_STATUS>() {
|
|
|
return ::plc_module::PLC_STATUS_descriptor();
|
|
|
}
|
|
|
|
|
|
-} // namespace protobuf
|
|
|
-} // namespace google
|
|
|
+PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
|
|
|
|
-#endif // PROTOBUF_plc_5fmodule_2eproto__INCLUDED
|
|
|
+#include <google/protobuf/port_undef.inc>
|
|
|
+#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_plc_5fmodule_2eproto
|