00001
00002
00003 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
00004 #include "schema.pb.h"
00005 #include <google/protobuf/stubs/once.h>
00006 #include <google/protobuf/io/coded_stream.h>
00007 #include <google/protobuf/wire_format_lite_inl.h>
00008 #include <google/protobuf/descriptor.h>
00009 #include <google/protobuf/reflection_ops.h>
00010 #include <google/protobuf/wire_format.h>
00011
00012
00013 namespace drizzled {
00014 namespace message {
00015
00016 namespace {
00017
00018 const ::google::protobuf::Descriptor* Schema_descriptor_ = NULL;
00019 const ::google::protobuf::internal::GeneratedMessageReflection*
00020 Schema_reflection_ = NULL;
00021 const ::google::protobuf::Descriptor* Schema_Options_descriptor_ = NULL;
00022 const ::google::protobuf::internal::GeneratedMessageReflection*
00023 Schema_Options_reflection_ = NULL;
00024
00025 }
00026
00027
00028 void protobuf_AssignDesc_schema_2eproto() {
00029 protobuf_AddDesc_schema_2eproto();
00030 const ::google::protobuf::FileDescriptor* file =
00031 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
00032 "schema.proto");
00033 GOOGLE_CHECK(file != NULL);
00034 Schema_descriptor_ = file->message_type(0);
00035 static const int Schema_offsets_[10] = {
00036 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema, name_),
00037 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema, collation_),
00038 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema, engine_),
00039 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema, catalog_),
00040 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema, creation_timestamp_),
00041 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema, update_timestamp_),
00042 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema, uuid_),
00043 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema, version_),
00044 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema, options_),
00045 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema, replication_options_),
00046 };
00047 Schema_reflection_ =
00048 new ::google::protobuf::internal::GeneratedMessageReflection(
00049 Schema_descriptor_,
00050 Schema::default_instance_,
00051 Schema_offsets_,
00052 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema, _has_bits_[0]),
00053 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema, _unknown_fields_),
00054 -1,
00055 ::google::protobuf::DescriptorPool::generated_pool(),
00056 ::google::protobuf::MessageFactory::generated_factory(),
00057 sizeof(Schema));
00058 Schema_Options_descriptor_ = Schema_descriptor_->nested_type(0);
00059 static const int Schema_Options_offsets_[1] = {
00060 };
00061 Schema_Options_reflection_ =
00062 new ::google::protobuf::internal::GeneratedMessageReflection(
00063 Schema_Options_descriptor_,
00064 Schema_Options::default_instance_,
00065 Schema_Options_offsets_,
00066 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema_Options, _has_bits_[0]),
00067 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema_Options, _unknown_fields_),
00068 -1,
00069 ::google::protobuf::DescriptorPool::generated_pool(),
00070 ::google::protobuf::MessageFactory::generated_factory(),
00071 sizeof(Schema_Options));
00072 }
00073
00074 namespace {
00075
00076 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
00077 inline void protobuf_AssignDescriptorsOnce() {
00078 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
00079 &protobuf_AssignDesc_schema_2eproto);
00080 }
00081
00082 void protobuf_RegisterTypes(const ::std::string&) {
00083 protobuf_AssignDescriptorsOnce();
00084 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00085 Schema_descriptor_, &Schema::default_instance());
00086 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00087 Schema_Options_descriptor_, &Schema_Options::default_instance());
00088 }
00089
00090 }
00091
00092 void protobuf_ShutdownFile_schema_2eproto() {
00093 delete Schema::default_instance_;
00094 delete Schema_reflection_;
00095 delete Schema_Options::default_instance_;
00096 delete Schema_Options_reflection_;
00097 }
00098
00099 void protobuf_AddDesc_schema_2eproto() {
00100 static bool already_here = false;
00101 if (already_here) return;
00102 already_here = true;
00103 GOOGLE_PROTOBUF_VERIFY_VERSION;
00104
00105 ::drizzled::message::protobuf_AddDesc_engine_2eproto();
00106 ::drizzled::message::protobuf_AddDesc_replication_5foptions_2eproto();
00107 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
00108 "\n\014schema.proto\022\020drizzled.message\032\014engine"
00109 ".proto\032\031replication_options.proto\"\300\002\n\006Sc"
00110 "hema\022\014\n\004name\030\001 \002(\t\022\021\n\tcollation\030\002 \001(\t\022(\n"
00111 "\006engine\030\003 \002(\0132\030.drizzled.message.Engine\022"
00112 "\017\n\007catalog\030\004 \001(\t\022\035\n\022creation_timestamp\030\013"
00113 " \002(\004:\0010\022\033\n\020update_timestamp\030\014 \002(\004:\0010\022\014\n\004"
00114 "uuid\030\r \001(\t\022\017\n\007version\030\016 \001(\004\0221\n\007options\030\017"
00115 " \001(\0132 .drizzled.message.Schema.Options\022A"
00116 "\n\023replication_options\030\020 \001(\0132$.drizzled.m"
00117 "essage.ReplicationOptions\032\t\n\007OptionsB\'\n\024"
00118 "org.drizzle.messagesB\rSchemaMessageH\001", 437);
00119 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
00120 "schema.proto", &protobuf_RegisterTypes);
00121 Schema::default_instance_ = new Schema();
00122 Schema_Options::default_instance_ = new Schema_Options();
00123 Schema::default_instance_->InitAsDefaultInstance();
00124 Schema_Options::default_instance_->InitAsDefaultInstance();
00125 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_schema_2eproto);
00126 }
00127
00128
00129 struct StaticDescriptorInitializer_schema_2eproto {
00130 StaticDescriptorInitializer_schema_2eproto() {
00131 protobuf_AddDesc_schema_2eproto();
00132 }
00133 } static_descriptor_initializer_schema_2eproto_;
00134
00135
00136
00137
00138 #ifndef _MSC_VER
00139 #endif // !_MSC_VER
00140
00141 Schema_Options::Schema_Options()
00142 : ::google::protobuf::Message() {
00143 SharedCtor();
00144 }
00145
00146 void Schema_Options::InitAsDefaultInstance() {
00147 }
00148
00149 Schema_Options::Schema_Options(const Schema_Options& from)
00150 : ::google::protobuf::Message() {
00151 SharedCtor();
00152 MergeFrom(from);
00153 }
00154
00155 void Schema_Options::SharedCtor() {
00156 _cached_size_ = 0;
00157 ::memset(_has_bits_, 0, sizeof(_has_bits_));
00158 }
00159
00160 Schema_Options::~Schema_Options() {
00161 SharedDtor();
00162 }
00163
00164 void Schema_Options::SharedDtor() {
00165 if (this != default_instance_) {
00166 }
00167 }
00168
00169 void Schema_Options::SetCachedSize(int size) const {
00170 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
00171 _cached_size_ = size;
00172 GOOGLE_SAFE_CONCURRENT_WRITES_END();
00173 }
00174 const ::google::protobuf::Descriptor* Schema_Options::descriptor() {
00175 protobuf_AssignDescriptorsOnce();
00176 return Schema_Options_descriptor_;
00177 }
00178
00179 const Schema_Options& Schema_Options::default_instance() {
00180 if (default_instance_ == NULL) protobuf_AddDesc_schema_2eproto(); return *default_instance_;
00181 }
00182
00183 Schema_Options* Schema_Options::default_instance_ = NULL;
00184
00185 Schema_Options* Schema_Options::New() const {
00186 return new Schema_Options;
00187 }
00188
00189 void Schema_Options::Clear() {
00190 ::memset(_has_bits_, 0, sizeof(_has_bits_));
00191 mutable_unknown_fields()->Clear();
00192 }
00193
00194 bool Schema_Options::MergePartialFromCodedStream(
00195 ::google::protobuf::io::CodedInputStream* input) {
00196 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
00197 ::google::protobuf::uint32 tag;
00198 while ((tag = input->ReadTag()) != 0) {
00199 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00200 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
00201 return true;
00202 }
00203 DO_(::google::protobuf::internal::WireFormat::SkipField(
00204 input, tag, mutable_unknown_fields()));
00205 }
00206 return true;
00207 #undef DO_
00208 }
00209
00210 void Schema_Options::SerializeWithCachedSizes(
00211 ::google::protobuf::io::CodedOutputStream* output) const {
00212 if (!unknown_fields().empty()) {
00213 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
00214 unknown_fields(), output);
00215 }
00216 }
00217
00218 ::google::protobuf::uint8* Schema_Options::SerializeWithCachedSizesToArray(
00219 ::google::protobuf::uint8* target) const {
00220 if (!unknown_fields().empty()) {
00221 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
00222 unknown_fields(), target);
00223 }
00224 return target;
00225 }
00226
00227 int Schema_Options::ByteSize() const {
00228 int total_size = 0;
00229
00230 if (!unknown_fields().empty()) {
00231 total_size +=
00232 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
00233 unknown_fields());
00234 }
00235 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
00236 _cached_size_ = total_size;
00237 GOOGLE_SAFE_CONCURRENT_WRITES_END();
00238 return total_size;
00239 }
00240
00241 void Schema_Options::MergeFrom(const ::google::protobuf::Message& from) {
00242 GOOGLE_CHECK_NE(&from, this);
00243 const Schema_Options* source =
00244 ::google::protobuf::internal::dynamic_cast_if_available<const Schema_Options*>(
00245 &from);
00246 if (source == NULL) {
00247 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
00248 } else {
00249 MergeFrom(*source);
00250 }
00251 }
00252
00253 void Schema_Options::MergeFrom(const Schema_Options& from) {
00254 GOOGLE_CHECK_NE(&from, this);
00255 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
00256 }
00257
00258 void Schema_Options::CopyFrom(const ::google::protobuf::Message& from) {
00259 if (&from == this) return;
00260 Clear();
00261 MergeFrom(from);
00262 }
00263
00264 void Schema_Options::CopyFrom(const Schema_Options& from) {
00265 if (&from == this) return;
00266 Clear();
00267 MergeFrom(from);
00268 }
00269
00270 bool Schema_Options::IsInitialized() const {
00271
00272 return true;
00273 }
00274
00275 void Schema_Options::Swap(Schema_Options* other) {
00276 if (other != this) {
00277 _unknown_fields_.Swap(&other->_unknown_fields_);
00278 std::swap(_cached_size_, other->_cached_size_);
00279 }
00280 }
00281
00282 ::google::protobuf::Metadata Schema_Options::GetMetadata() const {
00283 protobuf_AssignDescriptorsOnce();
00284 ::google::protobuf::Metadata metadata;
00285 metadata.descriptor = Schema_Options_descriptor_;
00286 metadata.reflection = Schema_Options_reflection_;
00287 return metadata;
00288 }
00289
00290
00291
00292
00293 const ::std::string Schema::_default_name_;
00294 const ::std::string Schema::_default_collation_;
00295 const ::std::string Schema::_default_catalog_;
00296 const ::std::string Schema::_default_uuid_;
00297 #ifndef _MSC_VER
00298 const int Schema::kNameFieldNumber;
00299 const int Schema::kCollationFieldNumber;
00300 const int Schema::kEngineFieldNumber;
00301 const int Schema::kCatalogFieldNumber;
00302 const int Schema::kCreationTimestampFieldNumber;
00303 const int Schema::kUpdateTimestampFieldNumber;
00304 const int Schema::kUuidFieldNumber;
00305 const int Schema::kVersionFieldNumber;
00306 const int Schema::kOptionsFieldNumber;
00307 const int Schema::kReplicationOptionsFieldNumber;
00308 #endif // !_MSC_VER
00309
00310 Schema::Schema()
00311 : ::google::protobuf::Message() {
00312 SharedCtor();
00313 }
00314
00315 void Schema::InitAsDefaultInstance() {
00316 engine_ = const_cast< ::drizzled::message::Engine*>(&::drizzled::message::Engine::default_instance());
00317 options_ = const_cast< ::drizzled::message::Schema_Options*>(&::drizzled::message::Schema_Options::default_instance());
00318 replication_options_ = const_cast< ::drizzled::message::ReplicationOptions*>(&::drizzled::message::ReplicationOptions::default_instance());
00319 }
00320
00321 Schema::Schema(const Schema& from)
00322 : ::google::protobuf::Message() {
00323 SharedCtor();
00324 MergeFrom(from);
00325 }
00326
00327 void Schema::SharedCtor() {
00328 _cached_size_ = 0;
00329 name_ = const_cast< ::std::string*>(&_default_name_);
00330 collation_ = const_cast< ::std::string*>(&_default_collation_);
00331 engine_ = NULL;
00332 catalog_ = const_cast< ::std::string*>(&_default_catalog_);
00333 creation_timestamp_ = GOOGLE_ULONGLONG(0);
00334 update_timestamp_ = GOOGLE_ULONGLONG(0);
00335 uuid_ = const_cast< ::std::string*>(&_default_uuid_);
00336 version_ = GOOGLE_ULONGLONG(0);
00337 options_ = NULL;
00338 replication_options_ = NULL;
00339 ::memset(_has_bits_, 0, sizeof(_has_bits_));
00340 }
00341
00342 Schema::~Schema() {
00343 SharedDtor();
00344 }
00345
00346 void Schema::SharedDtor() {
00347 if (name_ != &_default_name_) {
00348 delete name_;
00349 }
00350 if (collation_ != &_default_collation_) {
00351 delete collation_;
00352 }
00353 if (catalog_ != &_default_catalog_) {
00354 delete catalog_;
00355 }
00356 if (uuid_ != &_default_uuid_) {
00357 delete uuid_;
00358 }
00359 if (this != default_instance_) {
00360 delete engine_;
00361 delete options_;
00362 delete replication_options_;
00363 }
00364 }
00365
00366 void Schema::SetCachedSize(int size) const {
00367 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
00368 _cached_size_ = size;
00369 GOOGLE_SAFE_CONCURRENT_WRITES_END();
00370 }
00371 const ::google::protobuf::Descriptor* Schema::descriptor() {
00372 protobuf_AssignDescriptorsOnce();
00373 return Schema_descriptor_;
00374 }
00375
00376 const Schema& Schema::default_instance() {
00377 if (default_instance_ == NULL) protobuf_AddDesc_schema_2eproto(); return *default_instance_;
00378 }
00379
00380 Schema* Schema::default_instance_ = NULL;
00381
00382 Schema* Schema::New() const {
00383 return new Schema;
00384 }
00385
00386 void Schema::Clear() {
00387 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00388 if (_has_bit(0)) {
00389 if (name_ != &_default_name_) {
00390 name_->clear();
00391 }
00392 }
00393 if (_has_bit(1)) {
00394 if (collation_ != &_default_collation_) {
00395 collation_->clear();
00396 }
00397 }
00398 if (_has_bit(2)) {
00399 if (engine_ != NULL) engine_->::drizzled::message::Engine::Clear();
00400 }
00401 if (_has_bit(3)) {
00402 if (catalog_ != &_default_catalog_) {
00403 catalog_->clear();
00404 }
00405 }
00406 creation_timestamp_ = GOOGLE_ULONGLONG(0);
00407 update_timestamp_ = GOOGLE_ULONGLONG(0);
00408 if (_has_bit(6)) {
00409 if (uuid_ != &_default_uuid_) {
00410 uuid_->clear();
00411 }
00412 }
00413 version_ = GOOGLE_ULONGLONG(0);
00414 }
00415 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
00416 if (_has_bit(8)) {
00417 if (options_ != NULL) options_->::drizzled::message::Schema_Options::Clear();
00418 }
00419 if (_has_bit(9)) {
00420 if (replication_options_ != NULL) replication_options_->::drizzled::message::ReplicationOptions::Clear();
00421 }
00422 }
00423 ::memset(_has_bits_, 0, sizeof(_has_bits_));
00424 mutable_unknown_fields()->Clear();
00425 }
00426
00427 bool Schema::MergePartialFromCodedStream(
00428 ::google::protobuf::io::CodedInputStream* input) {
00429 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
00430 ::google::protobuf::uint32 tag;
00431 while ((tag = input->ReadTag()) != 0) {
00432 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
00433
00434 case 1: {
00435 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00436 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00437 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
00438 input, this->mutable_name()));
00439 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00440 this->name().data(), this->name().length(),
00441 ::google::protobuf::internal::WireFormat::PARSE);
00442 } else {
00443 goto handle_uninterpreted;
00444 }
00445 if (input->ExpectTag(18)) goto parse_collation;
00446 break;
00447 }
00448
00449
00450 case 2: {
00451 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00452 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00453 parse_collation:
00454 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
00455 input, this->mutable_collation()));
00456 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00457 this->collation().data(), this->collation().length(),
00458 ::google::protobuf::internal::WireFormat::PARSE);
00459 } else {
00460 goto handle_uninterpreted;
00461 }
00462 if (input->ExpectTag(26)) goto parse_engine;
00463 break;
00464 }
00465
00466
00467 case 3: {
00468 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00469 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00470 parse_engine:
00471 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
00472 input, mutable_engine()));
00473 } else {
00474 goto handle_uninterpreted;
00475 }
00476 if (input->ExpectTag(34)) goto parse_catalog;
00477 break;
00478 }
00479
00480
00481 case 4: {
00482 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00483 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00484 parse_catalog:
00485 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
00486 input, this->mutable_catalog()));
00487 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00488 this->catalog().data(), this->catalog().length(),
00489 ::google::protobuf::internal::WireFormat::PARSE);
00490 } else {
00491 goto handle_uninterpreted;
00492 }
00493 if (input->ExpectTag(88)) goto parse_creation_timestamp;
00494 break;
00495 }
00496
00497
00498 case 11: {
00499 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00500 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
00501 parse_creation_timestamp:
00502 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
00503 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
00504 input, &creation_timestamp_)));
00505 _set_bit(4);
00506 } else {
00507 goto handle_uninterpreted;
00508 }
00509 if (input->ExpectTag(96)) goto parse_update_timestamp;
00510 break;
00511 }
00512
00513
00514 case 12: {
00515 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00516 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
00517 parse_update_timestamp:
00518 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
00519 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
00520 input, &update_timestamp_)));
00521 _set_bit(5);
00522 } else {
00523 goto handle_uninterpreted;
00524 }
00525 if (input->ExpectTag(106)) goto parse_uuid;
00526 break;
00527 }
00528
00529
00530 case 13: {
00531 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00532 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00533 parse_uuid:
00534 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
00535 input, this->mutable_uuid()));
00536 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00537 this->uuid().data(), this->uuid().length(),
00538 ::google::protobuf::internal::WireFormat::PARSE);
00539 } else {
00540 goto handle_uninterpreted;
00541 }
00542 if (input->ExpectTag(112)) goto parse_version;
00543 break;
00544 }
00545
00546
00547 case 14: {
00548 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00549 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
00550 parse_version:
00551 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
00552 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
00553 input, &version_)));
00554 _set_bit(7);
00555 } else {
00556 goto handle_uninterpreted;
00557 }
00558 if (input->ExpectTag(122)) goto parse_options;
00559 break;
00560 }
00561
00562
00563 case 15: {
00564 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00565 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00566 parse_options:
00567 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
00568 input, mutable_options()));
00569 } else {
00570 goto handle_uninterpreted;
00571 }
00572 if (input->ExpectTag(130)) goto parse_replication_options;
00573 break;
00574 }
00575
00576
00577 case 16: {
00578 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00579 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00580 parse_replication_options:
00581 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
00582 input, mutable_replication_options()));
00583 } else {
00584 goto handle_uninterpreted;
00585 }
00586 if (input->ExpectAtEnd()) return true;
00587 break;
00588 }
00589
00590 default: {
00591 handle_uninterpreted:
00592 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00593 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
00594 return true;
00595 }
00596 DO_(::google::protobuf::internal::WireFormat::SkipField(
00597 input, tag, mutable_unknown_fields()));
00598 break;
00599 }
00600 }
00601 }
00602 return true;
00603 #undef DO_
00604 }
00605
00606 void Schema::SerializeWithCachedSizes(
00607 ::google::protobuf::io::CodedOutputStream* output) const {
00608
00609 if (_has_bit(0)) {
00610 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00611 this->name().data(), this->name().length(),
00612 ::google::protobuf::internal::WireFormat::SERIALIZE);
00613 ::google::protobuf::internal::WireFormatLite::WriteString(
00614 1, this->name(), output);
00615 }
00616
00617
00618 if (_has_bit(1)) {
00619 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00620 this->collation().data(), this->collation().length(),
00621 ::google::protobuf::internal::WireFormat::SERIALIZE);
00622 ::google::protobuf::internal::WireFormatLite::WriteString(
00623 2, this->collation(), output);
00624 }
00625
00626
00627 if (_has_bit(2)) {
00628 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
00629 3, this->engine(), output);
00630 }
00631
00632
00633 if (_has_bit(3)) {
00634 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00635 this->catalog().data(), this->catalog().length(),
00636 ::google::protobuf::internal::WireFormat::SERIALIZE);
00637 ::google::protobuf::internal::WireFormatLite::WriteString(
00638 4, this->catalog(), output);
00639 }
00640
00641
00642 if (_has_bit(4)) {
00643 ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->creation_timestamp(), output);
00644 }
00645
00646
00647 if (_has_bit(5)) {
00648 ::google::protobuf::internal::WireFormatLite::WriteUInt64(12, this->update_timestamp(), output);
00649 }
00650
00651
00652 if (_has_bit(6)) {
00653 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00654 this->uuid().data(), this->uuid().length(),
00655 ::google::protobuf::internal::WireFormat::SERIALIZE);
00656 ::google::protobuf::internal::WireFormatLite::WriteString(
00657 13, this->uuid(), output);
00658 }
00659
00660
00661 if (_has_bit(7)) {
00662 ::google::protobuf::internal::WireFormatLite::WriteUInt64(14, this->version(), output);
00663 }
00664
00665
00666 if (_has_bit(8)) {
00667 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
00668 15, this->options(), output);
00669 }
00670
00671
00672 if (_has_bit(9)) {
00673 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
00674 16, this->replication_options(), output);
00675 }
00676
00677 if (!unknown_fields().empty()) {
00678 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
00679 unknown_fields(), output);
00680 }
00681 }
00682
00683 ::google::protobuf::uint8* Schema::SerializeWithCachedSizesToArray(
00684 ::google::protobuf::uint8* target) const {
00685
00686 if (_has_bit(0)) {
00687 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00688 this->name().data(), this->name().length(),
00689 ::google::protobuf::internal::WireFormat::SERIALIZE);
00690 target =
00691 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
00692 1, this->name(), target);
00693 }
00694
00695
00696 if (_has_bit(1)) {
00697 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00698 this->collation().data(), this->collation().length(),
00699 ::google::protobuf::internal::WireFormat::SERIALIZE);
00700 target =
00701 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
00702 2, this->collation(), target);
00703 }
00704
00705
00706 if (_has_bit(2)) {
00707 target = ::google::protobuf::internal::WireFormatLite::
00708 WriteMessageNoVirtualToArray(
00709 3, this->engine(), target);
00710 }
00711
00712
00713 if (_has_bit(3)) {
00714 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00715 this->catalog().data(), this->catalog().length(),
00716 ::google::protobuf::internal::WireFormat::SERIALIZE);
00717 target =
00718 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
00719 4, this->catalog(), target);
00720 }
00721
00722
00723 if (_has_bit(4)) {
00724 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->creation_timestamp(), target);
00725 }
00726
00727
00728 if (_has_bit(5)) {
00729 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(12, this->update_timestamp(), target);
00730 }
00731
00732
00733 if (_has_bit(6)) {
00734 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00735 this->uuid().data(), this->uuid().length(),
00736 ::google::protobuf::internal::WireFormat::SERIALIZE);
00737 target =
00738 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
00739 13, this->uuid(), target);
00740 }
00741
00742
00743 if (_has_bit(7)) {
00744 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(14, this->version(), target);
00745 }
00746
00747
00748 if (_has_bit(8)) {
00749 target = ::google::protobuf::internal::WireFormatLite::
00750 WriteMessageNoVirtualToArray(
00751 15, this->options(), target);
00752 }
00753
00754
00755 if (_has_bit(9)) {
00756 target = ::google::protobuf::internal::WireFormatLite::
00757 WriteMessageNoVirtualToArray(
00758 16, this->replication_options(), target);
00759 }
00760
00761 if (!unknown_fields().empty()) {
00762 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
00763 unknown_fields(), target);
00764 }
00765 return target;
00766 }
00767
00768 int Schema::ByteSize() const {
00769 int total_size = 0;
00770
00771 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00772
00773 if (has_name()) {
00774 total_size += 1 +
00775 ::google::protobuf::internal::WireFormatLite::StringSize(
00776 this->name());
00777 }
00778
00779
00780 if (has_collation()) {
00781 total_size += 1 +
00782 ::google::protobuf::internal::WireFormatLite::StringSize(
00783 this->collation());
00784 }
00785
00786
00787 if (has_engine()) {
00788 total_size += 1 +
00789 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
00790 this->engine());
00791 }
00792
00793
00794 if (has_catalog()) {
00795 total_size += 1 +
00796 ::google::protobuf::internal::WireFormatLite::StringSize(
00797 this->catalog());
00798 }
00799
00800
00801 if (has_creation_timestamp()) {
00802 total_size += 1 +
00803 ::google::protobuf::internal::WireFormatLite::UInt64Size(
00804 this->creation_timestamp());
00805 }
00806
00807
00808 if (has_update_timestamp()) {
00809 total_size += 1 +
00810 ::google::protobuf::internal::WireFormatLite::UInt64Size(
00811 this->update_timestamp());
00812 }
00813
00814
00815 if (has_uuid()) {
00816 total_size += 1 +
00817 ::google::protobuf::internal::WireFormatLite::StringSize(
00818 this->uuid());
00819 }
00820
00821
00822 if (has_version()) {
00823 total_size += 1 +
00824 ::google::protobuf::internal::WireFormatLite::UInt64Size(
00825 this->version());
00826 }
00827
00828 }
00829 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
00830
00831 if (has_options()) {
00832 total_size += 1 +
00833 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
00834 this->options());
00835 }
00836
00837
00838 if (has_replication_options()) {
00839 total_size += 2 +
00840 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
00841 this->replication_options());
00842 }
00843
00844 }
00845 if (!unknown_fields().empty()) {
00846 total_size +=
00847 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
00848 unknown_fields());
00849 }
00850 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
00851 _cached_size_ = total_size;
00852 GOOGLE_SAFE_CONCURRENT_WRITES_END();
00853 return total_size;
00854 }
00855
00856 void Schema::MergeFrom(const ::google::protobuf::Message& from) {
00857 GOOGLE_CHECK_NE(&from, this);
00858 const Schema* source =
00859 ::google::protobuf::internal::dynamic_cast_if_available<const Schema*>(
00860 &from);
00861 if (source == NULL) {
00862 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
00863 } else {
00864 MergeFrom(*source);
00865 }
00866 }
00867
00868 void Schema::MergeFrom(const Schema& from) {
00869 GOOGLE_CHECK_NE(&from, this);
00870 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00871 if (from._has_bit(0)) {
00872 set_name(from.name());
00873 }
00874 if (from._has_bit(1)) {
00875 set_collation(from.collation());
00876 }
00877 if (from._has_bit(2)) {
00878 mutable_engine()->::drizzled::message::Engine::MergeFrom(from.engine());
00879 }
00880 if (from._has_bit(3)) {
00881 set_catalog(from.catalog());
00882 }
00883 if (from._has_bit(4)) {
00884 set_creation_timestamp(from.creation_timestamp());
00885 }
00886 if (from._has_bit(5)) {
00887 set_update_timestamp(from.update_timestamp());
00888 }
00889 if (from._has_bit(6)) {
00890 set_uuid(from.uuid());
00891 }
00892 if (from._has_bit(7)) {
00893 set_version(from.version());
00894 }
00895 }
00896 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
00897 if (from._has_bit(8)) {
00898 mutable_options()->::drizzled::message::Schema_Options::MergeFrom(from.options());
00899 }
00900 if (from._has_bit(9)) {
00901 mutable_replication_options()->::drizzled::message::ReplicationOptions::MergeFrom(from.replication_options());
00902 }
00903 }
00904 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
00905 }
00906
00907 void Schema::CopyFrom(const ::google::protobuf::Message& from) {
00908 if (&from == this) return;
00909 Clear();
00910 MergeFrom(from);
00911 }
00912
00913 void Schema::CopyFrom(const Schema& from) {
00914 if (&from == this) return;
00915 Clear();
00916 MergeFrom(from);
00917 }
00918
00919 bool Schema::IsInitialized() const {
00920 if ((_has_bits_[0] & 0x00000035) != 0x00000035) return false;
00921
00922 if (has_engine()) {
00923 if (!this->engine().IsInitialized()) return false;
00924 }
00925 return true;
00926 }
00927
00928 void Schema::Swap(Schema* other) {
00929 if (other != this) {
00930 std::swap(name_, other->name_);
00931 std::swap(collation_, other->collation_);
00932 std::swap(engine_, other->engine_);
00933 std::swap(catalog_, other->catalog_);
00934 std::swap(creation_timestamp_, other->creation_timestamp_);
00935 std::swap(update_timestamp_, other->update_timestamp_);
00936 std::swap(uuid_, other->uuid_);
00937 std::swap(version_, other->version_);
00938 std::swap(options_, other->options_);
00939 std::swap(replication_options_, other->replication_options_);
00940 std::swap(_has_bits_[0], other->_has_bits_[0]);
00941 _unknown_fields_.Swap(&other->_unknown_fields_);
00942 std::swap(_cached_size_, other->_cached_size_);
00943 }
00944 }
00945
00946 ::google::protobuf::Metadata Schema::GetMetadata() const {
00947 protobuf_AssignDescriptorsOnce();
00948 ::google::protobuf::Metadata metadata;
00949 metadata.descriptor = Schema_descriptor_;
00950 metadata.reflection = Schema_reflection_;
00951 return metadata;
00952 }
00953
00954
00955
00956
00957 }
00958 }
00959
00960