parkspace_parameter.pb.h 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: parkspace_parameter.proto
  3. #ifndef PROTOBUF_parkspace_5fparameter_2eproto__INCLUDED
  4. #define PROTOBUF_parkspace_5fparameter_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_parkspace_5fparameter_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 InitDefaultsdatabase_configImpl();
  40. void InitDefaultsdatabase_config();
  41. inline void InitDefaults() {
  42. InitDefaultsdatabase_config();
  43. }
  44. } // namespace protobuf_parkspace_5fparameter_2eproto
  45. namespace parkspace_proto {
  46. class database_config;
  47. class database_configDefaultTypeInternal;
  48. extern database_configDefaultTypeInternal _database_config_default_instance_;
  49. } // namespace parkspace_proto
  50. namespace parkspace_proto {
  51. // ===================================================================
  52. class database_config : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:parkspace_proto.database_config) */ {
  53. public:
  54. database_config();
  55. virtual ~database_config();
  56. database_config(const database_config& from);
  57. inline database_config& operator=(const database_config& from) {
  58. CopyFrom(from);
  59. return *this;
  60. }
  61. #if LANG_CXX11
  62. database_config(database_config&& from) noexcept
  63. : database_config() {
  64. *this = ::std::move(from);
  65. }
  66. inline database_config& operator=(database_config&& 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 database_config& default_instance();
  83. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  84. static inline const database_config* internal_default_instance() {
  85. return reinterpret_cast<const database_config*>(
  86. &_database_config_default_instance_);
  87. }
  88. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  89. 0;
  90. void Swap(database_config* other);
  91. friend void swap(database_config& a, database_config& b) {
  92. a.Swap(&b);
  93. }
  94. // implements Message ----------------------------------------------
  95. inline database_config* New() const PROTOBUF_FINAL { return New(NULL); }
  96. database_config* 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 database_config& from);
  100. void MergeFrom(const database_config& 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(database_config* 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 db_ip = 1;
  128. bool has_db_ip() const;
  129. void clear_db_ip();
  130. static const int kDbIpFieldNumber = 1;
  131. const ::std::string& db_ip() const;
  132. void set_db_ip(const ::std::string& value);
  133. #if LANG_CXX11
  134. void set_db_ip(::std::string&& value);
  135. #endif
  136. void set_db_ip(const char* value);
  137. void set_db_ip(const char* value, size_t size);
  138. ::std::string* mutable_db_ip();
  139. ::std::string* release_db_ip();
  140. void set_allocated_db_ip(::std::string* db_ip);
  141. // required string db_username = 3;
  142. bool has_db_username() const;
  143. void clear_db_username();
  144. static const int kDbUsernameFieldNumber = 3;
  145. const ::std::string& db_username() const;
  146. void set_db_username(const ::std::string& value);
  147. #if LANG_CXX11
  148. void set_db_username(::std::string&& value);
  149. #endif
  150. void set_db_username(const char* value);
  151. void set_db_username(const char* value, size_t size);
  152. ::std::string* mutable_db_username();
  153. ::std::string* release_db_username();
  154. void set_allocated_db_username(::std::string* db_username);
  155. // optional string db_passwd = 4 [default = ""];
  156. bool has_db_passwd() const;
  157. void clear_db_passwd();
  158. static const int kDbPasswdFieldNumber = 4;
  159. const ::std::string& db_passwd() const;
  160. void set_db_passwd(const ::std::string& value);
  161. #if LANG_CXX11
  162. void set_db_passwd(::std::string&& value);
  163. #endif
  164. void set_db_passwd(const char* value);
  165. void set_db_passwd(const char* value, size_t size);
  166. ::std::string* mutable_db_passwd();
  167. ::std::string* release_db_passwd();
  168. void set_allocated_db_passwd(::std::string* db_passwd);
  169. // required string db_name = 5;
  170. bool has_db_name() const;
  171. void clear_db_name();
  172. static const int kDbNameFieldNumber = 5;
  173. const ::std::string& db_name() const;
  174. void set_db_name(const ::std::string& value);
  175. #if LANG_CXX11
  176. void set_db_name(::std::string&& value);
  177. #endif
  178. void set_db_name(const char* value);
  179. void set_db_name(const char* value, size_t size);
  180. ::std::string* mutable_db_name();
  181. ::std::string* release_db_name();
  182. void set_allocated_db_name(::std::string* db_name);
  183. // required int64 db_port = 2;
  184. bool has_db_port() const;
  185. void clear_db_port();
  186. static const int kDbPortFieldNumber = 2;
  187. ::google::protobuf::int64 db_port() const;
  188. void set_db_port(::google::protobuf::int64 value);
  189. // optional int64 db_conn_pool_size = 6;
  190. bool has_db_conn_pool_size() const;
  191. void clear_db_conn_pool_size();
  192. static const int kDbConnPoolSizeFieldNumber = 6;
  193. ::google::protobuf::int64 db_conn_pool_size() const;
  194. void set_db_conn_pool_size(::google::protobuf::int64 value);
  195. // @@protoc_insertion_point(class_scope:parkspace_proto.database_config)
  196. private:
  197. void set_has_db_ip();
  198. void clear_has_db_ip();
  199. void set_has_db_port();
  200. void clear_has_db_port();
  201. void set_has_db_username();
  202. void clear_has_db_username();
  203. void set_has_db_passwd();
  204. void clear_has_db_passwd();
  205. void set_has_db_name();
  206. void clear_has_db_name();
  207. void set_has_db_conn_pool_size();
  208. void clear_has_db_conn_pool_size();
  209. // helper for ByteSizeLong()
  210. size_t RequiredFieldsByteSizeFallback() const;
  211. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  212. ::google::protobuf::internal::HasBits<1> _has_bits_;
  213. mutable int _cached_size_;
  214. ::google::protobuf::internal::ArenaStringPtr db_ip_;
  215. ::google::protobuf::internal::ArenaStringPtr db_username_;
  216. ::google::protobuf::internal::ArenaStringPtr db_passwd_;
  217. ::google::protobuf::internal::ArenaStringPtr db_name_;
  218. ::google::protobuf::int64 db_port_;
  219. ::google::protobuf::int64 db_conn_pool_size_;
  220. friend struct ::protobuf_parkspace_5fparameter_2eproto::TableStruct;
  221. friend void ::protobuf_parkspace_5fparameter_2eproto::InitDefaultsdatabase_configImpl();
  222. };
  223. // ===================================================================
  224. // ===================================================================
  225. #ifdef __GNUC__
  226. #pragma GCC diagnostic push
  227. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  228. #endif // __GNUC__
  229. // database_config
  230. // required string db_ip = 1;
  231. inline bool database_config::has_db_ip() const {
  232. return (_has_bits_[0] & 0x00000001u) != 0;
  233. }
  234. inline void database_config::set_has_db_ip() {
  235. _has_bits_[0] |= 0x00000001u;
  236. }
  237. inline void database_config::clear_has_db_ip() {
  238. _has_bits_[0] &= ~0x00000001u;
  239. }
  240. inline void database_config::clear_db_ip() {
  241. db_ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  242. clear_has_db_ip();
  243. }
  244. inline const ::std::string& database_config::db_ip() const {
  245. // @@protoc_insertion_point(field_get:parkspace_proto.database_config.db_ip)
  246. return db_ip_.GetNoArena();
  247. }
  248. inline void database_config::set_db_ip(const ::std::string& value) {
  249. set_has_db_ip();
  250. db_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  251. // @@protoc_insertion_point(field_set:parkspace_proto.database_config.db_ip)
  252. }
  253. #if LANG_CXX11
  254. inline void database_config::set_db_ip(::std::string&& value) {
  255. set_has_db_ip();
  256. db_ip_.SetNoArena(
  257. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  258. // @@protoc_insertion_point(field_set_rvalue:parkspace_proto.database_config.db_ip)
  259. }
  260. #endif
  261. inline void database_config::set_db_ip(const char* value) {
  262. GOOGLE_DCHECK(value != NULL);
  263. set_has_db_ip();
  264. db_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  265. // @@protoc_insertion_point(field_set_char:parkspace_proto.database_config.db_ip)
  266. }
  267. inline void database_config::set_db_ip(const char* value, size_t size) {
  268. set_has_db_ip();
  269. db_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  270. ::std::string(reinterpret_cast<const char*>(value), size));
  271. // @@protoc_insertion_point(field_set_pointer:parkspace_proto.database_config.db_ip)
  272. }
  273. inline ::std::string* database_config::mutable_db_ip() {
  274. set_has_db_ip();
  275. // @@protoc_insertion_point(field_mutable:parkspace_proto.database_config.db_ip)
  276. return db_ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  277. }
  278. inline ::std::string* database_config::release_db_ip() {
  279. // @@protoc_insertion_point(field_release:parkspace_proto.database_config.db_ip)
  280. clear_has_db_ip();
  281. return db_ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  282. }
  283. inline void database_config::set_allocated_db_ip(::std::string* db_ip) {
  284. if (db_ip != NULL) {
  285. set_has_db_ip();
  286. } else {
  287. clear_has_db_ip();
  288. }
  289. db_ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), db_ip);
  290. // @@protoc_insertion_point(field_set_allocated:parkspace_proto.database_config.db_ip)
  291. }
  292. // required int64 db_port = 2;
  293. inline bool database_config::has_db_port() const {
  294. return (_has_bits_[0] & 0x00000010u) != 0;
  295. }
  296. inline void database_config::set_has_db_port() {
  297. _has_bits_[0] |= 0x00000010u;
  298. }
  299. inline void database_config::clear_has_db_port() {
  300. _has_bits_[0] &= ~0x00000010u;
  301. }
  302. inline void database_config::clear_db_port() {
  303. db_port_ = GOOGLE_LONGLONG(0);
  304. clear_has_db_port();
  305. }
  306. inline ::google::protobuf::int64 database_config::db_port() const {
  307. // @@protoc_insertion_point(field_get:parkspace_proto.database_config.db_port)
  308. return db_port_;
  309. }
  310. inline void database_config::set_db_port(::google::protobuf::int64 value) {
  311. set_has_db_port();
  312. db_port_ = value;
  313. // @@protoc_insertion_point(field_set:parkspace_proto.database_config.db_port)
  314. }
  315. // required string db_username = 3;
  316. inline bool database_config::has_db_username() const {
  317. return (_has_bits_[0] & 0x00000002u) != 0;
  318. }
  319. inline void database_config::set_has_db_username() {
  320. _has_bits_[0] |= 0x00000002u;
  321. }
  322. inline void database_config::clear_has_db_username() {
  323. _has_bits_[0] &= ~0x00000002u;
  324. }
  325. inline void database_config::clear_db_username() {
  326. db_username_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  327. clear_has_db_username();
  328. }
  329. inline const ::std::string& database_config::db_username() const {
  330. // @@protoc_insertion_point(field_get:parkspace_proto.database_config.db_username)
  331. return db_username_.GetNoArena();
  332. }
  333. inline void database_config::set_db_username(const ::std::string& value) {
  334. set_has_db_username();
  335. db_username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  336. // @@protoc_insertion_point(field_set:parkspace_proto.database_config.db_username)
  337. }
  338. #if LANG_CXX11
  339. inline void database_config::set_db_username(::std::string&& value) {
  340. set_has_db_username();
  341. db_username_.SetNoArena(
  342. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  343. // @@protoc_insertion_point(field_set_rvalue:parkspace_proto.database_config.db_username)
  344. }
  345. #endif
  346. inline void database_config::set_db_username(const char* value) {
  347. GOOGLE_DCHECK(value != NULL);
  348. set_has_db_username();
  349. db_username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  350. // @@protoc_insertion_point(field_set_char:parkspace_proto.database_config.db_username)
  351. }
  352. inline void database_config::set_db_username(const char* value, size_t size) {
  353. set_has_db_username();
  354. db_username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  355. ::std::string(reinterpret_cast<const char*>(value), size));
  356. // @@protoc_insertion_point(field_set_pointer:parkspace_proto.database_config.db_username)
  357. }
  358. inline ::std::string* database_config::mutable_db_username() {
  359. set_has_db_username();
  360. // @@protoc_insertion_point(field_mutable:parkspace_proto.database_config.db_username)
  361. return db_username_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  362. }
  363. inline ::std::string* database_config::release_db_username() {
  364. // @@protoc_insertion_point(field_release:parkspace_proto.database_config.db_username)
  365. clear_has_db_username();
  366. return db_username_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  367. }
  368. inline void database_config::set_allocated_db_username(::std::string* db_username) {
  369. if (db_username != NULL) {
  370. set_has_db_username();
  371. } else {
  372. clear_has_db_username();
  373. }
  374. db_username_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), db_username);
  375. // @@protoc_insertion_point(field_set_allocated:parkspace_proto.database_config.db_username)
  376. }
  377. // optional string db_passwd = 4 [default = ""];
  378. inline bool database_config::has_db_passwd() const {
  379. return (_has_bits_[0] & 0x00000004u) != 0;
  380. }
  381. inline void database_config::set_has_db_passwd() {
  382. _has_bits_[0] |= 0x00000004u;
  383. }
  384. inline void database_config::clear_has_db_passwd() {
  385. _has_bits_[0] &= ~0x00000004u;
  386. }
  387. inline void database_config::clear_db_passwd() {
  388. db_passwd_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  389. clear_has_db_passwd();
  390. }
  391. inline const ::std::string& database_config::db_passwd() const {
  392. // @@protoc_insertion_point(field_get:parkspace_proto.database_config.db_passwd)
  393. return db_passwd_.GetNoArena();
  394. }
  395. inline void database_config::set_db_passwd(const ::std::string& value) {
  396. set_has_db_passwd();
  397. db_passwd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  398. // @@protoc_insertion_point(field_set:parkspace_proto.database_config.db_passwd)
  399. }
  400. #if LANG_CXX11
  401. inline void database_config::set_db_passwd(::std::string&& value) {
  402. set_has_db_passwd();
  403. db_passwd_.SetNoArena(
  404. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  405. // @@protoc_insertion_point(field_set_rvalue:parkspace_proto.database_config.db_passwd)
  406. }
  407. #endif
  408. inline void database_config::set_db_passwd(const char* value) {
  409. GOOGLE_DCHECK(value != NULL);
  410. set_has_db_passwd();
  411. db_passwd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  412. // @@protoc_insertion_point(field_set_char:parkspace_proto.database_config.db_passwd)
  413. }
  414. inline void database_config::set_db_passwd(const char* value, size_t size) {
  415. set_has_db_passwd();
  416. db_passwd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  417. ::std::string(reinterpret_cast<const char*>(value), size));
  418. // @@protoc_insertion_point(field_set_pointer:parkspace_proto.database_config.db_passwd)
  419. }
  420. inline ::std::string* database_config::mutable_db_passwd() {
  421. set_has_db_passwd();
  422. // @@protoc_insertion_point(field_mutable:parkspace_proto.database_config.db_passwd)
  423. return db_passwd_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  424. }
  425. inline ::std::string* database_config::release_db_passwd() {
  426. // @@protoc_insertion_point(field_release:parkspace_proto.database_config.db_passwd)
  427. clear_has_db_passwd();
  428. return db_passwd_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  429. }
  430. inline void database_config::set_allocated_db_passwd(::std::string* db_passwd) {
  431. if (db_passwd != NULL) {
  432. set_has_db_passwd();
  433. } else {
  434. clear_has_db_passwd();
  435. }
  436. db_passwd_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), db_passwd);
  437. // @@protoc_insertion_point(field_set_allocated:parkspace_proto.database_config.db_passwd)
  438. }
  439. // required string db_name = 5;
  440. inline bool database_config::has_db_name() const {
  441. return (_has_bits_[0] & 0x00000008u) != 0;
  442. }
  443. inline void database_config::set_has_db_name() {
  444. _has_bits_[0] |= 0x00000008u;
  445. }
  446. inline void database_config::clear_has_db_name() {
  447. _has_bits_[0] &= ~0x00000008u;
  448. }
  449. inline void database_config::clear_db_name() {
  450. db_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  451. clear_has_db_name();
  452. }
  453. inline const ::std::string& database_config::db_name() const {
  454. // @@protoc_insertion_point(field_get:parkspace_proto.database_config.db_name)
  455. return db_name_.GetNoArena();
  456. }
  457. inline void database_config::set_db_name(const ::std::string& value) {
  458. set_has_db_name();
  459. db_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  460. // @@protoc_insertion_point(field_set:parkspace_proto.database_config.db_name)
  461. }
  462. #if LANG_CXX11
  463. inline void database_config::set_db_name(::std::string&& value) {
  464. set_has_db_name();
  465. db_name_.SetNoArena(
  466. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  467. // @@protoc_insertion_point(field_set_rvalue:parkspace_proto.database_config.db_name)
  468. }
  469. #endif
  470. inline void database_config::set_db_name(const char* value) {
  471. GOOGLE_DCHECK(value != NULL);
  472. set_has_db_name();
  473. db_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  474. // @@protoc_insertion_point(field_set_char:parkspace_proto.database_config.db_name)
  475. }
  476. inline void database_config::set_db_name(const char* value, size_t size) {
  477. set_has_db_name();
  478. db_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  479. ::std::string(reinterpret_cast<const char*>(value), size));
  480. // @@protoc_insertion_point(field_set_pointer:parkspace_proto.database_config.db_name)
  481. }
  482. inline ::std::string* database_config::mutable_db_name() {
  483. set_has_db_name();
  484. // @@protoc_insertion_point(field_mutable:parkspace_proto.database_config.db_name)
  485. return db_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  486. }
  487. inline ::std::string* database_config::release_db_name() {
  488. // @@protoc_insertion_point(field_release:parkspace_proto.database_config.db_name)
  489. clear_has_db_name();
  490. return db_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  491. }
  492. inline void database_config::set_allocated_db_name(::std::string* db_name) {
  493. if (db_name != NULL) {
  494. set_has_db_name();
  495. } else {
  496. clear_has_db_name();
  497. }
  498. db_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), db_name);
  499. // @@protoc_insertion_point(field_set_allocated:parkspace_proto.database_config.db_name)
  500. }
  501. // optional int64 db_conn_pool_size = 6;
  502. inline bool database_config::has_db_conn_pool_size() const {
  503. return (_has_bits_[0] & 0x00000020u) != 0;
  504. }
  505. inline void database_config::set_has_db_conn_pool_size() {
  506. _has_bits_[0] |= 0x00000020u;
  507. }
  508. inline void database_config::clear_has_db_conn_pool_size() {
  509. _has_bits_[0] &= ~0x00000020u;
  510. }
  511. inline void database_config::clear_db_conn_pool_size() {
  512. db_conn_pool_size_ = GOOGLE_LONGLONG(0);
  513. clear_has_db_conn_pool_size();
  514. }
  515. inline ::google::protobuf::int64 database_config::db_conn_pool_size() const {
  516. // @@protoc_insertion_point(field_get:parkspace_proto.database_config.db_conn_pool_size)
  517. return db_conn_pool_size_;
  518. }
  519. inline void database_config::set_db_conn_pool_size(::google::protobuf::int64 value) {
  520. set_has_db_conn_pool_size();
  521. db_conn_pool_size_ = value;
  522. // @@protoc_insertion_point(field_set:parkspace_proto.database_config.db_conn_pool_size)
  523. }
  524. #ifdef __GNUC__
  525. #pragma GCC diagnostic pop
  526. #endif // __GNUC__
  527. // @@protoc_insertion_point(namespace_scope)
  528. } // namespace parkspace_proto
  529. // @@protoc_insertion_point(global_scope)
  530. #endif // PROTOBUF_parkspace_5fparameter_2eproto__INCLUDED