system_setting.pb.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: system_setting.proto
  3. #ifndef PROTOBUF_system_5fsetting_2eproto__INCLUDED
  4. #define PROTOBUF_system_5fsetting_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_system_5fsetting_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[1];
  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 InitDefaultsSystem_settingImpl();
  40. void InitDefaultsSystem_setting();
  41. inline void InitDefaults() {
  42. InitDefaultsSystem_setting();
  43. }
  44. } // namespace protobuf_system_5fsetting_2eproto
  45. namespace setting {
  46. class System_setting;
  47. class System_settingDefaultTypeInternal;
  48. extern System_settingDefaultTypeInternal _System_setting_default_instance_;
  49. } // namespace setting
  50. namespace setting {
  51. // ===================================================================
  52. class System_setting : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:setting.System_setting) */ {
  53. public:
  54. System_setting();
  55. virtual ~System_setting();
  56. System_setting(const System_setting& from);
  57. inline System_setting& operator=(const System_setting& from) {
  58. CopyFrom(from);
  59. return *this;
  60. }
  61. #if LANG_CXX11
  62. System_setting(System_setting&& from) noexcept
  63. : System_setting() {
  64. *this = ::std::move(from);
  65. }
  66. inline System_setting& operator=(System_setting&& from) noexcept {
  67. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  68. if (this != &from) InternalSwap(&from);
  69. } else {
  70. CopyFrom(from);
  71. }
  72. return *this;
  73. }
  74. #endif
  75. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  76. return _internal_metadata_.unknown_fields();
  77. }
  78. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  79. return _internal_metadata_.mutable_unknown_fields();
  80. }
  81. static const ::google::protobuf::Descriptor* descriptor();
  82. static const System_setting& default_instance();
  83. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  84. static inline const System_setting* internal_default_instance() {
  85. return reinterpret_cast<const System_setting*>(
  86. &_System_setting_default_instance_);
  87. }
  88. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  89. 0;
  90. void Swap(System_setting* other);
  91. friend void swap(System_setting& a, System_setting& b) {
  92. a.Swap(&b);
  93. }
  94. // implements Message ----------------------------------------------
  95. inline System_setting* New() const PROTOBUF_FINAL { return New(NULL); }
  96. System_setting* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  97. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  98. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  99. void CopyFrom(const System_setting& from);
  100. void MergeFrom(const System_setting& from);
  101. void Clear() PROTOBUF_FINAL;
  102. bool IsInitialized() const PROTOBUF_FINAL;
  103. size_t ByteSizeLong() const PROTOBUF_FINAL;
  104. bool MergePartialFromCodedStream(
  105. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  106. void SerializeWithCachedSizes(
  107. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  108. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  109. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  110. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  111. private:
  112. void SharedCtor();
  113. void SharedDtor();
  114. void SetCachedSize(int size) const PROTOBUF_FINAL;
  115. void InternalSwap(System_setting* other);
  116. private:
  117. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  118. return NULL;
  119. }
  120. inline void* MaybeArenaPtr() const {
  121. return NULL;
  122. }
  123. public:
  124. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  125. // nested types ----------------------------------------------------
  126. // accessors -------------------------------------------------------
  127. // required string bind_ip = 1;
  128. bool has_bind_ip() const;
  129. void clear_bind_ip();
  130. static const int kBindIpFieldNumber = 1;
  131. const ::std::string& bind_ip() const;
  132. void set_bind_ip(const ::std::string& value);
  133. #if LANG_CXX11
  134. void set_bind_ip(::std::string&& value);
  135. #endif
  136. void set_bind_ip(const char* value);
  137. void set_bind_ip(const char* value, size_t size);
  138. ::std::string* mutable_bind_ip();
  139. ::std::string* release_bind_ip();
  140. void set_allocated_bind_ip(::std::string* bind_ip);
  141. // required int32 entrance_num = 3;
  142. bool has_entrance_num() const;
  143. void clear_entrance_num();
  144. static const int kEntranceNumFieldNumber = 3;
  145. ::google::protobuf::int32 entrance_num() const;
  146. void set_entrance_num(::google::protobuf::int32 value);
  147. // required int32 export_num = 4;
  148. bool has_export_num() const;
  149. void clear_export_num();
  150. static const int kExportNumFieldNumber = 4;
  151. ::google::protobuf::int32 export_num() const;
  152. void set_export_num(::google::protobuf::int32 value);
  153. // optional int32 bind_port = 2 [default = 30000];
  154. bool has_bind_port() const;
  155. void clear_bind_port();
  156. static const int kBindPortFieldNumber = 2;
  157. ::google::protobuf::int32 bind_port() const;
  158. void set_bind_port(::google::protobuf::int32 value);
  159. // @@protoc_insertion_point(class_scope:setting.System_setting)
  160. private:
  161. void set_has_bind_ip();
  162. void clear_has_bind_ip();
  163. void set_has_bind_port();
  164. void clear_has_bind_port();
  165. void set_has_entrance_num();
  166. void clear_has_entrance_num();
  167. void set_has_export_num();
  168. void clear_has_export_num();
  169. // helper for ByteSizeLong()
  170. size_t RequiredFieldsByteSizeFallback() const;
  171. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  172. ::google::protobuf::internal::HasBits<1> _has_bits_;
  173. mutable int _cached_size_;
  174. ::google::protobuf::internal::ArenaStringPtr bind_ip_;
  175. ::google::protobuf::int32 entrance_num_;
  176. ::google::protobuf::int32 export_num_;
  177. ::google::protobuf::int32 bind_port_;
  178. friend struct ::protobuf_system_5fsetting_2eproto::TableStruct;
  179. friend void ::protobuf_system_5fsetting_2eproto::InitDefaultsSystem_settingImpl();
  180. };
  181. // ===================================================================
  182. // ===================================================================
  183. #ifdef __GNUC__
  184. #pragma GCC diagnostic push
  185. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  186. #endif // __GNUC__
  187. // System_setting
  188. // required string bind_ip = 1;
  189. inline bool System_setting::has_bind_ip() const {
  190. return (_has_bits_[0] & 0x00000001u) != 0;
  191. }
  192. inline void System_setting::set_has_bind_ip() {
  193. _has_bits_[0] |= 0x00000001u;
  194. }
  195. inline void System_setting::clear_has_bind_ip() {
  196. _has_bits_[0] &= ~0x00000001u;
  197. }
  198. inline void System_setting::clear_bind_ip() {
  199. bind_ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  200. clear_has_bind_ip();
  201. }
  202. inline const ::std::string& System_setting::bind_ip() const {
  203. // @@protoc_insertion_point(field_get:setting.System_setting.bind_ip)
  204. return bind_ip_.GetNoArena();
  205. }
  206. inline void System_setting::set_bind_ip(const ::std::string& value) {
  207. set_has_bind_ip();
  208. bind_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  209. // @@protoc_insertion_point(field_set:setting.System_setting.bind_ip)
  210. }
  211. #if LANG_CXX11
  212. inline void System_setting::set_bind_ip(::std::string&& value) {
  213. set_has_bind_ip();
  214. bind_ip_.SetNoArena(
  215. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  216. // @@protoc_insertion_point(field_set_rvalue:setting.System_setting.bind_ip)
  217. }
  218. #endif
  219. inline void System_setting::set_bind_ip(const char* value) {
  220. GOOGLE_DCHECK(value != NULL);
  221. set_has_bind_ip();
  222. bind_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  223. // @@protoc_insertion_point(field_set_char:setting.System_setting.bind_ip)
  224. }
  225. inline void System_setting::set_bind_ip(const char* value, size_t size) {
  226. set_has_bind_ip();
  227. bind_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  228. ::std::string(reinterpret_cast<const char*>(value), size));
  229. // @@protoc_insertion_point(field_set_pointer:setting.System_setting.bind_ip)
  230. }
  231. inline ::std::string* System_setting::mutable_bind_ip() {
  232. set_has_bind_ip();
  233. // @@protoc_insertion_point(field_mutable:setting.System_setting.bind_ip)
  234. return bind_ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  235. }
  236. inline ::std::string* System_setting::release_bind_ip() {
  237. // @@protoc_insertion_point(field_release:setting.System_setting.bind_ip)
  238. clear_has_bind_ip();
  239. return bind_ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  240. }
  241. inline void System_setting::set_allocated_bind_ip(::std::string* bind_ip) {
  242. if (bind_ip != NULL) {
  243. set_has_bind_ip();
  244. } else {
  245. clear_has_bind_ip();
  246. }
  247. bind_ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), bind_ip);
  248. // @@protoc_insertion_point(field_set_allocated:setting.System_setting.bind_ip)
  249. }
  250. // optional int32 bind_port = 2 [default = 30000];
  251. inline bool System_setting::has_bind_port() const {
  252. return (_has_bits_[0] & 0x00000008u) != 0;
  253. }
  254. inline void System_setting::set_has_bind_port() {
  255. _has_bits_[0] |= 0x00000008u;
  256. }
  257. inline void System_setting::clear_has_bind_port() {
  258. _has_bits_[0] &= ~0x00000008u;
  259. }
  260. inline void System_setting::clear_bind_port() {
  261. bind_port_ = 30000;
  262. clear_has_bind_port();
  263. }
  264. inline ::google::protobuf::int32 System_setting::bind_port() const {
  265. // @@protoc_insertion_point(field_get:setting.System_setting.bind_port)
  266. return bind_port_;
  267. }
  268. inline void System_setting::set_bind_port(::google::protobuf::int32 value) {
  269. set_has_bind_port();
  270. bind_port_ = value;
  271. // @@protoc_insertion_point(field_set:setting.System_setting.bind_port)
  272. }
  273. // required int32 entrance_num = 3;
  274. inline bool System_setting::has_entrance_num() const {
  275. return (_has_bits_[0] & 0x00000002u) != 0;
  276. }
  277. inline void System_setting::set_has_entrance_num() {
  278. _has_bits_[0] |= 0x00000002u;
  279. }
  280. inline void System_setting::clear_has_entrance_num() {
  281. _has_bits_[0] &= ~0x00000002u;
  282. }
  283. inline void System_setting::clear_entrance_num() {
  284. entrance_num_ = 0;
  285. clear_has_entrance_num();
  286. }
  287. inline ::google::protobuf::int32 System_setting::entrance_num() const {
  288. // @@protoc_insertion_point(field_get:setting.System_setting.entrance_num)
  289. return entrance_num_;
  290. }
  291. inline void System_setting::set_entrance_num(::google::protobuf::int32 value) {
  292. set_has_entrance_num();
  293. entrance_num_ = value;
  294. // @@protoc_insertion_point(field_set:setting.System_setting.entrance_num)
  295. }
  296. // required int32 export_num = 4;
  297. inline bool System_setting::has_export_num() const {
  298. return (_has_bits_[0] & 0x00000004u) != 0;
  299. }
  300. inline void System_setting::set_has_export_num() {
  301. _has_bits_[0] |= 0x00000004u;
  302. }
  303. inline void System_setting::clear_has_export_num() {
  304. _has_bits_[0] &= ~0x00000004u;
  305. }
  306. inline void System_setting::clear_export_num() {
  307. export_num_ = 0;
  308. clear_has_export_num();
  309. }
  310. inline ::google::protobuf::int32 System_setting::export_num() const {
  311. // @@protoc_insertion_point(field_get:setting.System_setting.export_num)
  312. return export_num_;
  313. }
  314. inline void System_setting::set_export_num(::google::protobuf::int32 value) {
  315. set_has_export_num();
  316. export_num_ = value;
  317. // @@protoc_insertion_point(field_set:setting.System_setting.export_num)
  318. }
  319. #ifdef __GNUC__
  320. #pragma GCC diagnostic pop
  321. #endif // __GNUC__
  322. // @@protoc_insertion_point(namespace_scope)
  323. } // namespace setting
  324. // @@protoc_insertion_point(global_scope)
  325. #endif // PROTOBUF_system_5fsetting_2eproto__INCLUDED