central_control_message.pb.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: central_control_message.proto
  3. #ifndef PROTOBUF_central_5fcontrol_5fmessage_2eproto__INCLUDED
  4. #define PROTOBUF_central_5fcontrol_5fmessage_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/generated_enum_reflection.h>
  27. #include <google/protobuf/unknown_field_set.h>
  28. #include "message_base.pb.h"
  29. // @@protoc_insertion_point(includes)
  30. namespace protobuf_central_5fcontrol_5fmessage_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[1];
  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. void InitDefaultsCentral_controller_statu_msgImpl();
  42. void InitDefaultsCentral_controller_statu_msg();
  43. inline void InitDefaults() {
  44. InitDefaultsCentral_controller_statu_msg();
  45. }
  46. } // namespace protobuf_central_5fcontrol_5fmessage_2eproto
  47. namespace message {
  48. class Central_controller_statu_msg;
  49. class Central_controller_statu_msgDefaultTypeInternal;
  50. extern Central_controller_statu_msgDefaultTypeInternal _Central_controller_statu_msg_default_instance_;
  51. } // namespace message
  52. namespace message {
  53. enum Entrance_statu {
  54. eEnable = 0,
  55. eDisable = 1
  56. };
  57. bool Entrance_statu_IsValid(int value);
  58. const Entrance_statu Entrance_statu_MIN = eEnable;
  59. const Entrance_statu Entrance_statu_MAX = eDisable;
  60. const int Entrance_statu_ARRAYSIZE = Entrance_statu_MAX + 1;
  61. const ::google::protobuf::EnumDescriptor* Entrance_statu_descriptor();
  62. inline const ::std::string& Entrance_statu_Name(Entrance_statu value) {
  63. return ::google::protobuf::internal::NameOfEnum(
  64. Entrance_statu_descriptor(), value);
  65. }
  66. inline bool Entrance_statu_Parse(
  67. const ::std::string& name, Entrance_statu* value) {
  68. return ::google::protobuf::internal::ParseNamedEnum<Entrance_statu>(
  69. Entrance_statu_descriptor(), name, value);
  70. }
  71. // ===================================================================
  72. class Central_controller_statu_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Central_controller_statu_msg) */ {
  73. public:
  74. Central_controller_statu_msg();
  75. virtual ~Central_controller_statu_msg();
  76. Central_controller_statu_msg(const Central_controller_statu_msg& from);
  77. inline Central_controller_statu_msg& operator=(const Central_controller_statu_msg& from) {
  78. CopyFrom(from);
  79. return *this;
  80. }
  81. #if LANG_CXX11
  82. Central_controller_statu_msg(Central_controller_statu_msg&& from) noexcept
  83. : Central_controller_statu_msg() {
  84. *this = ::std::move(from);
  85. }
  86. inline Central_controller_statu_msg& operator=(Central_controller_statu_msg&& from) noexcept {
  87. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  88. if (this != &from) InternalSwap(&from);
  89. } else {
  90. CopyFrom(from);
  91. }
  92. return *this;
  93. }
  94. #endif
  95. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  96. return _internal_metadata_.unknown_fields();
  97. }
  98. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  99. return _internal_metadata_.mutable_unknown_fields();
  100. }
  101. static const ::google::protobuf::Descriptor* descriptor();
  102. static const Central_controller_statu_msg& default_instance();
  103. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  104. static inline const Central_controller_statu_msg* internal_default_instance() {
  105. return reinterpret_cast<const Central_controller_statu_msg*>(
  106. &_Central_controller_statu_msg_default_instance_);
  107. }
  108. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  109. 0;
  110. void Swap(Central_controller_statu_msg* other);
  111. friend void swap(Central_controller_statu_msg& a, Central_controller_statu_msg& b) {
  112. a.Swap(&b);
  113. }
  114. // implements Message ----------------------------------------------
  115. inline Central_controller_statu_msg* New() const PROTOBUF_FINAL { return New(NULL); }
  116. Central_controller_statu_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  117. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  118. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  119. void CopyFrom(const Central_controller_statu_msg& from);
  120. void MergeFrom(const Central_controller_statu_msg& from);
  121. void Clear() PROTOBUF_FINAL;
  122. bool IsInitialized() const PROTOBUF_FINAL;
  123. size_t ByteSizeLong() const PROTOBUF_FINAL;
  124. bool MergePartialFromCodedStream(
  125. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  126. void SerializeWithCachedSizes(
  127. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  128. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  129. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  130. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  131. private:
  132. void SharedCtor();
  133. void SharedDtor();
  134. void SetCachedSize(int size) const PROTOBUF_FINAL;
  135. void InternalSwap(Central_controller_statu_msg* other);
  136. private:
  137. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  138. return NULL;
  139. }
  140. inline void* MaybeArenaPtr() const {
  141. return NULL;
  142. }
  143. public:
  144. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  145. // nested types ----------------------------------------------------
  146. // accessors -------------------------------------------------------
  147. // repeated .message.Entrance_statu entrance_statu_vector = 3;
  148. int entrance_statu_vector_size() const;
  149. void clear_entrance_statu_vector();
  150. static const int kEntranceStatuVectorFieldNumber = 3;
  151. ::message::Entrance_statu entrance_statu_vector(int index) const;
  152. void set_entrance_statu_vector(int index, ::message::Entrance_statu value);
  153. void add_entrance_statu_vector(::message::Entrance_statu value);
  154. const ::google::protobuf::RepeatedField<int>& entrance_statu_vector() const;
  155. ::google::protobuf::RepeatedField<int>* mutable_entrance_statu_vector();
  156. // repeated .message.Entrance_statu export_statu_vector = 4;
  157. int export_statu_vector_size() const;
  158. void clear_export_statu_vector();
  159. static const int kExportStatuVectorFieldNumber = 4;
  160. ::message::Entrance_statu export_statu_vector(int index) const;
  161. void set_export_statu_vector(int index, ::message::Entrance_statu value);
  162. void add_export_statu_vector(::message::Entrance_statu value);
  163. const ::google::protobuf::RepeatedField<int>& export_statu_vector() const;
  164. ::google::protobuf::RepeatedField<int>* mutable_export_statu_vector();
  165. // required .message.Base_info base_info = 1;
  166. bool has_base_info() const;
  167. void clear_base_info();
  168. static const int kBaseInfoFieldNumber = 1;
  169. const ::message::Base_info& base_info() const;
  170. ::message::Base_info* release_base_info();
  171. ::message::Base_info* mutable_base_info();
  172. void set_allocated_base_info(::message::Base_info* base_info);
  173. // required bool paused = 2;
  174. bool has_paused() const;
  175. void clear_paused();
  176. static const int kPausedFieldNumber = 2;
  177. bool paused() const;
  178. void set_paused(bool value);
  179. // @@protoc_insertion_point(class_scope:message.Central_controller_statu_msg)
  180. private:
  181. void set_has_base_info();
  182. void clear_has_base_info();
  183. void set_has_paused();
  184. void clear_has_paused();
  185. // helper for ByteSizeLong()
  186. size_t RequiredFieldsByteSizeFallback() const;
  187. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  188. ::google::protobuf::internal::HasBits<1> _has_bits_;
  189. mutable int _cached_size_;
  190. ::google::protobuf::RepeatedField<int> entrance_statu_vector_;
  191. ::google::protobuf::RepeatedField<int> export_statu_vector_;
  192. ::message::Base_info* base_info_;
  193. bool paused_;
  194. friend struct ::protobuf_central_5fcontrol_5fmessage_2eproto::TableStruct;
  195. friend void ::protobuf_central_5fcontrol_5fmessage_2eproto::InitDefaultsCentral_controller_statu_msgImpl();
  196. };
  197. // ===================================================================
  198. // ===================================================================
  199. #ifdef __GNUC__
  200. #pragma GCC diagnostic push
  201. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  202. #endif // __GNUC__
  203. // Central_controller_statu_msg
  204. // required .message.Base_info base_info = 1;
  205. inline bool Central_controller_statu_msg::has_base_info() const {
  206. return (_has_bits_[0] & 0x00000001u) != 0;
  207. }
  208. inline void Central_controller_statu_msg::set_has_base_info() {
  209. _has_bits_[0] |= 0x00000001u;
  210. }
  211. inline void Central_controller_statu_msg::clear_has_base_info() {
  212. _has_bits_[0] &= ~0x00000001u;
  213. }
  214. inline const ::message::Base_info& Central_controller_statu_msg::base_info() const {
  215. const ::message::Base_info* p = base_info_;
  216. // @@protoc_insertion_point(field_get:message.Central_controller_statu_msg.base_info)
  217. return p != NULL ? *p : *reinterpret_cast<const ::message::Base_info*>(
  218. &::message::_Base_info_default_instance_);
  219. }
  220. inline ::message::Base_info* Central_controller_statu_msg::release_base_info() {
  221. // @@protoc_insertion_point(field_release:message.Central_controller_statu_msg.base_info)
  222. clear_has_base_info();
  223. ::message::Base_info* temp = base_info_;
  224. base_info_ = NULL;
  225. return temp;
  226. }
  227. inline ::message::Base_info* Central_controller_statu_msg::mutable_base_info() {
  228. set_has_base_info();
  229. if (base_info_ == NULL) {
  230. base_info_ = new ::message::Base_info;
  231. }
  232. // @@protoc_insertion_point(field_mutable:message.Central_controller_statu_msg.base_info)
  233. return base_info_;
  234. }
  235. inline void Central_controller_statu_msg::set_allocated_base_info(::message::Base_info* base_info) {
  236. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  237. if (message_arena == NULL) {
  238. delete reinterpret_cast< ::google::protobuf::MessageLite*>(base_info_);
  239. }
  240. if (base_info) {
  241. ::google::protobuf::Arena* submessage_arena = NULL;
  242. if (message_arena != submessage_arena) {
  243. base_info = ::google::protobuf::internal::GetOwnedMessage(
  244. message_arena, base_info, submessage_arena);
  245. }
  246. set_has_base_info();
  247. } else {
  248. clear_has_base_info();
  249. }
  250. base_info_ = base_info;
  251. // @@protoc_insertion_point(field_set_allocated:message.Central_controller_statu_msg.base_info)
  252. }
  253. // required bool paused = 2;
  254. inline bool Central_controller_statu_msg::has_paused() const {
  255. return (_has_bits_[0] & 0x00000002u) != 0;
  256. }
  257. inline void Central_controller_statu_msg::set_has_paused() {
  258. _has_bits_[0] |= 0x00000002u;
  259. }
  260. inline void Central_controller_statu_msg::clear_has_paused() {
  261. _has_bits_[0] &= ~0x00000002u;
  262. }
  263. inline void Central_controller_statu_msg::clear_paused() {
  264. paused_ = false;
  265. clear_has_paused();
  266. }
  267. inline bool Central_controller_statu_msg::paused() const {
  268. // @@protoc_insertion_point(field_get:message.Central_controller_statu_msg.paused)
  269. return paused_;
  270. }
  271. inline void Central_controller_statu_msg::set_paused(bool value) {
  272. set_has_paused();
  273. paused_ = value;
  274. // @@protoc_insertion_point(field_set:message.Central_controller_statu_msg.paused)
  275. }
  276. // repeated .message.Entrance_statu entrance_statu_vector = 3;
  277. inline int Central_controller_statu_msg::entrance_statu_vector_size() const {
  278. return entrance_statu_vector_.size();
  279. }
  280. inline void Central_controller_statu_msg::clear_entrance_statu_vector() {
  281. entrance_statu_vector_.Clear();
  282. }
  283. inline ::message::Entrance_statu Central_controller_statu_msg::entrance_statu_vector(int index) const {
  284. // @@protoc_insertion_point(field_get:message.Central_controller_statu_msg.entrance_statu_vector)
  285. return static_cast< ::message::Entrance_statu >(entrance_statu_vector_.Get(index));
  286. }
  287. inline void Central_controller_statu_msg::set_entrance_statu_vector(int index, ::message::Entrance_statu value) {
  288. assert(::message::Entrance_statu_IsValid(value));
  289. entrance_statu_vector_.Set(index, value);
  290. // @@protoc_insertion_point(field_set:message.Central_controller_statu_msg.entrance_statu_vector)
  291. }
  292. inline void Central_controller_statu_msg::add_entrance_statu_vector(::message::Entrance_statu value) {
  293. assert(::message::Entrance_statu_IsValid(value));
  294. entrance_statu_vector_.Add(value);
  295. // @@protoc_insertion_point(field_add:message.Central_controller_statu_msg.entrance_statu_vector)
  296. }
  297. inline const ::google::protobuf::RepeatedField<int>&
  298. Central_controller_statu_msg::entrance_statu_vector() const {
  299. // @@protoc_insertion_point(field_list:message.Central_controller_statu_msg.entrance_statu_vector)
  300. return entrance_statu_vector_;
  301. }
  302. inline ::google::protobuf::RepeatedField<int>*
  303. Central_controller_statu_msg::mutable_entrance_statu_vector() {
  304. // @@protoc_insertion_point(field_mutable_list:message.Central_controller_statu_msg.entrance_statu_vector)
  305. return &entrance_statu_vector_;
  306. }
  307. // repeated .message.Entrance_statu export_statu_vector = 4;
  308. inline int Central_controller_statu_msg::export_statu_vector_size() const {
  309. return export_statu_vector_.size();
  310. }
  311. inline void Central_controller_statu_msg::clear_export_statu_vector() {
  312. export_statu_vector_.Clear();
  313. }
  314. inline ::message::Entrance_statu Central_controller_statu_msg::export_statu_vector(int index) const {
  315. // @@protoc_insertion_point(field_get:message.Central_controller_statu_msg.export_statu_vector)
  316. return static_cast< ::message::Entrance_statu >(export_statu_vector_.Get(index));
  317. }
  318. inline void Central_controller_statu_msg::set_export_statu_vector(int index, ::message::Entrance_statu value) {
  319. assert(::message::Entrance_statu_IsValid(value));
  320. export_statu_vector_.Set(index, value);
  321. // @@protoc_insertion_point(field_set:message.Central_controller_statu_msg.export_statu_vector)
  322. }
  323. inline void Central_controller_statu_msg::add_export_statu_vector(::message::Entrance_statu value) {
  324. assert(::message::Entrance_statu_IsValid(value));
  325. export_statu_vector_.Add(value);
  326. // @@protoc_insertion_point(field_add:message.Central_controller_statu_msg.export_statu_vector)
  327. }
  328. inline const ::google::protobuf::RepeatedField<int>&
  329. Central_controller_statu_msg::export_statu_vector() const {
  330. // @@protoc_insertion_point(field_list:message.Central_controller_statu_msg.export_statu_vector)
  331. return export_statu_vector_;
  332. }
  333. inline ::google::protobuf::RepeatedField<int>*
  334. Central_controller_statu_msg::mutable_export_statu_vector() {
  335. // @@protoc_insertion_point(field_mutable_list:message.Central_controller_statu_msg.export_statu_vector)
  336. return &export_statu_vector_;
  337. }
  338. #ifdef __GNUC__
  339. #pragma GCC diagnostic pop
  340. #endif // __GNUC__
  341. // @@protoc_insertion_point(namespace_scope)
  342. } // namespace message
  343. namespace google {
  344. namespace protobuf {
  345. template <> struct is_proto_enum< ::message::Entrance_statu> : ::google::protobuf::internal::true_type {};
  346. template <>
  347. inline const EnumDescriptor* GetEnumDescriptor< ::message::Entrance_statu>() {
  348. return ::message::Entrance_statu_descriptor();
  349. }
  350. } // namespace protobuf
  351. } // namespace google
  352. // @@protoc_insertion_point(global_scope)
  353. #endif // PROTOBUF_central_5fcontrol_5fmessage_2eproto__INCLUDED