system_setting.pb.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: system_setting.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_system_5fsetting_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_system_5fsetting_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/unknown_field_set.h>
  31. // @@protoc_insertion_point(includes)
  32. #include <google/protobuf/port_def.inc>
  33. #define PROTOBUF_INTERNAL_EXPORT_system_5fsetting_2eproto
  34. PROTOBUF_NAMESPACE_OPEN
  35. namespace internal {
  36. class AnyMetadata;
  37. } // namespace internal
  38. PROTOBUF_NAMESPACE_CLOSE
  39. // Internal implementation detail -- do not use these members.
  40. struct TableStruct_system_5fsetting_2eproto {
  41. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  42. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  43. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  44. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  45. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
  46. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  47. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  48. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  49. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  50. };
  51. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_system_5fsetting_2eproto;
  52. namespace setting {
  53. class System_setting;
  54. class System_settingDefaultTypeInternal;
  55. extern System_settingDefaultTypeInternal _System_setting_default_instance_;
  56. } // namespace setting
  57. PROTOBUF_NAMESPACE_OPEN
  58. template<> ::setting::System_setting* Arena::CreateMaybeMessage<::setting::System_setting>(Arena*);
  59. PROTOBUF_NAMESPACE_CLOSE
  60. namespace setting {
  61. // ===================================================================
  62. class System_setting PROTOBUF_FINAL :
  63. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:setting.System_setting) */ {
  64. public:
  65. inline System_setting() : System_setting(nullptr) {}
  66. virtual ~System_setting();
  67. System_setting(const System_setting& from);
  68. System_setting(System_setting&& from) noexcept
  69. : System_setting() {
  70. *this = ::std::move(from);
  71. }
  72. inline System_setting& operator=(const System_setting& from) {
  73. CopyFrom(from);
  74. return *this;
  75. }
  76. inline System_setting& operator=(System_setting&& from) noexcept {
  77. if (GetArena() == from.GetArena()) {
  78. if (this != &from) InternalSwap(&from);
  79. } else {
  80. CopyFrom(from);
  81. }
  82. return *this;
  83. }
  84. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  85. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  86. }
  87. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  88. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  89. }
  90. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  91. return GetDescriptor();
  92. }
  93. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  94. return GetMetadataStatic().descriptor;
  95. }
  96. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  97. return GetMetadataStatic().reflection;
  98. }
  99. static const System_setting& default_instance();
  100. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  101. static inline const System_setting* internal_default_instance() {
  102. return reinterpret_cast<const System_setting*>(
  103. &_System_setting_default_instance_);
  104. }
  105. static constexpr int kIndexInFileMessages =
  106. 0;
  107. friend void swap(System_setting& a, System_setting& b) {
  108. a.Swap(&b);
  109. }
  110. inline void Swap(System_setting* other) {
  111. if (other == this) return;
  112. if (GetArena() == other->GetArena()) {
  113. InternalSwap(other);
  114. } else {
  115. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  116. }
  117. }
  118. void UnsafeArenaSwap(System_setting* other) {
  119. if (other == this) return;
  120. GOOGLE_DCHECK(GetArena() == other->GetArena());
  121. InternalSwap(other);
  122. }
  123. // implements Message ----------------------------------------------
  124. inline System_setting* New() const final {
  125. return CreateMaybeMessage<System_setting>(nullptr);
  126. }
  127. System_setting* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  128. return CreateMaybeMessage<System_setting>(arena);
  129. }
  130. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  131. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  132. void CopyFrom(const System_setting& from);
  133. void MergeFrom(const System_setting& from);
  134. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  135. bool IsInitialized() const final;
  136. size_t ByteSizeLong() const final;
  137. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  138. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  139. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  140. int GetCachedSize() const final { return _cached_size_.Get(); }
  141. private:
  142. inline void SharedCtor();
  143. inline void SharedDtor();
  144. void SetCachedSize(int size) const final;
  145. void InternalSwap(System_setting* other);
  146. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  147. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  148. return "setting.System_setting";
  149. }
  150. protected:
  151. explicit System_setting(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  152. private:
  153. static void ArenaDtor(void* object);
  154. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  155. public:
  156. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  157. private:
  158. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  159. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_system_5fsetting_2eproto);
  160. return ::descriptor_table_system_5fsetting_2eproto.file_level_metadata[kIndexInFileMessages];
  161. }
  162. public:
  163. // nested types ----------------------------------------------------
  164. // accessors -------------------------------------------------------
  165. enum : int {
  166. kBindIpFieldNumber = 1,
  167. kEntranceNumFieldNumber = 3,
  168. kExportNumFieldNumber = 4,
  169. kBindPortFieldNumber = 2,
  170. };
  171. // required string bind_ip = 1;
  172. bool has_bind_ip() const;
  173. private:
  174. bool _internal_has_bind_ip() const;
  175. public:
  176. void clear_bind_ip();
  177. const std::string& bind_ip() const;
  178. void set_bind_ip(const std::string& value);
  179. void set_bind_ip(std::string&& value);
  180. void set_bind_ip(const char* value);
  181. void set_bind_ip(const char* value, size_t size);
  182. std::string* mutable_bind_ip();
  183. std::string* release_bind_ip();
  184. void set_allocated_bind_ip(std::string* bind_ip);
  185. private:
  186. const std::string& _internal_bind_ip() const;
  187. void _internal_set_bind_ip(const std::string& value);
  188. std::string* _internal_mutable_bind_ip();
  189. public:
  190. // required int32 entrance_num = 3;
  191. bool has_entrance_num() const;
  192. private:
  193. bool _internal_has_entrance_num() const;
  194. public:
  195. void clear_entrance_num();
  196. ::PROTOBUF_NAMESPACE_ID::int32 entrance_num() const;
  197. void set_entrance_num(::PROTOBUF_NAMESPACE_ID::int32 value);
  198. private:
  199. ::PROTOBUF_NAMESPACE_ID::int32 _internal_entrance_num() const;
  200. void _internal_set_entrance_num(::PROTOBUF_NAMESPACE_ID::int32 value);
  201. public:
  202. // required int32 export_num = 4;
  203. bool has_export_num() const;
  204. private:
  205. bool _internal_has_export_num() const;
  206. public:
  207. void clear_export_num();
  208. ::PROTOBUF_NAMESPACE_ID::int32 export_num() const;
  209. void set_export_num(::PROTOBUF_NAMESPACE_ID::int32 value);
  210. private:
  211. ::PROTOBUF_NAMESPACE_ID::int32 _internal_export_num() const;
  212. void _internal_set_export_num(::PROTOBUF_NAMESPACE_ID::int32 value);
  213. public:
  214. // optional int32 bind_port = 2 [default = 30000];
  215. bool has_bind_port() const;
  216. private:
  217. bool _internal_has_bind_port() const;
  218. public:
  219. void clear_bind_port();
  220. ::PROTOBUF_NAMESPACE_ID::int32 bind_port() const;
  221. void set_bind_port(::PROTOBUF_NAMESPACE_ID::int32 value);
  222. private:
  223. ::PROTOBUF_NAMESPACE_ID::int32 _internal_bind_port() const;
  224. void _internal_set_bind_port(::PROTOBUF_NAMESPACE_ID::int32 value);
  225. public:
  226. // @@protoc_insertion_point(class_scope:setting.System_setting)
  227. private:
  228. class _Internal;
  229. // helper for ByteSizeLong()
  230. size_t RequiredFieldsByteSizeFallback() const;
  231. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  232. typedef void InternalArenaConstructable_;
  233. typedef void DestructorSkippable_;
  234. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  235. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  236. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bind_ip_;
  237. ::PROTOBUF_NAMESPACE_ID::int32 entrance_num_;
  238. ::PROTOBUF_NAMESPACE_ID::int32 export_num_;
  239. ::PROTOBUF_NAMESPACE_ID::int32 bind_port_;
  240. friend struct ::TableStruct_system_5fsetting_2eproto;
  241. };
  242. // ===================================================================
  243. // ===================================================================
  244. #ifdef __GNUC__
  245. #pragma GCC diagnostic push
  246. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  247. #endif // __GNUC__
  248. // System_setting
  249. // required string bind_ip = 1;
  250. inline bool System_setting::_internal_has_bind_ip() const {
  251. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  252. return value;
  253. }
  254. inline bool System_setting::has_bind_ip() const {
  255. return _internal_has_bind_ip();
  256. }
  257. inline void System_setting::clear_bind_ip() {
  258. bind_ip_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  259. _has_bits_[0] &= ~0x00000001u;
  260. }
  261. inline const std::string& System_setting::bind_ip() const {
  262. // @@protoc_insertion_point(field_get:setting.System_setting.bind_ip)
  263. return _internal_bind_ip();
  264. }
  265. inline void System_setting::set_bind_ip(const std::string& value) {
  266. _internal_set_bind_ip(value);
  267. // @@protoc_insertion_point(field_set:setting.System_setting.bind_ip)
  268. }
  269. inline std::string* System_setting::mutable_bind_ip() {
  270. // @@protoc_insertion_point(field_mutable:setting.System_setting.bind_ip)
  271. return _internal_mutable_bind_ip();
  272. }
  273. inline const std::string& System_setting::_internal_bind_ip() const {
  274. return bind_ip_.Get();
  275. }
  276. inline void System_setting::_internal_set_bind_ip(const std::string& value) {
  277. _has_bits_[0] |= 0x00000001u;
  278. bind_ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
  279. }
  280. inline void System_setting::set_bind_ip(std::string&& value) {
  281. _has_bits_[0] |= 0x00000001u;
  282. bind_ip_.Set(
  283. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
  284. // @@protoc_insertion_point(field_set_rvalue:setting.System_setting.bind_ip)
  285. }
  286. inline void System_setting::set_bind_ip(const char* value) {
  287. GOOGLE_DCHECK(value != nullptr);
  288. _has_bits_[0] |= 0x00000001u;
  289. bind_ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  290. GetArena());
  291. // @@protoc_insertion_point(field_set_char:setting.System_setting.bind_ip)
  292. }
  293. inline void System_setting::set_bind_ip(const char* value,
  294. size_t size) {
  295. _has_bits_[0] |= 0x00000001u;
  296. bind_ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  297. reinterpret_cast<const char*>(value), size), GetArena());
  298. // @@protoc_insertion_point(field_set_pointer:setting.System_setting.bind_ip)
  299. }
  300. inline std::string* System_setting::_internal_mutable_bind_ip() {
  301. _has_bits_[0] |= 0x00000001u;
  302. return bind_ip_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  303. }
  304. inline std::string* System_setting::release_bind_ip() {
  305. // @@protoc_insertion_point(field_release:setting.System_setting.bind_ip)
  306. if (!_internal_has_bind_ip()) {
  307. return nullptr;
  308. }
  309. _has_bits_[0] &= ~0x00000001u;
  310. return bind_ip_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  311. }
  312. inline void System_setting::set_allocated_bind_ip(std::string* bind_ip) {
  313. if (bind_ip != nullptr) {
  314. _has_bits_[0] |= 0x00000001u;
  315. } else {
  316. _has_bits_[0] &= ~0x00000001u;
  317. }
  318. bind_ip_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), bind_ip,
  319. GetArena());
  320. // @@protoc_insertion_point(field_set_allocated:setting.System_setting.bind_ip)
  321. }
  322. // optional int32 bind_port = 2 [default = 30000];
  323. inline bool System_setting::_internal_has_bind_port() const {
  324. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  325. return value;
  326. }
  327. inline bool System_setting::has_bind_port() const {
  328. return _internal_has_bind_port();
  329. }
  330. inline void System_setting::clear_bind_port() {
  331. bind_port_ = 30000;
  332. _has_bits_[0] &= ~0x00000008u;
  333. }
  334. inline ::PROTOBUF_NAMESPACE_ID::int32 System_setting::_internal_bind_port() const {
  335. return bind_port_;
  336. }
  337. inline ::PROTOBUF_NAMESPACE_ID::int32 System_setting::bind_port() const {
  338. // @@protoc_insertion_point(field_get:setting.System_setting.bind_port)
  339. return _internal_bind_port();
  340. }
  341. inline void System_setting::_internal_set_bind_port(::PROTOBUF_NAMESPACE_ID::int32 value) {
  342. _has_bits_[0] |= 0x00000008u;
  343. bind_port_ = value;
  344. }
  345. inline void System_setting::set_bind_port(::PROTOBUF_NAMESPACE_ID::int32 value) {
  346. _internal_set_bind_port(value);
  347. // @@protoc_insertion_point(field_set:setting.System_setting.bind_port)
  348. }
  349. // required int32 entrance_num = 3;
  350. inline bool System_setting::_internal_has_entrance_num() const {
  351. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  352. return value;
  353. }
  354. inline bool System_setting::has_entrance_num() const {
  355. return _internal_has_entrance_num();
  356. }
  357. inline void System_setting::clear_entrance_num() {
  358. entrance_num_ = 0;
  359. _has_bits_[0] &= ~0x00000002u;
  360. }
  361. inline ::PROTOBUF_NAMESPACE_ID::int32 System_setting::_internal_entrance_num() const {
  362. return entrance_num_;
  363. }
  364. inline ::PROTOBUF_NAMESPACE_ID::int32 System_setting::entrance_num() const {
  365. // @@protoc_insertion_point(field_get:setting.System_setting.entrance_num)
  366. return _internal_entrance_num();
  367. }
  368. inline void System_setting::_internal_set_entrance_num(::PROTOBUF_NAMESPACE_ID::int32 value) {
  369. _has_bits_[0] |= 0x00000002u;
  370. entrance_num_ = value;
  371. }
  372. inline void System_setting::set_entrance_num(::PROTOBUF_NAMESPACE_ID::int32 value) {
  373. _internal_set_entrance_num(value);
  374. // @@protoc_insertion_point(field_set:setting.System_setting.entrance_num)
  375. }
  376. // required int32 export_num = 4;
  377. inline bool System_setting::_internal_has_export_num() const {
  378. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  379. return value;
  380. }
  381. inline bool System_setting::has_export_num() const {
  382. return _internal_has_export_num();
  383. }
  384. inline void System_setting::clear_export_num() {
  385. export_num_ = 0;
  386. _has_bits_[0] &= ~0x00000004u;
  387. }
  388. inline ::PROTOBUF_NAMESPACE_ID::int32 System_setting::_internal_export_num() const {
  389. return export_num_;
  390. }
  391. inline ::PROTOBUF_NAMESPACE_ID::int32 System_setting::export_num() const {
  392. // @@protoc_insertion_point(field_get:setting.System_setting.export_num)
  393. return _internal_export_num();
  394. }
  395. inline void System_setting::_internal_set_export_num(::PROTOBUF_NAMESPACE_ID::int32 value) {
  396. _has_bits_[0] |= 0x00000004u;
  397. export_num_ = value;
  398. }
  399. inline void System_setting::set_export_num(::PROTOBUF_NAMESPACE_ID::int32 value) {
  400. _internal_set_export_num(value);
  401. // @@protoc_insertion_point(field_set:setting.System_setting.export_num)
  402. }
  403. #ifdef __GNUC__
  404. #pragma GCC diagnostic pop
  405. #endif // __GNUC__
  406. // @@protoc_insertion_point(namespace_scope)
  407. } // namespace setting
  408. // @@protoc_insertion_point(global_scope)
  409. #include <google/protobuf/port_undef.inc>
  410. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_system_5fsetting_2eproto