central_control_message.pb.h 15 KB

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