parkspace_parameter.pb.h 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823
  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[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 InitDefaultsdatabase_configImpl();
  40. void InitDefaultsdatabase_config();
  41. void InitDefaultsgarage_configImpl();
  42. void InitDefaultsgarage_config();
  43. inline void InitDefaults() {
  44. InitDefaultsdatabase_config();
  45. InitDefaultsgarage_config();
  46. }
  47. } // namespace protobuf_parkspace_5fparameter_2eproto
  48. namespace parkspace_proto {
  49. class database_config;
  50. class database_configDefaultTypeInternal;
  51. extern database_configDefaultTypeInternal _database_config_default_instance_;
  52. class garage_config;
  53. class garage_configDefaultTypeInternal;
  54. extern garage_configDefaultTypeInternal _garage_config_default_instance_;
  55. } // namespace parkspace_proto
  56. namespace parkspace_proto {
  57. // ===================================================================
  58. class database_config : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:parkspace_proto.database_config) */ {
  59. public:
  60. database_config();
  61. virtual ~database_config();
  62. database_config(const database_config& from);
  63. inline database_config& operator=(const database_config& from) {
  64. CopyFrom(from);
  65. return *this;
  66. }
  67. #if LANG_CXX11
  68. database_config(database_config&& from) noexcept
  69. : database_config() {
  70. *this = ::std::move(from);
  71. }
  72. inline database_config& operator=(database_config&& 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 database_config& default_instance();
  89. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  90. static inline const database_config* internal_default_instance() {
  91. return reinterpret_cast<const database_config*>(
  92. &_database_config_default_instance_);
  93. }
  94. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  95. 0;
  96. void Swap(database_config* other);
  97. friend void swap(database_config& a, database_config& b) {
  98. a.Swap(&b);
  99. }
  100. // implements Message ----------------------------------------------
  101. inline database_config* New() const PROTOBUF_FINAL { return New(NULL); }
  102. database_config* 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 database_config& from);
  106. void MergeFrom(const database_config& 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(database_config* 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 db_ip = 1;
  134. bool has_db_ip() const;
  135. void clear_db_ip();
  136. static const int kDbIpFieldNumber = 1;
  137. const ::std::string& db_ip() const;
  138. void set_db_ip(const ::std::string& value);
  139. #if LANG_CXX11
  140. void set_db_ip(::std::string&& value);
  141. #endif
  142. void set_db_ip(const char* value);
  143. void set_db_ip(const char* value, size_t size);
  144. ::std::string* mutable_db_ip();
  145. ::std::string* release_db_ip();
  146. void set_allocated_db_ip(::std::string* db_ip);
  147. // required string db_username = 3;
  148. bool has_db_username() const;
  149. void clear_db_username();
  150. static const int kDbUsernameFieldNumber = 3;
  151. const ::std::string& db_username() const;
  152. void set_db_username(const ::std::string& value);
  153. #if LANG_CXX11
  154. void set_db_username(::std::string&& value);
  155. #endif
  156. void set_db_username(const char* value);
  157. void set_db_username(const char* value, size_t size);
  158. ::std::string* mutable_db_username();
  159. ::std::string* release_db_username();
  160. void set_allocated_db_username(::std::string* db_username);
  161. // optional string db_passwd = 4 [default = ""];
  162. bool has_db_passwd() const;
  163. void clear_db_passwd();
  164. static const int kDbPasswdFieldNumber = 4;
  165. const ::std::string& db_passwd() const;
  166. void set_db_passwd(const ::std::string& value);
  167. #if LANG_CXX11
  168. void set_db_passwd(::std::string&& value);
  169. #endif
  170. void set_db_passwd(const char* value);
  171. void set_db_passwd(const char* value, size_t size);
  172. ::std::string* mutable_db_passwd();
  173. ::std::string* release_db_passwd();
  174. void set_allocated_db_passwd(::std::string* db_passwd);
  175. // required string db_name = 5;
  176. bool has_db_name() const;
  177. void clear_db_name();
  178. static const int kDbNameFieldNumber = 5;
  179. const ::std::string& db_name() const;
  180. void set_db_name(const ::std::string& value);
  181. #if LANG_CXX11
  182. void set_db_name(::std::string&& value);
  183. #endif
  184. void set_db_name(const char* value);
  185. void set_db_name(const char* value, size_t size);
  186. ::std::string* mutable_db_name();
  187. ::std::string* release_db_name();
  188. void set_allocated_db_name(::std::string* db_name);
  189. // required int64 db_port = 2;
  190. bool has_db_port() const;
  191. void clear_db_port();
  192. static const int kDbPortFieldNumber = 2;
  193. ::google::protobuf::int64 db_port() const;
  194. void set_db_port(::google::protobuf::int64 value);
  195. // optional int64 db_conn_pool_size = 6;
  196. bool has_db_conn_pool_size() const;
  197. void clear_db_conn_pool_size();
  198. static const int kDbConnPoolSizeFieldNumber = 6;
  199. ::google::protobuf::int64 db_conn_pool_size() const;
  200. void set_db_conn_pool_size(::google::protobuf::int64 value);
  201. // @@protoc_insertion_point(class_scope:parkspace_proto.database_config)
  202. private:
  203. void set_has_db_ip();
  204. void clear_has_db_ip();
  205. void set_has_db_port();
  206. void clear_has_db_port();
  207. void set_has_db_username();
  208. void clear_has_db_username();
  209. void set_has_db_passwd();
  210. void clear_has_db_passwd();
  211. void set_has_db_name();
  212. void clear_has_db_name();
  213. void set_has_db_conn_pool_size();
  214. void clear_has_db_conn_pool_size();
  215. // helper for ByteSizeLong()
  216. size_t RequiredFieldsByteSizeFallback() const;
  217. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  218. ::google::protobuf::internal::HasBits<1> _has_bits_;
  219. mutable int _cached_size_;
  220. ::google::protobuf::internal::ArenaStringPtr db_ip_;
  221. ::google::protobuf::internal::ArenaStringPtr db_username_;
  222. ::google::protobuf::internal::ArenaStringPtr db_passwd_;
  223. ::google::protobuf::internal::ArenaStringPtr db_name_;
  224. ::google::protobuf::int64 db_port_;
  225. ::google::protobuf::int64 db_conn_pool_size_;
  226. friend struct ::protobuf_parkspace_5fparameter_2eproto::TableStruct;
  227. friend void ::protobuf_parkspace_5fparameter_2eproto::InitDefaultsdatabase_configImpl();
  228. };
  229. // -------------------------------------------------------------------
  230. class garage_config : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:parkspace_proto.garage_config) */ {
  231. public:
  232. garage_config();
  233. virtual ~garage_config();
  234. garage_config(const garage_config& from);
  235. inline garage_config& operator=(const garage_config& from) {
  236. CopyFrom(from);
  237. return *this;
  238. }
  239. #if LANG_CXX11
  240. garage_config(garage_config&& from) noexcept
  241. : garage_config() {
  242. *this = ::std::move(from);
  243. }
  244. inline garage_config& operator=(garage_config&& from) noexcept {
  245. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  246. if (this != &from) InternalSwap(&from);
  247. } else {
  248. CopyFrom(from);
  249. }
  250. return *this;
  251. }
  252. #endif
  253. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  254. return _internal_metadata_.unknown_fields();
  255. }
  256. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  257. return _internal_metadata_.mutable_unknown_fields();
  258. }
  259. static const ::google::protobuf::Descriptor* descriptor();
  260. static const garage_config& default_instance();
  261. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  262. static inline const garage_config* internal_default_instance() {
  263. return reinterpret_cast<const garage_config*>(
  264. &_garage_config_default_instance_);
  265. }
  266. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  267. 1;
  268. void Swap(garage_config* other);
  269. friend void swap(garage_config& a, garage_config& b) {
  270. a.Swap(&b);
  271. }
  272. // implements Message ----------------------------------------------
  273. inline garage_config* New() const PROTOBUF_FINAL { return New(NULL); }
  274. garage_config* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  275. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  276. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  277. void CopyFrom(const garage_config& from);
  278. void MergeFrom(const garage_config& from);
  279. void Clear() PROTOBUF_FINAL;
  280. bool IsInitialized() const PROTOBUF_FINAL;
  281. size_t ByteSizeLong() const PROTOBUF_FINAL;
  282. bool MergePartialFromCodedStream(
  283. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  284. void SerializeWithCachedSizes(
  285. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  286. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  287. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  288. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  289. private:
  290. void SharedCtor();
  291. void SharedDtor();
  292. void SetCachedSize(int size) const PROTOBUF_FINAL;
  293. void InternalSwap(garage_config* other);
  294. private:
  295. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  296. return NULL;
  297. }
  298. inline void* MaybeArenaPtr() const {
  299. return NULL;
  300. }
  301. public:
  302. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  303. // nested types ----------------------------------------------------
  304. // accessors -------------------------------------------------------
  305. // required .parkspace_proto.database_config db_config = 3;
  306. bool has_db_config() const;
  307. void clear_db_config();
  308. static const int kDbConfigFieldNumber = 3;
  309. const ::parkspace_proto::database_config& db_config() const;
  310. ::parkspace_proto::database_config* release_db_config();
  311. ::parkspace_proto::database_config* mutable_db_config();
  312. void set_allocated_db_config(::parkspace_proto::database_config* db_config);
  313. // required int64 block_size = 1;
  314. bool has_block_size() const;
  315. void clear_block_size();
  316. static const int kBlockSizeFieldNumber = 1;
  317. ::google::protobuf::int64 block_size() const;
  318. void set_block_size(::google::protobuf::int64 value);
  319. // required int64 terminal_size_in_block = 2;
  320. bool has_terminal_size_in_block() const;
  321. void clear_terminal_size_in_block();
  322. static const int kTerminalSizeInBlockFieldNumber = 2;
  323. ::google::protobuf::int64 terminal_size_in_block() const;
  324. void set_terminal_size_in_block(::google::protobuf::int64 value);
  325. // @@protoc_insertion_point(class_scope:parkspace_proto.garage_config)
  326. private:
  327. void set_has_block_size();
  328. void clear_has_block_size();
  329. void set_has_terminal_size_in_block();
  330. void clear_has_terminal_size_in_block();
  331. void set_has_db_config();
  332. void clear_has_db_config();
  333. // helper for ByteSizeLong()
  334. size_t RequiredFieldsByteSizeFallback() const;
  335. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  336. ::google::protobuf::internal::HasBits<1> _has_bits_;
  337. mutable int _cached_size_;
  338. ::parkspace_proto::database_config* db_config_;
  339. ::google::protobuf::int64 block_size_;
  340. ::google::protobuf::int64 terminal_size_in_block_;
  341. friend struct ::protobuf_parkspace_5fparameter_2eproto::TableStruct;
  342. friend void ::protobuf_parkspace_5fparameter_2eproto::InitDefaultsgarage_configImpl();
  343. };
  344. // ===================================================================
  345. // ===================================================================
  346. #ifdef __GNUC__
  347. #pragma GCC diagnostic push
  348. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  349. #endif // __GNUC__
  350. // database_config
  351. // required string db_ip = 1;
  352. inline bool database_config::has_db_ip() const {
  353. return (_has_bits_[0] & 0x00000001u) != 0;
  354. }
  355. inline void database_config::set_has_db_ip() {
  356. _has_bits_[0] |= 0x00000001u;
  357. }
  358. inline void database_config::clear_has_db_ip() {
  359. _has_bits_[0] &= ~0x00000001u;
  360. }
  361. inline void database_config::clear_db_ip() {
  362. db_ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  363. clear_has_db_ip();
  364. }
  365. inline const ::std::string& database_config::db_ip() const {
  366. // @@protoc_insertion_point(field_get:parkspace_proto.database_config.db_ip)
  367. return db_ip_.GetNoArena();
  368. }
  369. inline void database_config::set_db_ip(const ::std::string& value) {
  370. set_has_db_ip();
  371. db_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  372. // @@protoc_insertion_point(field_set:parkspace_proto.database_config.db_ip)
  373. }
  374. #if LANG_CXX11
  375. inline void database_config::set_db_ip(::std::string&& value) {
  376. set_has_db_ip();
  377. db_ip_.SetNoArena(
  378. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  379. // @@protoc_insertion_point(field_set_rvalue:parkspace_proto.database_config.db_ip)
  380. }
  381. #endif
  382. inline void database_config::set_db_ip(const char* value) {
  383. GOOGLE_DCHECK(value != NULL);
  384. set_has_db_ip();
  385. db_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  386. // @@protoc_insertion_point(field_set_char:parkspace_proto.database_config.db_ip)
  387. }
  388. inline void database_config::set_db_ip(const char* value, size_t size) {
  389. set_has_db_ip();
  390. db_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  391. ::std::string(reinterpret_cast<const char*>(value), size));
  392. // @@protoc_insertion_point(field_set_pointer:parkspace_proto.database_config.db_ip)
  393. }
  394. inline ::std::string* database_config::mutable_db_ip() {
  395. set_has_db_ip();
  396. // @@protoc_insertion_point(field_mutable:parkspace_proto.database_config.db_ip)
  397. return db_ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  398. }
  399. inline ::std::string* database_config::release_db_ip() {
  400. // @@protoc_insertion_point(field_release:parkspace_proto.database_config.db_ip)
  401. clear_has_db_ip();
  402. return db_ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  403. }
  404. inline void database_config::set_allocated_db_ip(::std::string* db_ip) {
  405. if (db_ip != NULL) {
  406. set_has_db_ip();
  407. } else {
  408. clear_has_db_ip();
  409. }
  410. db_ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), db_ip);
  411. // @@protoc_insertion_point(field_set_allocated:parkspace_proto.database_config.db_ip)
  412. }
  413. // required int64 db_port = 2;
  414. inline bool database_config::has_db_port() const {
  415. return (_has_bits_[0] & 0x00000010u) != 0;
  416. }
  417. inline void database_config::set_has_db_port() {
  418. _has_bits_[0] |= 0x00000010u;
  419. }
  420. inline void database_config::clear_has_db_port() {
  421. _has_bits_[0] &= ~0x00000010u;
  422. }
  423. inline void database_config::clear_db_port() {
  424. db_port_ = GOOGLE_LONGLONG(0);
  425. clear_has_db_port();
  426. }
  427. inline ::google::protobuf::int64 database_config::db_port() const {
  428. // @@protoc_insertion_point(field_get:parkspace_proto.database_config.db_port)
  429. return db_port_;
  430. }
  431. inline void database_config::set_db_port(::google::protobuf::int64 value) {
  432. set_has_db_port();
  433. db_port_ = value;
  434. // @@protoc_insertion_point(field_set:parkspace_proto.database_config.db_port)
  435. }
  436. // required string db_username = 3;
  437. inline bool database_config::has_db_username() const {
  438. return (_has_bits_[0] & 0x00000002u) != 0;
  439. }
  440. inline void database_config::set_has_db_username() {
  441. _has_bits_[0] |= 0x00000002u;
  442. }
  443. inline void database_config::clear_has_db_username() {
  444. _has_bits_[0] &= ~0x00000002u;
  445. }
  446. inline void database_config::clear_db_username() {
  447. db_username_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  448. clear_has_db_username();
  449. }
  450. inline const ::std::string& database_config::db_username() const {
  451. // @@protoc_insertion_point(field_get:parkspace_proto.database_config.db_username)
  452. return db_username_.GetNoArena();
  453. }
  454. inline void database_config::set_db_username(const ::std::string& value) {
  455. set_has_db_username();
  456. db_username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  457. // @@protoc_insertion_point(field_set:parkspace_proto.database_config.db_username)
  458. }
  459. #if LANG_CXX11
  460. inline void database_config::set_db_username(::std::string&& value) {
  461. set_has_db_username();
  462. db_username_.SetNoArena(
  463. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  464. // @@protoc_insertion_point(field_set_rvalue:parkspace_proto.database_config.db_username)
  465. }
  466. #endif
  467. inline void database_config::set_db_username(const char* value) {
  468. GOOGLE_DCHECK(value != NULL);
  469. set_has_db_username();
  470. db_username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  471. // @@protoc_insertion_point(field_set_char:parkspace_proto.database_config.db_username)
  472. }
  473. inline void database_config::set_db_username(const char* value, size_t size) {
  474. set_has_db_username();
  475. db_username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  476. ::std::string(reinterpret_cast<const char*>(value), size));
  477. // @@protoc_insertion_point(field_set_pointer:parkspace_proto.database_config.db_username)
  478. }
  479. inline ::std::string* database_config::mutable_db_username() {
  480. set_has_db_username();
  481. // @@protoc_insertion_point(field_mutable:parkspace_proto.database_config.db_username)
  482. return db_username_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  483. }
  484. inline ::std::string* database_config::release_db_username() {
  485. // @@protoc_insertion_point(field_release:parkspace_proto.database_config.db_username)
  486. clear_has_db_username();
  487. return db_username_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  488. }
  489. inline void database_config::set_allocated_db_username(::std::string* db_username) {
  490. if (db_username != NULL) {
  491. set_has_db_username();
  492. } else {
  493. clear_has_db_username();
  494. }
  495. db_username_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), db_username);
  496. // @@protoc_insertion_point(field_set_allocated:parkspace_proto.database_config.db_username)
  497. }
  498. // optional string db_passwd = 4 [default = ""];
  499. inline bool database_config::has_db_passwd() const {
  500. return (_has_bits_[0] & 0x00000004u) != 0;
  501. }
  502. inline void database_config::set_has_db_passwd() {
  503. _has_bits_[0] |= 0x00000004u;
  504. }
  505. inline void database_config::clear_has_db_passwd() {
  506. _has_bits_[0] &= ~0x00000004u;
  507. }
  508. inline void database_config::clear_db_passwd() {
  509. db_passwd_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  510. clear_has_db_passwd();
  511. }
  512. inline const ::std::string& database_config::db_passwd() const {
  513. // @@protoc_insertion_point(field_get:parkspace_proto.database_config.db_passwd)
  514. return db_passwd_.GetNoArena();
  515. }
  516. inline void database_config::set_db_passwd(const ::std::string& value) {
  517. set_has_db_passwd();
  518. db_passwd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  519. // @@protoc_insertion_point(field_set:parkspace_proto.database_config.db_passwd)
  520. }
  521. #if LANG_CXX11
  522. inline void database_config::set_db_passwd(::std::string&& value) {
  523. set_has_db_passwd();
  524. db_passwd_.SetNoArena(
  525. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  526. // @@protoc_insertion_point(field_set_rvalue:parkspace_proto.database_config.db_passwd)
  527. }
  528. #endif
  529. inline void database_config::set_db_passwd(const char* value) {
  530. GOOGLE_DCHECK(value != NULL);
  531. set_has_db_passwd();
  532. db_passwd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  533. // @@protoc_insertion_point(field_set_char:parkspace_proto.database_config.db_passwd)
  534. }
  535. inline void database_config::set_db_passwd(const char* value, size_t size) {
  536. set_has_db_passwd();
  537. db_passwd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  538. ::std::string(reinterpret_cast<const char*>(value), size));
  539. // @@protoc_insertion_point(field_set_pointer:parkspace_proto.database_config.db_passwd)
  540. }
  541. inline ::std::string* database_config::mutable_db_passwd() {
  542. set_has_db_passwd();
  543. // @@protoc_insertion_point(field_mutable:parkspace_proto.database_config.db_passwd)
  544. return db_passwd_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  545. }
  546. inline ::std::string* database_config::release_db_passwd() {
  547. // @@protoc_insertion_point(field_release:parkspace_proto.database_config.db_passwd)
  548. clear_has_db_passwd();
  549. return db_passwd_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  550. }
  551. inline void database_config::set_allocated_db_passwd(::std::string* db_passwd) {
  552. if (db_passwd != NULL) {
  553. set_has_db_passwd();
  554. } else {
  555. clear_has_db_passwd();
  556. }
  557. db_passwd_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), db_passwd);
  558. // @@protoc_insertion_point(field_set_allocated:parkspace_proto.database_config.db_passwd)
  559. }
  560. // required string db_name = 5;
  561. inline bool database_config::has_db_name() const {
  562. return (_has_bits_[0] & 0x00000008u) != 0;
  563. }
  564. inline void database_config::set_has_db_name() {
  565. _has_bits_[0] |= 0x00000008u;
  566. }
  567. inline void database_config::clear_has_db_name() {
  568. _has_bits_[0] &= ~0x00000008u;
  569. }
  570. inline void database_config::clear_db_name() {
  571. db_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  572. clear_has_db_name();
  573. }
  574. inline const ::std::string& database_config::db_name() const {
  575. // @@protoc_insertion_point(field_get:parkspace_proto.database_config.db_name)
  576. return db_name_.GetNoArena();
  577. }
  578. inline void database_config::set_db_name(const ::std::string& value) {
  579. set_has_db_name();
  580. db_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  581. // @@protoc_insertion_point(field_set:parkspace_proto.database_config.db_name)
  582. }
  583. #if LANG_CXX11
  584. inline void database_config::set_db_name(::std::string&& value) {
  585. set_has_db_name();
  586. db_name_.SetNoArena(
  587. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  588. // @@protoc_insertion_point(field_set_rvalue:parkspace_proto.database_config.db_name)
  589. }
  590. #endif
  591. inline void database_config::set_db_name(const char* value) {
  592. GOOGLE_DCHECK(value != NULL);
  593. set_has_db_name();
  594. db_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  595. // @@protoc_insertion_point(field_set_char:parkspace_proto.database_config.db_name)
  596. }
  597. inline void database_config::set_db_name(const char* value, size_t size) {
  598. set_has_db_name();
  599. db_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  600. ::std::string(reinterpret_cast<const char*>(value), size));
  601. // @@protoc_insertion_point(field_set_pointer:parkspace_proto.database_config.db_name)
  602. }
  603. inline ::std::string* database_config::mutable_db_name() {
  604. set_has_db_name();
  605. // @@protoc_insertion_point(field_mutable:parkspace_proto.database_config.db_name)
  606. return db_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  607. }
  608. inline ::std::string* database_config::release_db_name() {
  609. // @@protoc_insertion_point(field_release:parkspace_proto.database_config.db_name)
  610. clear_has_db_name();
  611. return db_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  612. }
  613. inline void database_config::set_allocated_db_name(::std::string* db_name) {
  614. if (db_name != NULL) {
  615. set_has_db_name();
  616. } else {
  617. clear_has_db_name();
  618. }
  619. db_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), db_name);
  620. // @@protoc_insertion_point(field_set_allocated:parkspace_proto.database_config.db_name)
  621. }
  622. // optional int64 db_conn_pool_size = 6;
  623. inline bool database_config::has_db_conn_pool_size() const {
  624. return (_has_bits_[0] & 0x00000020u) != 0;
  625. }
  626. inline void database_config::set_has_db_conn_pool_size() {
  627. _has_bits_[0] |= 0x00000020u;
  628. }
  629. inline void database_config::clear_has_db_conn_pool_size() {
  630. _has_bits_[0] &= ~0x00000020u;
  631. }
  632. inline void database_config::clear_db_conn_pool_size() {
  633. db_conn_pool_size_ = GOOGLE_LONGLONG(0);
  634. clear_has_db_conn_pool_size();
  635. }
  636. inline ::google::protobuf::int64 database_config::db_conn_pool_size() const {
  637. // @@protoc_insertion_point(field_get:parkspace_proto.database_config.db_conn_pool_size)
  638. return db_conn_pool_size_;
  639. }
  640. inline void database_config::set_db_conn_pool_size(::google::protobuf::int64 value) {
  641. set_has_db_conn_pool_size();
  642. db_conn_pool_size_ = value;
  643. // @@protoc_insertion_point(field_set:parkspace_proto.database_config.db_conn_pool_size)
  644. }
  645. // -------------------------------------------------------------------
  646. // garage_config
  647. // required int64 block_size = 1;
  648. inline bool garage_config::has_block_size() const {
  649. return (_has_bits_[0] & 0x00000002u) != 0;
  650. }
  651. inline void garage_config::set_has_block_size() {
  652. _has_bits_[0] |= 0x00000002u;
  653. }
  654. inline void garage_config::clear_has_block_size() {
  655. _has_bits_[0] &= ~0x00000002u;
  656. }
  657. inline void garage_config::clear_block_size() {
  658. block_size_ = GOOGLE_LONGLONG(0);
  659. clear_has_block_size();
  660. }
  661. inline ::google::protobuf::int64 garage_config::block_size() const {
  662. // @@protoc_insertion_point(field_get:parkspace_proto.garage_config.block_size)
  663. return block_size_;
  664. }
  665. inline void garage_config::set_block_size(::google::protobuf::int64 value) {
  666. set_has_block_size();
  667. block_size_ = value;
  668. // @@protoc_insertion_point(field_set:parkspace_proto.garage_config.block_size)
  669. }
  670. // required int64 terminal_size_in_block = 2;
  671. inline bool garage_config::has_terminal_size_in_block() const {
  672. return (_has_bits_[0] & 0x00000004u) != 0;
  673. }
  674. inline void garage_config::set_has_terminal_size_in_block() {
  675. _has_bits_[0] |= 0x00000004u;
  676. }
  677. inline void garage_config::clear_has_terminal_size_in_block() {
  678. _has_bits_[0] &= ~0x00000004u;
  679. }
  680. inline void garage_config::clear_terminal_size_in_block() {
  681. terminal_size_in_block_ = GOOGLE_LONGLONG(0);
  682. clear_has_terminal_size_in_block();
  683. }
  684. inline ::google::protobuf::int64 garage_config::terminal_size_in_block() const {
  685. // @@protoc_insertion_point(field_get:parkspace_proto.garage_config.terminal_size_in_block)
  686. return terminal_size_in_block_;
  687. }
  688. inline void garage_config::set_terminal_size_in_block(::google::protobuf::int64 value) {
  689. set_has_terminal_size_in_block();
  690. terminal_size_in_block_ = value;
  691. // @@protoc_insertion_point(field_set:parkspace_proto.garage_config.terminal_size_in_block)
  692. }
  693. // required .parkspace_proto.database_config db_config = 3;
  694. inline bool garage_config::has_db_config() const {
  695. return (_has_bits_[0] & 0x00000001u) != 0;
  696. }
  697. inline void garage_config::set_has_db_config() {
  698. _has_bits_[0] |= 0x00000001u;
  699. }
  700. inline void garage_config::clear_has_db_config() {
  701. _has_bits_[0] &= ~0x00000001u;
  702. }
  703. inline void garage_config::clear_db_config() {
  704. if (db_config_ != NULL) db_config_->Clear();
  705. clear_has_db_config();
  706. }
  707. inline const ::parkspace_proto::database_config& garage_config::db_config() const {
  708. const ::parkspace_proto::database_config* p = db_config_;
  709. // @@protoc_insertion_point(field_get:parkspace_proto.garage_config.db_config)
  710. return p != NULL ? *p : *reinterpret_cast<const ::parkspace_proto::database_config*>(
  711. &::parkspace_proto::_database_config_default_instance_);
  712. }
  713. inline ::parkspace_proto::database_config* garage_config::release_db_config() {
  714. // @@protoc_insertion_point(field_release:parkspace_proto.garage_config.db_config)
  715. clear_has_db_config();
  716. ::parkspace_proto::database_config* temp = db_config_;
  717. db_config_ = NULL;
  718. return temp;
  719. }
  720. inline ::parkspace_proto::database_config* garage_config::mutable_db_config() {
  721. set_has_db_config();
  722. if (db_config_ == NULL) {
  723. db_config_ = new ::parkspace_proto::database_config;
  724. }
  725. // @@protoc_insertion_point(field_mutable:parkspace_proto.garage_config.db_config)
  726. return db_config_;
  727. }
  728. inline void garage_config::set_allocated_db_config(::parkspace_proto::database_config* db_config) {
  729. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  730. if (message_arena == NULL) {
  731. delete db_config_;
  732. }
  733. if (db_config) {
  734. ::google::protobuf::Arena* submessage_arena = NULL;
  735. if (message_arena != submessage_arena) {
  736. db_config = ::google::protobuf::internal::GetOwnedMessage(
  737. message_arena, db_config, submessage_arena);
  738. }
  739. set_has_db_config();
  740. } else {
  741. clear_has_db_config();
  742. }
  743. db_config_ = db_config;
  744. // @@protoc_insertion_point(field_set_allocated:parkspace_proto.garage_config.db_config)
  745. }
  746. #ifdef __GNUC__
  747. #pragma GCC diagnostic pop
  748. #endif // __GNUC__
  749. // -------------------------------------------------------------------
  750. // @@protoc_insertion_point(namespace_scope)
  751. } // namespace parkspace_proto
  752. // @@protoc_insertion_point(global_scope)
  753. #endif // PROTOBUF_parkspace_5fparameter_2eproto__INCLUDED