00001
00002
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 < 2004000
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 2004000 < 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
00028
00029 namespace drizzled {
00030 namespace message {
00031
00032
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
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
00092
00093
00094
00095
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 inline ::std::string* release_name();
00105
00106
00107 inline bool has_engine() const;
00108 inline void clear_engine();
00109 static const int kEngineFieldNumber = 3;
00110 inline const ::drizzled::message::Engine& engine() const;
00111 inline ::drizzled::message::Engine* mutable_engine();
00112 inline ::drizzled::message::Engine* release_engine();
00113
00114
00115 inline bool has_creation_timestamp() const;
00116 inline void clear_creation_timestamp();
00117 static const int kCreationTimestampFieldNumber = 11;
00118 inline ::google::protobuf::uint64 creation_timestamp() const;
00119 inline void set_creation_timestamp(::google::protobuf::uint64 value);
00120
00121
00122 inline bool has_update_timestamp() const;
00123 inline void clear_update_timestamp();
00124 static const int kUpdateTimestampFieldNumber = 12;
00125 inline ::google::protobuf::uint64 update_timestamp() const;
00126 inline void set_update_timestamp(::google::protobuf::uint64 value);
00127
00128
00129 inline bool has_uuid() const;
00130 inline void clear_uuid();
00131 static const int kUuidFieldNumber = 13;
00132 inline const ::std::string& uuid() const;
00133 inline void set_uuid(const ::std::string& value);
00134 inline void set_uuid(const char* value);
00135 inline void set_uuid(const char* value, size_t size);
00136 inline ::std::string* mutable_uuid();
00137 inline ::std::string* release_uuid();
00138
00139
00140 inline bool has_version() const;
00141 inline void clear_version();
00142 static const int kVersionFieldNumber = 14;
00143 inline ::google::protobuf::uint64 version() const;
00144 inline void set_version(::google::protobuf::uint64 value);
00145
00146
00147 private:
00148 inline void set_has_name();
00149 inline void clear_has_name();
00150 inline void set_has_engine();
00151 inline void clear_has_engine();
00152 inline void set_has_creation_timestamp();
00153 inline void clear_has_creation_timestamp();
00154 inline void set_has_update_timestamp();
00155 inline void clear_has_update_timestamp();
00156 inline void set_has_uuid();
00157 inline void clear_has_uuid();
00158 inline void set_has_version();
00159 inline void clear_has_version();
00160
00161 ::google::protobuf::UnknownFieldSet _unknown_fields_;
00162
00163 ::std::string* name_;
00164 ::drizzled::message::Engine* engine_;
00165 ::google::protobuf::uint64 creation_timestamp_;
00166 ::google::protobuf::uint64 update_timestamp_;
00167 ::std::string* uuid_;
00168 ::google::protobuf::uint64 version_;
00169
00170 mutable int _cached_size_;
00171 ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32];
00172
00173 friend void protobuf_AddDesc_catalog_2eproto();
00174 friend void protobuf_AssignDesc_catalog_2eproto();
00175 friend void protobuf_ShutdownFile_catalog_2eproto();
00176
00177 void InitAsDefaultInstance();
00178 static Catalog* default_instance_;
00179 };
00180
00181
00182
00183
00184
00185
00186
00187
00188 inline bool Catalog::has_name() const {
00189 return (_has_bits_[0] & 0x00000001u) != 0;
00190 }
00191 inline void Catalog::set_has_name() {
00192 _has_bits_[0] |= 0x00000001u;
00193 }
00194 inline void Catalog::clear_has_name() {
00195 _has_bits_[0] &= ~0x00000001u;
00196 }
00197 inline void Catalog::clear_name() {
00198 if (name_ != &::google::protobuf::internal::kEmptyString) {
00199 name_->clear();
00200 }
00201 clear_has_name();
00202 }
00203 inline const ::std::string& Catalog::name() const {
00204 return *name_;
00205 }
00206 inline void Catalog::set_name(const ::std::string& value) {
00207 set_has_name();
00208 if (name_ == &::google::protobuf::internal::kEmptyString) {
00209 name_ = new ::std::string;
00210 }
00211 name_->assign(value);
00212 }
00213 inline void Catalog::set_name(const char* value) {
00214 set_has_name();
00215 if (name_ == &::google::protobuf::internal::kEmptyString) {
00216 name_ = new ::std::string;
00217 }
00218 name_->assign(value);
00219 }
00220 inline void Catalog::set_name(const char* value, size_t size) {
00221 set_has_name();
00222 if (name_ == &::google::protobuf::internal::kEmptyString) {
00223 name_ = new ::std::string;
00224 }
00225 name_->assign(reinterpret_cast<const char*>(value), size);
00226 }
00227 inline ::std::string* Catalog::mutable_name() {
00228 set_has_name();
00229 if (name_ == &::google::protobuf::internal::kEmptyString) {
00230 name_ = new ::std::string;
00231 }
00232 return name_;
00233 }
00234 inline ::std::string* Catalog::release_name() {
00235 clear_has_name();
00236 if (name_ == &::google::protobuf::internal::kEmptyString) {
00237 return NULL;
00238 } else {
00239 ::std::string* temp = name_;
00240 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00241 return temp;
00242 }
00243 }
00244
00245
00246 inline bool Catalog::has_engine() const {
00247 return (_has_bits_[0] & 0x00000002u) != 0;
00248 }
00249 inline void Catalog::set_has_engine() {
00250 _has_bits_[0] |= 0x00000002u;
00251 }
00252 inline void Catalog::clear_has_engine() {
00253 _has_bits_[0] &= ~0x00000002u;
00254 }
00255 inline void Catalog::clear_engine() {
00256 if (engine_ != NULL) engine_->::drizzled::message::Engine::Clear();
00257 clear_has_engine();
00258 }
00259 inline const ::drizzled::message::Engine& Catalog::engine() const {
00260 return engine_ != NULL ? *engine_ : *default_instance_->engine_;
00261 }
00262 inline ::drizzled::message::Engine* Catalog::mutable_engine() {
00263 set_has_engine();
00264 if (engine_ == NULL) engine_ = new ::drizzled::message::Engine;
00265 return engine_;
00266 }
00267 inline ::drizzled::message::Engine* Catalog::release_engine() {
00268 clear_has_engine();
00269 ::drizzled::message::Engine* temp = engine_;
00270 engine_ = NULL;
00271 return temp;
00272 }
00273
00274
00275 inline bool Catalog::has_creation_timestamp() const {
00276 return (_has_bits_[0] & 0x00000004u) != 0;
00277 }
00278 inline void Catalog::set_has_creation_timestamp() {
00279 _has_bits_[0] |= 0x00000004u;
00280 }
00281 inline void Catalog::clear_has_creation_timestamp() {
00282 _has_bits_[0] &= ~0x00000004u;
00283 }
00284 inline void Catalog::clear_creation_timestamp() {
00285 creation_timestamp_ = GOOGLE_ULONGLONG(0);
00286 clear_has_creation_timestamp();
00287 }
00288 inline ::google::protobuf::uint64 Catalog::creation_timestamp() const {
00289 return creation_timestamp_;
00290 }
00291 inline void Catalog::set_creation_timestamp(::google::protobuf::uint64 value) {
00292 set_has_creation_timestamp();
00293 creation_timestamp_ = value;
00294 }
00295
00296
00297 inline bool Catalog::has_update_timestamp() const {
00298 return (_has_bits_[0] & 0x00000008u) != 0;
00299 }
00300 inline void Catalog::set_has_update_timestamp() {
00301 _has_bits_[0] |= 0x00000008u;
00302 }
00303 inline void Catalog::clear_has_update_timestamp() {
00304 _has_bits_[0] &= ~0x00000008u;
00305 }
00306 inline void Catalog::clear_update_timestamp() {
00307 update_timestamp_ = GOOGLE_ULONGLONG(0);
00308 clear_has_update_timestamp();
00309 }
00310 inline ::google::protobuf::uint64 Catalog::update_timestamp() const {
00311 return update_timestamp_;
00312 }
00313 inline void Catalog::set_update_timestamp(::google::protobuf::uint64 value) {
00314 set_has_update_timestamp();
00315 update_timestamp_ = value;
00316 }
00317
00318
00319 inline bool Catalog::has_uuid() const {
00320 return (_has_bits_[0] & 0x00000010u) != 0;
00321 }
00322 inline void Catalog::set_has_uuid() {
00323 _has_bits_[0] |= 0x00000010u;
00324 }
00325 inline void Catalog::clear_has_uuid() {
00326 _has_bits_[0] &= ~0x00000010u;
00327 }
00328 inline void Catalog::clear_uuid() {
00329 if (uuid_ != &::google::protobuf::internal::kEmptyString) {
00330 uuid_->clear();
00331 }
00332 clear_has_uuid();
00333 }
00334 inline const ::std::string& Catalog::uuid() const {
00335 return *uuid_;
00336 }
00337 inline void Catalog::set_uuid(const ::std::string& value) {
00338 set_has_uuid();
00339 if (uuid_ == &::google::protobuf::internal::kEmptyString) {
00340 uuid_ = new ::std::string;
00341 }
00342 uuid_->assign(value);
00343 }
00344 inline void Catalog::set_uuid(const char* value) {
00345 set_has_uuid();
00346 if (uuid_ == &::google::protobuf::internal::kEmptyString) {
00347 uuid_ = new ::std::string;
00348 }
00349 uuid_->assign(value);
00350 }
00351 inline void Catalog::set_uuid(const char* value, size_t size) {
00352 set_has_uuid();
00353 if (uuid_ == &::google::protobuf::internal::kEmptyString) {
00354 uuid_ = new ::std::string;
00355 }
00356 uuid_->assign(reinterpret_cast<const char*>(value), size);
00357 }
00358 inline ::std::string* Catalog::mutable_uuid() {
00359 set_has_uuid();
00360 if (uuid_ == &::google::protobuf::internal::kEmptyString) {
00361 uuid_ = new ::std::string;
00362 }
00363 return uuid_;
00364 }
00365 inline ::std::string* Catalog::release_uuid() {
00366 clear_has_uuid();
00367 if (uuid_ == &::google::protobuf::internal::kEmptyString) {
00368 return NULL;
00369 } else {
00370 ::std::string* temp = uuid_;
00371 uuid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00372 return temp;
00373 }
00374 }
00375
00376
00377 inline bool Catalog::has_version() const {
00378 return (_has_bits_[0] & 0x00000020u) != 0;
00379 }
00380 inline void Catalog::set_has_version() {
00381 _has_bits_[0] |= 0x00000020u;
00382 }
00383 inline void Catalog::clear_has_version() {
00384 _has_bits_[0] &= ~0x00000020u;
00385 }
00386 inline void Catalog::clear_version() {
00387 version_ = GOOGLE_ULONGLONG(0);
00388 clear_has_version();
00389 }
00390 inline ::google::protobuf::uint64 Catalog::version() const {
00391 return version_;
00392 }
00393 inline void Catalog::set_version(::google::protobuf::uint64 value) {
00394 set_has_version();
00395 version_ = value;
00396 }
00397
00398
00399
00400
00401 }
00402 }
00403
00404 #ifndef SWIG
00405 namespace google {
00406 namespace protobuf {
00407
00408
00409 }
00410 }
00411 #endif // SWIG
00412
00413
00414
00415 #endif // PROTOBUF_catalog_2eproto__INCLUDED