4 #ifndef PROTOBUF_engine_2eproto__INCLUDED
5 #define PROTOBUF_engine_2eproto__INCLUDED
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 2005000
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 2005000 < 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/message.h>
24 #include <google/protobuf/repeated_field.h>
25 #include <google/protobuf/extension_set.h>
26 #include <google/protobuf/unknown_field_set.h>
33 void protobuf_AddDesc_engine_2eproto();
34 void protobuf_AssignDesc_engine_2eproto();
35 void protobuf_ShutdownFile_engine_2eproto();
54 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
55 return _unknown_fields_;
58 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
59 return &_unknown_fields_;
62 static const ::google::protobuf::Descriptor* descriptor();
70 void CopyFrom(const ::google::protobuf::Message& from);
71 void MergeFrom(const ::google::protobuf::Message& from);
75 bool IsInitialized()
const;
78 bool MergePartialFromCodedStream(
79 ::google::protobuf::io::CodedInputStream* input);
80 void SerializeWithCachedSizes(
81 ::google::protobuf::io::CodedOutputStream* output)
const;
82 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
83 int GetCachedSize()
const {
return _cached_size_; }
87 void SetCachedSize(
int size)
const;
90 ::google::protobuf::Metadata GetMetadata()
const;
97 inline bool has_name()
const;
98 inline void clear_name();
99 static const int kNameFieldNumber = 1;
100 inline const ::std::string& name()
const;
101 inline void set_name(const ::std::string& value);
102 inline void set_name(
const char* value);
103 inline void set_name(
const char* value,
size_t size);
104 inline ::std::string* mutable_name();
105 inline ::std::string* release_name();
106 inline void set_allocated_name(::std::string* name);
109 inline bool has_state()
const;
110 inline void clear_state();
111 static const int kStateFieldNumber = 2;
112 inline const ::std::string& state()
const;
113 inline void set_state(const ::std::string& value);
114 inline void set_state(
const char* value);
115 inline void set_state(
const char* value,
size_t size);
116 inline ::std::string* mutable_state();
117 inline ::std::string* release_state();
118 inline void set_allocated_state(::std::string* state);
122 inline void set_has_name();
123 inline void clear_has_name();
124 inline void set_has_state();
125 inline void clear_has_state();
127 ::google::protobuf::UnknownFieldSet _unknown_fields_;
129 ::std::string* name_;
130 ::std::string* state_;
132 mutable int _cached_size_;
133 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
135 friend void protobuf_AddDesc_engine_2eproto();
136 friend void protobuf_AssignDesc_engine_2eproto();
137 friend void protobuf_ShutdownFile_engine_2eproto();
139 void InitAsDefaultInstance();
144 class Engine :
public ::google::protobuf::Message {
156 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
157 return _unknown_fields_;
160 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
161 return &_unknown_fields_;
164 static const ::google::protobuf::Descriptor* descriptor();
165 static const Engine& default_instance();
172 void CopyFrom(const ::google::protobuf::Message& from);
173 void MergeFrom(const ::google::protobuf::Message& from);
174 void CopyFrom(
const Engine& from);
175 void MergeFrom(
const Engine& from);
177 bool IsInitialized()
const;
179 int ByteSize()
const;
180 bool MergePartialFromCodedStream(
181 ::google::protobuf::io::CodedInputStream* input);
182 void SerializeWithCachedSizes(
183 ::google::protobuf::io::CodedOutputStream* output)
const;
184 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
185 int GetCachedSize()
const {
return _cached_size_; }
189 void SetCachedSize(
int size)
const;
192 ::google::protobuf::Metadata GetMetadata()
const;
201 inline bool has_name()
const;
202 inline void clear_name();
203 static const int kNameFieldNumber = 1;
204 inline const ::std::string& name()
const;
205 inline void set_name(const ::std::string& value);
206 inline void set_name(
const char* value);
207 inline void set_name(
const char* value,
size_t size);
208 inline ::std::string* mutable_name();
209 inline ::std::string* release_name();
210 inline void set_allocated_name(::std::string* name);
213 inline int options_size()
const;
214 inline void clear_options();
215 static const int kOptionsFieldNumber = 2;
216 inline const ::drizzled::message::Engine_Option& options(
int index)
const;
217 inline ::drizzled::message::Engine_Option* mutable_options(
int index);
218 inline ::drizzled::message::Engine_Option* add_options();
219 inline const ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option >&
221 inline ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option >*
226 inline void set_has_name();
227 inline void clear_has_name();
229 ::google::protobuf::UnknownFieldSet _unknown_fields_;
231 ::std::string* name_;
232 ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option > options_;
234 mutable int _cached_size_;
235 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
237 friend void protobuf_AddDesc_engine_2eproto();
238 friend void protobuf_AssignDesc_engine_2eproto();
239 friend void protobuf_ShutdownFile_engine_2eproto();
241 void InitAsDefaultInstance();
242 static Engine* default_instance_;
252 inline bool Engine_Option::has_name()
const {
253 return (_has_bits_[0] & 0x00000001u) != 0;
255 inline void Engine_Option::set_has_name() {
256 _has_bits_[0] |= 0x00000001u;
258 inline void Engine_Option::clear_has_name() {
259 _has_bits_[0] &= ~0x00000001u;
261 inline void Engine_Option::clear_name() {
262 if (name_ != &::google::protobuf::internal::kEmptyString) {
267 inline const ::std::string& Engine_Option::name()
const {
270 inline void Engine_Option::set_name(const ::std::string& value) {
272 if (name_ == &::google::protobuf::internal::kEmptyString) {
273 name_ = new ::std::string;
275 name_->assign(value);
277 inline void Engine_Option::set_name(
const char* value) {
279 if (name_ == &::google::protobuf::internal::kEmptyString) {
280 name_ = new ::std::string;
282 name_->assign(value);
284 inline void Engine_Option::set_name(
const char* value,
size_t size) {
286 if (name_ == &::google::protobuf::internal::kEmptyString) {
287 name_ = new ::std::string;
289 name_->assign(reinterpret_cast<const char*>(value), size);
291 inline ::std::string* Engine_Option::mutable_name() {
293 if (name_ == &::google::protobuf::internal::kEmptyString) {
294 name_ = new ::std::string;
298 inline ::std::string* Engine_Option::release_name() {
300 if (name_ == &::google::protobuf::internal::kEmptyString) {
303 ::std::string* temp = name_;
304 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
308 inline void Engine_Option::set_allocated_name(::std::string* name) {
309 if (name_ != &::google::protobuf::internal::kEmptyString) {
317 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
322 inline bool Engine_Option::has_state()
const {
323 return (_has_bits_[0] & 0x00000002u) != 0;
325 inline void Engine_Option::set_has_state() {
326 _has_bits_[0] |= 0x00000002u;
328 inline void Engine_Option::clear_has_state() {
329 _has_bits_[0] &= ~0x00000002u;
331 inline void Engine_Option::clear_state() {
332 if (state_ != &::google::protobuf::internal::kEmptyString) {
337 inline const ::std::string& Engine_Option::state()
const {
340 inline void Engine_Option::set_state(const ::std::string& value) {
342 if (state_ == &::google::protobuf::internal::kEmptyString) {
343 state_ = new ::std::string;
345 state_->assign(value);
347 inline void Engine_Option::set_state(
const char* value) {
349 if (state_ == &::google::protobuf::internal::kEmptyString) {
350 state_ = new ::std::string;
352 state_->assign(value);
354 inline void Engine_Option::set_state(
const char* value,
size_t size) {
356 if (state_ == &::google::protobuf::internal::kEmptyString) {
357 state_ = new ::std::string;
359 state_->assign(reinterpret_cast<const char*>(value), size);
361 inline ::std::string* Engine_Option::mutable_state() {
363 if (state_ == &::google::protobuf::internal::kEmptyString) {
364 state_ = new ::std::string;
368 inline ::std::string* Engine_Option::release_state() {
370 if (state_ == &::google::protobuf::internal::kEmptyString) {
373 ::std::string* temp = state_;
374 state_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
378 inline void Engine_Option::set_allocated_state(::std::string* state) {
379 if (state_ != &::google::protobuf::internal::kEmptyString) {
387 state_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
396 inline bool Engine::has_name()
const {
397 return (_has_bits_[0] & 0x00000001u) != 0;
399 inline void Engine::set_has_name() {
400 _has_bits_[0] |= 0x00000001u;
402 inline void Engine::clear_has_name() {
403 _has_bits_[0] &= ~0x00000001u;
405 inline void Engine::clear_name() {
406 if (name_ != &::google::protobuf::internal::kEmptyString) {
411 inline const ::std::string& Engine::name()
const {
414 inline void Engine::set_name(const ::std::string& value) {
416 if (name_ == &::google::protobuf::internal::kEmptyString) {
417 name_ = new ::std::string;
419 name_->assign(value);
421 inline void Engine::set_name(
const char* value) {
423 if (name_ == &::google::protobuf::internal::kEmptyString) {
424 name_ = new ::std::string;
426 name_->assign(value);
428 inline void Engine::set_name(
const char* value,
size_t size) {
430 if (name_ == &::google::protobuf::internal::kEmptyString) {
431 name_ = new ::std::string;
433 name_->assign(reinterpret_cast<const char*>(value), size);
435 inline ::std::string* Engine::mutable_name() {
437 if (name_ == &::google::protobuf::internal::kEmptyString) {
438 name_ = new ::std::string;
442 inline ::std::string* Engine::release_name() {
444 if (name_ == &::google::protobuf::internal::kEmptyString) {
447 ::std::string* temp = name_;
448 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
452 inline void Engine::set_allocated_name(::std::string* name) {
453 if (name_ != &::google::protobuf::internal::kEmptyString) {
461 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
466 inline int Engine::options_size()
const {
467 return options_.size();
469 inline void Engine::clear_options() {
472 inline const ::drizzled::message::Engine_Option& Engine::options(
int index)
const {
473 return options_.Get(index);
475 inline ::drizzled::message::Engine_Option* Engine::mutable_options(
int index) {
476 return options_.Mutable(index);
478 inline ::drizzled::message::Engine_Option* Engine::add_options() {
479 return options_.Add();
481 inline const ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option >&
482 Engine::options()
const {
485 inline ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option >*
486 Engine::mutable_options() {
507 #endif // PROTOBUF_engine_2eproto__INCLUDED