setting.pb.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: setting.proto
  3. #ifndef PROTOBUF_setting_2eproto__INCLUDED
  4. #define PROTOBUF_setting_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_setting_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[2];
  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 InitDefaultslocate_settingImpl();
  40. void InitDefaultslocate_setting();
  41. void InitDefaultsglobal_settingImpl();
  42. void InitDefaultsglobal_setting();
  43. inline void InitDefaults() {
  44. InitDefaultslocate_setting();
  45. InitDefaultsglobal_setting();
  46. }
  47. } // namespace protobuf_setting_2eproto
  48. namespace setting {
  49. class global_setting;
  50. class global_settingDefaultTypeInternal;
  51. extern global_settingDefaultTypeInternal _global_setting_default_instance_;
  52. class locate_setting;
  53. class locate_settingDefaultTypeInternal;
  54. extern locate_settingDefaultTypeInternal _locate_setting_default_instance_;
  55. } // namespace setting
  56. namespace setting {
  57. // ===================================================================
  58. class locate_setting : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:setting.locate_setting) */ {
  59. public:
  60. locate_setting();
  61. virtual ~locate_setting();
  62. locate_setting(const locate_setting& from);
  63. inline locate_setting& operator=(const locate_setting& from) {
  64. CopyFrom(from);
  65. return *this;
  66. }
  67. #if LANG_CXX11
  68. locate_setting(locate_setting&& from) noexcept
  69. : locate_setting() {
  70. *this = ::std::move(from);
  71. }
  72. inline locate_setting& operator=(locate_setting&& from) noexcept {
  73. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  74. if (this != &from) InternalSwap(&from);
  75. } else {
  76. CopyFrom(from);
  77. }
  78. return *this;
  79. }
  80. #endif
  81. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  82. return _internal_metadata_.unknown_fields();
  83. }
  84. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  85. return _internal_metadata_.mutable_unknown_fields();
  86. }
  87. static const ::google::protobuf::Descriptor* descriptor();
  88. static const locate_setting& default_instance();
  89. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  90. static inline const locate_setting* internal_default_instance() {
  91. return reinterpret_cast<const locate_setting*>(
  92. &_locate_setting_default_instance_);
  93. }
  94. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  95. 0;
  96. void Swap(locate_setting* other);
  97. friend void swap(locate_setting& a, locate_setting& b) {
  98. a.Swap(&b);
  99. }
  100. // implements Message ----------------------------------------------
  101. inline locate_setting* New() const PROTOBUF_FINAL { return New(NULL); }
  102. locate_setting* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  103. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  104. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  105. void CopyFrom(const locate_setting& from);
  106. void MergeFrom(const locate_setting& from);
  107. void Clear() PROTOBUF_FINAL;
  108. bool IsInitialized() const PROTOBUF_FINAL;
  109. size_t ByteSizeLong() const PROTOBUF_FINAL;
  110. bool MergePartialFromCodedStream(
  111. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  112. void SerializeWithCachedSizes(
  113. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  114. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  115. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  116. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  117. private:
  118. void SharedCtor();
  119. void SharedDtor();
  120. void SetCachedSize(int size) const PROTOBUF_FINAL;
  121. void InternalSwap(locate_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 PROTOBUF_FINAL;
  131. // nested types ----------------------------------------------------
  132. // accessors -------------------------------------------------------
  133. // required string ip = 1;
  134. bool has_ip() const;
  135. void clear_ip();
  136. static const int kIpFieldNumber = 1;
  137. const ::std::string& ip() const;
  138. void set_ip(const ::std::string& value);
  139. #if LANG_CXX11
  140. void set_ip(::std::string&& value);
  141. #endif
  142. void set_ip(const char* value);
  143. void set_ip(const char* value, size_t size);
  144. ::std::string* mutable_ip();
  145. ::std::string* release_ip();
  146. void set_allocated_ip(::std::string* ip);
  147. // required int32 port = 2;
  148. bool has_port() const;
  149. void clear_port();
  150. static const int kPortFieldNumber = 2;
  151. ::google::protobuf::int32 port() const;
  152. void set_port(::google::protobuf::int32 value);
  153. // @@protoc_insertion_point(class_scope:setting.locate_setting)
  154. private:
  155. void set_has_ip();
  156. void clear_has_ip();
  157. void set_has_port();
  158. void clear_has_port();
  159. // helper for ByteSizeLong()
  160. size_t RequiredFieldsByteSizeFallback() const;
  161. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  162. ::google::protobuf::internal::HasBits<1> _has_bits_;
  163. mutable int _cached_size_;
  164. ::google::protobuf::internal::ArenaStringPtr ip_;
  165. ::google::protobuf::int32 port_;
  166. friend struct ::protobuf_setting_2eproto::TableStruct;
  167. friend void ::protobuf_setting_2eproto::InitDefaultslocate_settingImpl();
  168. };
  169. // -------------------------------------------------------------------
  170. class global_setting : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:setting.global_setting) */ {
  171. public:
  172. global_setting();
  173. virtual ~global_setting();
  174. global_setting(const global_setting& from);
  175. inline global_setting& operator=(const global_setting& from) {
  176. CopyFrom(from);
  177. return *this;
  178. }
  179. #if LANG_CXX11
  180. global_setting(global_setting&& from) noexcept
  181. : global_setting() {
  182. *this = ::std::move(from);
  183. }
  184. inline global_setting& operator=(global_setting&& from) noexcept {
  185. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  186. if (this != &from) InternalSwap(&from);
  187. } else {
  188. CopyFrom(from);
  189. }
  190. return *this;
  191. }
  192. #endif
  193. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  194. return _internal_metadata_.unknown_fields();
  195. }
  196. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  197. return _internal_metadata_.mutable_unknown_fields();
  198. }
  199. static const ::google::protobuf::Descriptor* descriptor();
  200. static const global_setting& default_instance();
  201. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  202. static inline const global_setting* internal_default_instance() {
  203. return reinterpret_cast<const global_setting*>(
  204. &_global_setting_default_instance_);
  205. }
  206. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  207. 1;
  208. void Swap(global_setting* other);
  209. friend void swap(global_setting& a, global_setting& b) {
  210. a.Swap(&b);
  211. }
  212. // implements Message ----------------------------------------------
  213. inline global_setting* New() const PROTOBUF_FINAL { return New(NULL); }
  214. global_setting* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  215. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  216. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  217. void CopyFrom(const global_setting& from);
  218. void MergeFrom(const global_setting& from);
  219. void Clear() PROTOBUF_FINAL;
  220. bool IsInitialized() const PROTOBUF_FINAL;
  221. size_t ByteSizeLong() const PROTOBUF_FINAL;
  222. bool MergePartialFromCodedStream(
  223. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  224. void SerializeWithCachedSizes(
  225. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  226. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  227. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  228. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  229. private:
  230. void SharedCtor();
  231. void SharedDtor();
  232. void SetCachedSize(int size) const PROTOBUF_FINAL;
  233. void InternalSwap(global_setting* other);
  234. private:
  235. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  236. return NULL;
  237. }
  238. inline void* MaybeArenaPtr() const {
  239. return NULL;
  240. }
  241. public:
  242. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  243. // nested types ----------------------------------------------------
  244. // accessors -------------------------------------------------------
  245. // required .setting.locate_setting locate_parameter = 1;
  246. bool has_locate_parameter() const;
  247. void clear_locate_parameter();
  248. static const int kLocateParameterFieldNumber = 1;
  249. const ::setting::locate_setting& locate_parameter() const;
  250. ::setting::locate_setting* release_locate_parameter();
  251. ::setting::locate_setting* mutable_locate_parameter();
  252. void set_allocated_locate_parameter(::setting::locate_setting* locate_parameter);
  253. // @@protoc_insertion_point(class_scope:setting.global_setting)
  254. private:
  255. void set_has_locate_parameter();
  256. void clear_has_locate_parameter();
  257. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  258. ::google::protobuf::internal::HasBits<1> _has_bits_;
  259. mutable int _cached_size_;
  260. ::setting::locate_setting* locate_parameter_;
  261. friend struct ::protobuf_setting_2eproto::TableStruct;
  262. friend void ::protobuf_setting_2eproto::InitDefaultsglobal_settingImpl();
  263. };
  264. // ===================================================================
  265. // ===================================================================
  266. #ifdef __GNUC__
  267. #pragma GCC diagnostic push
  268. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  269. #endif // __GNUC__
  270. // locate_setting
  271. // required string ip = 1;
  272. inline bool locate_setting::has_ip() const {
  273. return (_has_bits_[0] & 0x00000001u) != 0;
  274. }
  275. inline void locate_setting::set_has_ip() {
  276. _has_bits_[0] |= 0x00000001u;
  277. }
  278. inline void locate_setting::clear_has_ip() {
  279. _has_bits_[0] &= ~0x00000001u;
  280. }
  281. inline void locate_setting::clear_ip() {
  282. ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  283. clear_has_ip();
  284. }
  285. inline const ::std::string& locate_setting::ip() const {
  286. // @@protoc_insertion_point(field_get:setting.locate_setting.ip)
  287. return ip_.GetNoArena();
  288. }
  289. inline void locate_setting::set_ip(const ::std::string& value) {
  290. set_has_ip();
  291. ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  292. // @@protoc_insertion_point(field_set:setting.locate_setting.ip)
  293. }
  294. #if LANG_CXX11
  295. inline void locate_setting::set_ip(::std::string&& value) {
  296. set_has_ip();
  297. ip_.SetNoArena(
  298. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  299. // @@protoc_insertion_point(field_set_rvalue:setting.locate_setting.ip)
  300. }
  301. #endif
  302. inline void locate_setting::set_ip(const char* value) {
  303. GOOGLE_DCHECK(value != NULL);
  304. set_has_ip();
  305. ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  306. // @@protoc_insertion_point(field_set_char:setting.locate_setting.ip)
  307. }
  308. inline void locate_setting::set_ip(const char* value, size_t size) {
  309. set_has_ip();
  310. ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  311. ::std::string(reinterpret_cast<const char*>(value), size));
  312. // @@protoc_insertion_point(field_set_pointer:setting.locate_setting.ip)
  313. }
  314. inline ::std::string* locate_setting::mutable_ip() {
  315. set_has_ip();
  316. // @@protoc_insertion_point(field_mutable:setting.locate_setting.ip)
  317. return ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  318. }
  319. inline ::std::string* locate_setting::release_ip() {
  320. // @@protoc_insertion_point(field_release:setting.locate_setting.ip)
  321. clear_has_ip();
  322. return ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  323. }
  324. inline void locate_setting::set_allocated_ip(::std::string* ip) {
  325. if (ip != NULL) {
  326. set_has_ip();
  327. } else {
  328. clear_has_ip();
  329. }
  330. ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ip);
  331. // @@protoc_insertion_point(field_set_allocated:setting.locate_setting.ip)
  332. }
  333. // required int32 port = 2;
  334. inline bool locate_setting::has_port() const {
  335. return (_has_bits_[0] & 0x00000002u) != 0;
  336. }
  337. inline void locate_setting::set_has_port() {
  338. _has_bits_[0] |= 0x00000002u;
  339. }
  340. inline void locate_setting::clear_has_port() {
  341. _has_bits_[0] &= ~0x00000002u;
  342. }
  343. inline void locate_setting::clear_port() {
  344. port_ = 0;
  345. clear_has_port();
  346. }
  347. inline ::google::protobuf::int32 locate_setting::port() const {
  348. // @@protoc_insertion_point(field_get:setting.locate_setting.port)
  349. return port_;
  350. }
  351. inline void locate_setting::set_port(::google::protobuf::int32 value) {
  352. set_has_port();
  353. port_ = value;
  354. // @@protoc_insertion_point(field_set:setting.locate_setting.port)
  355. }
  356. // -------------------------------------------------------------------
  357. // global_setting
  358. // required .setting.locate_setting locate_parameter = 1;
  359. inline bool global_setting::has_locate_parameter() const {
  360. return (_has_bits_[0] & 0x00000001u) != 0;
  361. }
  362. inline void global_setting::set_has_locate_parameter() {
  363. _has_bits_[0] |= 0x00000001u;
  364. }
  365. inline void global_setting::clear_has_locate_parameter() {
  366. _has_bits_[0] &= ~0x00000001u;
  367. }
  368. inline void global_setting::clear_locate_parameter() {
  369. if (locate_parameter_ != NULL) locate_parameter_->Clear();
  370. clear_has_locate_parameter();
  371. }
  372. inline const ::setting::locate_setting& global_setting::locate_parameter() const {
  373. const ::setting::locate_setting* p = locate_parameter_;
  374. // @@protoc_insertion_point(field_get:setting.global_setting.locate_parameter)
  375. return p != NULL ? *p : *reinterpret_cast<const ::setting::locate_setting*>(
  376. &::setting::_locate_setting_default_instance_);
  377. }
  378. inline ::setting::locate_setting* global_setting::release_locate_parameter() {
  379. // @@protoc_insertion_point(field_release:setting.global_setting.locate_parameter)
  380. clear_has_locate_parameter();
  381. ::setting::locate_setting* temp = locate_parameter_;
  382. locate_parameter_ = NULL;
  383. return temp;
  384. }
  385. inline ::setting::locate_setting* global_setting::mutable_locate_parameter() {
  386. set_has_locate_parameter();
  387. if (locate_parameter_ == NULL) {
  388. locate_parameter_ = new ::setting::locate_setting;
  389. }
  390. // @@protoc_insertion_point(field_mutable:setting.global_setting.locate_parameter)
  391. return locate_parameter_;
  392. }
  393. inline void global_setting::set_allocated_locate_parameter(::setting::locate_setting* locate_parameter) {
  394. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  395. if (message_arena == NULL) {
  396. delete locate_parameter_;
  397. }
  398. if (locate_parameter) {
  399. ::google::protobuf::Arena* submessage_arena = NULL;
  400. if (message_arena != submessage_arena) {
  401. locate_parameter = ::google::protobuf::internal::GetOwnedMessage(
  402. message_arena, locate_parameter, submessage_arena);
  403. }
  404. set_has_locate_parameter();
  405. } else {
  406. clear_has_locate_parameter();
  407. }
  408. locate_parameter_ = locate_parameter;
  409. // @@protoc_insertion_point(field_set_allocated:setting.global_setting.locate_parameter)
  410. }
  411. #ifdef __GNUC__
  412. #pragma GCC diagnostic pop
  413. #endif // __GNUC__
  414. // -------------------------------------------------------------------
  415. // @@protoc_insertion_point(namespace_scope)
  416. } // namespace setting
  417. // @@protoc_insertion_point(global_scope)
  418. #endif // PROTOBUF_setting_2eproto__INCLUDED