|
@@ -25,6 +25,11 @@ class database_configDefaultTypeInternal {
|
|
|
::google::protobuf::internal::ExplicitlyConstructed<database_config>
|
|
|
_instance;
|
|
|
} _database_config_default_instance_;
|
|
|
+class garage_configDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<garage_config>
|
|
|
+ _instance;
|
|
|
+} _garage_config_default_instance_;
|
|
|
} // namespace parkspace_proto
|
|
|
namespace protobuf_parkspace_5fparameter_2eproto {
|
|
|
void InitDefaultsdatabase_configImpl() {
|
|
@@ -48,7 +53,29 @@ void InitDefaultsdatabase_config() {
|
|
|
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsdatabase_configImpl);
|
|
|
}
|
|
|
|
|
|
-::google::protobuf::Metadata file_level_metadata[1];
|
|
|
+void InitDefaultsgarage_configImpl() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
+#else
|
|
|
+ ::google::protobuf::internal::InitProtobufDefaults();
|
|
|
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
+ protobuf_parkspace_5fparameter_2eproto::InitDefaultsdatabase_config();
|
|
|
+ {
|
|
|
+ void* ptr = &::parkspace_proto::_garage_config_default_instance_;
|
|
|
+ new (ptr) ::parkspace_proto::garage_config();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::parkspace_proto::garage_config::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+void InitDefaultsgarage_config() {
|
|
|
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsgarage_configImpl);
|
|
|
+}
|
|
|
+
|
|
|
+::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_config, _has_bits_),
|
|
@@ -68,13 +95,26 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
2,
|
|
|
3,
|
|
|
5,
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::garage_config, _has_bits_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::garage_config, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::garage_config, block_size_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::garage_config, terminal_size_in_block_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_proto::garage_config, db_config_),
|
|
|
+ 1,
|
|
|
+ 2,
|
|
|
+ 0,
|
|
|
};
|
|
|
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
{ 0, 11, sizeof(::parkspace_proto::database_config)},
|
|
|
+ { 17, 25, sizeof(::parkspace_proto::garage_config)},
|
|
|
};
|
|
|
|
|
|
static ::google::protobuf::Message const * const file_default_instances[] = {
|
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::parkspace_proto::_database_config_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::parkspace_proto::_garage_config_default_instance_),
|
|
|
};
|
|
|
|
|
|
void protobuf_AssignDescriptors() {
|
|
@@ -93,7 +133,7 @@ void protobuf_AssignDescriptorsOnce() {
|
|
|
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, 1);
|
|
|
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2);
|
|
|
}
|
|
|
|
|
|
void AddDescriptorsImpl() {
|
|
@@ -103,10 +143,13 @@ void AddDescriptorsImpl() {
|
|
|
"roto\"\207\001\n\017database_config\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"
|
|
|
"\tdb_passwd\030\004 \001(\t:\000\022\017\n\007db_name\030\005 \002(\t\022\031\n\021d"
|
|
|
- "b_conn_pool_size\030\006 \001(\003"
|
|
|
+ "b_conn_pool_size\030\006 \001(\003\"x\n\rgarage_config\022"
|
|
|
+ "\022\n\nblock_size\030\001 \002(\003\022\036\n\026terminal_size_in_"
|
|
|
+ "block\030\002 \002(\003\0223\n\tdb_config\030\003 \002(\0132 .parkspa"
|
|
|
+ "ce_proto.database_config"
|
|
|
};
|
|
|
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
|
|
- descriptor, 182);
|
|
|
+ descriptor, 304);
|
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
|
|
"parkspace_parameter.proto", &protobuf_RegisterTypes);
|
|
|
}
|
|
@@ -689,6 +732,376 @@ void database_config::InternalSwap(database_config* other) {
|
|
|
}
|
|
|
|
|
|
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void garage_config::InitAsDefaultInstance() {
|
|
|
+ ::parkspace_proto::_garage_config_default_instance_._instance.get_mutable()->db_config_ = const_cast< ::parkspace_proto::database_config*>(
|
|
|
+ ::parkspace_proto::database_config::internal_default_instance());
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int garage_config::kBlockSizeFieldNumber;
|
|
|
+const int garage_config::kTerminalSizeInBlockFieldNumber;
|
|
|
+const int garage_config::kDbConfigFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+garage_config::garage_config()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
+ ::protobuf_parkspace_5fparameter_2eproto::InitDefaultsgarage_config();
|
|
|
+ }
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:parkspace_proto.garage_config)
|
|
|
+}
|
|
|
+garage_config::garage_config(const garage_config& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL),
|
|
|
+ _has_bits_(from._has_bits_),
|
|
|
+ _cached_size_(0) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ if (from.has_db_config()) {
|
|
|
+ db_config_ = new ::parkspace_proto::database_config(*from.db_config_);
|
|
|
+ } else {
|
|
|
+ db_config_ = NULL;
|
|
|
+ }
|
|
|
+ ::memcpy(&block_size_, &from.block_size_,
|
|
|
+ static_cast<size_t>(reinterpret_cast<char*>(&terminal_size_in_block_) -
|
|
|
+ reinterpret_cast<char*>(&block_size_)) + sizeof(terminal_size_in_block_));
|
|
|
+ // @@protoc_insertion_point(copy_constructor:parkspace_proto.garage_config)
|
|
|
+}
|
|
|
+
|
|
|
+void garage_config::SharedCtor() {
|
|
|
+ _cached_size_ = 0;
|
|
|
+ ::memset(&db_config_, 0, static_cast<size_t>(
|
|
|
+ reinterpret_cast<char*>(&terminal_size_in_block_) -
|
|
|
+ reinterpret_cast<char*>(&db_config_)) + sizeof(terminal_size_in_block_));
|
|
|
+}
|
|
|
+
|
|
|
+garage_config::~garage_config() {
|
|
|
+ // @@protoc_insertion_point(destructor:parkspace_proto.garage_config)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void garage_config::SharedDtor() {
|
|
|
+ if (this != internal_default_instance()) delete db_config_;
|
|
|
+}
|
|
|
+
|
|
|
+void garage_config::SetCachedSize(int size) const {
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
+ _cached_size_ = size;
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* garage_config::descriptor() {
|
|
|
+ ::protobuf_parkspace_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_parkspace_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const garage_config& garage_config::default_instance() {
|
|
|
+ ::protobuf_parkspace_5fparameter_2eproto::InitDefaultsgarage_config();
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+garage_config* garage_config::New(::google::protobuf::Arena* arena) const {
|
|
|
+ garage_config* n = new garage_config;
|
|
|
+ if (arena != NULL) {
|
|
|
+ arena->Own(n);
|
|
|
+ }
|
|
|
+ return n;
|
|
|
+}
|
|
|
+
|
|
|
+void garage_config::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:parkspace_proto.garage_config)
|
|
|
+ ::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(db_config_ != NULL);
|
|
|
+ db_config_->Clear();
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 6u) {
|
|
|
+ ::memset(&block_size_, 0, static_cast<size_t>(
|
|
|
+ reinterpret_cast<char*>(&terminal_size_in_block_) -
|
|
|
+ reinterpret_cast<char*>(&block_size_)) + sizeof(terminal_size_in_block_));
|
|
|
+ }
|
|
|
+ _has_bits_.Clear();
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool garage_config::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.garage_config)
|
|
|
+ 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 int64 block_size = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
|
|
+ set_has_block_size();
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
|
|
|
+ input, &block_size_)));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ // required int64 terminal_size_in_block = 2;
|
|
|
+ case 2: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
|
|
|
+ set_has_terminal_size_in_block();
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
|
|
|
+ input, &terminal_size_in_block_)));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ // required .parkspace_proto.database_config db_config = 3;
|
|
|
+ case 3: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
|
+ input, mutable_db_config()));
|
|
|
+ } 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.garage_config)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:parkspace_proto.garage_config)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void garage_config::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:parkspace_proto.garage_config)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ cached_has_bits = _has_bits_[0];
|
|
|
+ // required int64 block_size = 1;
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->block_size(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ // required int64 terminal_size_in_block = 2;
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->terminal_size_in_block(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ // required .parkspace_proto.database_config db_config = 3;
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
+ 3, *this->db_config_, output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (_internal_metadata_.have_unknown_fields()) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ _internal_metadata_.unknown_fields(), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:parkspace_proto.garage_config)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* garage_config::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:parkspace_proto.garage_config)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ cached_has_bits = _has_bits_[0];
|
|
|
+ // required int64 block_size = 1;
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->block_size(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // required int64 terminal_size_in_block = 2;
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->terminal_size_in_block(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // required .parkspace_proto.database_config db_config = 3;
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::
|
|
|
+ InternalWriteMessageToArray(
|
|
|
+ 3, *this->db_config_, 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.garage_config)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t garage_config::RequiredFieldsByteSizeFallback() const {
|
|
|
+// @@protoc_insertion_point(required_fields_byte_size_fallback_start:parkspace_proto.garage_config)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if (has_db_config()) {
|
|
|
+ // required .parkspace_proto.database_config db_config = 3;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
+ *this->db_config_);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (has_block_size()) {
|
|
|
+ // required int64 block_size = 1;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
|
+ this->block_size());
|
|
|
+ }
|
|
|
+
|
|
|
+ if (has_terminal_size_in_block()) {
|
|
|
+ // required int64 terminal_size_in_block = 2;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
|
+ this->terminal_size_in_block());
|
|
|
+ }
|
|
|
+
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+size_t garage_config::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:parkspace_proto.garage_config)
|
|
|
+ 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] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
|
|
|
+ // required .parkspace_proto.database_config db_config = 3;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
+ *this->db_config_);
|
|
|
+
|
|
|
+ // required int64 block_size = 1;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
|
+ this->block_size());
|
|
|
+
|
|
|
+ // required int64 terminal_size_in_block = 2;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
|
+ this->terminal_size_in_block());
|
|
|
+
|
|
|
+ } else {
|
|
|
+ total_size += RequiredFieldsByteSizeFallback();
|
|
|
+ }
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
+ _cached_size_ = cached_size;
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void garage_config::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:parkspace_proto.garage_config)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const garage_config* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const garage_config>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:parkspace_proto.garage_config)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:parkspace_proto.garage_config)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void garage_config::MergeFrom(const garage_config& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:parkspace_proto.garage_config)
|
|
|
+ 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 & 7u) {
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ mutable_db_config()->::parkspace_proto::database_config::MergeFrom(from.db_config());
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ block_size_ = from.block_size_;
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ terminal_size_in_block_ = from.terminal_size_in_block_;
|
|
|
+ }
|
|
|
+ _has_bits_[0] |= cached_has_bits;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void garage_config::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:parkspace_proto.garage_config)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void garage_config::CopyFrom(const garage_config& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:parkspace_proto.garage_config)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool garage_config::IsInitialized() const {
|
|
|
+ if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
|
|
|
+ if (has_db_config()) {
|
|
|
+ if (!this->db_config_->IsInitialized()) return false;
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void garage_config::Swap(garage_config* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void garage_config::InternalSwap(garage_config* other) {
|
|
|
+ using std::swap;
|
|
|
+ swap(db_config_, other->db_config_);
|
|
|
+ swap(block_size_, other->block_size_);
|
|
|
+ swap(terminal_size_in_block_, other->terminal_size_in_block_);
|
|
|
+ swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+ swap(_cached_size_, other->_cached_size_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata garage_config::GetMetadata() const {
|
|
|
+ protobuf_parkspace_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_parkspace_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
} // namespace parkspace_proto
|
|
|
|