Drizzled Public API Documentation

catalog.pb.cc

00001 // Generated by the protocol buffer compiler.  DO NOT EDIT!
00002 
00003 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
00004 #include "catalog.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 // @@protoc_insertion_point(includes)
00012 
00013 namespace drizzled {
00014 namespace message {
00015 
00016 namespace {
00017 
00018 const ::google::protobuf::Descriptor* Catalog_descriptor_ = NULL;
00019 const ::google::protobuf::internal::GeneratedMessageReflection*
00020   Catalog_reflection_ = NULL;
00021 
00022 }  // namespace
00023 
00024 
00025 void protobuf_AssignDesc_catalog_2eproto() {
00026   protobuf_AddDesc_catalog_2eproto();
00027   const ::google::protobuf::FileDescriptor* file =
00028     ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
00029       "catalog.proto");
00030   GOOGLE_CHECK(file != NULL);
00031   Catalog_descriptor_ = file->message_type(0);
00032   static const int Catalog_offsets_[6] = {
00033     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Catalog, name_),
00034     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Catalog, engine_),
00035     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Catalog, creation_timestamp_),
00036     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Catalog, update_timestamp_),
00037     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Catalog, uuid_),
00038     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Catalog, version_),
00039   };
00040   Catalog_reflection_ =
00041     new ::google::protobuf::internal::GeneratedMessageReflection(
00042       Catalog_descriptor_,
00043       Catalog::default_instance_,
00044       Catalog_offsets_,
00045       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Catalog, _has_bits_[0]),
00046       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Catalog, _unknown_fields_),
00047       -1,
00048       ::google::protobuf::DescriptorPool::generated_pool(),
00049       ::google::protobuf::MessageFactory::generated_factory(),
00050       sizeof(Catalog));
00051 }
00052 
00053 namespace {
00054 
00055 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
00056 inline void protobuf_AssignDescriptorsOnce() {
00057   ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
00058                  &protobuf_AssignDesc_catalog_2eproto);
00059 }
00060 
00061 void protobuf_RegisterTypes(const ::std::string&) {
00062   protobuf_AssignDescriptorsOnce();
00063   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00064     Catalog_descriptor_, &Catalog::default_instance());
00065 }
00066 
00067 }  // namespace
00068 
00069 void protobuf_ShutdownFile_catalog_2eproto() {
00070   delete Catalog::default_instance_;
00071   delete Catalog_reflection_;
00072 }
00073 
00074 void protobuf_AddDesc_catalog_2eproto() {
00075   static bool already_here = false;
00076   if (already_here) return;
00077   already_here = true;
00078   GOOGLE_PROTOBUF_VERIFY_VERSION;
00079 
00080   ::drizzled::message::protobuf_AddDesc_engine_2eproto();
00081   ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
00082     "\n\rcatalog.proto\022\020drizzled.message\032\014engin"
00083     "e.proto\"\234\001\n\007Catalog\022\014\n\004name\030\001 \002(\t\022(\n\006eng"
00084     "ine\030\003 \002(\0132\030.drizzled.message.Engine\022\035\n\022c"
00085     "reation_timestamp\030\013 \002(\004:\0010\022\033\n\020update_tim"
00086     "estamp\030\014 \002(\004:\0010\022\014\n\004uuid\030\r \001(\t\022\017\n\007version"
00087     "\030\016 \001(\004B(\n\024org.drizzle.messagesB\016CatalogM"
00088     "essageH\001", 248);
00089   ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
00090     "catalog.proto", &protobuf_RegisterTypes);
00091   Catalog::default_instance_ = new Catalog();
00092   Catalog::default_instance_->InitAsDefaultInstance();
00093   ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_catalog_2eproto);
00094 }
00095 
00096 // Force AddDescriptors() to be called at static initialization time.
00097 struct StaticDescriptorInitializer_catalog_2eproto {
00098   StaticDescriptorInitializer_catalog_2eproto() {
00099     protobuf_AddDesc_catalog_2eproto();
00100   }
00101 } static_descriptor_initializer_catalog_2eproto_;
00102 
00103 
00104 // ===================================================================
00105 
00106 const ::std::string Catalog::_default_name_;
00107 const ::std::string Catalog::_default_uuid_;
00108 #ifndef _MSC_VER
00109 const int Catalog::kNameFieldNumber;
00110 const int Catalog::kEngineFieldNumber;
00111 const int Catalog::kCreationTimestampFieldNumber;
00112 const int Catalog::kUpdateTimestampFieldNumber;
00113 const int Catalog::kUuidFieldNumber;
00114 const int Catalog::kVersionFieldNumber;
00115 #endif  // !_MSC_VER
00116 
00117 Catalog::Catalog()
00118   : ::google::protobuf::Message() {
00119   SharedCtor();
00120 }
00121 
00122 void Catalog::InitAsDefaultInstance() {
00123   engine_ = const_cast< ::drizzled::message::Engine*>(&::drizzled::message::Engine::default_instance());
00124 }
00125 
00126 Catalog::Catalog(const Catalog& from)
00127   : ::google::protobuf::Message() {
00128   SharedCtor();
00129   MergeFrom(from);
00130 }
00131 
00132 void Catalog::SharedCtor() {
00133   _cached_size_ = 0;
00134   name_ = const_cast< ::std::string*>(&_default_name_);
00135   engine_ = NULL;
00136   creation_timestamp_ = GOOGLE_ULONGLONG(0);
00137   update_timestamp_ = GOOGLE_ULONGLONG(0);
00138   uuid_ = const_cast< ::std::string*>(&_default_uuid_);
00139   version_ = GOOGLE_ULONGLONG(0);
00140   ::memset(_has_bits_, 0, sizeof(_has_bits_));
00141 }
00142 
00143 Catalog::~Catalog() {
00144   SharedDtor();
00145 }
00146 
00147 void Catalog::SharedDtor() {
00148   if (name_ != &_default_name_) {
00149     delete name_;
00150   }
00151   if (uuid_ != &_default_uuid_) {
00152     delete uuid_;
00153   }
00154   if (this != default_instance_) {
00155     delete engine_;
00156   }
00157 }
00158 
00159 void Catalog::SetCachedSize(int size) const {
00160   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
00161   _cached_size_ = size;
00162   GOOGLE_SAFE_CONCURRENT_WRITES_END();
00163 }
00164 const ::google::protobuf::Descriptor* Catalog::descriptor() {
00165   protobuf_AssignDescriptorsOnce();
00166   return Catalog_descriptor_;
00167 }
00168 
00169 const Catalog& Catalog::default_instance() {
00170   if (default_instance_ == NULL) protobuf_AddDesc_catalog_2eproto();  return *default_instance_;
00171 }
00172 
00173 Catalog* Catalog::default_instance_ = NULL;
00174 
00175 Catalog* Catalog::New() const {
00176   return new Catalog;
00177 }
00178 
00179 void Catalog::Clear() {
00180   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00181     if (_has_bit(0)) {
00182       if (name_ != &_default_name_) {
00183         name_->clear();
00184       }
00185     }
00186     if (_has_bit(1)) {
00187       if (engine_ != NULL) engine_->::drizzled::message::Engine::Clear();
00188     }
00189     creation_timestamp_ = GOOGLE_ULONGLONG(0);
00190     update_timestamp_ = GOOGLE_ULONGLONG(0);
00191     if (_has_bit(4)) {
00192       if (uuid_ != &_default_uuid_) {
00193         uuid_->clear();
00194       }
00195     }
00196     version_ = GOOGLE_ULONGLONG(0);
00197   }
00198   ::memset(_has_bits_, 0, sizeof(_has_bits_));
00199   mutable_unknown_fields()->Clear();
00200 }
00201 
00202 bool Catalog::MergePartialFromCodedStream(
00203     ::google::protobuf::io::CodedInputStream* input) {
00204 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
00205   ::google::protobuf::uint32 tag;
00206   while ((tag = input->ReadTag()) != 0) {
00207     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
00208       // required string name = 1;
00209       case 1: {
00210         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00211             ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00212           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
00213                 input, this->mutable_name()));
00214           ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00215             this->name().data(), this->name().length(),
00216             ::google::protobuf::internal::WireFormat::PARSE);
00217         } else {
00218           goto handle_uninterpreted;
00219         }
00220         if (input->ExpectTag(26)) goto parse_engine;
00221         break;
00222       }
00223       
00224       // required .drizzled.message.Engine engine = 3;
00225       case 3: {
00226         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00227             ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00228          parse_engine:
00229           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
00230                input, mutable_engine()));
00231         } else {
00232           goto handle_uninterpreted;
00233         }
00234         if (input->ExpectTag(88)) goto parse_creation_timestamp;
00235         break;
00236       }
00237       
00238       // required uint64 creation_timestamp = 11 [default = 0];
00239       case 11: {
00240         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00241             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
00242          parse_creation_timestamp:
00243           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
00244                    ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
00245                  input, &creation_timestamp_)));
00246           _set_bit(2);
00247         } else {
00248           goto handle_uninterpreted;
00249         }
00250         if (input->ExpectTag(96)) goto parse_update_timestamp;
00251         break;
00252       }
00253       
00254       // required uint64 update_timestamp = 12 [default = 0];
00255       case 12: {
00256         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00257             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
00258          parse_update_timestamp:
00259           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
00260                    ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
00261                  input, &update_timestamp_)));
00262           _set_bit(3);
00263         } else {
00264           goto handle_uninterpreted;
00265         }
00266         if (input->ExpectTag(106)) goto parse_uuid;
00267         break;
00268       }
00269       
00270       // optional string uuid = 13;
00271       case 13: {
00272         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00273             ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00274          parse_uuid:
00275           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
00276                 input, this->mutable_uuid()));
00277           ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00278             this->uuid().data(), this->uuid().length(),
00279             ::google::protobuf::internal::WireFormat::PARSE);
00280         } else {
00281           goto handle_uninterpreted;
00282         }
00283         if (input->ExpectTag(112)) goto parse_version;
00284         break;
00285       }
00286       
00287       // optional uint64 version = 14;
00288       case 14: {
00289         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00290             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
00291          parse_version:
00292           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
00293                    ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
00294                  input, &version_)));
00295           _set_bit(5);
00296         } else {
00297           goto handle_uninterpreted;
00298         }
00299         if (input->ExpectAtEnd()) return true;
00300         break;
00301       }
00302       
00303       default: {
00304       handle_uninterpreted:
00305         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00306             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
00307           return true;
00308         }
00309         DO_(::google::protobuf::internal::WireFormat::SkipField(
00310               input, tag, mutable_unknown_fields()));
00311         break;
00312       }
00313     }
00314   }
00315   return true;
00316 #undef DO_
00317 }
00318 
00319 void Catalog::SerializeWithCachedSizes(
00320     ::google::protobuf::io::CodedOutputStream* output) const {
00321   // required string name = 1;
00322   if (_has_bit(0)) {
00323     ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00324       this->name().data(), this->name().length(),
00325       ::google::protobuf::internal::WireFormat::SERIALIZE);
00326     ::google::protobuf::internal::WireFormatLite::WriteString(
00327       1, this->name(), output);
00328   }
00329   
00330   // required .drizzled.message.Engine engine = 3;
00331   if (_has_bit(1)) {
00332     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
00333       3, this->engine(), output);
00334   }
00335   
00336   // required uint64 creation_timestamp = 11 [default = 0];
00337   if (_has_bit(2)) {
00338     ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->creation_timestamp(), output);
00339   }
00340   
00341   // required uint64 update_timestamp = 12 [default = 0];
00342   if (_has_bit(3)) {
00343     ::google::protobuf::internal::WireFormatLite::WriteUInt64(12, this->update_timestamp(), output);
00344   }
00345   
00346   // optional string uuid = 13;
00347   if (_has_bit(4)) {
00348     ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00349       this->uuid().data(), this->uuid().length(),
00350       ::google::protobuf::internal::WireFormat::SERIALIZE);
00351     ::google::protobuf::internal::WireFormatLite::WriteString(
00352       13, this->uuid(), output);
00353   }
00354   
00355   // optional uint64 version = 14;
00356   if (_has_bit(5)) {
00357     ::google::protobuf::internal::WireFormatLite::WriteUInt64(14, this->version(), output);
00358   }
00359   
00360   if (!unknown_fields().empty()) {
00361     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
00362         unknown_fields(), output);
00363   }
00364 }
00365 
00366 ::google::protobuf::uint8* Catalog::SerializeWithCachedSizesToArray(
00367     ::google::protobuf::uint8* target) const {
00368   // required string name = 1;
00369   if (_has_bit(0)) {
00370     ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00371       this->name().data(), this->name().length(),
00372       ::google::protobuf::internal::WireFormat::SERIALIZE);
00373     target =
00374       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
00375         1, this->name(), target);
00376   }
00377   
00378   // required .drizzled.message.Engine engine = 3;
00379   if (_has_bit(1)) {
00380     target = ::google::protobuf::internal::WireFormatLite::
00381       WriteMessageNoVirtualToArray(
00382         3, this->engine(), target);
00383   }
00384   
00385   // required uint64 creation_timestamp = 11 [default = 0];
00386   if (_has_bit(2)) {
00387     target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->creation_timestamp(), target);
00388   }
00389   
00390   // required uint64 update_timestamp = 12 [default = 0];
00391   if (_has_bit(3)) {
00392     target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(12, this->update_timestamp(), target);
00393   }
00394   
00395   // optional string uuid = 13;
00396   if (_has_bit(4)) {
00397     ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00398       this->uuid().data(), this->uuid().length(),
00399       ::google::protobuf::internal::WireFormat::SERIALIZE);
00400     target =
00401       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
00402         13, this->uuid(), target);
00403   }
00404   
00405   // optional uint64 version = 14;
00406   if (_has_bit(5)) {
00407     target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(14, this->version(), target);
00408   }
00409   
00410   if (!unknown_fields().empty()) {
00411     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
00412         unknown_fields(), target);
00413   }
00414   return target;
00415 }
00416 
00417 int Catalog::ByteSize() const {
00418   int total_size = 0;
00419   
00420   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00421     // required string name = 1;
00422     if (has_name()) {
00423       total_size += 1 +
00424         ::google::protobuf::internal::WireFormatLite::StringSize(
00425           this->name());
00426     }
00427     
00428     // required .drizzled.message.Engine engine = 3;
00429     if (has_engine()) {
00430       total_size += 1 +
00431         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
00432           this->engine());
00433     }
00434     
00435     // required uint64 creation_timestamp = 11 [default = 0];
00436     if (has_creation_timestamp()) {
00437       total_size += 1 +
00438         ::google::protobuf::internal::WireFormatLite::UInt64Size(
00439           this->creation_timestamp());
00440     }
00441     
00442     // required uint64 update_timestamp = 12 [default = 0];
00443     if (has_update_timestamp()) {
00444       total_size += 1 +
00445         ::google::protobuf::internal::WireFormatLite::UInt64Size(
00446           this->update_timestamp());
00447     }
00448     
00449     // optional string uuid = 13;
00450     if (has_uuid()) {
00451       total_size += 1 +
00452         ::google::protobuf::internal::WireFormatLite::StringSize(
00453           this->uuid());
00454     }
00455     
00456     // optional uint64 version = 14;
00457     if (has_version()) {
00458       total_size += 1 +
00459         ::google::protobuf::internal::WireFormatLite::UInt64Size(
00460           this->version());
00461     }
00462     
00463   }
00464   if (!unknown_fields().empty()) {
00465     total_size +=
00466       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
00467         unknown_fields());
00468   }
00469   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
00470   _cached_size_ = total_size;
00471   GOOGLE_SAFE_CONCURRENT_WRITES_END();
00472   return total_size;
00473 }
00474 
00475 void Catalog::MergeFrom(const ::google::protobuf::Message& from) {
00476   GOOGLE_CHECK_NE(&from, this);
00477   const Catalog* source =
00478     ::google::protobuf::internal::dynamic_cast_if_available<const Catalog*>(
00479       &from);
00480   if (source == NULL) {
00481     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
00482   } else {
00483     MergeFrom(*source);
00484   }
00485 }
00486 
00487 void Catalog::MergeFrom(const Catalog& from) {
00488   GOOGLE_CHECK_NE(&from, this);
00489   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00490     if (from._has_bit(0)) {
00491       set_name(from.name());
00492     }
00493     if (from._has_bit(1)) {
00494       mutable_engine()->::drizzled::message::Engine::MergeFrom(from.engine());
00495     }
00496     if (from._has_bit(2)) {
00497       set_creation_timestamp(from.creation_timestamp());
00498     }
00499     if (from._has_bit(3)) {
00500       set_update_timestamp(from.update_timestamp());
00501     }
00502     if (from._has_bit(4)) {
00503       set_uuid(from.uuid());
00504     }
00505     if (from._has_bit(5)) {
00506       set_version(from.version());
00507     }
00508   }
00509   mutable_unknown_fields()->MergeFrom(from.unknown_fields());
00510 }
00511 
00512 void Catalog::CopyFrom(const ::google::protobuf::Message& from) {
00513   if (&from == this) return;
00514   Clear();
00515   MergeFrom(from);
00516 }
00517 
00518 void Catalog::CopyFrom(const Catalog& from) {
00519   if (&from == this) return;
00520   Clear();
00521   MergeFrom(from);
00522 }
00523 
00524 bool Catalog::IsInitialized() const {
00525   if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
00526   
00527   if (has_engine()) {
00528     if (!this->engine().IsInitialized()) return false;
00529   }
00530   return true;
00531 }
00532 
00533 void Catalog::Swap(Catalog* other) {
00534   if (other != this) {
00535     std::swap(name_, other->name_);
00536     std::swap(engine_, other->engine_);
00537     std::swap(creation_timestamp_, other->creation_timestamp_);
00538     std::swap(update_timestamp_, other->update_timestamp_);
00539     std::swap(uuid_, other->uuid_);
00540     std::swap(version_, other->version_);
00541     std::swap(_has_bits_[0], other->_has_bits_[0]);
00542     _unknown_fields_.Swap(&other->_unknown_fields_);
00543     std::swap(_cached_size_, other->_cached_size_);
00544   }
00545 }
00546 
00547 ::google::protobuf::Metadata Catalog::GetMetadata() const {
00548   protobuf_AssignDescriptorsOnce();
00549   ::google::protobuf::Metadata metadata;
00550   metadata.descriptor = Catalog_descriptor_;
00551   metadata.reflection = Catalog_reflection_;
00552   return metadata;
00553 }
00554 
00555 
00556 // @@protoc_insertion_point(namespace_scope)
00557 
00558 }  // namespace message
00559 }  // namespace drizzled
00560 
00561 // @@protoc_insertion_point(global_scope)