4 #ifndef PROTOBUF_engine_2eproto__INCLUDED
5 #define PROTOBUF_engine_2eproto__INCLUDED
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 2004000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 2004001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/generated_message_util.h>
23 #include <google/protobuf/repeated_field.h>
24 #include <google/protobuf/extension_set.h>
25 #include <google/protobuf/generated_message_reflection.h>
32 void protobuf_AddDesc_engine_2eproto();
33 void protobuf_AssignDesc_engine_2eproto();
34 void protobuf_ShutdownFile_engine_2eproto();
53 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
54 return _unknown_fields_;
57 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
58 return &_unknown_fields_;
61 static const ::google::protobuf::Descriptor* descriptor();
69 void CopyFrom(const ::google::protobuf::Message& from);
70 void MergeFrom(const ::google::protobuf::Message& from);
74 bool IsInitialized()
const;
77 bool MergePartialFromCodedStream(
78 ::google::protobuf::io::CodedInputStream* input);
79 void SerializeWithCachedSizes(
80 ::google::protobuf::io::CodedOutputStream* output)
const;
81 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
82 int GetCachedSize()
const {
return _cached_size_; }
86 void SetCachedSize(
int size)
const;
89 ::google::protobuf::Metadata GetMetadata()
const;
96 inline bool has_name()
const;
97 inline void clear_name();
98 static const int kNameFieldNumber = 1;
99 inline const ::std::string& name()
const;
100 inline void set_name(const ::std::string& value);
101 inline void set_name(
const char* value);
102 inline void set_name(
const char* value,
size_t size);
103 inline ::std::string* mutable_name();
104 inline ::std::string* release_name();
107 inline bool has_state()
const;
108 inline void clear_state();
109 static const int kStateFieldNumber = 2;
110 inline const ::std::string& state()
const;
111 inline void set_state(const ::std::string& value);
112 inline void set_state(
const char* value);
113 inline void set_state(
const char* value,
size_t size);
114 inline ::std::string* mutable_state();
115 inline ::std::string* release_state();
119 inline void set_has_name();
120 inline void clear_has_name();
121 inline void set_has_state();
122 inline void clear_has_state();
124 ::google::protobuf::UnknownFieldSet _unknown_fields_;
126 ::std::string* name_;
127 ::std::string* state_;
129 mutable int _cached_size_;
130 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
132 friend void protobuf_AddDesc_engine_2eproto();
133 friend void protobuf_AssignDesc_engine_2eproto();
134 friend void protobuf_ShutdownFile_engine_2eproto();
136 void InitAsDefaultInstance();
141 class Engine :
public ::google::protobuf::Message {
153 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
154 return _unknown_fields_;
157 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
158 return &_unknown_fields_;
161 static const ::google::protobuf::Descriptor* descriptor();
162 static const Engine& default_instance();
169 void CopyFrom(const ::google::protobuf::Message& from);
170 void MergeFrom(const ::google::protobuf::Message& from);
171 void CopyFrom(
const Engine& from);
172 void MergeFrom(
const Engine& from);
174 bool IsInitialized()
const;
176 int ByteSize()
const;
177 bool MergePartialFromCodedStream(
178 ::google::protobuf::io::CodedInputStream* input);
179 void SerializeWithCachedSizes(
180 ::google::protobuf::io::CodedOutputStream* output)
const;
181 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
182 int GetCachedSize()
const {
return _cached_size_; }
186 void SetCachedSize(
int size)
const;
189 ::google::protobuf::Metadata GetMetadata()
const;
198 inline bool has_name()
const;
199 inline void clear_name();
200 static const int kNameFieldNumber = 1;
201 inline const ::std::string& name()
const;
202 inline void set_name(const ::std::string& value);
203 inline void set_name(
const char* value);
204 inline void set_name(
const char* value,
size_t size);
205 inline ::std::string* mutable_name();
206 inline ::std::string* release_name();
209 inline int options_size()
const;
210 inline void clear_options();
211 static const int kOptionsFieldNumber = 2;
212 inline const ::drizzled::message::Engine_Option& options(
int index)
const;
213 inline ::drizzled::message::Engine_Option* mutable_options(
int index);
214 inline ::drizzled::message::Engine_Option* add_options();
215 inline const ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option >&
217 inline ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option >*
222 inline void set_has_name();
223 inline void clear_has_name();
225 ::google::protobuf::UnknownFieldSet _unknown_fields_;
227 ::std::string* name_;
228 ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option > options_;
230 mutable int _cached_size_;
231 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
233 friend void protobuf_AddDesc_engine_2eproto();
234 friend void protobuf_AssignDesc_engine_2eproto();
235 friend void protobuf_ShutdownFile_engine_2eproto();
237 void InitAsDefaultInstance();
238 static Engine* default_instance_;
248 inline bool Engine_Option::has_name()
const {
249 return (_has_bits_[0] & 0x00000001u) != 0;
251 inline void Engine_Option::set_has_name() {
252 _has_bits_[0] |= 0x00000001u;
254 inline void Engine_Option::clear_has_name() {
255 _has_bits_[0] &= ~0x00000001u;
257 inline void Engine_Option::clear_name() {
258 if (name_ != &::google::protobuf::internal::kEmptyString) {
263 inline const ::std::string& Engine_Option::name()
const {
266 inline void Engine_Option::set_name(const ::std::string& value) {
268 if (name_ == &::google::protobuf::internal::kEmptyString) {
269 name_ = new ::std::string;
271 name_->assign(value);
273 inline void Engine_Option::set_name(
const char* value) {
275 if (name_ == &::google::protobuf::internal::kEmptyString) {
276 name_ = new ::std::string;
278 name_->assign(value);
280 inline void Engine_Option::set_name(
const char* value,
size_t size) {
282 if (name_ == &::google::protobuf::internal::kEmptyString) {
283 name_ = new ::std::string;
285 name_->assign(reinterpret_cast<const char*>(value), size);
287 inline ::std::string* Engine_Option::mutable_name() {
289 if (name_ == &::google::protobuf::internal::kEmptyString) {
290 name_ = new ::std::string;
294 inline ::std::string* Engine_Option::release_name() {
296 if (name_ == &::google::protobuf::internal::kEmptyString) {
299 ::std::string* temp = name_;
300 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
306 inline bool Engine_Option::has_state()
const {
307 return (_has_bits_[0] & 0x00000002u) != 0;
309 inline void Engine_Option::set_has_state() {
310 _has_bits_[0] |= 0x00000002u;
312 inline void Engine_Option::clear_has_state() {
313 _has_bits_[0] &= ~0x00000002u;
315 inline void Engine_Option::clear_state() {
316 if (state_ != &::google::protobuf::internal::kEmptyString) {
321 inline const ::std::string& Engine_Option::state()
const {
324 inline void Engine_Option::set_state(const ::std::string& value) {
326 if (state_ == &::google::protobuf::internal::kEmptyString) {
327 state_ = new ::std::string;
329 state_->assign(value);
331 inline void Engine_Option::set_state(
const char* value) {
333 if (state_ == &::google::protobuf::internal::kEmptyString) {
334 state_ = new ::std::string;
336 state_->assign(value);
338 inline void Engine_Option::set_state(
const char* value,
size_t size) {
340 if (state_ == &::google::protobuf::internal::kEmptyString) {
341 state_ = new ::std::string;
343 state_->assign(reinterpret_cast<const char*>(value), size);
345 inline ::std::string* Engine_Option::mutable_state() {
347 if (state_ == &::google::protobuf::internal::kEmptyString) {
348 state_ = new ::std::string;
352 inline ::std::string* Engine_Option::release_state() {
354 if (state_ == &::google::protobuf::internal::kEmptyString) {
357 ::std::string* temp = state_;
358 state_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
368 inline bool Engine::has_name()
const {
369 return (_has_bits_[0] & 0x00000001u) != 0;
371 inline void Engine::set_has_name() {
372 _has_bits_[0] |= 0x00000001u;
374 inline void Engine::clear_has_name() {
375 _has_bits_[0] &= ~0x00000001u;
377 inline void Engine::clear_name() {
378 if (name_ != &::google::protobuf::internal::kEmptyString) {
383 inline const ::std::string& Engine::name()
const {
386 inline void Engine::set_name(const ::std::string& value) {
388 if (name_ == &::google::protobuf::internal::kEmptyString) {
389 name_ = new ::std::string;
391 name_->assign(value);
393 inline void Engine::set_name(
const char* value) {
395 if (name_ == &::google::protobuf::internal::kEmptyString) {
396 name_ = new ::std::string;
398 name_->assign(value);
400 inline void Engine::set_name(
const char* value,
size_t size) {
402 if (name_ == &::google::protobuf::internal::kEmptyString) {
403 name_ = new ::std::string;
405 name_->assign(reinterpret_cast<const char*>(value), size);
407 inline ::std::string* Engine::mutable_name() {
409 if (name_ == &::google::protobuf::internal::kEmptyString) {
410 name_ = new ::std::string;
414 inline ::std::string* Engine::release_name() {
416 if (name_ == &::google::protobuf::internal::kEmptyString) {
419 ::std::string* temp = name_;
420 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
426 inline int Engine::options_size()
const {
427 return options_.size();
429 inline void Engine::clear_options() {
432 inline const ::drizzled::message::Engine_Option& Engine::options(
int index)
const {
433 return options_.Get(index);
435 inline ::drizzled::message::Engine_Option* Engine::mutable_options(
int index) {
436 return options_.Mutable(index);
438 inline ::drizzled::message::Engine_Option* Engine::add_options() {
439 return options_.Add();
441 inline const ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option >&
442 Engine::options()
const {
445 inline ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option >*
446 Engine::mutable_options() {
467 #endif // PROTOBUF_engine_2eproto__INCLUDED