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