Drizzled Public API Documentation

schema.pb.h

00001 // Generated by the protocol buffer compiler.  DO NOT EDIT!
00002 // source: schema.proto
00003 
00004 #ifndef PROTOBUF_schema_2eproto__INCLUDED
00005 #define PROTOBUF_schema_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 #include "replication_options.pb.h"
00028 // @@protoc_insertion_point(includes)
00029 
00030 namespace drizzled {
00031 namespace message {
00032 
00033 // Internal implementation detail -- do not call these.
00034 void  protobuf_AddDesc_schema_2eproto();
00035 void protobuf_AssignDesc_schema_2eproto();
00036 void protobuf_ShutdownFile_schema_2eproto();
00037 
00038 class Schema;
00039 class Schema_Options;
00040 
00041 // ===================================================================
00042 
00043 class Schema_Options : public ::google::protobuf::Message {
00044  public:
00045   Schema_Options();
00046   virtual ~Schema_Options();
00047   
00048   Schema_Options(const Schema_Options& from);
00049   
00050   inline Schema_Options& operator=(const Schema_Options& from) {
00051     CopyFrom(from);
00052     return *this;
00053   }
00054   
00055   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
00056     return _unknown_fields_;
00057   }
00058   
00059   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
00060     return &_unknown_fields_;
00061   }
00062   
00063   static const ::google::protobuf::Descriptor* descriptor();
00064   static const Schema_Options& default_instance();
00065   
00066   void Swap(Schema_Options* other);
00067   
00068   // implements Message ----------------------------------------------
00069   
00070   Schema_Options* New() const;
00071   void CopyFrom(const ::google::protobuf::Message& from);
00072   void MergeFrom(const ::google::protobuf::Message& from);
00073   void CopyFrom(const Schema_Options& from);
00074   void MergeFrom(const Schema_Options& from);
00075   void Clear();
00076   bool IsInitialized() const;
00077   
00078   int ByteSize() const;
00079   bool MergePartialFromCodedStream(
00080       ::google::protobuf::io::CodedInputStream* input);
00081   void SerializeWithCachedSizes(
00082       ::google::protobuf::io::CodedOutputStream* output) const;
00083   ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
00084   int GetCachedSize() const { return _cached_size_; }
00085   private:
00086   void SharedCtor();
00087   void SharedDtor();
00088   void SetCachedSize(int size) const;
00089   public:
00090   
00091   ::google::protobuf::Metadata GetMetadata() const;
00092   
00093   // nested types ----------------------------------------------------
00094   
00095   // accessors -------------------------------------------------------
00096   
00097   // @@protoc_insertion_point(class_scope:drizzled.message.Schema.Options)
00098  private:
00099   ::google::protobuf::UnknownFieldSet _unknown_fields_;
00100   mutable int _cached_size_;
00101   
00102   friend void  protobuf_AddDesc_schema_2eproto();
00103   friend void protobuf_AssignDesc_schema_2eproto();
00104   friend void protobuf_ShutdownFile_schema_2eproto();
00105   
00106   ::google::protobuf::uint32 _has_bits_[1];
00107   
00108   // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
00109   inline bool _has_bit(int index) const {
00110     return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
00111   }
00112   inline void _set_bit(int index) {
00113     _has_bits_[index / 32] |= (1u << (index % 32));
00114   }
00115   inline void _clear_bit(int index) {
00116     _has_bits_[index / 32] &= ~(1u << (index % 32));
00117   }
00118   
00119   void InitAsDefaultInstance();
00120   static Schema_Options* default_instance_;
00121 };
00122 // -------------------------------------------------------------------
00123 
00124 class Schema : public ::google::protobuf::Message {
00125  public:
00126   Schema();
00127   virtual ~Schema();
00128   
00129   Schema(const Schema& from);
00130   
00131   inline Schema& operator=(const Schema& from) {
00132     CopyFrom(from);
00133     return *this;
00134   }
00135   
00136   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
00137     return _unknown_fields_;
00138   }
00139   
00140   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
00141     return &_unknown_fields_;
00142   }
00143   
00144   static const ::google::protobuf::Descriptor* descriptor();
00145   static const Schema& default_instance();
00146   
00147   void Swap(Schema* other);
00148   
00149   // implements Message ----------------------------------------------
00150   
00151   Schema* New() const;
00152   void CopyFrom(const ::google::protobuf::Message& from);
00153   void MergeFrom(const ::google::protobuf::Message& from);
00154   void CopyFrom(const Schema& from);
00155   void MergeFrom(const Schema& from);
00156   void Clear();
00157   bool IsInitialized() const;
00158   
00159   int ByteSize() const;
00160   bool MergePartialFromCodedStream(
00161       ::google::protobuf::io::CodedInputStream* input);
00162   void SerializeWithCachedSizes(
00163       ::google::protobuf::io::CodedOutputStream* output) const;
00164   ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
00165   int GetCachedSize() const { return _cached_size_; }
00166   private:
00167   void SharedCtor();
00168   void SharedDtor();
00169   void SetCachedSize(int size) const;
00170   public:
00171   
00172   ::google::protobuf::Metadata GetMetadata() const;
00173   
00174   // nested types ----------------------------------------------------
00175   
00176   typedef Schema_Options Options;
00177   
00178   // accessors -------------------------------------------------------
00179   
00180   // required string name = 1;
00181   inline bool has_name() const;
00182   inline void clear_name();
00183   static const int kNameFieldNumber = 1;
00184   inline const ::std::string& name() const;
00185   inline void set_name(const ::std::string& value);
00186   inline void set_name(const char* value);
00187   inline void set_name(const char* value, size_t size);
00188   inline ::std::string* mutable_name();
00189   
00190   // optional string collation = 2;
00191   inline bool has_collation() const;
00192   inline void clear_collation();
00193   static const int kCollationFieldNumber = 2;
00194   inline const ::std::string& collation() const;
00195   inline void set_collation(const ::std::string& value);
00196   inline void set_collation(const char* value);
00197   inline void set_collation(const char* value, size_t size);
00198   inline ::std::string* mutable_collation();
00199   
00200   // required .drizzled.message.Engine engine = 3;
00201   inline bool has_engine() const;
00202   inline void clear_engine();
00203   static const int kEngineFieldNumber = 3;
00204   inline const ::drizzled::message::Engine& engine() const;
00205   inline ::drizzled::message::Engine* mutable_engine();
00206   
00207   // optional string catalog = 4;
00208   inline bool has_catalog() const;
00209   inline void clear_catalog();
00210   static const int kCatalogFieldNumber = 4;
00211   inline const ::std::string& catalog() const;
00212   inline void set_catalog(const ::std::string& value);
00213   inline void set_catalog(const char* value);
00214   inline void set_catalog(const char* value, size_t size);
00215   inline ::std::string* mutable_catalog();
00216   
00217   // required uint64 creation_timestamp = 11 [default = 0];
00218   inline bool has_creation_timestamp() const;
00219   inline void clear_creation_timestamp();
00220   static const int kCreationTimestampFieldNumber = 11;
00221   inline ::google::protobuf::uint64 creation_timestamp() const;
00222   inline void set_creation_timestamp(::google::protobuf::uint64 value);
00223   
00224   // required uint64 update_timestamp = 12 [default = 0];
00225   inline bool has_update_timestamp() const;
00226   inline void clear_update_timestamp();
00227   static const int kUpdateTimestampFieldNumber = 12;
00228   inline ::google::protobuf::uint64 update_timestamp() const;
00229   inline void set_update_timestamp(::google::protobuf::uint64 value);
00230   
00231   // optional string uuid = 13;
00232   inline bool has_uuid() const;
00233   inline void clear_uuid();
00234   static const int kUuidFieldNumber = 13;
00235   inline const ::std::string& uuid() const;
00236   inline void set_uuid(const ::std::string& value);
00237   inline void set_uuid(const char* value);
00238   inline void set_uuid(const char* value, size_t size);
00239   inline ::std::string* mutable_uuid();
00240   
00241   // optional uint64 version = 14;
00242   inline bool has_version() const;
00243   inline void clear_version();
00244   static const int kVersionFieldNumber = 14;
00245   inline ::google::protobuf::uint64 version() const;
00246   inline void set_version(::google::protobuf::uint64 value);
00247   
00248   // optional .drizzled.message.Schema.Options options = 15;
00249   inline bool has_options() const;
00250   inline void clear_options();
00251   static const int kOptionsFieldNumber = 15;
00252   inline const ::drizzled::message::Schema_Options& options() const;
00253   inline ::drizzled::message::Schema_Options* mutable_options();
00254   
00255   // optional .drizzled.message.ReplicationOptions replication_options = 16;
00256   inline bool has_replication_options() const;
00257   inline void clear_replication_options();
00258   static const int kReplicationOptionsFieldNumber = 16;
00259   inline const ::drizzled::message::ReplicationOptions& replication_options() const;
00260   inline ::drizzled::message::ReplicationOptions* mutable_replication_options();
00261   
00262   // @@protoc_insertion_point(class_scope:drizzled.message.Schema)
00263  private:
00264   ::google::protobuf::UnknownFieldSet _unknown_fields_;
00265   mutable int _cached_size_;
00266   
00267   ::std::string* name_;
00268   static const ::std::string _default_name_;
00269   ::std::string* collation_;
00270   static const ::std::string _default_collation_;
00271   ::drizzled::message::Engine* engine_;
00272   ::std::string* catalog_;
00273   static const ::std::string _default_catalog_;
00274   ::google::protobuf::uint64 creation_timestamp_;
00275   ::google::protobuf::uint64 update_timestamp_;
00276   ::std::string* uuid_;
00277   static const ::std::string _default_uuid_;
00278   ::google::protobuf::uint64 version_;
00279   ::drizzled::message::Schema_Options* options_;
00280   ::drizzled::message::ReplicationOptions* replication_options_;
00281   friend void  protobuf_AddDesc_schema_2eproto();
00282   friend void protobuf_AssignDesc_schema_2eproto();
00283   friend void protobuf_ShutdownFile_schema_2eproto();
00284   
00285   ::google::protobuf::uint32 _has_bits_[(10 + 31) / 32];
00286   
00287   // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
00288   inline bool _has_bit(int index) const {
00289     return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
00290   }
00291   inline void _set_bit(int index) {
00292     _has_bits_[index / 32] |= (1u << (index % 32));
00293   }
00294   inline void _clear_bit(int index) {
00295     _has_bits_[index / 32] &= ~(1u << (index % 32));
00296   }
00297   
00298   void InitAsDefaultInstance();
00299   static Schema* default_instance_;
00300 };
00301 // ===================================================================
00302 
00303 
00304 // ===================================================================
00305 
00306 // Schema_Options
00307 
00308 // -------------------------------------------------------------------
00309 
00310 // Schema
00311 
00312 // required string name = 1;
00313 inline bool Schema::has_name() const {
00314   return _has_bit(0);
00315 }
00316 inline void Schema::clear_name() {
00317   if (name_ != &_default_name_) {
00318     name_->clear();
00319   }
00320   _clear_bit(0);
00321 }
00322 inline const ::std::string& Schema::name() const {
00323   return *name_;
00324 }
00325 inline void Schema::set_name(const ::std::string& value) {
00326   _set_bit(0);
00327   if (name_ == &_default_name_) {
00328     name_ = new ::std::string;
00329   }
00330   name_->assign(value);
00331 }
00332 inline void Schema::set_name(const char* value) {
00333   _set_bit(0);
00334   if (name_ == &_default_name_) {
00335     name_ = new ::std::string;
00336   }
00337   name_->assign(value);
00338 }
00339 inline void Schema::set_name(const char* value, size_t size) {
00340   _set_bit(0);
00341   if (name_ == &_default_name_) {
00342     name_ = new ::std::string;
00343   }
00344   name_->assign(reinterpret_cast<const char*>(value), size);
00345 }
00346 inline ::std::string* Schema::mutable_name() {
00347   _set_bit(0);
00348   if (name_ == &_default_name_) {
00349     name_ = new ::std::string;
00350   }
00351   return name_;
00352 }
00353 
00354 // optional string collation = 2;
00355 inline bool Schema::has_collation() const {
00356   return _has_bit(1);
00357 }
00358 inline void Schema::clear_collation() {
00359   if (collation_ != &_default_collation_) {
00360     collation_->clear();
00361   }
00362   _clear_bit(1);
00363 }
00364 inline const ::std::string& Schema::collation() const {
00365   return *collation_;
00366 }
00367 inline void Schema::set_collation(const ::std::string& value) {
00368   _set_bit(1);
00369   if (collation_ == &_default_collation_) {
00370     collation_ = new ::std::string;
00371   }
00372   collation_->assign(value);
00373 }
00374 inline void Schema::set_collation(const char* value) {
00375   _set_bit(1);
00376   if (collation_ == &_default_collation_) {
00377     collation_ = new ::std::string;
00378   }
00379   collation_->assign(value);
00380 }
00381 inline void Schema::set_collation(const char* value, size_t size) {
00382   _set_bit(1);
00383   if (collation_ == &_default_collation_) {
00384     collation_ = new ::std::string;
00385   }
00386   collation_->assign(reinterpret_cast<const char*>(value), size);
00387 }
00388 inline ::std::string* Schema::mutable_collation() {
00389   _set_bit(1);
00390   if (collation_ == &_default_collation_) {
00391     collation_ = new ::std::string;
00392   }
00393   return collation_;
00394 }
00395 
00396 // required .drizzled.message.Engine engine = 3;
00397 inline bool Schema::has_engine() const {
00398   return _has_bit(2);
00399 }
00400 inline void Schema::clear_engine() {
00401   if (engine_ != NULL) engine_->::drizzled::message::Engine::Clear();
00402   _clear_bit(2);
00403 }
00404 inline const ::drizzled::message::Engine& Schema::engine() const {
00405   return engine_ != NULL ? *engine_ : *default_instance_->engine_;
00406 }
00407 inline ::drizzled::message::Engine* Schema::mutable_engine() {
00408   _set_bit(2);
00409   if (engine_ == NULL) engine_ = new ::drizzled::message::Engine;
00410   return engine_;
00411 }
00412 
00413 // optional string catalog = 4;
00414 inline bool Schema::has_catalog() const {
00415   return _has_bit(3);
00416 }
00417 inline void Schema::clear_catalog() {
00418   if (catalog_ != &_default_catalog_) {
00419     catalog_->clear();
00420   }
00421   _clear_bit(3);
00422 }
00423 inline const ::std::string& Schema::catalog() const {
00424   return *catalog_;
00425 }
00426 inline void Schema::set_catalog(const ::std::string& value) {
00427   _set_bit(3);
00428   if (catalog_ == &_default_catalog_) {
00429     catalog_ = new ::std::string;
00430   }
00431   catalog_->assign(value);
00432 }
00433 inline void Schema::set_catalog(const char* value) {
00434   _set_bit(3);
00435   if (catalog_ == &_default_catalog_) {
00436     catalog_ = new ::std::string;
00437   }
00438   catalog_->assign(value);
00439 }
00440 inline void Schema::set_catalog(const char* value, size_t size) {
00441   _set_bit(3);
00442   if (catalog_ == &_default_catalog_) {
00443     catalog_ = new ::std::string;
00444   }
00445   catalog_->assign(reinterpret_cast<const char*>(value), size);
00446 }
00447 inline ::std::string* Schema::mutable_catalog() {
00448   _set_bit(3);
00449   if (catalog_ == &_default_catalog_) {
00450     catalog_ = new ::std::string;
00451   }
00452   return catalog_;
00453 }
00454 
00455 // required uint64 creation_timestamp = 11 [default = 0];
00456 inline bool Schema::has_creation_timestamp() const {
00457   return _has_bit(4);
00458 }
00459 inline void Schema::clear_creation_timestamp() {
00460   creation_timestamp_ = GOOGLE_ULONGLONG(0);
00461   _clear_bit(4);
00462 }
00463 inline ::google::protobuf::uint64 Schema::creation_timestamp() const {
00464   return creation_timestamp_;
00465 }
00466 inline void Schema::set_creation_timestamp(::google::protobuf::uint64 value) {
00467   _set_bit(4);
00468   creation_timestamp_ = value;
00469 }
00470 
00471 // required uint64 update_timestamp = 12 [default = 0];
00472 inline bool Schema::has_update_timestamp() const {
00473   return _has_bit(5);
00474 }
00475 inline void Schema::clear_update_timestamp() {
00476   update_timestamp_ = GOOGLE_ULONGLONG(0);
00477   _clear_bit(5);
00478 }
00479 inline ::google::protobuf::uint64 Schema::update_timestamp() const {
00480   return update_timestamp_;
00481 }
00482 inline void Schema::set_update_timestamp(::google::protobuf::uint64 value) {
00483   _set_bit(5);
00484   update_timestamp_ = value;
00485 }
00486 
00487 // optional string uuid = 13;
00488 inline bool Schema::has_uuid() const {
00489   return _has_bit(6);
00490 }
00491 inline void Schema::clear_uuid() {
00492   if (uuid_ != &_default_uuid_) {
00493     uuid_->clear();
00494   }
00495   _clear_bit(6);
00496 }
00497 inline const ::std::string& Schema::uuid() const {
00498   return *uuid_;
00499 }
00500 inline void Schema::set_uuid(const ::std::string& value) {
00501   _set_bit(6);
00502   if (uuid_ == &_default_uuid_) {
00503     uuid_ = new ::std::string;
00504   }
00505   uuid_->assign(value);
00506 }
00507 inline void Schema::set_uuid(const char* value) {
00508   _set_bit(6);
00509   if (uuid_ == &_default_uuid_) {
00510     uuid_ = new ::std::string;
00511   }
00512   uuid_->assign(value);
00513 }
00514 inline void Schema::set_uuid(const char* value, size_t size) {
00515   _set_bit(6);
00516   if (uuid_ == &_default_uuid_) {
00517     uuid_ = new ::std::string;
00518   }
00519   uuid_->assign(reinterpret_cast<const char*>(value), size);
00520 }
00521 inline ::std::string* Schema::mutable_uuid() {
00522   _set_bit(6);
00523   if (uuid_ == &_default_uuid_) {
00524     uuid_ = new ::std::string;
00525   }
00526   return uuid_;
00527 }
00528 
00529 // optional uint64 version = 14;
00530 inline bool Schema::has_version() const {
00531   return _has_bit(7);
00532 }
00533 inline void Schema::clear_version() {
00534   version_ = GOOGLE_ULONGLONG(0);
00535   _clear_bit(7);
00536 }
00537 inline ::google::protobuf::uint64 Schema::version() const {
00538   return version_;
00539 }
00540 inline void Schema::set_version(::google::protobuf::uint64 value) {
00541   _set_bit(7);
00542   version_ = value;
00543 }
00544 
00545 // optional .drizzled.message.Schema.Options options = 15;
00546 inline bool Schema::has_options() const {
00547   return _has_bit(8);
00548 }
00549 inline void Schema::clear_options() {
00550   if (options_ != NULL) options_->::drizzled::message::Schema_Options::Clear();
00551   _clear_bit(8);
00552 }
00553 inline const ::drizzled::message::Schema_Options& Schema::options() const {
00554   return options_ != NULL ? *options_ : *default_instance_->options_;
00555 }
00556 inline ::drizzled::message::Schema_Options* Schema::mutable_options() {
00557   _set_bit(8);
00558   if (options_ == NULL) options_ = new ::drizzled::message::Schema_Options;
00559   return options_;
00560 }
00561 
00562 // optional .drizzled.message.ReplicationOptions replication_options = 16;
00563 inline bool Schema::has_replication_options() const {
00564   return _has_bit(9);
00565 }
00566 inline void Schema::clear_replication_options() {
00567   if (replication_options_ != NULL) replication_options_->::drizzled::message::ReplicationOptions::Clear();
00568   _clear_bit(9);
00569 }
00570 inline const ::drizzled::message::ReplicationOptions& Schema::replication_options() const {
00571   return replication_options_ != NULL ? *replication_options_ : *default_instance_->replication_options_;
00572 }
00573 inline ::drizzled::message::ReplicationOptions* Schema::mutable_replication_options() {
00574   _set_bit(9);
00575   if (replication_options_ == NULL) replication_options_ = new ::drizzled::message::ReplicationOptions;
00576   return replication_options_;
00577 }
00578 
00579 
00580 // @@protoc_insertion_point(namespace_scope)
00581 
00582 }  // namespace message
00583 }  // namespace drizzled
00584 
00585 #ifndef SWIG
00586 namespace google {
00587 namespace protobuf {
00588 
00589 
00590 }  // namespace google
00591 }  // namespace protobuf
00592 #endif  // SWIG
00593 
00594 // @@protoc_insertion_point(global_scope)
00595 
00596 #endif  // PROTOBUF_schema_2eproto__INCLUDED