plc_message.pb.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: plc_message.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_plc_5fmessage_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_plc_5fmessage_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_5fmessage_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_5fmessage_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[1]
  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_5fmessage_2eproto;
  53. namespace plc_message {
  54. class plcMsg;
  55. class plcMsgDefaultTypeInternal;
  56. extern plcMsgDefaultTypeInternal _plcMsg_default_instance_;
  57. } // namespace plc_message
  58. PROTOBUF_NAMESPACE_OPEN
  59. template<> ::plc_message::plcMsg* Arena::CreateMaybeMessage<::plc_message::plcMsg>(Arena*);
  60. PROTOBUF_NAMESPACE_CLOSE
  61. namespace plc_message {
  62. enum plcStatus : int {
  63. ePLCConnected = 0,
  64. ePLCDisconnected = 1,
  65. ePLCRefused = 2,
  66. ePLCUnknown = 3
  67. };
  68. bool plcStatus_IsValid(int value);
  69. constexpr plcStatus plcStatus_MIN = ePLCConnected;
  70. constexpr plcStatus plcStatus_MAX = ePLCUnknown;
  71. constexpr int plcStatus_ARRAYSIZE = plcStatus_MAX + 1;
  72. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* plcStatus_descriptor();
  73. template<typename T>
  74. inline const std::string& plcStatus_Name(T enum_t_value) {
  75. static_assert(::std::is_same<T, plcStatus>::value ||
  76. ::std::is_integral<T>::value,
  77. "Incorrect type passed to function plcStatus_Name.");
  78. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  79. plcStatus_descriptor(), enum_t_value);
  80. }
  81. inline bool plcStatus_Parse(
  82. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, plcStatus* value) {
  83. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<plcStatus>(
  84. plcStatus_descriptor(), name, value);
  85. }
  86. // ===================================================================
  87. class plcMsg PROTOBUF_FINAL :
  88. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:plc_message.plcMsg) */ {
  89. public:
  90. inline plcMsg() : plcMsg(nullptr) {}
  91. virtual ~plcMsg();
  92. plcMsg(const plcMsg& from);
  93. plcMsg(plcMsg&& from) noexcept
  94. : plcMsg() {
  95. *this = ::std::move(from);
  96. }
  97. inline plcMsg& operator=(const plcMsg& from) {
  98. CopyFrom(from);
  99. return *this;
  100. }
  101. inline plcMsg& operator=(plcMsg&& from) noexcept {
  102. if (GetArena() == from.GetArena()) {
  103. if (this != &from) InternalSwap(&from);
  104. } else {
  105. CopyFrom(from);
  106. }
  107. return *this;
  108. }
  109. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  110. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  111. }
  112. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  113. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  114. }
  115. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  116. return GetDescriptor();
  117. }
  118. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  119. return GetMetadataStatic().descriptor;
  120. }
  121. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  122. return GetMetadataStatic().reflection;
  123. }
  124. static const plcMsg& default_instance();
  125. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  126. static inline const plcMsg* internal_default_instance() {
  127. return reinterpret_cast<const plcMsg*>(
  128. &_plcMsg_default_instance_);
  129. }
  130. static constexpr int kIndexInFileMessages =
  131. 0;
  132. friend void swap(plcMsg& a, plcMsg& b) {
  133. a.Swap(&b);
  134. }
  135. inline void Swap(plcMsg* other) {
  136. if (other == this) return;
  137. if (GetArena() == other->GetArena()) {
  138. InternalSwap(other);
  139. } else {
  140. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  141. }
  142. }
  143. void UnsafeArenaSwap(plcMsg* other) {
  144. if (other == this) return;
  145. GOOGLE_DCHECK(GetArena() == other->GetArena());
  146. InternalSwap(other);
  147. }
  148. // implements Message ----------------------------------------------
  149. inline plcMsg* New() const final {
  150. return CreateMaybeMessage<plcMsg>(nullptr);
  151. }
  152. plcMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  153. return CreateMaybeMessage<plcMsg>(arena);
  154. }
  155. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  156. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  157. void CopyFrom(const plcMsg& from);
  158. void MergeFrom(const plcMsg& from);
  159. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  160. bool IsInitialized() const final;
  161. size_t ByteSizeLong() const final;
  162. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  163. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  164. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  165. int GetCachedSize() const final { return _cached_size_.Get(); }
  166. private:
  167. inline void SharedCtor();
  168. inline void SharedDtor();
  169. void SetCachedSize(int size) const final;
  170. void InternalSwap(plcMsg* other);
  171. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  172. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  173. return "plc_message.plcMsg";
  174. }
  175. protected:
  176. explicit plcMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  177. private:
  178. static void ArenaDtor(void* object);
  179. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  180. public:
  181. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  182. private:
  183. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  184. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_plc_5fmessage_2eproto);
  185. return ::descriptor_table_plc_5fmessage_2eproto.file_level_metadata[kIndexInFileMessages];
  186. }
  187. public:
  188. // nested types ----------------------------------------------------
  189. // accessors -------------------------------------------------------
  190. enum : int {
  191. kPlcValuesFieldNumber = 2,
  192. kPlcStatusFieldNumber = 1,
  193. };
  194. // repeated int32 plc_values = 2;
  195. int plc_values_size() const;
  196. private:
  197. int _internal_plc_values_size() const;
  198. public:
  199. void clear_plc_values();
  200. private:
  201. ::PROTOBUF_NAMESPACE_ID::int32 _internal_plc_values(int index) const;
  202. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  203. _internal_plc_values() const;
  204. void _internal_add_plc_values(::PROTOBUF_NAMESPACE_ID::int32 value);
  205. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  206. _internal_mutable_plc_values();
  207. public:
  208. ::PROTOBUF_NAMESPACE_ID::int32 plc_values(int index) const;
  209. void set_plc_values(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
  210. void add_plc_values(::PROTOBUF_NAMESPACE_ID::int32 value);
  211. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  212. plc_values() const;
  213. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  214. mutable_plc_values();
  215. // optional .plc_message.plcStatus plc_status = 1;
  216. bool has_plc_status() const;
  217. private:
  218. bool _internal_has_plc_status() const;
  219. public:
  220. void clear_plc_status();
  221. ::plc_message::plcStatus plc_status() const;
  222. void set_plc_status(::plc_message::plcStatus value);
  223. private:
  224. ::plc_message::plcStatus _internal_plc_status() const;
  225. void _internal_set_plc_status(::plc_message::plcStatus value);
  226. public:
  227. // @@protoc_insertion_point(class_scope:plc_message.plcMsg)
  228. private:
  229. class _Internal;
  230. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  231. typedef void InternalArenaConstructable_;
  232. typedef void DestructorSkippable_;
  233. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  234. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  235. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > plc_values_;
  236. int plc_status_;
  237. friend struct ::TableStruct_plc_5fmessage_2eproto;
  238. };
  239. // ===================================================================
  240. // ===================================================================
  241. #ifdef __GNUC__
  242. #pragma GCC diagnostic push
  243. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  244. #endif // __GNUC__
  245. // plcMsg
  246. // optional .plc_message.plcStatus plc_status = 1;
  247. inline bool plcMsg::_internal_has_plc_status() const {
  248. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  249. return value;
  250. }
  251. inline bool plcMsg::has_plc_status() const {
  252. return _internal_has_plc_status();
  253. }
  254. inline void plcMsg::clear_plc_status() {
  255. plc_status_ = 0;
  256. _has_bits_[0] &= ~0x00000001u;
  257. }
  258. inline ::plc_message::plcStatus plcMsg::_internal_plc_status() const {
  259. return static_cast< ::plc_message::plcStatus >(plc_status_);
  260. }
  261. inline ::plc_message::plcStatus plcMsg::plc_status() const {
  262. // @@protoc_insertion_point(field_get:plc_message.plcMsg.plc_status)
  263. return _internal_plc_status();
  264. }
  265. inline void plcMsg::_internal_set_plc_status(::plc_message::plcStatus value) {
  266. assert(::plc_message::plcStatus_IsValid(value));
  267. _has_bits_[0] |= 0x00000001u;
  268. plc_status_ = value;
  269. }
  270. inline void plcMsg::set_plc_status(::plc_message::plcStatus value) {
  271. _internal_set_plc_status(value);
  272. // @@protoc_insertion_point(field_set:plc_message.plcMsg.plc_status)
  273. }
  274. // repeated int32 plc_values = 2;
  275. inline int plcMsg::_internal_plc_values_size() const {
  276. return plc_values_.size();
  277. }
  278. inline int plcMsg::plc_values_size() const {
  279. return _internal_plc_values_size();
  280. }
  281. inline void plcMsg::clear_plc_values() {
  282. plc_values_.Clear();
  283. }
  284. inline ::PROTOBUF_NAMESPACE_ID::int32 plcMsg::_internal_plc_values(int index) const {
  285. return plc_values_.Get(index);
  286. }
  287. inline ::PROTOBUF_NAMESPACE_ID::int32 plcMsg::plc_values(int index) const {
  288. // @@protoc_insertion_point(field_get:plc_message.plcMsg.plc_values)
  289. return _internal_plc_values(index);
  290. }
  291. inline void plcMsg::set_plc_values(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
  292. plc_values_.Set(index, value);
  293. // @@protoc_insertion_point(field_set:plc_message.plcMsg.plc_values)
  294. }
  295. inline void plcMsg::_internal_add_plc_values(::PROTOBUF_NAMESPACE_ID::int32 value) {
  296. plc_values_.Add(value);
  297. }
  298. inline void plcMsg::add_plc_values(::PROTOBUF_NAMESPACE_ID::int32 value) {
  299. _internal_add_plc_values(value);
  300. // @@protoc_insertion_point(field_add:plc_message.plcMsg.plc_values)
  301. }
  302. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  303. plcMsg::_internal_plc_values() const {
  304. return plc_values_;
  305. }
  306. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  307. plcMsg::plc_values() const {
  308. // @@protoc_insertion_point(field_list:plc_message.plcMsg.plc_values)
  309. return _internal_plc_values();
  310. }
  311. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  312. plcMsg::_internal_mutable_plc_values() {
  313. return &plc_values_;
  314. }
  315. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  316. plcMsg::mutable_plc_values() {
  317. // @@protoc_insertion_point(field_mutable_list:plc_message.plcMsg.plc_values)
  318. return _internal_mutable_plc_values();
  319. }
  320. #ifdef __GNUC__
  321. #pragma GCC diagnostic pop
  322. #endif // __GNUC__
  323. // @@protoc_insertion_point(namespace_scope)
  324. } // namespace plc_message
  325. PROTOBUF_NAMESPACE_OPEN
  326. template <> struct is_proto_enum< ::plc_message::plcStatus> : ::std::true_type {};
  327. template <>
  328. inline const EnumDescriptor* GetEnumDescriptor< ::plc_message::plcStatus>() {
  329. return ::plc_message::plcStatus_descriptor();
  330. }
  331. PROTOBUF_NAMESPACE_CLOSE
  332. // @@protoc_insertion_point(global_scope)
  333. #include <google/protobuf/port_undef.inc>
  334. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_plc_5fmessage_2eproto