00001
00002
00003
00004 #ifndef PROTOBUF_engine_2eproto__INCLUDED
00005 #define PROTOBUF_engine_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 2004001 < 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
00027
00028 namespace drizzled {
00029 namespace message {
00030
00031
00032 void protobuf_AddDesc_engine_2eproto();
00033 void protobuf_AssignDesc_engine_2eproto();
00034 void protobuf_ShutdownFile_engine_2eproto();
00035
00036 class Engine;
00037 class Engine_Option;
00038
00039
00040
00041 class Engine_Option : public ::google::protobuf::Message {
00042 public:
00043 Engine_Option();
00044 virtual ~Engine_Option();
00045
00046 Engine_Option(const Engine_Option& from);
00047
00048 inline Engine_Option& operator=(const Engine_Option& 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 Engine_Option& default_instance();
00063
00064 void Swap(Engine_Option* other);
00065
00066
00067
00068 Engine_Option* New() const;
00069 void CopyFrom(const ::google::protobuf::Message& from);
00070 void MergeFrom(const ::google::protobuf::Message& from);
00071 void CopyFrom(const Engine_Option& from);
00072 void MergeFrom(const Engine_Option& 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_state() const;
00108 inline void clear_state();
00109 static const int kStateFieldNumber = 2;
00110 inline const ::std::string& state() const;
00111 inline void set_state(const ::std::string& value);
00112 inline void set_state(const char* value);
00113 inline void set_state(const char* value, size_t size);
00114 inline ::std::string* mutable_state();
00115 inline ::std::string* release_state();
00116
00117
00118 private:
00119 inline void set_has_name();
00120 inline void clear_has_name();
00121 inline void set_has_state();
00122 inline void clear_has_state();
00123
00124 ::google::protobuf::UnknownFieldSet _unknown_fields_;
00125
00126 ::std::string* name_;
00127 ::std::string* state_;
00128
00129 mutable int _cached_size_;
00130 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
00131
00132 friend void protobuf_AddDesc_engine_2eproto();
00133 friend void protobuf_AssignDesc_engine_2eproto();
00134 friend void protobuf_ShutdownFile_engine_2eproto();
00135
00136 void InitAsDefaultInstance();
00137 static Engine_Option* default_instance_;
00138 };
00139
00140
00141 class Engine : public ::google::protobuf::Message {
00142 public:
00143 Engine();
00144 virtual ~Engine();
00145
00146 Engine(const Engine& from);
00147
00148 inline Engine& operator=(const Engine& from) {
00149 CopyFrom(from);
00150 return *this;
00151 }
00152
00153 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
00154 return _unknown_fields_;
00155 }
00156
00157 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
00158 return &_unknown_fields_;
00159 }
00160
00161 static const ::google::protobuf::Descriptor* descriptor();
00162 static const Engine& default_instance();
00163
00164 void Swap(Engine* other);
00165
00166
00167
00168 Engine* New() const;
00169 void CopyFrom(const ::google::protobuf::Message& from);
00170 void MergeFrom(const ::google::protobuf::Message& from);
00171 void CopyFrom(const Engine& from);
00172 void MergeFrom(const Engine& from);
00173 void Clear();
00174 bool IsInitialized() const;
00175
00176 int ByteSize() const;
00177 bool MergePartialFromCodedStream(
00178 ::google::protobuf::io::CodedInputStream* input);
00179 void SerializeWithCachedSizes(
00180 ::google::protobuf::io::CodedOutputStream* output) const;
00181 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
00182 int GetCachedSize() const { return _cached_size_; }
00183 private:
00184 void SharedCtor();
00185 void SharedDtor();
00186 void SetCachedSize(int size) const;
00187 public:
00188
00189 ::google::protobuf::Metadata GetMetadata() const;
00190
00191
00192
00193 typedef Engine_Option Option;
00194
00195
00196
00197
00198 inline bool has_name() const;
00199 inline void clear_name();
00200 static const int kNameFieldNumber = 1;
00201 inline const ::std::string& name() const;
00202 inline void set_name(const ::std::string& value);
00203 inline void set_name(const char* value);
00204 inline void set_name(const char* value, size_t size);
00205 inline ::std::string* mutable_name();
00206 inline ::std::string* release_name();
00207
00208
00209 inline int options_size() const;
00210 inline void clear_options();
00211 static const int kOptionsFieldNumber = 2;
00212 inline const ::drizzled::message::Engine_Option& options(int index) const;
00213 inline ::drizzled::message::Engine_Option* mutable_options(int index);
00214 inline ::drizzled::message::Engine_Option* add_options();
00215 inline const ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option >&
00216 options() const;
00217 inline ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option >*
00218 mutable_options();
00219
00220
00221 private:
00222 inline void set_has_name();
00223 inline void clear_has_name();
00224
00225 ::google::protobuf::UnknownFieldSet _unknown_fields_;
00226
00227 ::std::string* name_;
00228 ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option > options_;
00229
00230 mutable int _cached_size_;
00231 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
00232
00233 friend void protobuf_AddDesc_engine_2eproto();
00234 friend void protobuf_AssignDesc_engine_2eproto();
00235 friend void protobuf_ShutdownFile_engine_2eproto();
00236
00237 void InitAsDefaultInstance();
00238 static Engine* default_instance_;
00239 };
00240
00241
00242
00243
00244
00245
00246
00247
00248 inline bool Engine_Option::has_name() const {
00249 return (_has_bits_[0] & 0x00000001u) != 0;
00250 }
00251 inline void Engine_Option::set_has_name() {
00252 _has_bits_[0] |= 0x00000001u;
00253 }
00254 inline void Engine_Option::clear_has_name() {
00255 _has_bits_[0] &= ~0x00000001u;
00256 }
00257 inline void Engine_Option::clear_name() {
00258 if (name_ != &::google::protobuf::internal::kEmptyString) {
00259 name_->clear();
00260 }
00261 clear_has_name();
00262 }
00263 inline const ::std::string& Engine_Option::name() const {
00264 return *name_;
00265 }
00266 inline void Engine_Option::set_name(const ::std::string& value) {
00267 set_has_name();
00268 if (name_ == &::google::protobuf::internal::kEmptyString) {
00269 name_ = new ::std::string;
00270 }
00271 name_->assign(value);
00272 }
00273 inline void Engine_Option::set_name(const char* value) {
00274 set_has_name();
00275 if (name_ == &::google::protobuf::internal::kEmptyString) {
00276 name_ = new ::std::string;
00277 }
00278 name_->assign(value);
00279 }
00280 inline void Engine_Option::set_name(const char* value, size_t size) {
00281 set_has_name();
00282 if (name_ == &::google::protobuf::internal::kEmptyString) {
00283 name_ = new ::std::string;
00284 }
00285 name_->assign(reinterpret_cast<const char*>(value), size);
00286 }
00287 inline ::std::string* Engine_Option::mutable_name() {
00288 set_has_name();
00289 if (name_ == &::google::protobuf::internal::kEmptyString) {
00290 name_ = new ::std::string;
00291 }
00292 return name_;
00293 }
00294 inline ::std::string* Engine_Option::release_name() {
00295 clear_has_name();
00296 if (name_ == &::google::protobuf::internal::kEmptyString) {
00297 return NULL;
00298 } else {
00299 ::std::string* temp = name_;
00300 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00301 return temp;
00302 }
00303 }
00304
00305
00306 inline bool Engine_Option::has_state() const {
00307 return (_has_bits_[0] & 0x00000002u) != 0;
00308 }
00309 inline void Engine_Option::set_has_state() {
00310 _has_bits_[0] |= 0x00000002u;
00311 }
00312 inline void Engine_Option::clear_has_state() {
00313 _has_bits_[0] &= ~0x00000002u;
00314 }
00315 inline void Engine_Option::clear_state() {
00316 if (state_ != &::google::protobuf::internal::kEmptyString) {
00317 state_->clear();
00318 }
00319 clear_has_state();
00320 }
00321 inline const ::std::string& Engine_Option::state() const {
00322 return *state_;
00323 }
00324 inline void Engine_Option::set_state(const ::std::string& value) {
00325 set_has_state();
00326 if (state_ == &::google::protobuf::internal::kEmptyString) {
00327 state_ = new ::std::string;
00328 }
00329 state_->assign(value);
00330 }
00331 inline void Engine_Option::set_state(const char* value) {
00332 set_has_state();
00333 if (state_ == &::google::protobuf::internal::kEmptyString) {
00334 state_ = new ::std::string;
00335 }
00336 state_->assign(value);
00337 }
00338 inline void Engine_Option::set_state(const char* value, size_t size) {
00339 set_has_state();
00340 if (state_ == &::google::protobuf::internal::kEmptyString) {
00341 state_ = new ::std::string;
00342 }
00343 state_->assign(reinterpret_cast<const char*>(value), size);
00344 }
00345 inline ::std::string* Engine_Option::mutable_state() {
00346 set_has_state();
00347 if (state_ == &::google::protobuf::internal::kEmptyString) {
00348 state_ = new ::std::string;
00349 }
00350 return state_;
00351 }
00352 inline ::std::string* Engine_Option::release_state() {
00353 clear_has_state();
00354 if (state_ == &::google::protobuf::internal::kEmptyString) {
00355 return NULL;
00356 } else {
00357 ::std::string* temp = state_;
00358 state_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00359 return temp;
00360 }
00361 }
00362
00363
00364
00365
00366
00367
00368 inline bool Engine::has_name() const {
00369 return (_has_bits_[0] & 0x00000001u) != 0;
00370 }
00371 inline void Engine::set_has_name() {
00372 _has_bits_[0] |= 0x00000001u;
00373 }
00374 inline void Engine::clear_has_name() {
00375 _has_bits_[0] &= ~0x00000001u;
00376 }
00377 inline void Engine::clear_name() {
00378 if (name_ != &::google::protobuf::internal::kEmptyString) {
00379 name_->clear();
00380 }
00381 clear_has_name();
00382 }
00383 inline const ::std::string& Engine::name() const {
00384 return *name_;
00385 }
00386 inline void Engine::set_name(const ::std::string& value) {
00387 set_has_name();
00388 if (name_ == &::google::protobuf::internal::kEmptyString) {
00389 name_ = new ::std::string;
00390 }
00391 name_->assign(value);
00392 }
00393 inline void Engine::set_name(const char* value) {
00394 set_has_name();
00395 if (name_ == &::google::protobuf::internal::kEmptyString) {
00396 name_ = new ::std::string;
00397 }
00398 name_->assign(value);
00399 }
00400 inline void Engine::set_name(const char* value, size_t size) {
00401 set_has_name();
00402 if (name_ == &::google::protobuf::internal::kEmptyString) {
00403 name_ = new ::std::string;
00404 }
00405 name_->assign(reinterpret_cast<const char*>(value), size);
00406 }
00407 inline ::std::string* Engine::mutable_name() {
00408 set_has_name();
00409 if (name_ == &::google::protobuf::internal::kEmptyString) {
00410 name_ = new ::std::string;
00411 }
00412 return name_;
00413 }
00414 inline ::std::string* Engine::release_name() {
00415 clear_has_name();
00416 if (name_ == &::google::protobuf::internal::kEmptyString) {
00417 return NULL;
00418 } else {
00419 ::std::string* temp = name_;
00420 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00421 return temp;
00422 }
00423 }
00424
00425
00426 inline int Engine::options_size() const {
00427 return options_.size();
00428 }
00429 inline void Engine::clear_options() {
00430 options_.Clear();
00431 }
00432 inline const ::drizzled::message::Engine_Option& Engine::options(int index) const {
00433 return options_.Get(index);
00434 }
00435 inline ::drizzled::message::Engine_Option* Engine::mutable_options(int index) {
00436 return options_.Mutable(index);
00437 }
00438 inline ::drizzled::message::Engine_Option* Engine::add_options() {
00439 return options_.Add();
00440 }
00441 inline const ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option >&
00442 Engine::options() const {
00443 return options_;
00444 }
00445 inline ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option >*
00446 Engine::mutable_options() {
00447 return &options_;
00448 }
00449
00450
00451
00452
00453 }
00454 }
00455
00456 #ifndef SWIG
00457 namespace google {
00458 namespace protobuf {
00459
00460
00461 }
00462 }
00463 #endif // SWIG
00464
00465
00466
00467 #endif // PROTOBUF_engine_2eproto__INCLUDED