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