system_setting.pb.h 13 KB

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