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