database_communication_configuration.pb.cc 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: database_communication_configuration.proto
  3. #include "database_communication_configuration.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/stubs/once.h>
  8. #include <google/protobuf/io/coded_stream.h>
  9. #include <google/protobuf/wire_format_lite_inl.h>
  10. #include <google/protobuf/descriptor.h>
  11. #include <google/protobuf/generated_message_reflection.h>
  12. #include <google/protobuf/reflection_ops.h>
  13. #include <google/protobuf/wire_format.h>
  14. // This is a temporary google only hack
  15. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  16. #include "third_party/protobuf/version.h"
  17. #endif
  18. // @@protoc_insertion_point(includes)
  19. namespace parkspace_proto {
  20. class Database_communication_configurationDefaultTypeInternal {
  21. public:
  22. ::google::protobuf::internal::ExplicitlyConstructed<Database_communication_configuration>
  23. _instance;
  24. } _Database_communication_configuration_default_instance_;
  25. class Database_communication_configuration_allDefaultTypeInternal {
  26. public:
  27. ::google::protobuf::internal::ExplicitlyConstructed<Database_communication_configuration_all>
  28. _instance;
  29. } _Database_communication_configuration_all_default_instance_;
  30. } // namespace parkspace_proto
  31. namespace protobuf_database_5fcommunication_5fconfiguration_2eproto {
  32. void InitDefaultsDatabase_communication_configurationImpl() {
  33. GOOGLE_PROTOBUF_VERIFY_VERSION;
  34. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  35. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  36. #else
  37. ::google::protobuf::internal::InitProtobufDefaults();
  38. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  39. {
  40. void* ptr = &::parkspace_proto::_Database_communication_configuration_default_instance_;
  41. new (ptr) ::parkspace_proto::Database_communication_configuration();
  42. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  43. }
  44. ::parkspace_proto::Database_communication_configuration::InitAsDefaultInstance();
  45. }
  46. void InitDefaultsDatabase_communication_configuration() {
  47. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  48. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDatabase_communication_configurationImpl);
  49. }
  50. void InitDefaultsDatabase_communication_configuration_allImpl() {
  51. GOOGLE_PROTOBUF_VERIFY_VERSION;
  52. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  53. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  54. #else
  55. ::google::protobuf::internal::InitProtobufDefaults();
  56. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  57. protobuf_database_5fcommunication_5fconfiguration_2eproto::InitDefaultsDatabase_communication_configuration();
  58. {
  59. void* ptr = &::parkspace_proto::_Database_communication_configuration_all_default_instance_;
  60. new (ptr) ::parkspace_proto::Database_communication_configuration_all();
  61. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  62. }
  63. ::parkspace_proto::Database_communication_configuration_all::InitAsDefaultInstance();
  64. }
  65. void InitDefaultsDatabase_communication_configuration_all() {
  66. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  67. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDatabase_communication_configuration_allImpl);
  68. }
  69. ::google::protobuf::Metadata file_level_metadata[2];
  70. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  71. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::Database_communication_configuration, _has_bits_),
  72. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::Database_communication_configuration, _internal_metadata_),
  73. ~0u, // no _extensions_
  74. ~0u, // no _oneof_case_
  75. ~0u, // no _weak_field_map_
  76. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::Database_communication_configuration, db_ip_),
  77. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::Database_communication_configuration, db_port_),
  78. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::Database_communication_configuration, db_username_),
  79. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::Database_communication_configuration, db_passwd_),
  80. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::Database_communication_configuration, db_name_),
  81. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::Database_communication_configuration, db_conn_pool_size_),
  82. 0,
  83. 4,
  84. 1,
  85. 2,
  86. 3,
  87. 5,
  88. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::Database_communication_configuration_all, _has_bits_),
  89. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::Database_communication_configuration_all, _internal_metadata_),
  90. ~0u, // no _extensions_
  91. ~0u, // no _oneof_case_
  92. ~0u, // no _weak_field_map_
  93. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::Database_communication_configuration_all, database_communication_configurations_),
  94. 0,
  95. };
  96. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  97. { 0, 11, sizeof(::parkspace_proto::Database_communication_configuration)},
  98. { 17, 23, sizeof(::parkspace_proto::Database_communication_configuration_all)},
  99. };
  100. static ::google::protobuf::Message const * const file_default_instances[] = {
  101. reinterpret_cast<const ::google::protobuf::Message*>(&::parkspace_proto::_Database_communication_configuration_default_instance_),
  102. reinterpret_cast<const ::google::protobuf::Message*>(&::parkspace_proto::_Database_communication_configuration_all_default_instance_),
  103. };
  104. void protobuf_AssignDescriptors() {
  105. AddDescriptors();
  106. ::google::protobuf::MessageFactory* factory = NULL;
  107. AssignDescriptors(
  108. "database_communication_configuration.proto", schemas, file_default_instances, TableStruct::offsets, factory,
  109. file_level_metadata, NULL, NULL);
  110. }
  111. void protobuf_AssignDescriptorsOnce() {
  112. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  113. ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
  114. }
  115. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  116. void protobuf_RegisterTypes(const ::std::string&) {
  117. protobuf_AssignDescriptorsOnce();
  118. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2);
  119. }
  120. void AddDescriptorsImpl() {
  121. InitDefaults();
  122. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  123. "\n*database_communication_configuration.p"
  124. "roto\022\017parkspace_proto\"\234\001\n$Database_commu"
  125. "nication_configuration\022\r\n\005db_ip\030\001 \002(\t\022\017\n"
  126. "\007db_port\030\002 \002(\003\022\023\n\013db_username\030\003 \002(\t\022\023\n\td"
  127. "b_passwd\030\004 \001(\t:\000\022\017\n\007db_name\030\005 \002(\t\022\031\n\021db_"
  128. "conn_pool_size\030\006 \001(\003\"\220\001\n(Database_commun"
  129. "ication_configuration_all\022d\n%database_co"
  130. "mmunication_configurations\030\001 \001(\01325.parks"
  131. "pace_proto.Database_communication_config"
  132. "uration"
  133. };
  134. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  135. descriptor, 367);
  136. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  137. "database_communication_configuration.proto", &protobuf_RegisterTypes);
  138. }
  139. void AddDescriptors() {
  140. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  141. ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
  142. }
  143. // Force AddDescriptors() to be called at dynamic initialization time.
  144. struct StaticDescriptorInitializer {
  145. StaticDescriptorInitializer() {
  146. AddDescriptors();
  147. }
  148. } static_descriptor_initializer;
  149. } // namespace protobuf_database_5fcommunication_5fconfiguration_2eproto
  150. namespace parkspace_proto {
  151. // ===================================================================
  152. void Database_communication_configuration::InitAsDefaultInstance() {
  153. }
  154. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  155. const int Database_communication_configuration::kDbIpFieldNumber;
  156. const int Database_communication_configuration::kDbPortFieldNumber;
  157. const int Database_communication_configuration::kDbUsernameFieldNumber;
  158. const int Database_communication_configuration::kDbPasswdFieldNumber;
  159. const int Database_communication_configuration::kDbNameFieldNumber;
  160. const int Database_communication_configuration::kDbConnPoolSizeFieldNumber;
  161. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  162. Database_communication_configuration::Database_communication_configuration()
  163. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  164. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  165. ::protobuf_database_5fcommunication_5fconfiguration_2eproto::InitDefaultsDatabase_communication_configuration();
  166. }
  167. SharedCtor();
  168. // @@protoc_insertion_point(constructor:parkspace_proto.Database_communication_configuration)
  169. }
  170. Database_communication_configuration::Database_communication_configuration(const Database_communication_configuration& from)
  171. : ::google::protobuf::Message(),
  172. _internal_metadata_(NULL),
  173. _has_bits_(from._has_bits_),
  174. _cached_size_(0) {
  175. _internal_metadata_.MergeFrom(from._internal_metadata_);
  176. db_ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  177. if (from.has_db_ip()) {
  178. db_ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_ip_);
  179. }
  180. db_username_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  181. if (from.has_db_username()) {
  182. db_username_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_username_);
  183. }
  184. db_passwd_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  185. if (from.has_db_passwd()) {
  186. db_passwd_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_passwd_);
  187. }
  188. db_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  189. if (from.has_db_name()) {
  190. db_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_name_);
  191. }
  192. ::memcpy(&db_port_, &from.db_port_,
  193. static_cast<size_t>(reinterpret_cast<char*>(&db_conn_pool_size_) -
  194. reinterpret_cast<char*>(&db_port_)) + sizeof(db_conn_pool_size_));
  195. // @@protoc_insertion_point(copy_constructor:parkspace_proto.Database_communication_configuration)
  196. }
  197. void Database_communication_configuration::SharedCtor() {
  198. _cached_size_ = 0;
  199. db_ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  200. db_username_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  201. db_passwd_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  202. db_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  203. ::memset(&db_port_, 0, static_cast<size_t>(
  204. reinterpret_cast<char*>(&db_conn_pool_size_) -
  205. reinterpret_cast<char*>(&db_port_)) + sizeof(db_conn_pool_size_));
  206. }
  207. Database_communication_configuration::~Database_communication_configuration() {
  208. // @@protoc_insertion_point(destructor:parkspace_proto.Database_communication_configuration)
  209. SharedDtor();
  210. }
  211. void Database_communication_configuration::SharedDtor() {
  212. db_ip_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  213. db_username_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  214. db_passwd_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  215. db_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  216. }
  217. void Database_communication_configuration::SetCachedSize(int size) const {
  218. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  219. _cached_size_ = size;
  220. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  221. }
  222. const ::google::protobuf::Descriptor* Database_communication_configuration::descriptor() {
  223. ::protobuf_database_5fcommunication_5fconfiguration_2eproto::protobuf_AssignDescriptorsOnce();
  224. return ::protobuf_database_5fcommunication_5fconfiguration_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  225. }
  226. const Database_communication_configuration& Database_communication_configuration::default_instance() {
  227. ::protobuf_database_5fcommunication_5fconfiguration_2eproto::InitDefaultsDatabase_communication_configuration();
  228. return *internal_default_instance();
  229. }
  230. Database_communication_configuration* Database_communication_configuration::New(::google::protobuf::Arena* arena) const {
  231. Database_communication_configuration* n = new Database_communication_configuration;
  232. if (arena != NULL) {
  233. arena->Own(n);
  234. }
  235. return n;
  236. }
  237. void Database_communication_configuration::Clear() {
  238. // @@protoc_insertion_point(message_clear_start:parkspace_proto.Database_communication_configuration)
  239. ::google::protobuf::uint32 cached_has_bits = 0;
  240. // Prevent compiler warnings about cached_has_bits being unused
  241. (void) cached_has_bits;
  242. cached_has_bits = _has_bits_[0];
  243. if (cached_has_bits & 15u) {
  244. if (cached_has_bits & 0x00000001u) {
  245. GOOGLE_DCHECK(!db_ip_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  246. (*db_ip_.UnsafeRawStringPointer())->clear();
  247. }
  248. if (cached_has_bits & 0x00000002u) {
  249. GOOGLE_DCHECK(!db_username_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  250. (*db_username_.UnsafeRawStringPointer())->clear();
  251. }
  252. if (cached_has_bits & 0x00000004u) {
  253. GOOGLE_DCHECK(!db_passwd_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  254. (*db_passwd_.UnsafeRawStringPointer())->clear();
  255. }
  256. if (cached_has_bits & 0x00000008u) {
  257. GOOGLE_DCHECK(!db_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  258. (*db_name_.UnsafeRawStringPointer())->clear();
  259. }
  260. }
  261. if (cached_has_bits & 48u) {
  262. ::memset(&db_port_, 0, static_cast<size_t>(
  263. reinterpret_cast<char*>(&db_conn_pool_size_) -
  264. reinterpret_cast<char*>(&db_port_)) + sizeof(db_conn_pool_size_));
  265. }
  266. _has_bits_.Clear();
  267. _internal_metadata_.Clear();
  268. }
  269. bool Database_communication_configuration::MergePartialFromCodedStream(
  270. ::google::protobuf::io::CodedInputStream* input) {
  271. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  272. ::google::protobuf::uint32 tag;
  273. // @@protoc_insertion_point(parse_start:parkspace_proto.Database_communication_configuration)
  274. for (;;) {
  275. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  276. tag = p.first;
  277. if (!p.second) goto handle_unusual;
  278. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  279. // required string db_ip = 1;
  280. case 1: {
  281. if (static_cast< ::google::protobuf::uint8>(tag) ==
  282. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  283. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  284. input, this->mutable_db_ip()));
  285. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  286. this->db_ip().data(), static_cast<int>(this->db_ip().length()),
  287. ::google::protobuf::internal::WireFormat::PARSE,
  288. "parkspace_proto.Database_communication_configuration.db_ip");
  289. } else {
  290. goto handle_unusual;
  291. }
  292. break;
  293. }
  294. // required int64 db_port = 2;
  295. case 2: {
  296. if (static_cast< ::google::protobuf::uint8>(tag) ==
  297. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  298. set_has_db_port();
  299. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  300. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  301. input, &db_port_)));
  302. } else {
  303. goto handle_unusual;
  304. }
  305. break;
  306. }
  307. // required string db_username = 3;
  308. case 3: {
  309. if (static_cast< ::google::protobuf::uint8>(tag) ==
  310. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  311. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  312. input, this->mutable_db_username()));
  313. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  314. this->db_username().data(), static_cast<int>(this->db_username().length()),
  315. ::google::protobuf::internal::WireFormat::PARSE,
  316. "parkspace_proto.Database_communication_configuration.db_username");
  317. } else {
  318. goto handle_unusual;
  319. }
  320. break;
  321. }
  322. // optional string db_passwd = 4 [default = ""];
  323. case 4: {
  324. if (static_cast< ::google::protobuf::uint8>(tag) ==
  325. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  326. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  327. input, this->mutable_db_passwd()));
  328. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  329. this->db_passwd().data(), static_cast<int>(this->db_passwd().length()),
  330. ::google::protobuf::internal::WireFormat::PARSE,
  331. "parkspace_proto.Database_communication_configuration.db_passwd");
  332. } else {
  333. goto handle_unusual;
  334. }
  335. break;
  336. }
  337. // required string db_name = 5;
  338. case 5: {
  339. if (static_cast< ::google::protobuf::uint8>(tag) ==
  340. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  341. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  342. input, this->mutable_db_name()));
  343. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  344. this->db_name().data(), static_cast<int>(this->db_name().length()),
  345. ::google::protobuf::internal::WireFormat::PARSE,
  346. "parkspace_proto.Database_communication_configuration.db_name");
  347. } else {
  348. goto handle_unusual;
  349. }
  350. break;
  351. }
  352. // optional int64 db_conn_pool_size = 6;
  353. case 6: {
  354. if (static_cast< ::google::protobuf::uint8>(tag) ==
  355. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  356. set_has_db_conn_pool_size();
  357. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  358. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  359. input, &db_conn_pool_size_)));
  360. } else {
  361. goto handle_unusual;
  362. }
  363. break;
  364. }
  365. default: {
  366. handle_unusual:
  367. if (tag == 0) {
  368. goto success;
  369. }
  370. DO_(::google::protobuf::internal::WireFormat::SkipField(
  371. input, tag, _internal_metadata_.mutable_unknown_fields()));
  372. break;
  373. }
  374. }
  375. }
  376. success:
  377. // @@protoc_insertion_point(parse_success:parkspace_proto.Database_communication_configuration)
  378. return true;
  379. failure:
  380. // @@protoc_insertion_point(parse_failure:parkspace_proto.Database_communication_configuration)
  381. return false;
  382. #undef DO_
  383. }
  384. void Database_communication_configuration::SerializeWithCachedSizes(
  385. ::google::protobuf::io::CodedOutputStream* output) const {
  386. // @@protoc_insertion_point(serialize_start:parkspace_proto.Database_communication_configuration)
  387. ::google::protobuf::uint32 cached_has_bits = 0;
  388. (void) cached_has_bits;
  389. cached_has_bits = _has_bits_[0];
  390. // required string db_ip = 1;
  391. if (cached_has_bits & 0x00000001u) {
  392. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  393. this->db_ip().data(), static_cast<int>(this->db_ip().length()),
  394. ::google::protobuf::internal::WireFormat::SERIALIZE,
  395. "parkspace_proto.Database_communication_configuration.db_ip");
  396. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  397. 1, this->db_ip(), output);
  398. }
  399. // required int64 db_port = 2;
  400. if (cached_has_bits & 0x00000010u) {
  401. ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->db_port(), output);
  402. }
  403. // required string db_username = 3;
  404. if (cached_has_bits & 0x00000002u) {
  405. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  406. this->db_username().data(), static_cast<int>(this->db_username().length()),
  407. ::google::protobuf::internal::WireFormat::SERIALIZE,
  408. "parkspace_proto.Database_communication_configuration.db_username");
  409. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  410. 3, this->db_username(), output);
  411. }
  412. // optional string db_passwd = 4 [default = ""];
  413. if (cached_has_bits & 0x00000004u) {
  414. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  415. this->db_passwd().data(), static_cast<int>(this->db_passwd().length()),
  416. ::google::protobuf::internal::WireFormat::SERIALIZE,
  417. "parkspace_proto.Database_communication_configuration.db_passwd");
  418. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  419. 4, this->db_passwd(), output);
  420. }
  421. // required string db_name = 5;
  422. if (cached_has_bits & 0x00000008u) {
  423. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  424. this->db_name().data(), static_cast<int>(this->db_name().length()),
  425. ::google::protobuf::internal::WireFormat::SERIALIZE,
  426. "parkspace_proto.Database_communication_configuration.db_name");
  427. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  428. 5, this->db_name(), output);
  429. }
  430. // optional int64 db_conn_pool_size = 6;
  431. if (cached_has_bits & 0x00000020u) {
  432. ::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->db_conn_pool_size(), output);
  433. }
  434. if (_internal_metadata_.have_unknown_fields()) {
  435. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  436. _internal_metadata_.unknown_fields(), output);
  437. }
  438. // @@protoc_insertion_point(serialize_end:parkspace_proto.Database_communication_configuration)
  439. }
  440. ::google::protobuf::uint8* Database_communication_configuration::InternalSerializeWithCachedSizesToArray(
  441. bool deterministic, ::google::protobuf::uint8* target) const {
  442. (void)deterministic; // Unused
  443. // @@protoc_insertion_point(serialize_to_array_start:parkspace_proto.Database_communication_configuration)
  444. ::google::protobuf::uint32 cached_has_bits = 0;
  445. (void) cached_has_bits;
  446. cached_has_bits = _has_bits_[0];
  447. // required string db_ip = 1;
  448. if (cached_has_bits & 0x00000001u) {
  449. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  450. this->db_ip().data(), static_cast<int>(this->db_ip().length()),
  451. ::google::protobuf::internal::WireFormat::SERIALIZE,
  452. "parkspace_proto.Database_communication_configuration.db_ip");
  453. target =
  454. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  455. 1, this->db_ip(), target);
  456. }
  457. // required int64 db_port = 2;
  458. if (cached_has_bits & 0x00000010u) {
  459. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->db_port(), target);
  460. }
  461. // required string db_username = 3;
  462. if (cached_has_bits & 0x00000002u) {
  463. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  464. this->db_username().data(), static_cast<int>(this->db_username().length()),
  465. ::google::protobuf::internal::WireFormat::SERIALIZE,
  466. "parkspace_proto.Database_communication_configuration.db_username");
  467. target =
  468. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  469. 3, this->db_username(), target);
  470. }
  471. // optional string db_passwd = 4 [default = ""];
  472. if (cached_has_bits & 0x00000004u) {
  473. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  474. this->db_passwd().data(), static_cast<int>(this->db_passwd().length()),
  475. ::google::protobuf::internal::WireFormat::SERIALIZE,
  476. "parkspace_proto.Database_communication_configuration.db_passwd");
  477. target =
  478. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  479. 4, this->db_passwd(), target);
  480. }
  481. // required string db_name = 5;
  482. if (cached_has_bits & 0x00000008u) {
  483. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  484. this->db_name().data(), static_cast<int>(this->db_name().length()),
  485. ::google::protobuf::internal::WireFormat::SERIALIZE,
  486. "parkspace_proto.Database_communication_configuration.db_name");
  487. target =
  488. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  489. 5, this->db_name(), target);
  490. }
  491. // optional int64 db_conn_pool_size = 6;
  492. if (cached_has_bits & 0x00000020u) {
  493. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(6, this->db_conn_pool_size(), target);
  494. }
  495. if (_internal_metadata_.have_unknown_fields()) {
  496. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  497. _internal_metadata_.unknown_fields(), target);
  498. }
  499. // @@protoc_insertion_point(serialize_to_array_end:parkspace_proto.Database_communication_configuration)
  500. return target;
  501. }
  502. size_t Database_communication_configuration::RequiredFieldsByteSizeFallback() const {
  503. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:parkspace_proto.Database_communication_configuration)
  504. size_t total_size = 0;
  505. if (has_db_ip()) {
  506. // required string db_ip = 1;
  507. total_size += 1 +
  508. ::google::protobuf::internal::WireFormatLite::StringSize(
  509. this->db_ip());
  510. }
  511. if (has_db_username()) {
  512. // required string db_username = 3;
  513. total_size += 1 +
  514. ::google::protobuf::internal::WireFormatLite::StringSize(
  515. this->db_username());
  516. }
  517. if (has_db_name()) {
  518. // required string db_name = 5;
  519. total_size += 1 +
  520. ::google::protobuf::internal::WireFormatLite::StringSize(
  521. this->db_name());
  522. }
  523. if (has_db_port()) {
  524. // required int64 db_port = 2;
  525. total_size += 1 +
  526. ::google::protobuf::internal::WireFormatLite::Int64Size(
  527. this->db_port());
  528. }
  529. return total_size;
  530. }
  531. size_t Database_communication_configuration::ByteSizeLong() const {
  532. // @@protoc_insertion_point(message_byte_size_start:parkspace_proto.Database_communication_configuration)
  533. size_t total_size = 0;
  534. if (_internal_metadata_.have_unknown_fields()) {
  535. total_size +=
  536. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  537. _internal_metadata_.unknown_fields());
  538. }
  539. if (((_has_bits_[0] & 0x0000001b) ^ 0x0000001b) == 0) { // All required fields are present.
  540. // required string db_ip = 1;
  541. total_size += 1 +
  542. ::google::protobuf::internal::WireFormatLite::StringSize(
  543. this->db_ip());
  544. // required string db_username = 3;
  545. total_size += 1 +
  546. ::google::protobuf::internal::WireFormatLite::StringSize(
  547. this->db_username());
  548. // required string db_name = 5;
  549. total_size += 1 +
  550. ::google::protobuf::internal::WireFormatLite::StringSize(
  551. this->db_name());
  552. // required int64 db_port = 2;
  553. total_size += 1 +
  554. ::google::protobuf::internal::WireFormatLite::Int64Size(
  555. this->db_port());
  556. } else {
  557. total_size += RequiredFieldsByteSizeFallback();
  558. }
  559. // optional string db_passwd = 4 [default = ""];
  560. if (has_db_passwd()) {
  561. total_size += 1 +
  562. ::google::protobuf::internal::WireFormatLite::StringSize(
  563. this->db_passwd());
  564. }
  565. // optional int64 db_conn_pool_size = 6;
  566. if (has_db_conn_pool_size()) {
  567. total_size += 1 +
  568. ::google::protobuf::internal::WireFormatLite::Int64Size(
  569. this->db_conn_pool_size());
  570. }
  571. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  572. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  573. _cached_size_ = cached_size;
  574. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  575. return total_size;
  576. }
  577. void Database_communication_configuration::MergeFrom(const ::google::protobuf::Message& from) {
  578. // @@protoc_insertion_point(generalized_merge_from_start:parkspace_proto.Database_communication_configuration)
  579. GOOGLE_DCHECK_NE(&from, this);
  580. const Database_communication_configuration* source =
  581. ::google::protobuf::internal::DynamicCastToGenerated<const Database_communication_configuration>(
  582. &from);
  583. if (source == NULL) {
  584. // @@protoc_insertion_point(generalized_merge_from_cast_fail:parkspace_proto.Database_communication_configuration)
  585. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  586. } else {
  587. // @@protoc_insertion_point(generalized_merge_from_cast_success:parkspace_proto.Database_communication_configuration)
  588. MergeFrom(*source);
  589. }
  590. }
  591. void Database_communication_configuration::MergeFrom(const Database_communication_configuration& from) {
  592. // @@protoc_insertion_point(class_specific_merge_from_start:parkspace_proto.Database_communication_configuration)
  593. GOOGLE_DCHECK_NE(&from, this);
  594. _internal_metadata_.MergeFrom(from._internal_metadata_);
  595. ::google::protobuf::uint32 cached_has_bits = 0;
  596. (void) cached_has_bits;
  597. cached_has_bits = from._has_bits_[0];
  598. if (cached_has_bits & 63u) {
  599. if (cached_has_bits & 0x00000001u) {
  600. set_has_db_ip();
  601. db_ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_ip_);
  602. }
  603. if (cached_has_bits & 0x00000002u) {
  604. set_has_db_username();
  605. db_username_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_username_);
  606. }
  607. if (cached_has_bits & 0x00000004u) {
  608. set_has_db_passwd();
  609. db_passwd_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_passwd_);
  610. }
  611. if (cached_has_bits & 0x00000008u) {
  612. set_has_db_name();
  613. db_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_name_);
  614. }
  615. if (cached_has_bits & 0x00000010u) {
  616. db_port_ = from.db_port_;
  617. }
  618. if (cached_has_bits & 0x00000020u) {
  619. db_conn_pool_size_ = from.db_conn_pool_size_;
  620. }
  621. _has_bits_[0] |= cached_has_bits;
  622. }
  623. }
  624. void Database_communication_configuration::CopyFrom(const ::google::protobuf::Message& from) {
  625. // @@protoc_insertion_point(generalized_copy_from_start:parkspace_proto.Database_communication_configuration)
  626. if (&from == this) return;
  627. Clear();
  628. MergeFrom(from);
  629. }
  630. void Database_communication_configuration::CopyFrom(const Database_communication_configuration& from) {
  631. // @@protoc_insertion_point(class_specific_copy_from_start:parkspace_proto.Database_communication_configuration)
  632. if (&from == this) return;
  633. Clear();
  634. MergeFrom(from);
  635. }
  636. bool Database_communication_configuration::IsInitialized() const {
  637. if ((_has_bits_[0] & 0x0000001b) != 0x0000001b) return false;
  638. return true;
  639. }
  640. void Database_communication_configuration::Swap(Database_communication_configuration* other) {
  641. if (other == this) return;
  642. InternalSwap(other);
  643. }
  644. void Database_communication_configuration::InternalSwap(Database_communication_configuration* other) {
  645. using std::swap;
  646. db_ip_.Swap(&other->db_ip_);
  647. db_username_.Swap(&other->db_username_);
  648. db_passwd_.Swap(&other->db_passwd_);
  649. db_name_.Swap(&other->db_name_);
  650. swap(db_port_, other->db_port_);
  651. swap(db_conn_pool_size_, other->db_conn_pool_size_);
  652. swap(_has_bits_[0], other->_has_bits_[0]);
  653. _internal_metadata_.Swap(&other->_internal_metadata_);
  654. swap(_cached_size_, other->_cached_size_);
  655. }
  656. ::google::protobuf::Metadata Database_communication_configuration::GetMetadata() const {
  657. protobuf_database_5fcommunication_5fconfiguration_2eproto::protobuf_AssignDescriptorsOnce();
  658. return ::protobuf_database_5fcommunication_5fconfiguration_2eproto::file_level_metadata[kIndexInFileMessages];
  659. }
  660. // ===================================================================
  661. void Database_communication_configuration_all::InitAsDefaultInstance() {
  662. ::parkspace_proto::_Database_communication_configuration_all_default_instance_._instance.get_mutable()->database_communication_configurations_ = const_cast< ::parkspace_proto::Database_communication_configuration*>(
  663. ::parkspace_proto::Database_communication_configuration::internal_default_instance());
  664. }
  665. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  666. const int Database_communication_configuration_all::kDatabaseCommunicationConfigurationsFieldNumber;
  667. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  668. Database_communication_configuration_all::Database_communication_configuration_all()
  669. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  670. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  671. ::protobuf_database_5fcommunication_5fconfiguration_2eproto::InitDefaultsDatabase_communication_configuration_all();
  672. }
  673. SharedCtor();
  674. // @@protoc_insertion_point(constructor:parkspace_proto.Database_communication_configuration_all)
  675. }
  676. Database_communication_configuration_all::Database_communication_configuration_all(const Database_communication_configuration_all& from)
  677. : ::google::protobuf::Message(),
  678. _internal_metadata_(NULL),
  679. _has_bits_(from._has_bits_),
  680. _cached_size_(0) {
  681. _internal_metadata_.MergeFrom(from._internal_metadata_);
  682. if (from.has_database_communication_configurations()) {
  683. database_communication_configurations_ = new ::parkspace_proto::Database_communication_configuration(*from.database_communication_configurations_);
  684. } else {
  685. database_communication_configurations_ = NULL;
  686. }
  687. // @@protoc_insertion_point(copy_constructor:parkspace_proto.Database_communication_configuration_all)
  688. }
  689. void Database_communication_configuration_all::SharedCtor() {
  690. _cached_size_ = 0;
  691. database_communication_configurations_ = NULL;
  692. }
  693. Database_communication_configuration_all::~Database_communication_configuration_all() {
  694. // @@protoc_insertion_point(destructor:parkspace_proto.Database_communication_configuration_all)
  695. SharedDtor();
  696. }
  697. void Database_communication_configuration_all::SharedDtor() {
  698. if (this != internal_default_instance()) delete database_communication_configurations_;
  699. }
  700. void Database_communication_configuration_all::SetCachedSize(int size) const {
  701. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  702. _cached_size_ = size;
  703. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  704. }
  705. const ::google::protobuf::Descriptor* Database_communication_configuration_all::descriptor() {
  706. ::protobuf_database_5fcommunication_5fconfiguration_2eproto::protobuf_AssignDescriptorsOnce();
  707. return ::protobuf_database_5fcommunication_5fconfiguration_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  708. }
  709. const Database_communication_configuration_all& Database_communication_configuration_all::default_instance() {
  710. ::protobuf_database_5fcommunication_5fconfiguration_2eproto::InitDefaultsDatabase_communication_configuration_all();
  711. return *internal_default_instance();
  712. }
  713. Database_communication_configuration_all* Database_communication_configuration_all::New(::google::protobuf::Arena* arena) const {
  714. Database_communication_configuration_all* n = new Database_communication_configuration_all;
  715. if (arena != NULL) {
  716. arena->Own(n);
  717. }
  718. return n;
  719. }
  720. void Database_communication_configuration_all::Clear() {
  721. // @@protoc_insertion_point(message_clear_start:parkspace_proto.Database_communication_configuration_all)
  722. ::google::protobuf::uint32 cached_has_bits = 0;
  723. // Prevent compiler warnings about cached_has_bits being unused
  724. (void) cached_has_bits;
  725. cached_has_bits = _has_bits_[0];
  726. if (cached_has_bits & 0x00000001u) {
  727. GOOGLE_DCHECK(database_communication_configurations_ != NULL);
  728. database_communication_configurations_->Clear();
  729. }
  730. _has_bits_.Clear();
  731. _internal_metadata_.Clear();
  732. }
  733. bool Database_communication_configuration_all::MergePartialFromCodedStream(
  734. ::google::protobuf::io::CodedInputStream* input) {
  735. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  736. ::google::protobuf::uint32 tag;
  737. // @@protoc_insertion_point(parse_start:parkspace_proto.Database_communication_configuration_all)
  738. for (;;) {
  739. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  740. tag = p.first;
  741. if (!p.second) goto handle_unusual;
  742. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  743. // optional .parkspace_proto.Database_communication_configuration database_communication_configurations = 1;
  744. case 1: {
  745. if (static_cast< ::google::protobuf::uint8>(tag) ==
  746. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  747. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  748. input, mutable_database_communication_configurations()));
  749. } else {
  750. goto handle_unusual;
  751. }
  752. break;
  753. }
  754. default: {
  755. handle_unusual:
  756. if (tag == 0) {
  757. goto success;
  758. }
  759. DO_(::google::protobuf::internal::WireFormat::SkipField(
  760. input, tag, _internal_metadata_.mutable_unknown_fields()));
  761. break;
  762. }
  763. }
  764. }
  765. success:
  766. // @@protoc_insertion_point(parse_success:parkspace_proto.Database_communication_configuration_all)
  767. return true;
  768. failure:
  769. // @@protoc_insertion_point(parse_failure:parkspace_proto.Database_communication_configuration_all)
  770. return false;
  771. #undef DO_
  772. }
  773. void Database_communication_configuration_all::SerializeWithCachedSizes(
  774. ::google::protobuf::io::CodedOutputStream* output) const {
  775. // @@protoc_insertion_point(serialize_start:parkspace_proto.Database_communication_configuration_all)
  776. ::google::protobuf::uint32 cached_has_bits = 0;
  777. (void) cached_has_bits;
  778. cached_has_bits = _has_bits_[0];
  779. // optional .parkspace_proto.Database_communication_configuration database_communication_configurations = 1;
  780. if (cached_has_bits & 0x00000001u) {
  781. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  782. 1, *this->database_communication_configurations_, output);
  783. }
  784. if (_internal_metadata_.have_unknown_fields()) {
  785. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  786. _internal_metadata_.unknown_fields(), output);
  787. }
  788. // @@protoc_insertion_point(serialize_end:parkspace_proto.Database_communication_configuration_all)
  789. }
  790. ::google::protobuf::uint8* Database_communication_configuration_all::InternalSerializeWithCachedSizesToArray(
  791. bool deterministic, ::google::protobuf::uint8* target) const {
  792. (void)deterministic; // Unused
  793. // @@protoc_insertion_point(serialize_to_array_start:parkspace_proto.Database_communication_configuration_all)
  794. ::google::protobuf::uint32 cached_has_bits = 0;
  795. (void) cached_has_bits;
  796. cached_has_bits = _has_bits_[0];
  797. // optional .parkspace_proto.Database_communication_configuration database_communication_configurations = 1;
  798. if (cached_has_bits & 0x00000001u) {
  799. target = ::google::protobuf::internal::WireFormatLite::
  800. InternalWriteMessageToArray(
  801. 1, *this->database_communication_configurations_, deterministic, target);
  802. }
  803. if (_internal_metadata_.have_unknown_fields()) {
  804. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  805. _internal_metadata_.unknown_fields(), target);
  806. }
  807. // @@protoc_insertion_point(serialize_to_array_end:parkspace_proto.Database_communication_configuration_all)
  808. return target;
  809. }
  810. size_t Database_communication_configuration_all::ByteSizeLong() const {
  811. // @@protoc_insertion_point(message_byte_size_start:parkspace_proto.Database_communication_configuration_all)
  812. size_t total_size = 0;
  813. if (_internal_metadata_.have_unknown_fields()) {
  814. total_size +=
  815. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  816. _internal_metadata_.unknown_fields());
  817. }
  818. // optional .parkspace_proto.Database_communication_configuration database_communication_configurations = 1;
  819. if (has_database_communication_configurations()) {
  820. total_size += 1 +
  821. ::google::protobuf::internal::WireFormatLite::MessageSize(
  822. *this->database_communication_configurations_);
  823. }
  824. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  825. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  826. _cached_size_ = cached_size;
  827. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  828. return total_size;
  829. }
  830. void Database_communication_configuration_all::MergeFrom(const ::google::protobuf::Message& from) {
  831. // @@protoc_insertion_point(generalized_merge_from_start:parkspace_proto.Database_communication_configuration_all)
  832. GOOGLE_DCHECK_NE(&from, this);
  833. const Database_communication_configuration_all* source =
  834. ::google::protobuf::internal::DynamicCastToGenerated<const Database_communication_configuration_all>(
  835. &from);
  836. if (source == NULL) {
  837. // @@protoc_insertion_point(generalized_merge_from_cast_fail:parkspace_proto.Database_communication_configuration_all)
  838. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  839. } else {
  840. // @@protoc_insertion_point(generalized_merge_from_cast_success:parkspace_proto.Database_communication_configuration_all)
  841. MergeFrom(*source);
  842. }
  843. }
  844. void Database_communication_configuration_all::MergeFrom(const Database_communication_configuration_all& from) {
  845. // @@protoc_insertion_point(class_specific_merge_from_start:parkspace_proto.Database_communication_configuration_all)
  846. GOOGLE_DCHECK_NE(&from, this);
  847. _internal_metadata_.MergeFrom(from._internal_metadata_);
  848. ::google::protobuf::uint32 cached_has_bits = 0;
  849. (void) cached_has_bits;
  850. if (from.has_database_communication_configurations()) {
  851. mutable_database_communication_configurations()->::parkspace_proto::Database_communication_configuration::MergeFrom(from.database_communication_configurations());
  852. }
  853. }
  854. void Database_communication_configuration_all::CopyFrom(const ::google::protobuf::Message& from) {
  855. // @@protoc_insertion_point(generalized_copy_from_start:parkspace_proto.Database_communication_configuration_all)
  856. if (&from == this) return;
  857. Clear();
  858. MergeFrom(from);
  859. }
  860. void Database_communication_configuration_all::CopyFrom(const Database_communication_configuration_all& from) {
  861. // @@protoc_insertion_point(class_specific_copy_from_start:parkspace_proto.Database_communication_configuration_all)
  862. if (&from == this) return;
  863. Clear();
  864. MergeFrom(from);
  865. }
  866. bool Database_communication_configuration_all::IsInitialized() const {
  867. if (has_database_communication_configurations()) {
  868. if (!this->database_communication_configurations_->IsInitialized()) return false;
  869. }
  870. return true;
  871. }
  872. void Database_communication_configuration_all::Swap(Database_communication_configuration_all* other) {
  873. if (other == this) return;
  874. InternalSwap(other);
  875. }
  876. void Database_communication_configuration_all::InternalSwap(Database_communication_configuration_all* other) {
  877. using std::swap;
  878. swap(database_communication_configurations_, other->database_communication_configurations_);
  879. swap(_has_bits_[0], other->_has_bits_[0]);
  880. _internal_metadata_.Swap(&other->_internal_metadata_);
  881. swap(_cached_size_, other->_cached_size_);
  882. }
  883. ::google::protobuf::Metadata Database_communication_configuration_all::GetMetadata() const {
  884. protobuf_database_5fcommunication_5fconfiguration_2eproto::protobuf_AssignDescriptorsOnce();
  885. return ::protobuf_database_5fcommunication_5fconfiguration_2eproto::file_level_metadata[kIndexInFileMessages];
  886. }
  887. // @@protoc_insertion_point(namespace_scope)
  888. } // namespace parkspace_proto
  889. // @@protoc_insertion_point(global_scope)