plc_module.pb.h 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: plc_module.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_plc_5fmodule_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_plc_5fmodule_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3013000
  9. #error This file was generated by a newer version of protoc which is
  10. #error incompatible with your Protocol Buffer headers. Please update
  11. #error your headers.
  12. #endif
  13. #if 3013000 < PROTOBUF_MIN_PROTOC_VERSION
  14. #error This file was generated by an older version of protoc which is
  15. #error incompatible with your Protocol Buffer headers. Please
  16. #error regenerate this file with a newer version of protoc.
  17. #endif
  18. #include <google/protobuf/port_undef.inc>
  19. #include <google/protobuf/io/coded_stream.h>
  20. #include <google/protobuf/arena.h>
  21. #include <google/protobuf/arenastring.h>
  22. #include <google/protobuf/generated_message_table_driven.h>
  23. #include <google/protobuf/generated_message_util.h>
  24. #include <google/protobuf/inlined_string_field.h>
  25. #include <google/protobuf/metadata_lite.h>
  26. #include <google/protobuf/generated_message_reflection.h>
  27. #include <google/protobuf/message.h>
  28. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  29. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  30. #include <google/protobuf/generated_enum_reflection.h>
  31. #include <google/protobuf/unknown_field_set.h>
  32. // @@protoc_insertion_point(includes)
  33. #include <google/protobuf/port_def.inc>
  34. #define PROTOBUF_INTERNAL_EXPORT_plc_5fmodule_2eproto
  35. PROTOBUF_NAMESPACE_OPEN
  36. namespace internal {
  37. class AnyMetadata;
  38. } // namespace internal
  39. PROTOBUF_NAMESPACE_CLOSE
  40. // Internal implementation detail -- do not use these members.
  41. struct TableStruct_plc_5fmodule_2eproto {
  42. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  43. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  44. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  45. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  46. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2]
  47. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  48. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  49. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  50. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  51. };
  52. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_plc_5fmodule_2eproto;
  53. namespace plc_module {
  54. class Plc_msg;
  55. class Plc_msgDefaultTypeInternal;
  56. extern Plc_msgDefaultTypeInternal _Plc_msg_default_instance_;
  57. class plc_connection_params;
  58. class plc_connection_paramsDefaultTypeInternal;
  59. extern plc_connection_paramsDefaultTypeInternal _plc_connection_params_default_instance_;
  60. } // namespace plc_module
  61. PROTOBUF_NAMESPACE_OPEN
  62. template<> ::plc_module::Plc_msg* Arena::CreateMaybeMessage<::plc_module::Plc_msg>(Arena*);
  63. template<> ::plc_module::plc_connection_params* Arena::CreateMaybeMessage<::plc_module::plc_connection_params>(Arena*);
  64. PROTOBUF_NAMESPACE_CLOSE
  65. namespace plc_module {
  66. enum PLC_STATUS : int {
  67. ePLCConnected = 0,
  68. ePLCDisconnected = 1,
  69. ePLCRefused = 2,
  70. ePLCUnknown = 3
  71. };
  72. bool PLC_STATUS_IsValid(int value);
  73. constexpr PLC_STATUS PLC_STATUS_MIN = ePLCConnected;
  74. constexpr PLC_STATUS PLC_STATUS_MAX = ePLCUnknown;
  75. constexpr int PLC_STATUS_ARRAYSIZE = PLC_STATUS_MAX + 1;
  76. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PLC_STATUS_descriptor();
  77. template<typename T>
  78. inline const std::string& PLC_STATUS_Name(T enum_t_value) {
  79. static_assert(::std::is_same<T, PLC_STATUS>::value ||
  80. ::std::is_integral<T>::value,
  81. "Incorrect type passed to function PLC_STATUS_Name.");
  82. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  83. PLC_STATUS_descriptor(), enum_t_value);
  84. }
  85. inline bool PLC_STATUS_Parse(
  86. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PLC_STATUS* value) {
  87. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<PLC_STATUS>(
  88. PLC_STATUS_descriptor(), name, value);
  89. }
  90. // ===================================================================
  91. class plc_connection_params PROTOBUF_FINAL :
  92. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:plc_module.plc_connection_params) */ {
  93. public:
  94. inline plc_connection_params() : plc_connection_params(nullptr) {}
  95. virtual ~plc_connection_params();
  96. plc_connection_params(const plc_connection_params& from);
  97. plc_connection_params(plc_connection_params&& from) noexcept
  98. : plc_connection_params() {
  99. *this = ::std::move(from);
  100. }
  101. inline plc_connection_params& operator=(const plc_connection_params& from) {
  102. CopyFrom(from);
  103. return *this;
  104. }
  105. inline plc_connection_params& operator=(plc_connection_params&& from) noexcept {
  106. if (GetArena() == from.GetArena()) {
  107. if (this != &from) InternalSwap(&from);
  108. } else {
  109. CopyFrom(from);
  110. }
  111. return *this;
  112. }
  113. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  114. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  115. }
  116. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  117. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  118. }
  119. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  120. return GetDescriptor();
  121. }
  122. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  123. return GetMetadataStatic().descriptor;
  124. }
  125. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  126. return GetMetadataStatic().reflection;
  127. }
  128. static const plc_connection_params& default_instance();
  129. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  130. static inline const plc_connection_params* internal_default_instance() {
  131. return reinterpret_cast<const plc_connection_params*>(
  132. &_plc_connection_params_default_instance_);
  133. }
  134. static constexpr int kIndexInFileMessages =
  135. 0;
  136. friend void swap(plc_connection_params& a, plc_connection_params& b) {
  137. a.Swap(&b);
  138. }
  139. inline void Swap(plc_connection_params* other) {
  140. if (other == this) return;
  141. if (GetArena() == other->GetArena()) {
  142. InternalSwap(other);
  143. } else {
  144. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  145. }
  146. }
  147. void UnsafeArenaSwap(plc_connection_params* other) {
  148. if (other == this) return;
  149. GOOGLE_DCHECK(GetArena() == other->GetArena());
  150. InternalSwap(other);
  151. }
  152. // implements Message ----------------------------------------------
  153. inline plc_connection_params* New() const final {
  154. return CreateMaybeMessage<plc_connection_params>(nullptr);
  155. }
  156. plc_connection_params* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  157. return CreateMaybeMessage<plc_connection_params>(arena);
  158. }
  159. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  160. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  161. void CopyFrom(const plc_connection_params& from);
  162. void MergeFrom(const plc_connection_params& from);
  163. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  164. bool IsInitialized() const final;
  165. size_t ByteSizeLong() const final;
  166. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  167. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  168. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  169. int GetCachedSize() const final { return _cached_size_.Get(); }
  170. private:
  171. inline void SharedCtor();
  172. inline void SharedDtor();
  173. void SetCachedSize(int size) const final;
  174. void InternalSwap(plc_connection_params* other);
  175. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  176. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  177. return "plc_module.plc_connection_params";
  178. }
  179. protected:
  180. explicit plc_connection_params(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  181. private:
  182. static void ArenaDtor(void* object);
  183. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  184. public:
  185. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  186. private:
  187. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  188. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_plc_5fmodule_2eproto);
  189. return ::descriptor_table_plc_5fmodule_2eproto.file_level_metadata[kIndexInFileMessages];
  190. }
  191. public:
  192. // nested types ----------------------------------------------------
  193. // accessors -------------------------------------------------------
  194. enum : int {
  195. kIpFieldNumber = 1,
  196. kPortFieldNumber = 2,
  197. kSlaveIdFieldNumber = 3,
  198. };
  199. // required string ip = 1;
  200. bool has_ip() const;
  201. private:
  202. bool _internal_has_ip() const;
  203. public:
  204. void clear_ip();
  205. const std::string& ip() const;
  206. void set_ip(const std::string& value);
  207. void set_ip(std::string&& value);
  208. void set_ip(const char* value);
  209. void set_ip(const char* value, size_t size);
  210. std::string* mutable_ip();
  211. std::string* release_ip();
  212. void set_allocated_ip(std::string* ip);
  213. private:
  214. const std::string& _internal_ip() const;
  215. void _internal_set_ip(const std::string& value);
  216. std::string* _internal_mutable_ip();
  217. public:
  218. // required int32 port = 2;
  219. bool has_port() const;
  220. private:
  221. bool _internal_has_port() const;
  222. public:
  223. void clear_port();
  224. ::PROTOBUF_NAMESPACE_ID::int32 port() const;
  225. void set_port(::PROTOBUF_NAMESPACE_ID::int32 value);
  226. private:
  227. ::PROTOBUF_NAMESPACE_ID::int32 _internal_port() const;
  228. void _internal_set_port(::PROTOBUF_NAMESPACE_ID::int32 value);
  229. public:
  230. // required int32 slave_id = 3;
  231. bool has_slave_id() const;
  232. private:
  233. bool _internal_has_slave_id() const;
  234. public:
  235. void clear_slave_id();
  236. ::PROTOBUF_NAMESPACE_ID::int32 slave_id() const;
  237. void set_slave_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  238. private:
  239. ::PROTOBUF_NAMESPACE_ID::int32 _internal_slave_id() const;
  240. void _internal_set_slave_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  241. public:
  242. // @@protoc_insertion_point(class_scope:plc_module.plc_connection_params)
  243. private:
  244. class _Internal;
  245. // helper for ByteSizeLong()
  246. size_t RequiredFieldsByteSizeFallback() const;
  247. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  248. typedef void InternalArenaConstructable_;
  249. typedef void DestructorSkippable_;
  250. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  251. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  252. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_;
  253. ::PROTOBUF_NAMESPACE_ID::int32 port_;
  254. ::PROTOBUF_NAMESPACE_ID::int32 slave_id_;
  255. friend struct ::TableStruct_plc_5fmodule_2eproto;
  256. };
  257. // -------------------------------------------------------------------
  258. class Plc_msg PROTOBUF_FINAL :
  259. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:plc_module.Plc_msg) */ {
  260. public:
  261. inline Plc_msg() : Plc_msg(nullptr) {}
  262. virtual ~Plc_msg();
  263. Plc_msg(const Plc_msg& from);
  264. Plc_msg(Plc_msg&& from) noexcept
  265. : Plc_msg() {
  266. *this = ::std::move(from);
  267. }
  268. inline Plc_msg& operator=(const Plc_msg& from) {
  269. CopyFrom(from);
  270. return *this;
  271. }
  272. inline Plc_msg& operator=(Plc_msg&& from) noexcept {
  273. if (GetArena() == from.GetArena()) {
  274. if (this != &from) InternalSwap(&from);
  275. } else {
  276. CopyFrom(from);
  277. }
  278. return *this;
  279. }
  280. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  281. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  282. }
  283. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  284. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  285. }
  286. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  287. return GetDescriptor();
  288. }
  289. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  290. return GetMetadataStatic().descriptor;
  291. }
  292. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  293. return GetMetadataStatic().reflection;
  294. }
  295. static const Plc_msg& default_instance();
  296. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  297. static inline const Plc_msg* internal_default_instance() {
  298. return reinterpret_cast<const Plc_msg*>(
  299. &_Plc_msg_default_instance_);
  300. }
  301. static constexpr int kIndexInFileMessages =
  302. 1;
  303. friend void swap(Plc_msg& a, Plc_msg& b) {
  304. a.Swap(&b);
  305. }
  306. inline void Swap(Plc_msg* other) {
  307. if (other == this) return;
  308. if (GetArena() == other->GetArena()) {
  309. InternalSwap(other);
  310. } else {
  311. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  312. }
  313. }
  314. void UnsafeArenaSwap(Plc_msg* other) {
  315. if (other == this) return;
  316. GOOGLE_DCHECK(GetArena() == other->GetArena());
  317. InternalSwap(other);
  318. }
  319. // implements Message ----------------------------------------------
  320. inline Plc_msg* New() const final {
  321. return CreateMaybeMessage<Plc_msg>(nullptr);
  322. }
  323. Plc_msg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  324. return CreateMaybeMessage<Plc_msg>(arena);
  325. }
  326. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  327. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  328. void CopyFrom(const Plc_msg& from);
  329. void MergeFrom(const Plc_msg& from);
  330. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  331. bool IsInitialized() const final;
  332. size_t ByteSizeLong() const final;
  333. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  334. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  335. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  336. int GetCachedSize() const final { return _cached_size_.Get(); }
  337. private:
  338. inline void SharedCtor();
  339. inline void SharedDtor();
  340. void SetCachedSize(int size) const final;
  341. void InternalSwap(Plc_msg* other);
  342. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  343. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  344. return "plc_module.Plc_msg";
  345. }
  346. protected:
  347. explicit Plc_msg(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  348. private:
  349. static void ArenaDtor(void* object);
  350. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  351. public:
  352. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  353. private:
  354. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  355. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_plc_5fmodule_2eproto);
  356. return ::descriptor_table_plc_5fmodule_2eproto.file_level_metadata[kIndexInFileMessages];
  357. }
  358. public:
  359. // nested types ----------------------------------------------------
  360. // accessors -------------------------------------------------------
  361. enum : int {
  362. kPlcValuesFieldNumber = 2,
  363. kStatusFieldNumber = 1,
  364. };
  365. // repeated int32 plc_values = 2;
  366. int plc_values_size() const;
  367. private:
  368. int _internal_plc_values_size() const;
  369. public:
  370. void clear_plc_values();
  371. private:
  372. ::PROTOBUF_NAMESPACE_ID::int32 _internal_plc_values(int index) const;
  373. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  374. _internal_plc_values() const;
  375. void _internal_add_plc_values(::PROTOBUF_NAMESPACE_ID::int32 value);
  376. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  377. _internal_mutable_plc_values();
  378. public:
  379. ::PROTOBUF_NAMESPACE_ID::int32 plc_values(int index) const;
  380. void set_plc_values(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
  381. void add_plc_values(::PROTOBUF_NAMESPACE_ID::int32 value);
  382. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  383. plc_values() const;
  384. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  385. mutable_plc_values();
  386. // optional .plc_module.PLC_STATUS status = 1;
  387. bool has_status() const;
  388. private:
  389. bool _internal_has_status() const;
  390. public:
  391. void clear_status();
  392. ::plc_module::PLC_STATUS status() const;
  393. void set_status(::plc_module::PLC_STATUS value);
  394. private:
  395. ::plc_module::PLC_STATUS _internal_status() const;
  396. void _internal_set_status(::plc_module::PLC_STATUS value);
  397. public:
  398. // @@protoc_insertion_point(class_scope:plc_module.Plc_msg)
  399. private:
  400. class _Internal;
  401. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  402. typedef void InternalArenaConstructable_;
  403. typedef void DestructorSkippable_;
  404. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  405. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  406. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > plc_values_;
  407. int status_;
  408. friend struct ::TableStruct_plc_5fmodule_2eproto;
  409. };
  410. // ===================================================================
  411. // ===================================================================
  412. #ifdef __GNUC__
  413. #pragma GCC diagnostic push
  414. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  415. #endif // __GNUC__
  416. // plc_connection_params
  417. // required string ip = 1;
  418. inline bool plc_connection_params::_internal_has_ip() const {
  419. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  420. return value;
  421. }
  422. inline bool plc_connection_params::has_ip() const {
  423. return _internal_has_ip();
  424. }
  425. inline void plc_connection_params::clear_ip() {
  426. ip_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  427. _has_bits_[0] &= ~0x00000001u;
  428. }
  429. inline const std::string& plc_connection_params::ip() const {
  430. // @@protoc_insertion_point(field_get:plc_module.plc_connection_params.ip)
  431. return _internal_ip();
  432. }
  433. inline void plc_connection_params::set_ip(const std::string& value) {
  434. _internal_set_ip(value);
  435. // @@protoc_insertion_point(field_set:plc_module.plc_connection_params.ip)
  436. }
  437. inline std::string* plc_connection_params::mutable_ip() {
  438. // @@protoc_insertion_point(field_mutable:plc_module.plc_connection_params.ip)
  439. return _internal_mutable_ip();
  440. }
  441. inline const std::string& plc_connection_params::_internal_ip() const {
  442. return ip_.Get();
  443. }
  444. inline void plc_connection_params::_internal_set_ip(const std::string& value) {
  445. _has_bits_[0] |= 0x00000001u;
  446. ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
  447. }
  448. inline void plc_connection_params::set_ip(std::string&& value) {
  449. _has_bits_[0] |= 0x00000001u;
  450. ip_.Set(
  451. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
  452. // @@protoc_insertion_point(field_set_rvalue:plc_module.plc_connection_params.ip)
  453. }
  454. inline void plc_connection_params::set_ip(const char* value) {
  455. GOOGLE_DCHECK(value != nullptr);
  456. _has_bits_[0] |= 0x00000001u;
  457. ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  458. GetArena());
  459. // @@protoc_insertion_point(field_set_char:plc_module.plc_connection_params.ip)
  460. }
  461. inline void plc_connection_params::set_ip(const char* value,
  462. size_t size) {
  463. _has_bits_[0] |= 0x00000001u;
  464. ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  465. reinterpret_cast<const char*>(value), size), GetArena());
  466. // @@protoc_insertion_point(field_set_pointer:plc_module.plc_connection_params.ip)
  467. }
  468. inline std::string* plc_connection_params::_internal_mutable_ip() {
  469. _has_bits_[0] |= 0x00000001u;
  470. return ip_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  471. }
  472. inline std::string* plc_connection_params::release_ip() {
  473. // @@protoc_insertion_point(field_release:plc_module.plc_connection_params.ip)
  474. if (!_internal_has_ip()) {
  475. return nullptr;
  476. }
  477. _has_bits_[0] &= ~0x00000001u;
  478. return ip_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  479. }
  480. inline void plc_connection_params::set_allocated_ip(std::string* ip) {
  481. if (ip != nullptr) {
  482. _has_bits_[0] |= 0x00000001u;
  483. } else {
  484. _has_bits_[0] &= ~0x00000001u;
  485. }
  486. ip_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ip,
  487. GetArena());
  488. // @@protoc_insertion_point(field_set_allocated:plc_module.plc_connection_params.ip)
  489. }
  490. // required int32 port = 2;
  491. inline bool plc_connection_params::_internal_has_port() const {
  492. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  493. return value;
  494. }
  495. inline bool plc_connection_params::has_port() const {
  496. return _internal_has_port();
  497. }
  498. inline void plc_connection_params::clear_port() {
  499. port_ = 0;
  500. _has_bits_[0] &= ~0x00000002u;
  501. }
  502. inline ::PROTOBUF_NAMESPACE_ID::int32 plc_connection_params::_internal_port() const {
  503. return port_;
  504. }
  505. inline ::PROTOBUF_NAMESPACE_ID::int32 plc_connection_params::port() const {
  506. // @@protoc_insertion_point(field_get:plc_module.plc_connection_params.port)
  507. return _internal_port();
  508. }
  509. inline void plc_connection_params::_internal_set_port(::PROTOBUF_NAMESPACE_ID::int32 value) {
  510. _has_bits_[0] |= 0x00000002u;
  511. port_ = value;
  512. }
  513. inline void plc_connection_params::set_port(::PROTOBUF_NAMESPACE_ID::int32 value) {
  514. _internal_set_port(value);
  515. // @@protoc_insertion_point(field_set:plc_module.plc_connection_params.port)
  516. }
  517. // required int32 slave_id = 3;
  518. inline bool plc_connection_params::_internal_has_slave_id() const {
  519. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  520. return value;
  521. }
  522. inline bool plc_connection_params::has_slave_id() const {
  523. return _internal_has_slave_id();
  524. }
  525. inline void plc_connection_params::clear_slave_id() {
  526. slave_id_ = 0;
  527. _has_bits_[0] &= ~0x00000004u;
  528. }
  529. inline ::PROTOBUF_NAMESPACE_ID::int32 plc_connection_params::_internal_slave_id() const {
  530. return slave_id_;
  531. }
  532. inline ::PROTOBUF_NAMESPACE_ID::int32 plc_connection_params::slave_id() const {
  533. // @@protoc_insertion_point(field_get:plc_module.plc_connection_params.slave_id)
  534. return _internal_slave_id();
  535. }
  536. inline void plc_connection_params::_internal_set_slave_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  537. _has_bits_[0] |= 0x00000004u;
  538. slave_id_ = value;
  539. }
  540. inline void plc_connection_params::set_slave_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  541. _internal_set_slave_id(value);
  542. // @@protoc_insertion_point(field_set:plc_module.plc_connection_params.slave_id)
  543. }
  544. // -------------------------------------------------------------------
  545. // Plc_msg
  546. // optional .plc_module.PLC_STATUS status = 1;
  547. inline bool Plc_msg::_internal_has_status() const {
  548. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  549. return value;
  550. }
  551. inline bool Plc_msg::has_status() const {
  552. return _internal_has_status();
  553. }
  554. inline void Plc_msg::clear_status() {
  555. status_ = 0;
  556. _has_bits_[0] &= ~0x00000001u;
  557. }
  558. inline ::plc_module::PLC_STATUS Plc_msg::_internal_status() const {
  559. return static_cast< ::plc_module::PLC_STATUS >(status_);
  560. }
  561. inline ::plc_module::PLC_STATUS Plc_msg::status() const {
  562. // @@protoc_insertion_point(field_get:plc_module.Plc_msg.status)
  563. return _internal_status();
  564. }
  565. inline void Plc_msg::_internal_set_status(::plc_module::PLC_STATUS value) {
  566. assert(::plc_module::PLC_STATUS_IsValid(value));
  567. _has_bits_[0] |= 0x00000001u;
  568. status_ = value;
  569. }
  570. inline void Plc_msg::set_status(::plc_module::PLC_STATUS value) {
  571. _internal_set_status(value);
  572. // @@protoc_insertion_point(field_set:plc_module.Plc_msg.status)
  573. }
  574. // repeated int32 plc_values = 2;
  575. inline int Plc_msg::_internal_plc_values_size() const {
  576. return plc_values_.size();
  577. }
  578. inline int Plc_msg::plc_values_size() const {
  579. return _internal_plc_values_size();
  580. }
  581. inline void Plc_msg::clear_plc_values() {
  582. plc_values_.Clear();
  583. }
  584. inline ::PROTOBUF_NAMESPACE_ID::int32 Plc_msg::_internal_plc_values(int index) const {
  585. return plc_values_.Get(index);
  586. }
  587. inline ::PROTOBUF_NAMESPACE_ID::int32 Plc_msg::plc_values(int index) const {
  588. // @@protoc_insertion_point(field_get:plc_module.Plc_msg.plc_values)
  589. return _internal_plc_values(index);
  590. }
  591. inline void Plc_msg::set_plc_values(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
  592. plc_values_.Set(index, value);
  593. // @@protoc_insertion_point(field_set:plc_module.Plc_msg.plc_values)
  594. }
  595. inline void Plc_msg::_internal_add_plc_values(::PROTOBUF_NAMESPACE_ID::int32 value) {
  596. plc_values_.Add(value);
  597. }
  598. inline void Plc_msg::add_plc_values(::PROTOBUF_NAMESPACE_ID::int32 value) {
  599. _internal_add_plc_values(value);
  600. // @@protoc_insertion_point(field_add:plc_module.Plc_msg.plc_values)
  601. }
  602. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  603. Plc_msg::_internal_plc_values() const {
  604. return plc_values_;
  605. }
  606. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  607. Plc_msg::plc_values() const {
  608. // @@protoc_insertion_point(field_list:plc_module.Plc_msg.plc_values)
  609. return _internal_plc_values();
  610. }
  611. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  612. Plc_msg::_internal_mutable_plc_values() {
  613. return &plc_values_;
  614. }
  615. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  616. Plc_msg::mutable_plc_values() {
  617. // @@protoc_insertion_point(field_mutable_list:plc_module.Plc_msg.plc_values)
  618. return _internal_mutable_plc_values();
  619. }
  620. #ifdef __GNUC__
  621. #pragma GCC diagnostic pop
  622. #endif // __GNUC__
  623. // -------------------------------------------------------------------
  624. // @@protoc_insertion_point(namespace_scope)
  625. } // namespace plc_module
  626. PROTOBUF_NAMESPACE_OPEN
  627. template <> struct is_proto_enum< ::plc_module::PLC_STATUS> : ::std::true_type {};
  628. template <>
  629. inline const EnumDescriptor* GetEnumDescriptor< ::plc_module::PLC_STATUS>() {
  630. return ::plc_module::PLC_STATUS_descriptor();
  631. }
  632. PROTOBUF_NAMESPACE_CLOSE
  633. // @@protoc_insertion_point(global_scope)
  634. #include <google/protobuf/port_undef.inc>
  635. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_plc_5fmodule_2eproto