Drizzled Public API Documentation

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