snap7_communication.pb.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: snap7_communication.proto
  3. #ifndef PROTOBUF_INCLUDED_snap7_5fcommunication_2eproto
  4. #define PROTOBUF_INCLUDED_snap7_5fcommunication_2eproto
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3006001
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/inlined_string_field.h>
  23. #include <google/protobuf/metadata.h>
  24. #include <google/protobuf/message.h>
  25. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  26. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  27. #include <google/protobuf/unknown_field_set.h>
  28. // @@protoc_insertion_point(includes)
  29. #define PROTOBUF_INTERNAL_EXPORT_protobuf_snap7_5fcommunication_2eproto
  30. namespace protobuf_snap7_5fcommunication_2eproto {
  31. // Internal implementation detail -- do not use these members.
  32. struct TableStruct {
  33. static const ::google::protobuf::internal::ParseTableField entries[];
  34. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  35. static const ::google::protobuf::internal::ParseTable schema[2];
  36. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  37. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  38. static const ::google::protobuf::uint32 offsets[];
  39. };
  40. void AddDescriptors();
  41. } // namespace protobuf_snap7_5fcommunication_2eproto
  42. namespace Snap7_communication_proto {
  43. class Snap7_communication_parameter;
  44. class Snap7_communication_parameterDefaultTypeInternal;
  45. extern Snap7_communication_parameterDefaultTypeInternal _Snap7_communication_parameter_default_instance_;
  46. class Snap7_communication_parameter_all;
  47. class Snap7_communication_parameter_allDefaultTypeInternal;
  48. extern Snap7_communication_parameter_allDefaultTypeInternal _Snap7_communication_parameter_all_default_instance_;
  49. } // namespace Snap7_communication_proto
  50. namespace google {
  51. namespace protobuf {
  52. template<> ::Snap7_communication_proto::Snap7_communication_parameter* Arena::CreateMaybeMessage<::Snap7_communication_proto::Snap7_communication_parameter>(Arena*);
  53. template<> ::Snap7_communication_proto::Snap7_communication_parameter_all* Arena::CreateMaybeMessage<::Snap7_communication_proto::Snap7_communication_parameter_all>(Arena*);
  54. } // namespace protobuf
  55. } // namespace google
  56. namespace Snap7_communication_proto {
  57. // ===================================================================
  58. class Snap7_communication_parameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Snap7_communication_proto.Snap7_communication_parameter) */ {
  59. public:
  60. Snap7_communication_parameter();
  61. virtual ~Snap7_communication_parameter();
  62. Snap7_communication_parameter(const Snap7_communication_parameter& from);
  63. inline Snap7_communication_parameter& operator=(const Snap7_communication_parameter& from) {
  64. CopyFrom(from);
  65. return *this;
  66. }
  67. #if LANG_CXX11
  68. Snap7_communication_parameter(Snap7_communication_parameter&& from) noexcept
  69. : Snap7_communication_parameter() {
  70. *this = ::std::move(from);
  71. }
  72. inline Snap7_communication_parameter& operator=(Snap7_communication_parameter&& from) noexcept {
  73. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  74. if (this != &from) InternalSwap(&from);
  75. } else {
  76. CopyFrom(from);
  77. }
  78. return *this;
  79. }
  80. #endif
  81. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  82. return _internal_metadata_.unknown_fields();
  83. }
  84. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  85. return _internal_metadata_.mutable_unknown_fields();
  86. }
  87. static const ::google::protobuf::Descriptor* descriptor();
  88. static const Snap7_communication_parameter& default_instance();
  89. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  90. static inline const Snap7_communication_parameter* internal_default_instance() {
  91. return reinterpret_cast<const Snap7_communication_parameter*>(
  92. &_Snap7_communication_parameter_default_instance_);
  93. }
  94. static constexpr int kIndexInFileMessages =
  95. 0;
  96. void Swap(Snap7_communication_parameter* other);
  97. friend void swap(Snap7_communication_parameter& a, Snap7_communication_parameter& b) {
  98. a.Swap(&b);
  99. }
  100. // implements Message ----------------------------------------------
  101. inline Snap7_communication_parameter* New() const final {
  102. return CreateMaybeMessage<Snap7_communication_parameter>(NULL);
  103. }
  104. Snap7_communication_parameter* New(::google::protobuf::Arena* arena) const final {
  105. return CreateMaybeMessage<Snap7_communication_parameter>(arena);
  106. }
  107. void CopyFrom(const ::google::protobuf::Message& from) final;
  108. void MergeFrom(const ::google::protobuf::Message& from) final;
  109. void CopyFrom(const Snap7_communication_parameter& from);
  110. void MergeFrom(const Snap7_communication_parameter& from);
  111. void Clear() final;
  112. bool IsInitialized() const final;
  113. size_t ByteSizeLong() const final;
  114. bool MergePartialFromCodedStream(
  115. ::google::protobuf::io::CodedInputStream* input) final;
  116. void SerializeWithCachedSizes(
  117. ::google::protobuf::io::CodedOutputStream* output) const final;
  118. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  119. bool deterministic, ::google::protobuf::uint8* target) const final;
  120. int GetCachedSize() const final { return _cached_size_.Get(); }
  121. private:
  122. void SharedCtor();
  123. void SharedDtor();
  124. void SetCachedSize(int size) const final;
  125. void InternalSwap(Snap7_communication_parameter* other);
  126. private:
  127. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  128. return NULL;
  129. }
  130. inline void* MaybeArenaPtr() const {
  131. return NULL;
  132. }
  133. public:
  134. ::google::protobuf::Metadata GetMetadata() const final;
  135. // nested types ----------------------------------------------------
  136. // accessors -------------------------------------------------------
  137. // required string ip_string = 1 [default = "192.168.0.1"];
  138. bool has_ip_string() const;
  139. void clear_ip_string();
  140. static const int kIpStringFieldNumber = 1;
  141. const ::std::string& ip_string() const;
  142. void set_ip_string(const ::std::string& value);
  143. #if LANG_CXX11
  144. void set_ip_string(::std::string&& value);
  145. #endif
  146. void set_ip_string(const char* value);
  147. void set_ip_string(const char* value, size_t size);
  148. ::std::string* mutable_ip_string();
  149. ::std::string* release_ip_string();
  150. void set_allocated_ip_string(::std::string* ip_string);
  151. // @@protoc_insertion_point(class_scope:Snap7_communication_proto.Snap7_communication_parameter)
  152. private:
  153. void set_has_ip_string();
  154. void clear_has_ip_string();
  155. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  156. ::google::protobuf::internal::HasBits<1> _has_bits_;
  157. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  158. public:
  159. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_ip_string_;
  160. private:
  161. ::google::protobuf::internal::ArenaStringPtr ip_string_;
  162. friend struct ::protobuf_snap7_5fcommunication_2eproto::TableStruct;
  163. };
  164. // -------------------------------------------------------------------
  165. class Snap7_communication_parameter_all : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Snap7_communication_proto.Snap7_communication_parameter_all) */ {
  166. public:
  167. Snap7_communication_parameter_all();
  168. virtual ~Snap7_communication_parameter_all();
  169. Snap7_communication_parameter_all(const Snap7_communication_parameter_all& from);
  170. inline Snap7_communication_parameter_all& operator=(const Snap7_communication_parameter_all& from) {
  171. CopyFrom(from);
  172. return *this;
  173. }
  174. #if LANG_CXX11
  175. Snap7_communication_parameter_all(Snap7_communication_parameter_all&& from) noexcept
  176. : Snap7_communication_parameter_all() {
  177. *this = ::std::move(from);
  178. }
  179. inline Snap7_communication_parameter_all& operator=(Snap7_communication_parameter_all&& from) noexcept {
  180. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  181. if (this != &from) InternalSwap(&from);
  182. } else {
  183. CopyFrom(from);
  184. }
  185. return *this;
  186. }
  187. #endif
  188. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  189. return _internal_metadata_.unknown_fields();
  190. }
  191. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  192. return _internal_metadata_.mutable_unknown_fields();
  193. }
  194. static const ::google::protobuf::Descriptor* descriptor();
  195. static const Snap7_communication_parameter_all& default_instance();
  196. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  197. static inline const Snap7_communication_parameter_all* internal_default_instance() {
  198. return reinterpret_cast<const Snap7_communication_parameter_all*>(
  199. &_Snap7_communication_parameter_all_default_instance_);
  200. }
  201. static constexpr int kIndexInFileMessages =
  202. 1;
  203. void Swap(Snap7_communication_parameter_all* other);
  204. friend void swap(Snap7_communication_parameter_all& a, Snap7_communication_parameter_all& b) {
  205. a.Swap(&b);
  206. }
  207. // implements Message ----------------------------------------------
  208. inline Snap7_communication_parameter_all* New() const final {
  209. return CreateMaybeMessage<Snap7_communication_parameter_all>(NULL);
  210. }
  211. Snap7_communication_parameter_all* New(::google::protobuf::Arena* arena) const final {
  212. return CreateMaybeMessage<Snap7_communication_parameter_all>(arena);
  213. }
  214. void CopyFrom(const ::google::protobuf::Message& from) final;
  215. void MergeFrom(const ::google::protobuf::Message& from) final;
  216. void CopyFrom(const Snap7_communication_parameter_all& from);
  217. void MergeFrom(const Snap7_communication_parameter_all& from);
  218. void Clear() final;
  219. bool IsInitialized() const final;
  220. size_t ByteSizeLong() const final;
  221. bool MergePartialFromCodedStream(
  222. ::google::protobuf::io::CodedInputStream* input) final;
  223. void SerializeWithCachedSizes(
  224. ::google::protobuf::io::CodedOutputStream* output) const final;
  225. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  226. bool deterministic, ::google::protobuf::uint8* target) const final;
  227. int GetCachedSize() const final { return _cached_size_.Get(); }
  228. private:
  229. void SharedCtor();
  230. void SharedDtor();
  231. void SetCachedSize(int size) const final;
  232. void InternalSwap(Snap7_communication_parameter_all* other);
  233. private:
  234. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  235. return NULL;
  236. }
  237. inline void* MaybeArenaPtr() const {
  238. return NULL;
  239. }
  240. public:
  241. ::google::protobuf::Metadata GetMetadata() const final;
  242. // nested types ----------------------------------------------------
  243. // accessors -------------------------------------------------------
  244. // required .Snap7_communication_proto.Snap7_communication_parameter snap7_communication_parameters = 1;
  245. bool has_snap7_communication_parameters() const;
  246. void clear_snap7_communication_parameters();
  247. static const int kSnap7CommunicationParametersFieldNumber = 1;
  248. private:
  249. const ::Snap7_communication_proto::Snap7_communication_parameter& _internal_snap7_communication_parameters() const;
  250. public:
  251. const ::Snap7_communication_proto::Snap7_communication_parameter& snap7_communication_parameters() const;
  252. ::Snap7_communication_proto::Snap7_communication_parameter* release_snap7_communication_parameters();
  253. ::Snap7_communication_proto::Snap7_communication_parameter* mutable_snap7_communication_parameters();
  254. void set_allocated_snap7_communication_parameters(::Snap7_communication_proto::Snap7_communication_parameter* snap7_communication_parameters);
  255. // @@protoc_insertion_point(class_scope:Snap7_communication_proto.Snap7_communication_parameter_all)
  256. private:
  257. void set_has_snap7_communication_parameters();
  258. void clear_has_snap7_communication_parameters();
  259. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  260. ::google::protobuf::internal::HasBits<1> _has_bits_;
  261. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  262. ::Snap7_communication_proto::Snap7_communication_parameter* snap7_communication_parameters_;
  263. friend struct ::protobuf_snap7_5fcommunication_2eproto::TableStruct;
  264. };
  265. // ===================================================================
  266. // ===================================================================
  267. #ifdef __GNUC__
  268. #pragma GCC diagnostic push
  269. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  270. #endif // __GNUC__
  271. // Snap7_communication_parameter
  272. // required string ip_string = 1 [default = "192.168.0.1"];
  273. inline bool Snap7_communication_parameter::has_ip_string() const {
  274. return (_has_bits_[0] & 0x00000001u) != 0;
  275. }
  276. inline void Snap7_communication_parameter::set_has_ip_string() {
  277. _has_bits_[0] |= 0x00000001u;
  278. }
  279. inline void Snap7_communication_parameter::clear_has_ip_string() {
  280. _has_bits_[0] &= ~0x00000001u;
  281. }
  282. inline void Snap7_communication_parameter::clear_ip_string() {
  283. ip_string_.ClearToDefaultNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get());
  284. clear_has_ip_string();
  285. }
  286. inline const ::std::string& Snap7_communication_parameter::ip_string() const {
  287. // @@protoc_insertion_point(field_get:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
  288. return ip_string_.GetNoArena();
  289. }
  290. inline void Snap7_communication_parameter::set_ip_string(const ::std::string& value) {
  291. set_has_ip_string();
  292. ip_string_.SetNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get(), value);
  293. // @@protoc_insertion_point(field_set:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
  294. }
  295. #if LANG_CXX11
  296. inline void Snap7_communication_parameter::set_ip_string(::std::string&& value) {
  297. set_has_ip_string();
  298. ip_string_.SetNoArena(
  299. &::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get(), ::std::move(value));
  300. // @@protoc_insertion_point(field_set_rvalue:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
  301. }
  302. #endif
  303. inline void Snap7_communication_parameter::set_ip_string(const char* value) {
  304. GOOGLE_DCHECK(value != NULL);
  305. set_has_ip_string();
  306. ip_string_.SetNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get(), ::std::string(value));
  307. // @@protoc_insertion_point(field_set_char:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
  308. }
  309. inline void Snap7_communication_parameter::set_ip_string(const char* value, size_t size) {
  310. set_has_ip_string();
  311. ip_string_.SetNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get(),
  312. ::std::string(reinterpret_cast<const char*>(value), size));
  313. // @@protoc_insertion_point(field_set_pointer:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
  314. }
  315. inline ::std::string* Snap7_communication_parameter::mutable_ip_string() {
  316. set_has_ip_string();
  317. // @@protoc_insertion_point(field_mutable:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
  318. return ip_string_.MutableNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get());
  319. }
  320. inline ::std::string* Snap7_communication_parameter::release_ip_string() {
  321. // @@protoc_insertion_point(field_release:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
  322. if (!has_ip_string()) {
  323. return NULL;
  324. }
  325. clear_has_ip_string();
  326. return ip_string_.ReleaseNonDefaultNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get());
  327. }
  328. inline void Snap7_communication_parameter::set_allocated_ip_string(::std::string* ip_string) {
  329. if (ip_string != NULL) {
  330. set_has_ip_string();
  331. } else {
  332. clear_has_ip_string();
  333. }
  334. ip_string_.SetAllocatedNoArena(&::Snap7_communication_proto::Snap7_communication_parameter::_i_give_permission_to_break_this_code_default_ip_string_.get(), ip_string);
  335. // @@protoc_insertion_point(field_set_allocated:Snap7_communication_proto.Snap7_communication_parameter.ip_string)
  336. }
  337. // -------------------------------------------------------------------
  338. // Snap7_communication_parameter_all
  339. // required .Snap7_communication_proto.Snap7_communication_parameter snap7_communication_parameters = 1;
  340. inline bool Snap7_communication_parameter_all::has_snap7_communication_parameters() const {
  341. return (_has_bits_[0] & 0x00000001u) != 0;
  342. }
  343. inline void Snap7_communication_parameter_all::set_has_snap7_communication_parameters() {
  344. _has_bits_[0] |= 0x00000001u;
  345. }
  346. inline void Snap7_communication_parameter_all::clear_has_snap7_communication_parameters() {
  347. _has_bits_[0] &= ~0x00000001u;
  348. }
  349. inline void Snap7_communication_parameter_all::clear_snap7_communication_parameters() {
  350. if (snap7_communication_parameters_ != NULL) snap7_communication_parameters_->Clear();
  351. clear_has_snap7_communication_parameters();
  352. }
  353. inline const ::Snap7_communication_proto::Snap7_communication_parameter& Snap7_communication_parameter_all::_internal_snap7_communication_parameters() const {
  354. return *snap7_communication_parameters_;
  355. }
  356. inline const ::Snap7_communication_proto::Snap7_communication_parameter& Snap7_communication_parameter_all::snap7_communication_parameters() const {
  357. const ::Snap7_communication_proto::Snap7_communication_parameter* p = snap7_communication_parameters_;
  358. // @@protoc_insertion_point(field_get:Snap7_communication_proto.Snap7_communication_parameter_all.snap7_communication_parameters)
  359. return p != NULL ? *p : *reinterpret_cast<const ::Snap7_communication_proto::Snap7_communication_parameter*>(
  360. &::Snap7_communication_proto::_Snap7_communication_parameter_default_instance_);
  361. }
  362. inline ::Snap7_communication_proto::Snap7_communication_parameter* Snap7_communication_parameter_all::release_snap7_communication_parameters() {
  363. // @@protoc_insertion_point(field_release:Snap7_communication_proto.Snap7_communication_parameter_all.snap7_communication_parameters)
  364. clear_has_snap7_communication_parameters();
  365. ::Snap7_communication_proto::Snap7_communication_parameter* temp = snap7_communication_parameters_;
  366. snap7_communication_parameters_ = NULL;
  367. return temp;
  368. }
  369. inline ::Snap7_communication_proto::Snap7_communication_parameter* Snap7_communication_parameter_all::mutable_snap7_communication_parameters() {
  370. set_has_snap7_communication_parameters();
  371. if (snap7_communication_parameters_ == NULL) {
  372. auto* p = CreateMaybeMessage<::Snap7_communication_proto::Snap7_communication_parameter>(GetArenaNoVirtual());
  373. snap7_communication_parameters_ = p;
  374. }
  375. // @@protoc_insertion_point(field_mutable:Snap7_communication_proto.Snap7_communication_parameter_all.snap7_communication_parameters)
  376. return snap7_communication_parameters_;
  377. }
  378. inline void Snap7_communication_parameter_all::set_allocated_snap7_communication_parameters(::Snap7_communication_proto::Snap7_communication_parameter* snap7_communication_parameters) {
  379. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  380. if (message_arena == NULL) {
  381. delete snap7_communication_parameters_;
  382. }
  383. if (snap7_communication_parameters) {
  384. ::google::protobuf::Arena* submessage_arena = NULL;
  385. if (message_arena != submessage_arena) {
  386. snap7_communication_parameters = ::google::protobuf::internal::GetOwnedMessage(
  387. message_arena, snap7_communication_parameters, submessage_arena);
  388. }
  389. set_has_snap7_communication_parameters();
  390. } else {
  391. clear_has_snap7_communication_parameters();
  392. }
  393. snap7_communication_parameters_ = snap7_communication_parameters;
  394. // @@protoc_insertion_point(field_set_allocated:Snap7_communication_proto.Snap7_communication_parameter_all.snap7_communication_parameters)
  395. }
  396. #ifdef __GNUC__
  397. #pragma GCC diagnostic pop
  398. #endif // __GNUC__
  399. // -------------------------------------------------------------------
  400. // @@protoc_insertion_point(namespace_scope)
  401. } // namespace Snap7_communication_proto
  402. // @@protoc_insertion_point(global_scope)
  403. #endif // PROTOBUF_INCLUDED_snap7_5fcommunication_2eproto