snap7_communication.pb.h 20 KB

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