database_communication_configuration.pb.h 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: database_communication_configuration.proto
  3. #ifndef PROTOBUF_INCLUDED_database_5fcommunication_5fconfiguration_2eproto
  4. #define PROTOBUF_INCLUDED_database_5fcommunication_5fconfiguration_2eproto
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3006001
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/inlined_string_field.h>
  23. #include <google/protobuf/metadata.h>
  24. #include <google/protobuf/message.h>
  25. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  26. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  27. #include <google/protobuf/unknown_field_set.h>
  28. // @@protoc_insertion_point(includes)
  29. #define PROTOBUF_INTERNAL_EXPORT_protobuf_database_5fcommunication_5fconfiguration_2eproto
  30. namespace protobuf_database_5fcommunication_5fconfiguration_2eproto {
  31. // Internal implementation detail -- do not use these members.
  32. struct TableStruct {
  33. static const ::google::protobuf::internal::ParseTableField entries[];
  34. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  35. static const ::google::protobuf::internal::ParseTable schema[2];
  36. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  37. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  38. static const ::google::protobuf::uint32 offsets[];
  39. };
  40. void AddDescriptors();
  41. } // namespace protobuf_database_5fcommunication_5fconfiguration_2eproto
  42. namespace parkspace_proto {
  43. class Database_communication_configuration;
  44. class Database_communication_configurationDefaultTypeInternal;
  45. extern Database_communication_configurationDefaultTypeInternal _Database_communication_configuration_default_instance_;
  46. class Database_communication_configuration_all;
  47. class Database_communication_configuration_allDefaultTypeInternal;
  48. extern Database_communication_configuration_allDefaultTypeInternal _Database_communication_configuration_all_default_instance_;
  49. } // namespace parkspace_proto
  50. namespace google {
  51. namespace protobuf {
  52. template<> ::parkspace_proto::Database_communication_configuration* Arena::CreateMaybeMessage<::parkspace_proto::Database_communication_configuration>(Arena*);
  53. template<> ::parkspace_proto::Database_communication_configuration_all* Arena::CreateMaybeMessage<::parkspace_proto::Database_communication_configuration_all>(Arena*);
  54. } // namespace protobuf
  55. } // namespace google
  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 constexpr int 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 final {
  102. return CreateMaybeMessage<Database_communication_configuration>(NULL);
  103. }
  104. Database_communication_configuration* New(::google::protobuf::Arena* arena) const final {
  105. return CreateMaybeMessage<Database_communication_configuration>(arena);
  106. }
  107. void CopyFrom(const ::google::protobuf::Message& from) final;
  108. void MergeFrom(const ::google::protobuf::Message& from) final;
  109. void CopyFrom(const Database_communication_configuration& from);
  110. void MergeFrom(const Database_communication_configuration& from);
  111. void Clear() final;
  112. bool IsInitialized() const final;
  113. size_t ByteSizeLong() const final;
  114. bool MergePartialFromCodedStream(
  115. ::google::protobuf::io::CodedInputStream* input) final;
  116. void SerializeWithCachedSizes(
  117. ::google::protobuf::io::CodedOutputStream* output) const final;
  118. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  119. bool deterministic, ::google::protobuf::uint8* target) const final;
  120. int GetCachedSize() const final { return _cached_size_.Get(); }
  121. private:
  122. void SharedCtor();
  123. void SharedDtor();
  124. void SetCachedSize(int size) const final;
  125. void InternalSwap(Database_communication_configuration* other);
  126. private:
  127. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  128. return NULL;
  129. }
  130. inline void* MaybeArenaPtr() const {
  131. return NULL;
  132. }
  133. public:
  134. ::google::protobuf::Metadata GetMetadata() const final;
  135. // nested types ----------------------------------------------------
  136. // accessors -------------------------------------------------------
  137. // required string db_ip = 1;
  138. bool has_db_ip() const;
  139. void clear_db_ip();
  140. static const int kDbIpFieldNumber = 1;
  141. const ::std::string& db_ip() const;
  142. void set_db_ip(const ::std::string& value);
  143. #if LANG_CXX11
  144. void set_db_ip(::std::string&& value);
  145. #endif
  146. void set_db_ip(const char* value);
  147. void set_db_ip(const char* value, size_t size);
  148. ::std::string* mutable_db_ip();
  149. ::std::string* release_db_ip();
  150. void set_allocated_db_ip(::std::string* db_ip);
  151. // required string db_username = 3;
  152. bool has_db_username() const;
  153. void clear_db_username();
  154. static const int kDbUsernameFieldNumber = 3;
  155. const ::std::string& db_username() const;
  156. void set_db_username(const ::std::string& value);
  157. #if LANG_CXX11
  158. void set_db_username(::std::string&& value);
  159. #endif
  160. void set_db_username(const char* value);
  161. void set_db_username(const char* value, size_t size);
  162. ::std::string* mutable_db_username();
  163. ::std::string* release_db_username();
  164. void set_allocated_db_username(::std::string* db_username);
  165. // optional string db_passwd = 4 [default = ""];
  166. bool has_db_passwd() const;
  167. void clear_db_passwd();
  168. static const int kDbPasswdFieldNumber = 4;
  169. const ::std::string& db_passwd() const;
  170. void set_db_passwd(const ::std::string& value);
  171. #if LANG_CXX11
  172. void set_db_passwd(::std::string&& value);
  173. #endif
  174. void set_db_passwd(const char* value);
  175. void set_db_passwd(const char* value, size_t size);
  176. ::std::string* mutable_db_passwd();
  177. ::std::string* release_db_passwd();
  178. void set_allocated_db_passwd(::std::string* db_passwd);
  179. // required string db_name = 5;
  180. bool has_db_name() const;
  181. void clear_db_name();
  182. static const int kDbNameFieldNumber = 5;
  183. const ::std::string& db_name() const;
  184. void set_db_name(const ::std::string& value);
  185. #if LANG_CXX11
  186. void set_db_name(::std::string&& value);
  187. #endif
  188. void set_db_name(const char* value);
  189. void set_db_name(const char* value, size_t size);
  190. ::std::string* mutable_db_name();
  191. ::std::string* release_db_name();
  192. void set_allocated_db_name(::std::string* db_name);
  193. // required int64 db_port = 2;
  194. bool has_db_port() const;
  195. void clear_db_port();
  196. static const int kDbPortFieldNumber = 2;
  197. ::google::protobuf::int64 db_port() const;
  198. void set_db_port(::google::protobuf::int64 value);
  199. // optional int64 db_conn_pool_size = 6;
  200. bool has_db_conn_pool_size() const;
  201. void clear_db_conn_pool_size();
  202. static const int kDbConnPoolSizeFieldNumber = 6;
  203. ::google::protobuf::int64 db_conn_pool_size() const;
  204. void set_db_conn_pool_size(::google::protobuf::int64 value);
  205. // @@protoc_insertion_point(class_scope:parkspace_proto.Database_communication_configuration)
  206. private:
  207. void set_has_db_ip();
  208. void clear_has_db_ip();
  209. void set_has_db_port();
  210. void clear_has_db_port();
  211. void set_has_db_username();
  212. void clear_has_db_username();
  213. void set_has_db_passwd();
  214. void clear_has_db_passwd();
  215. void set_has_db_name();
  216. void clear_has_db_name();
  217. void set_has_db_conn_pool_size();
  218. void clear_has_db_conn_pool_size();
  219. // helper for ByteSizeLong()
  220. size_t RequiredFieldsByteSizeFallback() const;
  221. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  222. ::google::protobuf::internal::HasBits<1> _has_bits_;
  223. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  224. ::google::protobuf::internal::ArenaStringPtr db_ip_;
  225. ::google::protobuf::internal::ArenaStringPtr db_username_;
  226. ::google::protobuf::internal::ArenaStringPtr db_passwd_;
  227. ::google::protobuf::internal::ArenaStringPtr db_name_;
  228. ::google::protobuf::int64 db_port_;
  229. ::google::protobuf::int64 db_conn_pool_size_;
  230. friend struct ::protobuf_database_5fcommunication_5fconfiguration_2eproto::TableStruct;
  231. };
  232. // -------------------------------------------------------------------
  233. class Database_communication_configuration_all : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:parkspace_proto.Database_communication_configuration_all) */ {
  234. public:
  235. Database_communication_configuration_all();
  236. virtual ~Database_communication_configuration_all();
  237. Database_communication_configuration_all(const Database_communication_configuration_all& from);
  238. inline Database_communication_configuration_all& operator=(const Database_communication_configuration_all& from) {
  239. CopyFrom(from);
  240. return *this;
  241. }
  242. #if LANG_CXX11
  243. Database_communication_configuration_all(Database_communication_configuration_all&& from) noexcept
  244. : Database_communication_configuration_all() {
  245. *this = ::std::move(from);
  246. }
  247. inline Database_communication_configuration_all& operator=(Database_communication_configuration_all&& from) noexcept {
  248. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  249. if (this != &from) InternalSwap(&from);
  250. } else {
  251. CopyFrom(from);
  252. }
  253. return *this;
  254. }
  255. #endif
  256. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  257. return _internal_metadata_.unknown_fields();
  258. }
  259. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  260. return _internal_metadata_.mutable_unknown_fields();
  261. }
  262. static const ::google::protobuf::Descriptor* descriptor();
  263. static const Database_communication_configuration_all& default_instance();
  264. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  265. static inline const Database_communication_configuration_all* internal_default_instance() {
  266. return reinterpret_cast<const Database_communication_configuration_all*>(
  267. &_Database_communication_configuration_all_default_instance_);
  268. }
  269. static constexpr int kIndexInFileMessages =
  270. 1;
  271. void Swap(Database_communication_configuration_all* other);
  272. friend void swap(Database_communication_configuration_all& a, Database_communication_configuration_all& b) {
  273. a.Swap(&b);
  274. }
  275. // implements Message ----------------------------------------------
  276. inline Database_communication_configuration_all* New() const final {
  277. return CreateMaybeMessage<Database_communication_configuration_all>(NULL);
  278. }
  279. Database_communication_configuration_all* New(::google::protobuf::Arena* arena) const final {
  280. return CreateMaybeMessage<Database_communication_configuration_all>(arena);
  281. }
  282. void CopyFrom(const ::google::protobuf::Message& from) final;
  283. void MergeFrom(const ::google::protobuf::Message& from) final;
  284. void CopyFrom(const Database_communication_configuration_all& from);
  285. void MergeFrom(const Database_communication_configuration_all& from);
  286. void Clear() final;
  287. bool IsInitialized() const final;
  288. size_t ByteSizeLong() const final;
  289. bool MergePartialFromCodedStream(
  290. ::google::protobuf::io::CodedInputStream* input) final;
  291. void SerializeWithCachedSizes(
  292. ::google::protobuf::io::CodedOutputStream* output) const final;
  293. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  294. bool deterministic, ::google::protobuf::uint8* target) const final;
  295. int GetCachedSize() const final { return _cached_size_.Get(); }
  296. private:
  297. void SharedCtor();
  298. void SharedDtor();
  299. void SetCachedSize(int size) const final;
  300. void InternalSwap(Database_communication_configuration_all* other);
  301. private:
  302. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  303. return NULL;
  304. }
  305. inline void* MaybeArenaPtr() const {
  306. return NULL;
  307. }
  308. public:
  309. ::google::protobuf::Metadata GetMetadata() const final;
  310. // nested types ----------------------------------------------------
  311. // accessors -------------------------------------------------------
  312. // optional .parkspace_proto.Database_communication_configuration database_communication_configurations = 1;
  313. bool has_database_communication_configurations() const;
  314. void clear_database_communication_configurations();
  315. static const int kDatabaseCommunicationConfigurationsFieldNumber = 1;
  316. private:
  317. const ::parkspace_proto::Database_communication_configuration& _internal_database_communication_configurations() const;
  318. public:
  319. const ::parkspace_proto::Database_communication_configuration& database_communication_configurations() const;
  320. ::parkspace_proto::Database_communication_configuration* release_database_communication_configurations();
  321. ::parkspace_proto::Database_communication_configuration* mutable_database_communication_configurations();
  322. void set_allocated_database_communication_configurations(::parkspace_proto::Database_communication_configuration* database_communication_configurations);
  323. // @@protoc_insertion_point(class_scope:parkspace_proto.Database_communication_configuration_all)
  324. private:
  325. void set_has_database_communication_configurations();
  326. void clear_has_database_communication_configurations();
  327. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  328. ::google::protobuf::internal::HasBits<1> _has_bits_;
  329. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  330. ::parkspace_proto::Database_communication_configuration* database_communication_configurations_;
  331. friend struct ::protobuf_database_5fcommunication_5fconfiguration_2eproto::TableStruct;
  332. };
  333. // ===================================================================
  334. // ===================================================================
  335. #ifdef __GNUC__
  336. #pragma GCC diagnostic push
  337. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  338. #endif // __GNUC__
  339. // Database_communication_configuration
  340. // required string db_ip = 1;
  341. inline bool Database_communication_configuration::has_db_ip() const {
  342. return (_has_bits_[0] & 0x00000001u) != 0;
  343. }
  344. inline void Database_communication_configuration::set_has_db_ip() {
  345. _has_bits_[0] |= 0x00000001u;
  346. }
  347. inline void Database_communication_configuration::clear_has_db_ip() {
  348. _has_bits_[0] &= ~0x00000001u;
  349. }
  350. inline void Database_communication_configuration::clear_db_ip() {
  351. db_ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  352. clear_has_db_ip();
  353. }
  354. inline const ::std::string& Database_communication_configuration::db_ip() const {
  355. // @@protoc_insertion_point(field_get:parkspace_proto.Database_communication_configuration.db_ip)
  356. return db_ip_.GetNoArena();
  357. }
  358. inline void Database_communication_configuration::set_db_ip(const ::std::string& value) {
  359. set_has_db_ip();
  360. db_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  361. // @@protoc_insertion_point(field_set:parkspace_proto.Database_communication_configuration.db_ip)
  362. }
  363. #if LANG_CXX11
  364. inline void Database_communication_configuration::set_db_ip(::std::string&& value) {
  365. set_has_db_ip();
  366. db_ip_.SetNoArena(
  367. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  368. // @@protoc_insertion_point(field_set_rvalue:parkspace_proto.Database_communication_configuration.db_ip)
  369. }
  370. #endif
  371. inline void Database_communication_configuration::set_db_ip(const char* value) {
  372. GOOGLE_DCHECK(value != NULL);
  373. set_has_db_ip();
  374. db_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  375. // @@protoc_insertion_point(field_set_char:parkspace_proto.Database_communication_configuration.db_ip)
  376. }
  377. inline void Database_communication_configuration::set_db_ip(const char* value, size_t size) {
  378. set_has_db_ip();
  379. db_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  380. ::std::string(reinterpret_cast<const char*>(value), size));
  381. // @@protoc_insertion_point(field_set_pointer:parkspace_proto.Database_communication_configuration.db_ip)
  382. }
  383. inline ::std::string* Database_communication_configuration::mutable_db_ip() {
  384. set_has_db_ip();
  385. // @@protoc_insertion_point(field_mutable:parkspace_proto.Database_communication_configuration.db_ip)
  386. return db_ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  387. }
  388. inline ::std::string* Database_communication_configuration::release_db_ip() {
  389. // @@protoc_insertion_point(field_release:parkspace_proto.Database_communication_configuration.db_ip)
  390. if (!has_db_ip()) {
  391. return NULL;
  392. }
  393. clear_has_db_ip();
  394. return db_ip_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  395. }
  396. inline void Database_communication_configuration::set_allocated_db_ip(::std::string* db_ip) {
  397. if (db_ip != NULL) {
  398. set_has_db_ip();
  399. } else {
  400. clear_has_db_ip();
  401. }
  402. db_ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), db_ip);
  403. // @@protoc_insertion_point(field_set_allocated:parkspace_proto.Database_communication_configuration.db_ip)
  404. }
  405. // required int64 db_port = 2;
  406. inline bool Database_communication_configuration::has_db_port() const {
  407. return (_has_bits_[0] & 0x00000010u) != 0;
  408. }
  409. inline void Database_communication_configuration::set_has_db_port() {
  410. _has_bits_[0] |= 0x00000010u;
  411. }
  412. inline void Database_communication_configuration::clear_has_db_port() {
  413. _has_bits_[0] &= ~0x00000010u;
  414. }
  415. inline void Database_communication_configuration::clear_db_port() {
  416. db_port_ = GOOGLE_LONGLONG(0);
  417. clear_has_db_port();
  418. }
  419. inline ::google::protobuf::int64 Database_communication_configuration::db_port() const {
  420. // @@protoc_insertion_point(field_get:parkspace_proto.Database_communication_configuration.db_port)
  421. return db_port_;
  422. }
  423. inline void Database_communication_configuration::set_db_port(::google::protobuf::int64 value) {
  424. set_has_db_port();
  425. db_port_ = value;
  426. // @@protoc_insertion_point(field_set:parkspace_proto.Database_communication_configuration.db_port)
  427. }
  428. // required string db_username = 3;
  429. inline bool Database_communication_configuration::has_db_username() const {
  430. return (_has_bits_[0] & 0x00000002u) != 0;
  431. }
  432. inline void Database_communication_configuration::set_has_db_username() {
  433. _has_bits_[0] |= 0x00000002u;
  434. }
  435. inline void Database_communication_configuration::clear_has_db_username() {
  436. _has_bits_[0] &= ~0x00000002u;
  437. }
  438. inline void Database_communication_configuration::clear_db_username() {
  439. db_username_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  440. clear_has_db_username();
  441. }
  442. inline const ::std::string& Database_communication_configuration::db_username() const {
  443. // @@protoc_insertion_point(field_get:parkspace_proto.Database_communication_configuration.db_username)
  444. return db_username_.GetNoArena();
  445. }
  446. inline void Database_communication_configuration::set_db_username(const ::std::string& value) {
  447. set_has_db_username();
  448. db_username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  449. // @@protoc_insertion_point(field_set:parkspace_proto.Database_communication_configuration.db_username)
  450. }
  451. #if LANG_CXX11
  452. inline void Database_communication_configuration::set_db_username(::std::string&& value) {
  453. set_has_db_username();
  454. db_username_.SetNoArena(
  455. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  456. // @@protoc_insertion_point(field_set_rvalue:parkspace_proto.Database_communication_configuration.db_username)
  457. }
  458. #endif
  459. inline void Database_communication_configuration::set_db_username(const char* value) {
  460. GOOGLE_DCHECK(value != NULL);
  461. set_has_db_username();
  462. db_username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  463. // @@protoc_insertion_point(field_set_char:parkspace_proto.Database_communication_configuration.db_username)
  464. }
  465. inline void Database_communication_configuration::set_db_username(const char* value, size_t size) {
  466. set_has_db_username();
  467. db_username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  468. ::std::string(reinterpret_cast<const char*>(value), size));
  469. // @@protoc_insertion_point(field_set_pointer:parkspace_proto.Database_communication_configuration.db_username)
  470. }
  471. inline ::std::string* Database_communication_configuration::mutable_db_username() {
  472. set_has_db_username();
  473. // @@protoc_insertion_point(field_mutable:parkspace_proto.Database_communication_configuration.db_username)
  474. return db_username_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  475. }
  476. inline ::std::string* Database_communication_configuration::release_db_username() {
  477. // @@protoc_insertion_point(field_release:parkspace_proto.Database_communication_configuration.db_username)
  478. if (!has_db_username()) {
  479. return NULL;
  480. }
  481. clear_has_db_username();
  482. return db_username_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  483. }
  484. inline void Database_communication_configuration::set_allocated_db_username(::std::string* db_username) {
  485. if (db_username != NULL) {
  486. set_has_db_username();
  487. } else {
  488. clear_has_db_username();
  489. }
  490. db_username_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), db_username);
  491. // @@protoc_insertion_point(field_set_allocated:parkspace_proto.Database_communication_configuration.db_username)
  492. }
  493. // optional string db_passwd = 4 [default = ""];
  494. inline bool Database_communication_configuration::has_db_passwd() const {
  495. return (_has_bits_[0] & 0x00000004u) != 0;
  496. }
  497. inline void Database_communication_configuration::set_has_db_passwd() {
  498. _has_bits_[0] |= 0x00000004u;
  499. }
  500. inline void Database_communication_configuration::clear_has_db_passwd() {
  501. _has_bits_[0] &= ~0x00000004u;
  502. }
  503. inline void Database_communication_configuration::clear_db_passwd() {
  504. db_passwd_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  505. clear_has_db_passwd();
  506. }
  507. inline const ::std::string& Database_communication_configuration::db_passwd() const {
  508. // @@protoc_insertion_point(field_get:parkspace_proto.Database_communication_configuration.db_passwd)
  509. return db_passwd_.GetNoArena();
  510. }
  511. inline void Database_communication_configuration::set_db_passwd(const ::std::string& value) {
  512. set_has_db_passwd();
  513. db_passwd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  514. // @@protoc_insertion_point(field_set:parkspace_proto.Database_communication_configuration.db_passwd)
  515. }
  516. #if LANG_CXX11
  517. inline void Database_communication_configuration::set_db_passwd(::std::string&& value) {
  518. set_has_db_passwd();
  519. db_passwd_.SetNoArena(
  520. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  521. // @@protoc_insertion_point(field_set_rvalue:parkspace_proto.Database_communication_configuration.db_passwd)
  522. }
  523. #endif
  524. inline void Database_communication_configuration::set_db_passwd(const char* value) {
  525. GOOGLE_DCHECK(value != NULL);
  526. set_has_db_passwd();
  527. db_passwd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  528. // @@protoc_insertion_point(field_set_char:parkspace_proto.Database_communication_configuration.db_passwd)
  529. }
  530. inline void Database_communication_configuration::set_db_passwd(const char* value, size_t size) {
  531. set_has_db_passwd();
  532. db_passwd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  533. ::std::string(reinterpret_cast<const char*>(value), size));
  534. // @@protoc_insertion_point(field_set_pointer:parkspace_proto.Database_communication_configuration.db_passwd)
  535. }
  536. inline ::std::string* Database_communication_configuration::mutable_db_passwd() {
  537. set_has_db_passwd();
  538. // @@protoc_insertion_point(field_mutable:parkspace_proto.Database_communication_configuration.db_passwd)
  539. return db_passwd_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  540. }
  541. inline ::std::string* Database_communication_configuration::release_db_passwd() {
  542. // @@protoc_insertion_point(field_release:parkspace_proto.Database_communication_configuration.db_passwd)
  543. if (!has_db_passwd()) {
  544. return NULL;
  545. }
  546. clear_has_db_passwd();
  547. return db_passwd_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  548. }
  549. inline void Database_communication_configuration::set_allocated_db_passwd(::std::string* db_passwd) {
  550. if (db_passwd != NULL) {
  551. set_has_db_passwd();
  552. } else {
  553. clear_has_db_passwd();
  554. }
  555. db_passwd_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), db_passwd);
  556. // @@protoc_insertion_point(field_set_allocated:parkspace_proto.Database_communication_configuration.db_passwd)
  557. }
  558. // required string db_name = 5;
  559. inline bool Database_communication_configuration::has_db_name() const {
  560. return (_has_bits_[0] & 0x00000008u) != 0;
  561. }
  562. inline void Database_communication_configuration::set_has_db_name() {
  563. _has_bits_[0] |= 0x00000008u;
  564. }
  565. inline void Database_communication_configuration::clear_has_db_name() {
  566. _has_bits_[0] &= ~0x00000008u;
  567. }
  568. inline void Database_communication_configuration::clear_db_name() {
  569. db_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  570. clear_has_db_name();
  571. }
  572. inline const ::std::string& Database_communication_configuration::db_name() const {
  573. // @@protoc_insertion_point(field_get:parkspace_proto.Database_communication_configuration.db_name)
  574. return db_name_.GetNoArena();
  575. }
  576. inline void Database_communication_configuration::set_db_name(const ::std::string& value) {
  577. set_has_db_name();
  578. db_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  579. // @@protoc_insertion_point(field_set:parkspace_proto.Database_communication_configuration.db_name)
  580. }
  581. #if LANG_CXX11
  582. inline void Database_communication_configuration::set_db_name(::std::string&& value) {
  583. set_has_db_name();
  584. db_name_.SetNoArena(
  585. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  586. // @@protoc_insertion_point(field_set_rvalue:parkspace_proto.Database_communication_configuration.db_name)
  587. }
  588. #endif
  589. inline void Database_communication_configuration::set_db_name(const char* value) {
  590. GOOGLE_DCHECK(value != NULL);
  591. set_has_db_name();
  592. db_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  593. // @@protoc_insertion_point(field_set_char:parkspace_proto.Database_communication_configuration.db_name)
  594. }
  595. inline void Database_communication_configuration::set_db_name(const char* value, size_t size) {
  596. set_has_db_name();
  597. db_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  598. ::std::string(reinterpret_cast<const char*>(value), size));
  599. // @@protoc_insertion_point(field_set_pointer:parkspace_proto.Database_communication_configuration.db_name)
  600. }
  601. inline ::std::string* Database_communication_configuration::mutable_db_name() {
  602. set_has_db_name();
  603. // @@protoc_insertion_point(field_mutable:parkspace_proto.Database_communication_configuration.db_name)
  604. return db_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  605. }
  606. inline ::std::string* Database_communication_configuration::release_db_name() {
  607. // @@protoc_insertion_point(field_release:parkspace_proto.Database_communication_configuration.db_name)
  608. if (!has_db_name()) {
  609. return NULL;
  610. }
  611. clear_has_db_name();
  612. return db_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  613. }
  614. inline void Database_communication_configuration::set_allocated_db_name(::std::string* db_name) {
  615. if (db_name != NULL) {
  616. set_has_db_name();
  617. } else {
  618. clear_has_db_name();
  619. }
  620. db_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), db_name);
  621. // @@protoc_insertion_point(field_set_allocated:parkspace_proto.Database_communication_configuration.db_name)
  622. }
  623. // optional int64 db_conn_pool_size = 6;
  624. inline bool Database_communication_configuration::has_db_conn_pool_size() const {
  625. return (_has_bits_[0] & 0x00000020u) != 0;
  626. }
  627. inline void Database_communication_configuration::set_has_db_conn_pool_size() {
  628. _has_bits_[0] |= 0x00000020u;
  629. }
  630. inline void Database_communication_configuration::clear_has_db_conn_pool_size() {
  631. _has_bits_[0] &= ~0x00000020u;
  632. }
  633. inline void Database_communication_configuration::clear_db_conn_pool_size() {
  634. db_conn_pool_size_ = GOOGLE_LONGLONG(0);
  635. clear_has_db_conn_pool_size();
  636. }
  637. inline ::google::protobuf::int64 Database_communication_configuration::db_conn_pool_size() const {
  638. // @@protoc_insertion_point(field_get:parkspace_proto.Database_communication_configuration.db_conn_pool_size)
  639. return db_conn_pool_size_;
  640. }
  641. inline void Database_communication_configuration::set_db_conn_pool_size(::google::protobuf::int64 value) {
  642. set_has_db_conn_pool_size();
  643. db_conn_pool_size_ = value;
  644. // @@protoc_insertion_point(field_set:parkspace_proto.Database_communication_configuration.db_conn_pool_size)
  645. }
  646. // -------------------------------------------------------------------
  647. // Database_communication_configuration_all
  648. // optional .parkspace_proto.Database_communication_configuration database_communication_configurations = 1;
  649. inline bool Database_communication_configuration_all::has_database_communication_configurations() const {
  650. return (_has_bits_[0] & 0x00000001u) != 0;
  651. }
  652. inline void Database_communication_configuration_all::set_has_database_communication_configurations() {
  653. _has_bits_[0] |= 0x00000001u;
  654. }
  655. inline void Database_communication_configuration_all::clear_has_database_communication_configurations() {
  656. _has_bits_[0] &= ~0x00000001u;
  657. }
  658. inline void Database_communication_configuration_all::clear_database_communication_configurations() {
  659. if (database_communication_configurations_ != NULL) database_communication_configurations_->Clear();
  660. clear_has_database_communication_configurations();
  661. }
  662. inline const ::parkspace_proto::Database_communication_configuration& Database_communication_configuration_all::_internal_database_communication_configurations() const {
  663. return *database_communication_configurations_;
  664. }
  665. inline const ::parkspace_proto::Database_communication_configuration& Database_communication_configuration_all::database_communication_configurations() const {
  666. const ::parkspace_proto::Database_communication_configuration* p = database_communication_configurations_;
  667. // @@protoc_insertion_point(field_get:parkspace_proto.Database_communication_configuration_all.database_communication_configurations)
  668. return p != NULL ? *p : *reinterpret_cast<const ::parkspace_proto::Database_communication_configuration*>(
  669. &::parkspace_proto::_Database_communication_configuration_default_instance_);
  670. }
  671. inline ::parkspace_proto::Database_communication_configuration* Database_communication_configuration_all::release_database_communication_configurations() {
  672. // @@protoc_insertion_point(field_release:parkspace_proto.Database_communication_configuration_all.database_communication_configurations)
  673. clear_has_database_communication_configurations();
  674. ::parkspace_proto::Database_communication_configuration* temp = database_communication_configurations_;
  675. database_communication_configurations_ = NULL;
  676. return temp;
  677. }
  678. inline ::parkspace_proto::Database_communication_configuration* Database_communication_configuration_all::mutable_database_communication_configurations() {
  679. set_has_database_communication_configurations();
  680. if (database_communication_configurations_ == NULL) {
  681. auto* p = CreateMaybeMessage<::parkspace_proto::Database_communication_configuration>(GetArenaNoVirtual());
  682. database_communication_configurations_ = p;
  683. }
  684. // @@protoc_insertion_point(field_mutable:parkspace_proto.Database_communication_configuration_all.database_communication_configurations)
  685. return database_communication_configurations_;
  686. }
  687. inline void Database_communication_configuration_all::set_allocated_database_communication_configurations(::parkspace_proto::Database_communication_configuration* database_communication_configurations) {
  688. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  689. if (message_arena == NULL) {
  690. delete database_communication_configurations_;
  691. }
  692. if (database_communication_configurations) {
  693. ::google::protobuf::Arena* submessage_arena = NULL;
  694. if (message_arena != submessage_arena) {
  695. database_communication_configurations = ::google::protobuf::internal::GetOwnedMessage(
  696. message_arena, database_communication_configurations, submessage_arena);
  697. }
  698. set_has_database_communication_configurations();
  699. } else {
  700. clear_has_database_communication_configurations();
  701. }
  702. database_communication_configurations_ = database_communication_configurations;
  703. // @@protoc_insertion_point(field_set_allocated:parkspace_proto.Database_communication_configuration_all.database_communication_configurations)
  704. }
  705. #ifdef __GNUC__
  706. #pragma GCC diagnostic pop
  707. #endif // __GNUC__
  708. // -------------------------------------------------------------------
  709. // @@protoc_insertion_point(namespace_scope)
  710. } // namespace parkspace_proto
  711. // @@protoc_insertion_point(global_scope)
  712. #endif // PROTOBUF_INCLUDED_database_5fcommunication_5fconfiguration_2eproto