// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: database_communication_configuration.proto

#include "database_communication_configuration.pb.h"

#include <algorithm>

#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// This is a temporary google only hack
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
#include "third_party/protobuf/version.h"
#endif
// @@protoc_insertion_point(includes)

namespace protobuf_database_5fcommunication_5fconfiguration_2eproto {
extern PROTOBUF_INTERNAL_EXPORT_protobuf_database_5fcommunication_5fconfiguration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Database_communication_configuration;
}  // namespace protobuf_database_5fcommunication_5fconfiguration_2eproto
namespace parkspace_proto {
class Database_communication_configurationDefaultTypeInternal {
 public:
  ::google::protobuf::internal::ExplicitlyConstructed<Database_communication_configuration>
      _instance;
} _Database_communication_configuration_default_instance_;
class Database_communication_configuration_allDefaultTypeInternal {
 public:
  ::google::protobuf::internal::ExplicitlyConstructed<Database_communication_configuration_all>
      _instance;
} _Database_communication_configuration_all_default_instance_;
}  // namespace parkspace_proto
namespace protobuf_database_5fcommunication_5fconfiguration_2eproto {
static void InitDefaultsDatabase_communication_configuration() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  {
    void* ptr = &::parkspace_proto::_Database_communication_configuration_default_instance_;
    new (ptr) ::parkspace_proto::Database_communication_configuration();
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  }
  ::parkspace_proto::Database_communication_configuration::InitAsDefaultInstance();
}

::google::protobuf::internal::SCCInfo<0> scc_info_Database_communication_configuration =
    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDatabase_communication_configuration}, {}};

static void InitDefaultsDatabase_communication_configuration_all() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  {
    void* ptr = &::parkspace_proto::_Database_communication_configuration_all_default_instance_;
    new (ptr) ::parkspace_proto::Database_communication_configuration_all();
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  }
  ::parkspace_proto::Database_communication_configuration_all::InitAsDefaultInstance();
}

::google::protobuf::internal::SCCInfo<1> scc_info_Database_communication_configuration_all =
    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDatabase_communication_configuration_all}, {
      &protobuf_database_5fcommunication_5fconfiguration_2eproto::scc_info_Database_communication_configuration.base,}};

void InitDefaults() {
  ::google::protobuf::internal::InitSCC(&scc_info_Database_communication_configuration.base);
  ::google::protobuf::internal::InitSCC(&scc_info_Database_communication_configuration_all.base);
}

::google::protobuf::Metadata file_level_metadata[2];

const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::Database_communication_configuration, _has_bits_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::Database_communication_configuration, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::Database_communication_configuration, db_ip_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::Database_communication_configuration, db_port_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::Database_communication_configuration, db_username_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::Database_communication_configuration, db_passwd_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::Database_communication_configuration, db_name_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::Database_communication_configuration, db_conn_pool_size_),
  0,
  4,
  1,
  2,
  3,
  5,
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::Database_communication_configuration_all, _has_bits_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::Database_communication_configuration_all, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::Database_communication_configuration_all, database_communication_configurations_),
  0,
};
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  { 0, 11, sizeof(::parkspace_proto::Database_communication_configuration)},
  { 17, 23, sizeof(::parkspace_proto::Database_communication_configuration_all)},
};

static ::google::protobuf::Message const * const file_default_instances[] = {
  reinterpret_cast<const ::google::protobuf::Message*>(&::parkspace_proto::_Database_communication_configuration_default_instance_),
  reinterpret_cast<const ::google::protobuf::Message*>(&::parkspace_proto::_Database_communication_configuration_all_default_instance_),
};

void protobuf_AssignDescriptors() {
  AddDescriptors();
  AssignDescriptors(
      "database_communication_configuration.proto", schemas, file_default_instances, TableStruct::offsets,
      file_level_metadata, NULL, NULL);
}

void protobuf_AssignDescriptorsOnce() {
  static ::google::protobuf::internal::once_flag once;
  ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
}

void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
void protobuf_RegisterTypes(const ::std::string&) {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2);
}

void AddDescriptorsImpl() {
  InitDefaults();
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
      "\n*database_communication_configuration.p"
      "roto\022\017parkspace_proto\"\234\001\n$Database_commu"
      "nication_configuration\022\r\n\005db_ip\030\001 \002(\t\022\017\n"
      "\007db_port\030\002 \002(\003\022\023\n\013db_username\030\003 \002(\t\022\023\n\td"
      "b_passwd\030\004 \001(\t:\000\022\017\n\007db_name\030\005 \002(\t\022\031\n\021db_"
      "conn_pool_size\030\006 \001(\003\"\220\001\n(Database_commun"
      "ication_configuration_all\022d\n%database_co"
      "mmunication_configurations\030\001 \001(\01325.parks"
      "pace_proto.Database_communication_config"
      "uration"
  };
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
      descriptor, 367);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "database_communication_configuration.proto", &protobuf_RegisterTypes);
}

void AddDescriptors() {
  static ::google::protobuf::internal::once_flag once;
  ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
}
// Force AddDescriptors() to be called at dynamic initialization time.
struct StaticDescriptorInitializer {
  StaticDescriptorInitializer() {
    AddDescriptors();
  }
} static_descriptor_initializer;
}  // namespace protobuf_database_5fcommunication_5fconfiguration_2eproto
namespace parkspace_proto {

// ===================================================================

void Database_communication_configuration::InitAsDefaultInstance() {
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Database_communication_configuration::kDbIpFieldNumber;
const int Database_communication_configuration::kDbPortFieldNumber;
const int Database_communication_configuration::kDbUsernameFieldNumber;
const int Database_communication_configuration::kDbPasswdFieldNumber;
const int Database_communication_configuration::kDbNameFieldNumber;
const int Database_communication_configuration::kDbConnPoolSizeFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

Database_communication_configuration::Database_communication_configuration()
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  ::google::protobuf::internal::InitSCC(
      &protobuf_database_5fcommunication_5fconfiguration_2eproto::scc_info_Database_communication_configuration.base);
  SharedCtor();
  // @@protoc_insertion_point(constructor:parkspace_proto.Database_communication_configuration)
}
Database_communication_configuration::Database_communication_configuration(const Database_communication_configuration& from)
  : ::google::protobuf::Message(),
      _internal_metadata_(NULL),
      _has_bits_(from._has_bits_) {
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  db_ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  if (from.has_db_ip()) {
    db_ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_ip_);
  }
  db_username_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  if (from.has_db_username()) {
    db_username_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_username_);
  }
  db_passwd_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  if (from.has_db_passwd()) {
    db_passwd_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_passwd_);
  }
  db_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  if (from.has_db_name()) {
    db_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_name_);
  }
  ::memcpy(&db_port_, &from.db_port_,
    static_cast<size_t>(reinterpret_cast<char*>(&db_conn_pool_size_) -
    reinterpret_cast<char*>(&db_port_)) + sizeof(db_conn_pool_size_));
  // @@protoc_insertion_point(copy_constructor:parkspace_proto.Database_communication_configuration)
}

void Database_communication_configuration::SharedCtor() {
  db_ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  db_username_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  db_passwd_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  db_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  ::memset(&db_port_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&db_conn_pool_size_) -
      reinterpret_cast<char*>(&db_port_)) + sizeof(db_conn_pool_size_));
}

Database_communication_configuration::~Database_communication_configuration() {
  // @@protoc_insertion_point(destructor:parkspace_proto.Database_communication_configuration)
  SharedDtor();
}

void Database_communication_configuration::SharedDtor() {
  db_ip_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  db_username_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  db_passwd_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  db_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

void Database_communication_configuration::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* Database_communication_configuration::descriptor() {
  ::protobuf_database_5fcommunication_5fconfiguration_2eproto::protobuf_AssignDescriptorsOnce();
  return ::protobuf_database_5fcommunication_5fconfiguration_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}

const Database_communication_configuration& Database_communication_configuration::default_instance() {
  ::google::protobuf::internal::InitSCC(&protobuf_database_5fcommunication_5fconfiguration_2eproto::scc_info_Database_communication_configuration.base);
  return *internal_default_instance();
}


void Database_communication_configuration::Clear() {
// @@protoc_insertion_point(message_clear_start:parkspace_proto.Database_communication_configuration)
  ::google::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 15u) {
    if (cached_has_bits & 0x00000001u) {
      db_ip_.ClearNonDefaultToEmptyNoArena();
    }
    if (cached_has_bits & 0x00000002u) {
      db_username_.ClearNonDefaultToEmptyNoArena();
    }
    if (cached_has_bits & 0x00000004u) {
      db_passwd_.ClearNonDefaultToEmptyNoArena();
    }
    if (cached_has_bits & 0x00000008u) {
      db_name_.ClearNonDefaultToEmptyNoArena();
    }
  }
  if (cached_has_bits & 48u) {
    ::memset(&db_port_, 0, static_cast<size_t>(
        reinterpret_cast<char*>(&db_conn_pool_size_) -
        reinterpret_cast<char*>(&db_port_)) + sizeof(db_conn_pool_size_));
  }
  _has_bits_.Clear();
  _internal_metadata_.Clear();
}

bool Database_communication_configuration::MergePartialFromCodedStream(
    ::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  ::google::protobuf::uint32 tag;
  // @@protoc_insertion_point(parse_start:parkspace_proto.Database_communication_configuration)
  for (;;) {
    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
    tag = p.first;
    if (!p.second) goto handle_unusual;
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
      // required string db_ip = 1;
      case 1: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_db_ip()));
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
            this->db_ip().data(), static_cast<int>(this->db_ip().length()),
            ::google::protobuf::internal::WireFormat::PARSE,
            "parkspace_proto.Database_communication_configuration.db_ip");
        } else {
          goto handle_unusual;
        }
        break;
      }

      // required int64 db_port = 2;
      case 2: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
          set_has_db_port();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
                 input, &db_port_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // required string db_username = 3;
      case 3: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_db_username()));
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
            this->db_username().data(), static_cast<int>(this->db_username().length()),
            ::google::protobuf::internal::WireFormat::PARSE,
            "parkspace_proto.Database_communication_configuration.db_username");
        } else {
          goto handle_unusual;
        }
        break;
      }

      // optional string db_passwd = 4 [default = ""];
      case 4: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_db_passwd()));
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
            this->db_passwd().data(), static_cast<int>(this->db_passwd().length()),
            ::google::protobuf::internal::WireFormat::PARSE,
            "parkspace_proto.Database_communication_configuration.db_passwd");
        } else {
          goto handle_unusual;
        }
        break;
      }

      // required string db_name = 5;
      case 5: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_db_name()));
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
            this->db_name().data(), static_cast<int>(this->db_name().length()),
            ::google::protobuf::internal::WireFormat::PARSE,
            "parkspace_proto.Database_communication_configuration.db_name");
        } else {
          goto handle_unusual;
        }
        break;
      }

      // optional int64 db_conn_pool_size = 6;
      case 6: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
          set_has_db_conn_pool_size();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
                 input, &db_conn_pool_size_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      default: {
      handle_unusual:
        if (tag == 0) {
          goto success;
        }
        DO_(::google::protobuf::internal::WireFormat::SkipField(
              input, tag, _internal_metadata_.mutable_unknown_fields()));
        break;
      }
    }
  }
success:
  // @@protoc_insertion_point(parse_success:parkspace_proto.Database_communication_configuration)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:parkspace_proto.Database_communication_configuration)
  return false;
#undef DO_
}

void Database_communication_configuration::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // @@protoc_insertion_point(serialize_start:parkspace_proto.Database_communication_configuration)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // required string db_ip = 1;
  if (cached_has_bits & 0x00000001u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->db_ip().data(), static_cast<int>(this->db_ip().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "parkspace_proto.Database_communication_configuration.db_ip");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      1, this->db_ip(), output);
  }

  // required int64 db_port = 2;
  if (cached_has_bits & 0x00000010u) {
    ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->db_port(), output);
  }

  // required string db_username = 3;
  if (cached_has_bits & 0x00000002u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->db_username().data(), static_cast<int>(this->db_username().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "parkspace_proto.Database_communication_configuration.db_username");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      3, this->db_username(), output);
  }

  // optional string db_passwd = 4 [default = ""];
  if (cached_has_bits & 0x00000004u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->db_passwd().data(), static_cast<int>(this->db_passwd().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "parkspace_proto.Database_communication_configuration.db_passwd");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      4, this->db_passwd(), output);
  }

  // required string db_name = 5;
  if (cached_has_bits & 0x00000008u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->db_name().data(), static_cast<int>(this->db_name().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "parkspace_proto.Database_communication_configuration.db_name");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      5, this->db_name(), output);
  }

  // optional int64 db_conn_pool_size = 6;
  if (cached_has_bits & 0x00000020u) {
    ::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->db_conn_pool_size(), output);
  }

  if (_internal_metadata_.have_unknown_fields()) {
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
        _internal_metadata_.unknown_fields(), output);
  }
  // @@protoc_insertion_point(serialize_end:parkspace_proto.Database_communication_configuration)
}

::google::protobuf::uint8* Database_communication_configuration::InternalSerializeWithCachedSizesToArray(
    bool deterministic, ::google::protobuf::uint8* target) const {
  (void)deterministic; // Unused
  // @@protoc_insertion_point(serialize_to_array_start:parkspace_proto.Database_communication_configuration)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // required string db_ip = 1;
  if (cached_has_bits & 0x00000001u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->db_ip().data(), static_cast<int>(this->db_ip().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "parkspace_proto.Database_communication_configuration.db_ip");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        1, this->db_ip(), target);
  }

  // required int64 db_port = 2;
  if (cached_has_bits & 0x00000010u) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->db_port(), target);
  }

  // required string db_username = 3;
  if (cached_has_bits & 0x00000002u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->db_username().data(), static_cast<int>(this->db_username().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "parkspace_proto.Database_communication_configuration.db_username");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        3, this->db_username(), target);
  }

  // optional string db_passwd = 4 [default = ""];
  if (cached_has_bits & 0x00000004u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->db_passwd().data(), static_cast<int>(this->db_passwd().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "parkspace_proto.Database_communication_configuration.db_passwd");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        4, this->db_passwd(), target);
  }

  // required string db_name = 5;
  if (cached_has_bits & 0x00000008u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->db_name().data(), static_cast<int>(this->db_name().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "parkspace_proto.Database_communication_configuration.db_name");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        5, this->db_name(), target);
  }

  // optional int64 db_conn_pool_size = 6;
  if (cached_has_bits & 0x00000020u) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(6, this->db_conn_pool_size(), target);
  }

  if (_internal_metadata_.have_unknown_fields()) {
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields(), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:parkspace_proto.Database_communication_configuration)
  return target;
}

size_t Database_communication_configuration::RequiredFieldsByteSizeFallback() const {
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:parkspace_proto.Database_communication_configuration)
  size_t total_size = 0;

  if (has_db_ip()) {
    // required string db_ip = 1;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::StringSize(
        this->db_ip());
  }

  if (has_db_username()) {
    // required string db_username = 3;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::StringSize(
        this->db_username());
  }

  if (has_db_name()) {
    // required string db_name = 5;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::StringSize(
        this->db_name());
  }

  if (has_db_port()) {
    // required int64 db_port = 2;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::Int64Size(
        this->db_port());
  }

  return total_size;
}
size_t Database_communication_configuration::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:parkspace_proto.Database_communication_configuration)
  size_t total_size = 0;

  if (_internal_metadata_.have_unknown_fields()) {
    total_size +=
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
        _internal_metadata_.unknown_fields());
  }
  if (((_has_bits_[0] & 0x0000001b) ^ 0x0000001b) == 0) {  // All required fields are present.
    // required string db_ip = 1;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::StringSize(
        this->db_ip());

    // required string db_username = 3;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::StringSize(
        this->db_username());

    // required string db_name = 5;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::StringSize(
        this->db_name());

    // required int64 db_port = 2;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::Int64Size(
        this->db_port());

  } else {
    total_size += RequiredFieldsByteSizeFallback();
  }
  // optional string db_passwd = 4 [default = ""];
  if (has_db_passwd()) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::StringSize(
        this->db_passwd());
  }

  // optional int64 db_conn_pool_size = 6;
  if (has_db_conn_pool_size()) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::Int64Size(
        this->db_conn_pool_size());
  }

  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void Database_communication_configuration::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:parkspace_proto.Database_communication_configuration)
  GOOGLE_DCHECK_NE(&from, this);
  const Database_communication_configuration* source =
      ::google::protobuf::internal::DynamicCastToGenerated<const Database_communication_configuration>(
          &from);
  if (source == NULL) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:parkspace_proto.Database_communication_configuration)
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:parkspace_proto.Database_communication_configuration)
    MergeFrom(*source);
  }
}

void Database_communication_configuration::MergeFrom(const Database_communication_configuration& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:parkspace_proto.Database_communication_configuration)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = from._has_bits_[0];
  if (cached_has_bits & 63u) {
    if (cached_has_bits & 0x00000001u) {
      set_has_db_ip();
      db_ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_ip_);
    }
    if (cached_has_bits & 0x00000002u) {
      set_has_db_username();
      db_username_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_username_);
    }
    if (cached_has_bits & 0x00000004u) {
      set_has_db_passwd();
      db_passwd_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_passwd_);
    }
    if (cached_has_bits & 0x00000008u) {
      set_has_db_name();
      db_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.db_name_);
    }
    if (cached_has_bits & 0x00000010u) {
      db_port_ = from.db_port_;
    }
    if (cached_has_bits & 0x00000020u) {
      db_conn_pool_size_ = from.db_conn_pool_size_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
}

void Database_communication_configuration::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:parkspace_proto.Database_communication_configuration)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

void Database_communication_configuration::CopyFrom(const Database_communication_configuration& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:parkspace_proto.Database_communication_configuration)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool Database_communication_configuration::IsInitialized() const {
  if ((_has_bits_[0] & 0x0000001b) != 0x0000001b) return false;
  return true;
}

void Database_communication_configuration::Swap(Database_communication_configuration* other) {
  if (other == this) return;
  InternalSwap(other);
}
void Database_communication_configuration::InternalSwap(Database_communication_configuration* other) {
  using std::swap;
  db_ip_.Swap(&other->db_ip_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
    GetArenaNoVirtual());
  db_username_.Swap(&other->db_username_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
    GetArenaNoVirtual());
  db_passwd_.Swap(&other->db_passwd_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
    GetArenaNoVirtual());
  db_name_.Swap(&other->db_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
    GetArenaNoVirtual());
  swap(db_port_, other->db_port_);
  swap(db_conn_pool_size_, other->db_conn_pool_size_);
  swap(_has_bits_[0], other->_has_bits_[0]);
  _internal_metadata_.Swap(&other->_internal_metadata_);
}

::google::protobuf::Metadata Database_communication_configuration::GetMetadata() const {
  protobuf_database_5fcommunication_5fconfiguration_2eproto::protobuf_AssignDescriptorsOnce();
  return ::protobuf_database_5fcommunication_5fconfiguration_2eproto::file_level_metadata[kIndexInFileMessages];
}


// ===================================================================

void Database_communication_configuration_all::InitAsDefaultInstance() {
  ::parkspace_proto::_Database_communication_configuration_all_default_instance_._instance.get_mutable()->database_communication_configurations_ = const_cast< ::parkspace_proto::Database_communication_configuration*>(
      ::parkspace_proto::Database_communication_configuration::internal_default_instance());
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Database_communication_configuration_all::kDatabaseCommunicationConfigurationsFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

Database_communication_configuration_all::Database_communication_configuration_all()
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  ::google::protobuf::internal::InitSCC(
      &protobuf_database_5fcommunication_5fconfiguration_2eproto::scc_info_Database_communication_configuration_all.base);
  SharedCtor();
  // @@protoc_insertion_point(constructor:parkspace_proto.Database_communication_configuration_all)
}
Database_communication_configuration_all::Database_communication_configuration_all(const Database_communication_configuration_all& from)
  : ::google::protobuf::Message(),
      _internal_metadata_(NULL),
      _has_bits_(from._has_bits_) {
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  if (from.has_database_communication_configurations()) {
    database_communication_configurations_ = new ::parkspace_proto::Database_communication_configuration(*from.database_communication_configurations_);
  } else {
    database_communication_configurations_ = NULL;
  }
  // @@protoc_insertion_point(copy_constructor:parkspace_proto.Database_communication_configuration_all)
}

void Database_communication_configuration_all::SharedCtor() {
  database_communication_configurations_ = NULL;
}

Database_communication_configuration_all::~Database_communication_configuration_all() {
  // @@protoc_insertion_point(destructor:parkspace_proto.Database_communication_configuration_all)
  SharedDtor();
}

void Database_communication_configuration_all::SharedDtor() {
  if (this != internal_default_instance()) delete database_communication_configurations_;
}

void Database_communication_configuration_all::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* Database_communication_configuration_all::descriptor() {
  ::protobuf_database_5fcommunication_5fconfiguration_2eproto::protobuf_AssignDescriptorsOnce();
  return ::protobuf_database_5fcommunication_5fconfiguration_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}

const Database_communication_configuration_all& Database_communication_configuration_all::default_instance() {
  ::google::protobuf::internal::InitSCC(&protobuf_database_5fcommunication_5fconfiguration_2eproto::scc_info_Database_communication_configuration_all.base);
  return *internal_default_instance();
}


void Database_communication_configuration_all::Clear() {
// @@protoc_insertion_point(message_clear_start:parkspace_proto.Database_communication_configuration_all)
  ::google::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x00000001u) {
    GOOGLE_DCHECK(database_communication_configurations_ != NULL);
    database_communication_configurations_->Clear();
  }
  _has_bits_.Clear();
  _internal_metadata_.Clear();
}

bool Database_communication_configuration_all::MergePartialFromCodedStream(
    ::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  ::google::protobuf::uint32 tag;
  // @@protoc_insertion_point(parse_start:parkspace_proto.Database_communication_configuration_all)
  for (;;) {
    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
    tag = p.first;
    if (!p.second) goto handle_unusual;
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
      // optional .parkspace_proto.Database_communication_configuration database_communication_configurations = 1;
      case 1: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
               input, mutable_database_communication_configurations()));
        } else {
          goto handle_unusual;
        }
        break;
      }

      default: {
      handle_unusual:
        if (tag == 0) {
          goto success;
        }
        DO_(::google::protobuf::internal::WireFormat::SkipField(
              input, tag, _internal_metadata_.mutable_unknown_fields()));
        break;
      }
    }
  }
success:
  // @@protoc_insertion_point(parse_success:parkspace_proto.Database_communication_configuration_all)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:parkspace_proto.Database_communication_configuration_all)
  return false;
#undef DO_
}

void Database_communication_configuration_all::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // @@protoc_insertion_point(serialize_start:parkspace_proto.Database_communication_configuration_all)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // optional .parkspace_proto.Database_communication_configuration database_communication_configurations = 1;
  if (cached_has_bits & 0x00000001u) {
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
      1, this->_internal_database_communication_configurations(), output);
  }

  if (_internal_metadata_.have_unknown_fields()) {
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
        _internal_metadata_.unknown_fields(), output);
  }
  // @@protoc_insertion_point(serialize_end:parkspace_proto.Database_communication_configuration_all)
}

::google::protobuf::uint8* Database_communication_configuration_all::InternalSerializeWithCachedSizesToArray(
    bool deterministic, ::google::protobuf::uint8* target) const {
  (void)deterministic; // Unused
  // @@protoc_insertion_point(serialize_to_array_start:parkspace_proto.Database_communication_configuration_all)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // optional .parkspace_proto.Database_communication_configuration database_communication_configurations = 1;
  if (cached_has_bits & 0x00000001u) {
    target = ::google::protobuf::internal::WireFormatLite::
      InternalWriteMessageToArray(
        1, this->_internal_database_communication_configurations(), deterministic, target);
  }

  if (_internal_metadata_.have_unknown_fields()) {
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields(), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:parkspace_proto.Database_communication_configuration_all)
  return target;
}

size_t Database_communication_configuration_all::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:parkspace_proto.Database_communication_configuration_all)
  size_t total_size = 0;

  if (_internal_metadata_.have_unknown_fields()) {
    total_size +=
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
        _internal_metadata_.unknown_fields());
  }
  // optional .parkspace_proto.Database_communication_configuration database_communication_configurations = 1;
  if (has_database_communication_configurations()) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::MessageSize(
        *database_communication_configurations_);
  }

  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void Database_communication_configuration_all::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:parkspace_proto.Database_communication_configuration_all)
  GOOGLE_DCHECK_NE(&from, this);
  const Database_communication_configuration_all* source =
      ::google::protobuf::internal::DynamicCastToGenerated<const Database_communication_configuration_all>(
          &from);
  if (source == NULL) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:parkspace_proto.Database_communication_configuration_all)
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:parkspace_proto.Database_communication_configuration_all)
    MergeFrom(*source);
  }
}

void Database_communication_configuration_all::MergeFrom(const Database_communication_configuration_all& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:parkspace_proto.Database_communication_configuration_all)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  if (from.has_database_communication_configurations()) {
    mutable_database_communication_configurations()->::parkspace_proto::Database_communication_configuration::MergeFrom(from.database_communication_configurations());
  }
}

void Database_communication_configuration_all::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:parkspace_proto.Database_communication_configuration_all)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

void Database_communication_configuration_all::CopyFrom(const Database_communication_configuration_all& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:parkspace_proto.Database_communication_configuration_all)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool Database_communication_configuration_all::IsInitialized() const {
  if (has_database_communication_configurations()) {
    if (!this->database_communication_configurations_->IsInitialized()) return false;
  }
  return true;
}

void Database_communication_configuration_all::Swap(Database_communication_configuration_all* other) {
  if (other == this) return;
  InternalSwap(other);
}
void Database_communication_configuration_all::InternalSwap(Database_communication_configuration_all* other) {
  using std::swap;
  swap(database_communication_configurations_, other->database_communication_configurations_);
  swap(_has_bits_[0], other->_has_bits_[0]);
  _internal_metadata_.Swap(&other->_internal_metadata_);
}

::google::protobuf::Metadata Database_communication_configuration_all::GetMetadata() const {
  protobuf_database_5fcommunication_5fconfiguration_2eproto::protobuf_AssignDescriptorsOnce();
  return ::protobuf_database_5fcommunication_5fconfiguration_2eproto::file_level_metadata[kIndexInFileMessages];
}


// @@protoc_insertion_point(namespace_scope)
}  // namespace parkspace_proto
namespace google {
namespace protobuf {
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::parkspace_proto::Database_communication_configuration* Arena::CreateMaybeMessage< ::parkspace_proto::Database_communication_configuration >(Arena* arena) {
  return Arena::CreateInternal< ::parkspace_proto::Database_communication_configuration >(arena);
}
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::parkspace_proto::Database_communication_configuration_all* Arena::CreateMaybeMessage< ::parkspace_proto::Database_communication_configuration_all >(Arena* arena) {
  return Arena::CreateInternal< ::parkspace_proto::Database_communication_configuration_all >(arena);
}
}  // namespace protobuf
}  // namespace google

// @@protoc_insertion_point(global_scope)
