database_communication_configuration.pb.h 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: database_communication_configuration.proto
  3. #ifndef PROTOBUF_database_5fcommunication_5fconfiguration_2eproto__INCLUDED
  4. #define PROTOBUF_database_5fcommunication_5fconfiguration_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_database_5fcommunication_5fconfiguration_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_communication_configurationImpl();
  40. void InitDefaultsDatabase_communication_configuration();
  41. void InitDefaultsDatabase_communication_configuration_allImpl();
  42. void InitDefaultsDatabase_communication_configuration_all();
  43. inline void InitDefaults() {
  44. InitDefaultsDatabase_communication_configuration();
  45. InitDefaultsDatabase_communication_configuration_all();
  46. }
  47. } // namespace protobuf_database_5fcommunication_5fconfiguration_2eproto
  48. namespace parkspace_proto {
  49. class Database_communication_configuration;
  50. class Database_communication_configurationDefaultTypeInternal;
  51. extern Database_communication_configurationDefaultTypeInternal _Database_communication_configuration_default_instance_;
  52. class Database_communication_configuration_all;
  53. class Database_communication_configuration_allDefaultTypeInternal;
  54. extern Database_communication_configuration_allDefaultTypeInternal _Database_communication_configuration_all_default_instance_;
  55. } // namespace parkspace_proto
  56. namespace parkspace_proto {
  57. // ===================================================================
  58. class Database_communication_configuration : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:parkspace_proto.Database_communication_configuration) */ {
  59. public:
  60. Database_communication_configuration();
  61. virtual ~Database_communication_configuration();
  62. Database_communication_configuration(const Database_communication_configuration& from);
  63. inline Database_communication_configuration& operator=(const Database_communication_configuration& from) {
  64. CopyFrom(from);
  65. return *this;
  66. }
  67. #if LANG_CXX11
  68. Database_communication_configuration(Database_communication_configuration&& from) noexcept
  69. : Database_communication_configuration() {
  70. *this = ::std::move(from);
  71. }
  72. inline Database_communication_configuration& operator=(Database_communication_configuration&& 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_communication_configuration& default_instance();
  89. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  90. static inline const Database_communication_configuration* internal_default_instance() {
  91. return reinterpret_cast<const Database_communication_configuration*>(
  92. &_Database_communication_configuration_default_instance_);
  93. }
  94. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  95. 0;
  96. void Swap(Database_communication_configuration* other);
  97. friend void swap(Database_communication_configuration& a, Database_communication_configuration& b) {
  98. a.Swap(&b);
  99. }
  100. // implements Message ----------------------------------------------
  101. inline Database_communication_configuration* New() const PROTOBUF_FINAL { return New(NULL); }
  102. Database_communication_configuration* 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_communication_configuration& from);
  106. void MergeFrom(const Database_communication_configuration& 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_communication_configuration* 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_communication_configuration)
  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_database_5fcommunication_5fconfiguration_2eproto::TableStruct;
  227. friend void ::protobuf_database_5fcommunication_5fconfiguration_2eproto::InitDefaultsDatabase_communication_configurationImpl();
  228. };
  229. // -------------------------------------------------------------------
  230. class Database_communication_configuration_all : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:parkspace_proto.Database_communication_configuration_all) */ {
  231. public:
  232. Database_communication_configuration_all();
  233. virtual ~Database_communication_configuration_all();
  234. Database_communication_configuration_all(const Database_communication_configuration_all& from);
  235. inline Database_communication_configuration_all& operator=(const Database_communication_configuration_all& from) {
  236. CopyFrom(from);
  237. return *this;
  238. }
  239. #if LANG_CXX11
  240. Database_communication_configuration_all(Database_communication_configuration_all&& from) noexcept
  241. : Database_communication_configuration_all() {
  242. *this = ::std::move(from);
  243. }
  244. inline Database_communication_configuration_all& operator=(Database_communication_configuration_all&& 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 Database_communication_configuration_all& default_instance();
  261. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  262. static inline const Database_communication_configuration_all* internal_default_instance() {
  263. return reinterpret_cast<const Database_communication_configuration_all*>(
  264. &_Database_communication_configuration_all_default_instance_);
  265. }
  266. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  267. 1;
  268. void Swap(Database_communication_configuration_all* other);
  269. friend void swap(Database_communication_configuration_all& a, Database_communication_configuration_all& b) {
  270. a.Swap(&b);
  271. }
  272. // implements Message ----------------------------------------------
  273. inline Database_communication_configuration_all* New() const PROTOBUF_FINAL { return New(NULL); }
  274. Database_communication_configuration_all* 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 Database_communication_configuration_all& from);
  278. void MergeFrom(const Database_communication_configuration_all& 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(Database_communication_configuration_all* 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. // optional .parkspace_proto.Database_communication_configuration database_communication_configurations = 1;
  306. bool has_database_communication_configurations() const;
  307. void clear_database_communication_configurations();
  308. static const int kDatabaseCommunicationConfigurationsFieldNumber = 1;
  309. const ::parkspace_proto::Database_communication_configuration& database_communication_configurations() const;
  310. ::parkspace_proto::Database_communication_configuration* release_database_communication_configurations();
  311. ::parkspace_proto::Database_communication_configuration* mutable_database_communication_configurations();
  312. void set_allocated_database_communication_configurations(::parkspace_proto::Database_communication_configuration* database_communication_configurations);
  313. // @@protoc_insertion_point(class_scope:parkspace_proto.Database_communication_configuration_all)
  314. private:
  315. void set_has_database_communication_configurations();
  316. void clear_has_database_communication_configurations();
  317. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  318. ::google::protobuf::internal::HasBits<1> _has_bits_;
  319. mutable int _cached_size_;
  320. ::parkspace_proto::Database_communication_configuration* database_communication_configurations_;
  321. friend struct ::protobuf_database_5fcommunication_5fconfiguration_2eproto::TableStruct;
  322. friend void ::protobuf_database_5fcommunication_5fconfiguration_2eproto::InitDefaultsDatabase_communication_configuration_allImpl();
  323. };
  324. // ===================================================================
  325. // ===================================================================
  326. #ifdef __GNUC__
  327. #pragma GCC diagnostic push
  328. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  329. #endif // __GNUC__
  330. // Database_communication_configuration
  331. // required string db_ip = 1;
  332. inline bool Database_communication_configuration::has_db_ip() const {
  333. return (_has_bits_[0] & 0x00000001u) != 0;
  334. }
  335. inline void Database_communication_configuration::set_has_db_ip() {
  336. _has_bits_[0] |= 0x00000001u;
  337. }
  338. inline void Database_communication_configuration::clear_has_db_ip() {
  339. _has_bits_[0] &= ~0x00000001u;
  340. }
  341. inline void Database_communication_configuration::clear_db_ip() {
  342. db_ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  343. clear_has_db_ip();
  344. }
  345. inline const ::std::string& Database_communication_configuration::db_ip() const {
  346. // @@protoc_insertion_point(field_get:parkspace_proto.Database_communication_configuration.db_ip)
  347. return db_ip_.GetNoArena();
  348. }
  349. inline void Database_communication_configuration::set_db_ip(const ::std::string& value) {
  350. set_has_db_ip();
  351. db_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  352. // @@protoc_insertion_point(field_set:parkspace_proto.Database_communication_configuration.db_ip)
  353. }
  354. #if LANG_CXX11
  355. inline void Database_communication_configuration::set_db_ip(::std::string&& value) {
  356. set_has_db_ip();
  357. db_ip_.SetNoArena(
  358. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  359. // @@protoc_insertion_point(field_set_rvalue:parkspace_proto.Database_communication_configuration.db_ip)
  360. }
  361. #endif
  362. inline void Database_communication_configuration::set_db_ip(const char* value) {
  363. GOOGLE_DCHECK(value != NULL);
  364. set_has_db_ip();
  365. db_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  366. // @@protoc_insertion_point(field_set_char:parkspace_proto.Database_communication_configuration.db_ip)
  367. }
  368. inline void Database_communication_configuration::set_db_ip(const char* value, size_t size) {
  369. set_has_db_ip();
  370. db_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  371. ::std::string(reinterpret_cast<const char*>(value), size));
  372. // @@protoc_insertion_point(field_set_pointer:parkspace_proto.Database_communication_configuration.db_ip)
  373. }
  374. inline ::std::string* Database_communication_configuration::mutable_db_ip() {
  375. set_has_db_ip();
  376. // @@protoc_insertion_point(field_mutable:parkspace_proto.Database_communication_configuration.db_ip)
  377. return db_ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  378. }
  379. inline ::std::string* Database_communication_configuration::release_db_ip() {
  380. // @@protoc_insertion_point(field_release:parkspace_proto.Database_communication_configuration.db_ip)
  381. clear_has_db_ip();
  382. return db_ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  383. }
  384. inline void Database_communication_configuration::set_allocated_db_ip(::std::string* db_ip) {
  385. if (db_ip != NULL) {
  386. set_has_db_ip();
  387. } else {
  388. clear_has_db_ip();
  389. }
  390. db_ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), db_ip);
  391. // @@protoc_insertion_point(field_set_allocated:parkspace_proto.Database_communication_configuration.db_ip)
  392. }
  393. // required int64 db_port = 2;
  394. inline bool Database_communication_configuration::has_db_port() const {
  395. return (_has_bits_[0] & 0x00000010u) != 0;
  396. }
  397. inline void Database_communication_configuration::set_has_db_port() {
  398. _has_bits_[0] |= 0x00000010u;
  399. }
  400. inline void Database_communication_configuration::clear_has_db_port() {
  401. _has_bits_[0] &= ~0x00000010u;
  402. }
  403. inline void Database_communication_configuration::clear_db_port() {
  404. db_port_ = GOOGLE_LONGLONG(0);
  405. clear_has_db_port();
  406. }
  407. inline ::google::protobuf::int64 Database_communication_configuration::db_port() const {
  408. // @@protoc_insertion_point(field_get:parkspace_proto.Database_communication_configuration.db_port)
  409. return db_port_;
  410. }
  411. inline void Database_communication_configuration::set_db_port(::google::protobuf::int64 value) {
  412. set_has_db_port();
  413. db_port_ = value;
  414. // @@protoc_insertion_point(field_set:parkspace_proto.Database_communication_configuration.db_port)
  415. }
  416. // required string db_username = 3;
  417. inline bool Database_communication_configuration::has_db_username() const {
  418. return (_has_bits_[0] & 0x00000002u) != 0;
  419. }
  420. inline void Database_communication_configuration::set_has_db_username() {
  421. _has_bits_[0] |= 0x00000002u;
  422. }
  423. inline void Database_communication_configuration::clear_has_db_username() {
  424. _has_bits_[0] &= ~0x00000002u;
  425. }
  426. inline void Database_communication_configuration::clear_db_username() {
  427. db_username_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  428. clear_has_db_username();
  429. }
  430. inline const ::std::string& Database_communication_configuration::db_username() const {
  431. // @@protoc_insertion_point(field_get:parkspace_proto.Database_communication_configuration.db_username)
  432. return db_username_.GetNoArena();
  433. }
  434. inline void Database_communication_configuration::set_db_username(const ::std::string& value) {
  435. set_has_db_username();
  436. db_username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  437. // @@protoc_insertion_point(field_set:parkspace_proto.Database_communication_configuration.db_username)
  438. }
  439. #if LANG_CXX11
  440. inline void Database_communication_configuration::set_db_username(::std::string&& value) {
  441. set_has_db_username();
  442. db_username_.SetNoArena(
  443. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  444. // @@protoc_insertion_point(field_set_rvalue:parkspace_proto.Database_communication_configuration.db_username)
  445. }
  446. #endif
  447. inline void Database_communication_configuration::set_db_username(const char* value) {
  448. GOOGLE_DCHECK(value != NULL);
  449. set_has_db_username();
  450. db_username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  451. // @@protoc_insertion_point(field_set_char:parkspace_proto.Database_communication_configuration.db_username)
  452. }
  453. inline void Database_communication_configuration::set_db_username(const char* value, size_t size) {
  454. set_has_db_username();
  455. db_username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  456. ::std::string(reinterpret_cast<const char*>(value), size));
  457. // @@protoc_insertion_point(field_set_pointer:parkspace_proto.Database_communication_configuration.db_username)
  458. }
  459. inline ::std::string* Database_communication_configuration::mutable_db_username() {
  460. set_has_db_username();
  461. // @@protoc_insertion_point(field_mutable:parkspace_proto.Database_communication_configuration.db_username)
  462. return db_username_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  463. }
  464. inline ::std::string* Database_communication_configuration::release_db_username() {
  465. // @@protoc_insertion_point(field_release:parkspace_proto.Database_communication_configuration.db_username)
  466. clear_has_db_username();
  467. return db_username_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  468. }
  469. inline void Database_communication_configuration::set_allocated_db_username(::std::string* db_username) {
  470. if (db_username != NULL) {
  471. set_has_db_username();
  472. } else {
  473. clear_has_db_username();
  474. }
  475. db_username_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), db_username);
  476. // @@protoc_insertion_point(field_set_allocated:parkspace_proto.Database_communication_configuration.db_username)
  477. }
  478. // optional string db_passwd = 4 [default = ""];
  479. inline bool Database_communication_configuration::has_db_passwd() const {
  480. return (_has_bits_[0] & 0x00000004u) != 0;
  481. }
  482. inline void Database_communication_configuration::set_has_db_passwd() {
  483. _has_bits_[0] |= 0x00000004u;
  484. }
  485. inline void Database_communication_configuration::clear_has_db_passwd() {
  486. _has_bits_[0] &= ~0x00000004u;
  487. }
  488. inline void Database_communication_configuration::clear_db_passwd() {
  489. db_passwd_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  490. clear_has_db_passwd();
  491. }
  492. inline const ::std::string& Database_communication_configuration::db_passwd() const {
  493. // @@protoc_insertion_point(field_get:parkspace_proto.Database_communication_configuration.db_passwd)
  494. return db_passwd_.GetNoArena();
  495. }
  496. inline void Database_communication_configuration::set_db_passwd(const ::std::string& value) {
  497. set_has_db_passwd();
  498. db_passwd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  499. // @@protoc_insertion_point(field_set:parkspace_proto.Database_communication_configuration.db_passwd)
  500. }
  501. #if LANG_CXX11
  502. inline void Database_communication_configuration::set_db_passwd(::std::string&& value) {
  503. set_has_db_passwd();
  504. db_passwd_.SetNoArena(
  505. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  506. // @@protoc_insertion_point(field_set_rvalue:parkspace_proto.Database_communication_configuration.db_passwd)
  507. }
  508. #endif
  509. inline void Database_communication_configuration::set_db_passwd(const char* value) {
  510. GOOGLE_DCHECK(value != NULL);
  511. set_has_db_passwd();
  512. db_passwd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  513. // @@protoc_insertion_point(field_set_char:parkspace_proto.Database_communication_configuration.db_passwd)
  514. }
  515. inline void Database_communication_configuration::set_db_passwd(const char* value, size_t size) {
  516. set_has_db_passwd();
  517. db_passwd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  518. ::std::string(reinterpret_cast<const char*>(value), size));
  519. // @@protoc_insertion_point(field_set_pointer:parkspace_proto.Database_communication_configuration.db_passwd)
  520. }
  521. inline ::std::string* Database_communication_configuration::mutable_db_passwd() {
  522. set_has_db_passwd();
  523. // @@protoc_insertion_point(field_mutable:parkspace_proto.Database_communication_configuration.db_passwd)
  524. return db_passwd_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  525. }
  526. inline ::std::string* Database_communication_configuration::release_db_passwd() {
  527. // @@protoc_insertion_point(field_release:parkspace_proto.Database_communication_configuration.db_passwd)
  528. clear_has_db_passwd();
  529. return db_passwd_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  530. }
  531. inline void Database_communication_configuration::set_allocated_db_passwd(::std::string* db_passwd) {
  532. if (db_passwd != NULL) {
  533. set_has_db_passwd();
  534. } else {
  535. clear_has_db_passwd();
  536. }
  537. db_passwd_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), db_passwd);
  538. // @@protoc_insertion_point(field_set_allocated:parkspace_proto.Database_communication_configuration.db_passwd)
  539. }
  540. // required string db_name = 5;
  541. inline bool Database_communication_configuration::has_db_name() const {
  542. return (_has_bits_[0] & 0x00000008u) != 0;
  543. }
  544. inline void Database_communication_configuration::set_has_db_name() {
  545. _has_bits_[0] |= 0x00000008u;
  546. }
  547. inline void Database_communication_configuration::clear_has_db_name() {
  548. _has_bits_[0] &= ~0x00000008u;
  549. }
  550. inline void Database_communication_configuration::clear_db_name() {
  551. db_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  552. clear_has_db_name();
  553. }
  554. inline const ::std::string& Database_communication_configuration::db_name() const {
  555. // @@protoc_insertion_point(field_get:parkspace_proto.Database_communication_configuration.db_name)
  556. return db_name_.GetNoArena();
  557. }
  558. inline void Database_communication_configuration::set_db_name(const ::std::string& value) {
  559. set_has_db_name();
  560. db_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  561. // @@protoc_insertion_point(field_set:parkspace_proto.Database_communication_configuration.db_name)
  562. }
  563. #if LANG_CXX11
  564. inline void Database_communication_configuration::set_db_name(::std::string&& value) {
  565. set_has_db_name();
  566. db_name_.SetNoArena(
  567. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  568. // @@protoc_insertion_point(field_set_rvalue:parkspace_proto.Database_communication_configuration.db_name)
  569. }
  570. #endif
  571. inline void Database_communication_configuration::set_db_name(const char* value) {
  572. GOOGLE_DCHECK(value != NULL);
  573. set_has_db_name();
  574. db_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  575. // @@protoc_insertion_point(field_set_char:parkspace_proto.Database_communication_configuration.db_name)
  576. }
  577. inline void Database_communication_configuration::set_db_name(const char* value, size_t size) {
  578. set_has_db_name();
  579. db_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  580. ::std::string(reinterpret_cast<const char*>(value), size));
  581. // @@protoc_insertion_point(field_set_pointer:parkspace_proto.Database_communication_configuration.db_name)
  582. }
  583. inline ::std::string* Database_communication_configuration::mutable_db_name() {
  584. set_has_db_name();
  585. // @@protoc_insertion_point(field_mutable:parkspace_proto.Database_communication_configuration.db_name)
  586. return db_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  587. }
  588. inline ::std::string* Database_communication_configuration::release_db_name() {
  589. // @@protoc_insertion_point(field_release:parkspace_proto.Database_communication_configuration.db_name)
  590. clear_has_db_name();
  591. return db_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  592. }
  593. inline void Database_communication_configuration::set_allocated_db_name(::std::string* db_name) {
  594. if (db_name != NULL) {
  595. set_has_db_name();
  596. } else {
  597. clear_has_db_name();
  598. }
  599. db_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), db_name);
  600. // @@protoc_insertion_point(field_set_allocated:parkspace_proto.Database_communication_configuration.db_name)
  601. }
  602. // optional int64 db_conn_pool_size = 6;
  603. inline bool Database_communication_configuration::has_db_conn_pool_size() const {
  604. return (_has_bits_[0] & 0x00000020u) != 0;
  605. }
  606. inline void Database_communication_configuration::set_has_db_conn_pool_size() {
  607. _has_bits_[0] |= 0x00000020u;
  608. }
  609. inline void Database_communication_configuration::clear_has_db_conn_pool_size() {
  610. _has_bits_[0] &= ~0x00000020u;
  611. }
  612. inline void Database_communication_configuration::clear_db_conn_pool_size() {
  613. db_conn_pool_size_ = GOOGLE_LONGLONG(0);
  614. clear_has_db_conn_pool_size();
  615. }
  616. inline ::google::protobuf::int64 Database_communication_configuration::db_conn_pool_size() const {
  617. // @@protoc_insertion_point(field_get:parkspace_proto.Database_communication_configuration.db_conn_pool_size)
  618. return db_conn_pool_size_;
  619. }
  620. inline void Database_communication_configuration::set_db_conn_pool_size(::google::protobuf::int64 value) {
  621. set_has_db_conn_pool_size();
  622. db_conn_pool_size_ = value;
  623. // @@protoc_insertion_point(field_set:parkspace_proto.Database_communication_configuration.db_conn_pool_size)
  624. }
  625. // -------------------------------------------------------------------
  626. // Database_communication_configuration_all
  627. // optional .parkspace_proto.Database_communication_configuration database_communication_configurations = 1;
  628. inline bool Database_communication_configuration_all::has_database_communication_configurations() const {
  629. return (_has_bits_[0] & 0x00000001u) != 0;
  630. }
  631. inline void Database_communication_configuration_all::set_has_database_communication_configurations() {
  632. _has_bits_[0] |= 0x00000001u;
  633. }
  634. inline void Database_communication_configuration_all::clear_has_database_communication_configurations() {
  635. _has_bits_[0] &= ~0x00000001u;
  636. }
  637. inline void Database_communication_configuration_all::clear_database_communication_configurations() {
  638. if (database_communication_configurations_ != NULL) database_communication_configurations_->Clear();
  639. clear_has_database_communication_configurations();
  640. }
  641. inline const ::parkspace_proto::Database_communication_configuration& Database_communication_configuration_all::database_communication_configurations() const {
  642. const ::parkspace_proto::Database_communication_configuration* p = database_communication_configurations_;
  643. // @@protoc_insertion_point(field_get:parkspace_proto.Database_communication_configuration_all.database_communication_configurations)
  644. return p != NULL ? *p : *reinterpret_cast<const ::parkspace_proto::Database_communication_configuration*>(
  645. &::parkspace_proto::_Database_communication_configuration_default_instance_);
  646. }
  647. inline ::parkspace_proto::Database_communication_configuration* Database_communication_configuration_all::release_database_communication_configurations() {
  648. // @@protoc_insertion_point(field_release:parkspace_proto.Database_communication_configuration_all.database_communication_configurations)
  649. clear_has_database_communication_configurations();
  650. ::parkspace_proto::Database_communication_configuration* temp = database_communication_configurations_;
  651. database_communication_configurations_ = NULL;
  652. return temp;
  653. }
  654. inline ::parkspace_proto::Database_communication_configuration* Database_communication_configuration_all::mutable_database_communication_configurations() {
  655. set_has_database_communication_configurations();
  656. if (database_communication_configurations_ == NULL) {
  657. database_communication_configurations_ = new ::parkspace_proto::Database_communication_configuration;
  658. }
  659. // @@protoc_insertion_point(field_mutable:parkspace_proto.Database_communication_configuration_all.database_communication_configurations)
  660. return database_communication_configurations_;
  661. }
  662. inline void Database_communication_configuration_all::set_allocated_database_communication_configurations(::parkspace_proto::Database_communication_configuration* database_communication_configurations) {
  663. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  664. if (message_arena == NULL) {
  665. delete database_communication_configurations_;
  666. }
  667. if (database_communication_configurations) {
  668. ::google::protobuf::Arena* submessage_arena = NULL;
  669. if (message_arena != submessage_arena) {
  670. database_communication_configurations = ::google::protobuf::internal::GetOwnedMessage(
  671. message_arena, database_communication_configurations, submessage_arena);
  672. }
  673. set_has_database_communication_configurations();
  674. } else {
  675. clear_has_database_communication_configurations();
  676. }
  677. database_communication_configurations_ = database_communication_configurations;
  678. // @@protoc_insertion_point(field_set_allocated:parkspace_proto.Database_communication_configuration_all.database_communication_configurations)
  679. }
  680. #ifdef __GNUC__
  681. #pragma GCC diagnostic pop
  682. #endif // __GNUC__
  683. // -------------------------------------------------------------------
  684. // @@protoc_insertion_point(namespace_scope)
  685. } // namespace parkspace_proto
  686. // @@protoc_insertion_point(global_scope)
  687. #endif // PROTOBUF_database_5fcommunication_5fconfiguration_2eproto__INCLUDED