Drizzled Public API Documentation

catalog.pb.h

00001 // Generated by the protocol buffer compiler.  DO NOT EDIT!
00002 // source: catalog.proto
00003 
00004 #ifndef PROTOBUF_catalog_2eproto__INCLUDED
00005 #define PROTOBUF_catalog_2eproto__INCLUDED
00006 
00007 #include <string>
00008 
00009 #include <google/protobuf/stubs/common.h>
00010 
00011 #if GOOGLE_PROTOBUF_VERSION < 2003000
00012 #error This file was generated by a newer version of protoc which is
00013 #error incompatible with your Protocol Buffer headers.  Please update
00014 #error your headers.
00015 #endif
00016 #if 2003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
00017 #error This file was generated by an older version of protoc which is
00018 #error incompatible with your Protocol Buffer headers.  Please
00019 #error regenerate this file with a newer version of protoc.
00020 #endif
00021 
00022 #include <google/protobuf/generated_message_util.h>
00023 #include <google/protobuf/repeated_field.h>
00024 #include <google/protobuf/extension_set.h>
00025 #include <google/protobuf/generated_message_reflection.h>
00026 #include "engine.pb.h"
00027 // @@protoc_insertion_point(includes)
00028 
00029 namespace drizzled {
00030 namespace message {
00031 
00032 // Internal implementation detail -- do not call these.
00033 void  protobuf_AddDesc_catalog_2eproto();
00034 void protobuf_AssignDesc_catalog_2eproto();
00035 void protobuf_ShutdownFile_catalog_2eproto();
00036 
00037 class Catalog;
00038 
00039 // ===================================================================
00040 
00041 class Catalog : public ::google::protobuf::Message {
00042  public:
00043   Catalog();
00044   virtual ~Catalog();
00045   
00046   Catalog(const Catalog& from);
00047   
00048   inline Catalog& operator=(const Catalog& from) {
00049     CopyFrom(from);
00050     return *this;
00051   }
00052   
00053   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
00054     return _unknown_fields_;
00055   }
00056   
00057   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
00058     return &_unknown_fields_;
00059   }
00060   
00061   static const ::google::protobuf::Descriptor* descriptor();
00062   static const Catalog& default_instance();
00063   
00064   void Swap(Catalog* other);
00065   
00066   // implements Message ----------------------------------------------
00067   
00068   Catalog* New() const;
00069   void CopyFrom(const ::google::protobuf::Message& from);
00070   void MergeFrom(const ::google::protobuf::Message& from);
00071   void CopyFrom(const Catalog& from);
00072   void MergeFrom(const Catalog& from);
00073   void Clear();
00074   bool IsInitialized() const;
00075   
00076   int ByteSize() const;
00077   bool MergePartialFromCodedStream(
00078       ::google::protobuf::io::CodedInputStream* input);
00079   void SerializeWithCachedSizes(
00080       ::google::protobuf::io::CodedOutputStream* output) const;
00081   ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
00082   int GetCachedSize() const { return _cached_size_; }
00083   private:
00084   void SharedCtor();
00085   void SharedDtor();
00086   void SetCachedSize(int size) const;
00087   public:
00088   
00089   ::google::protobuf::Metadata GetMetadata() const;
00090   
00091   // nested types ----------------------------------------------------
00092   
00093   // accessors -------------------------------------------------------
00094   
00095   // required string name = 1;
00096   inline bool has_name() const;
00097   inline void clear_name();
00098   static const int kNameFieldNumber = 1;
00099   inline const ::std::string& name() const;
00100   inline void set_name(const ::std::string& value);
00101   inline void set_name(const char* value);
00102   inline void set_name(const char* value, size_t size);
00103   inline ::std::string* mutable_name();
00104   
00105   // required .drizzled.message.Engine engine = 3;
00106   inline bool has_engine() const;
00107   inline void clear_engine();
00108   static const int kEngineFieldNumber = 3;
00109   inline const ::drizzled::message::Engine& engine() const;
00110   inline ::drizzled::message::Engine* mutable_engine();
00111   
00112   // required uint64 creation_timestamp = 11 [default = 0];
00113   inline bool has_creation_timestamp() const;
00114   inline void clear_creation_timestamp();
00115   static const int kCreationTimestampFieldNumber = 11;
00116   inline ::google::protobuf::uint64 creation_timestamp() const;
00117   inline void set_creation_timestamp(::google::protobuf::uint64 value);
00118   
00119   // required uint64 update_timestamp = 12 [default = 0];
00120   inline bool has_update_timestamp() const;
00121   inline void clear_update_timestamp();
00122   static const int kUpdateTimestampFieldNumber = 12;
00123   inline ::google::protobuf::uint64 update_timestamp() const;
00124   inline void set_update_timestamp(::google::protobuf::uint64 value);
00125   
00126   // optional string uuid = 13;
00127   inline bool has_uuid() const;
00128   inline void clear_uuid();
00129   static const int kUuidFieldNumber = 13;
00130   inline const ::std::string& uuid() const;
00131   inline void set_uuid(const ::std::string& value);
00132   inline void set_uuid(const char* value);
00133   inline void set_uuid(const char* value, size_t size);
00134   inline ::std::string* mutable_uuid();
00135   
00136   // optional uint64 version = 14;
00137   inline bool has_version() const;
00138   inline void clear_version();
00139   static const int kVersionFieldNumber = 14;
00140   inline ::google::protobuf::uint64 version() const;
00141   inline void set_version(::google::protobuf::uint64 value);
00142   
00143   // @@protoc_insertion_point(class_scope:drizzled.message.Catalog)
00144  private:
00145   ::google::protobuf::UnknownFieldSet _unknown_fields_;
00146   mutable int _cached_size_;
00147   
00148   ::std::string* name_;
00149   static const ::std::string _default_name_;
00150   ::drizzled::message::Engine* engine_;
00151   ::google::protobuf::uint64 creation_timestamp_;
00152   ::google::protobuf::uint64 update_timestamp_;
00153   ::std::string* uuid_;
00154   static const ::std::string _default_uuid_;
00155   ::google::protobuf::uint64 version_;
00156   friend void  protobuf_AddDesc_catalog_2eproto();
00157   friend void protobuf_AssignDesc_catalog_2eproto();
00158   friend void protobuf_ShutdownFile_catalog_2eproto();
00159   
00160   ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32];
00161   
00162   // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
00163   inline bool _has_bit(int index) const {
00164     return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
00165   }
00166   inline void _set_bit(int index) {
00167     _has_bits_[index / 32] |= (1u << (index % 32));
00168   }
00169   inline void _clear_bit(int index) {
00170     _has_bits_[index / 32] &= ~(1u << (index % 32));
00171   }
00172   
00173   void InitAsDefaultInstance();
00174   static Catalog* default_instance_;
00175 };
00176 // ===================================================================
00177 
00178 
00179 // ===================================================================
00180 
00181 // Catalog
00182 
00183 // required string name = 1;
00184 inline bool Catalog::has_name() const {
00185   return _has_bit(0);
00186 }
00187 inline void Catalog::clear_name() {
00188   if (name_ != &_default_name_) {
00189     name_->clear();
00190   }
00191   _clear_bit(0);
00192 }
00193 inline const ::std::string& Catalog::name() const {
00194   return *name_;
00195 }
00196 inline void Catalog::set_name(const ::std::string& value) {
00197   _set_bit(0);
00198   if (name_ == &_default_name_) {
00199     name_ = new ::std::string;
00200   }
00201   name_->assign(value);
00202 }
00203 inline void Catalog::set_name(const char* value) {
00204   _set_bit(0);
00205   if (name_ == &_default_name_) {
00206     name_ = new ::std::string;
00207   }
00208   name_->assign(value);
00209 }
00210 inline void Catalog::set_name(const char* value, size_t size) {
00211   _set_bit(0);
00212   if (name_ == &_default_name_) {
00213     name_ = new ::std::string;
00214   }
00215   name_->assign(reinterpret_cast<const char*>(value), size);
00216 }
00217 inline ::std::string* Catalog::mutable_name() {
00218   _set_bit(0);
00219   if (name_ == &_default_name_) {
00220     name_ = new ::std::string;
00221   }
00222   return name_;
00223 }
00224 
00225 // required .drizzled.message.Engine engine = 3;
00226 inline bool Catalog::has_engine() const {
00227   return _has_bit(1);
00228 }
00229 inline void Catalog::clear_engine() {
00230   if (engine_ != NULL) engine_->::drizzled::message::Engine::Clear();
00231   _clear_bit(1);
00232 }
00233 inline const ::drizzled::message::Engine& Catalog::engine() const {
00234   return engine_ != NULL ? *engine_ : *default_instance_->engine_;
00235 }
00236 inline ::drizzled::message::Engine* Catalog::mutable_engine() {
00237   _set_bit(1);
00238   if (engine_ == NULL) engine_ = new ::drizzled::message::Engine;
00239   return engine_;
00240 }
00241 
00242 // required uint64 creation_timestamp = 11 [default = 0];
00243 inline bool Catalog::has_creation_timestamp() const {
00244   return _has_bit(2);
00245 }
00246 inline void Catalog::clear_creation_timestamp() {
00247   creation_timestamp_ = GOOGLE_ULONGLONG(0);
00248   _clear_bit(2);
00249 }
00250 inline ::google::protobuf::uint64 Catalog::creation_timestamp() const {
00251   return creation_timestamp_;
00252 }
00253 inline void Catalog::set_creation_timestamp(::google::protobuf::uint64 value) {
00254   _set_bit(2);
00255   creation_timestamp_ = value;
00256 }
00257 
00258 // required uint64 update_timestamp = 12 [default = 0];
00259 inline bool Catalog::has_update_timestamp() const {
00260   return _has_bit(3);
00261 }
00262 inline void Catalog::clear_update_timestamp() {
00263   update_timestamp_ = GOOGLE_ULONGLONG(0);
00264   _clear_bit(3);
00265 }
00266 inline ::google::protobuf::uint64 Catalog::update_timestamp() const {
00267   return update_timestamp_;
00268 }
00269 inline void Catalog::set_update_timestamp(::google::protobuf::uint64 value) {
00270   _set_bit(3);
00271   update_timestamp_ = value;
00272 }
00273 
00274 // optional string uuid = 13;
00275 inline bool Catalog::has_uuid() const {
00276   return _has_bit(4);
00277 }
00278 inline void Catalog::clear_uuid() {
00279   if (uuid_ != &_default_uuid_) {
00280     uuid_->clear();
00281   }
00282   _clear_bit(4);
00283 }
00284 inline const ::std::string& Catalog::uuid() const {
00285   return *uuid_;
00286 }
00287 inline void Catalog::set_uuid(const ::std::string& value) {
00288   _set_bit(4);
00289   if (uuid_ == &_default_uuid_) {
00290     uuid_ = new ::std::string;
00291   }
00292   uuid_->assign(value);
00293 }
00294 inline void Catalog::set_uuid(const char* value) {
00295   _set_bit(4);
00296   if (uuid_ == &_default_uuid_) {
00297     uuid_ = new ::std::string;
00298   }
00299   uuid_->assign(value);
00300 }
00301 inline void Catalog::set_uuid(const char* value, size_t size) {
00302   _set_bit(4);
00303   if (uuid_ == &_default_uuid_) {
00304     uuid_ = new ::std::string;
00305   }
00306   uuid_->assign(reinterpret_cast<const char*>(value), size);
00307 }
00308 inline ::std::string* Catalog::mutable_uuid() {
00309   _set_bit(4);
00310   if (uuid_ == &_default_uuid_) {
00311     uuid_ = new ::std::string;
00312   }
00313   return uuid_;
00314 }
00315 
00316 // optional uint64 version = 14;
00317 inline bool Catalog::has_version() const {
00318   return _has_bit(5);
00319 }
00320 inline void Catalog::clear_version() {
00321   version_ = GOOGLE_ULONGLONG(0);
00322   _clear_bit(5);
00323 }
00324 inline ::google::protobuf::uint64 Catalog::version() const {
00325   return version_;
00326 }
00327 inline void Catalog::set_version(::google::protobuf::uint64 value) {
00328   _set_bit(5);
00329   version_ = value;
00330 }
00331 
00332 
00333 // @@protoc_insertion_point(namespace_scope)
00334 
00335 }  // namespace message
00336 }  // namespace drizzled
00337 
00338 #ifndef SWIG
00339 namespace google {
00340 namespace protobuf {
00341 
00342 
00343 }  // namespace google
00344 }  // namespace protobuf
00345 #endif  // SWIG
00346 
00347 // @@protoc_insertion_point(global_scope)
00348 
00349 #endif  // PROTOBUF_catalog_2eproto__INCLUDED