4 #ifndef PROTOBUF_engine_2eproto__INCLUDED
5 #define PROTOBUF_engine_2eproto__INCLUDED
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 2006000
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 2006001 < 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;
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();
105 inline void set_allocated_name(::std::string* name);
108 inline bool has_state()
const;
109 inline void clear_state();
110 static const int kStateFieldNumber = 2;
111 inline const ::std::string& state()
const;
112 inline void set_state(const ::std::string& value);
113 inline void set_state(
const char* value);
114 inline void set_state(
const char* value,
size_t size);
115 inline ::std::string* mutable_state();
116 inline ::std::string* release_state();
117 inline void set_allocated_state(::std::string* state);
121 inline void set_has_name();
122 inline void clear_has_name();
123 inline void set_has_state();
124 inline void clear_has_state();
126 ::google::protobuf::UnknownFieldSet _unknown_fields_;
128 ::google::protobuf::uint32 _has_bits_[1];
129 mutable int _cached_size_;
130 ::std::string* name_;
131 ::std::string* state_;
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;
188 ::google::protobuf::Metadata GetMetadata()
const;
197 inline bool has_name()
const;
198 inline void clear_name();
199 static const int kNameFieldNumber = 1;
200 inline const ::std::string& name()
const;
201 inline void set_name(const ::std::string& value);
202 inline void set_name(
const char* value);
203 inline void set_name(
const char* value,
size_t size);
204 inline ::std::string* mutable_name();
205 inline ::std::string* release_name();
206 inline void set_allocated_name(::std::string* 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 ::google::protobuf::uint32 _has_bits_[1];
228 mutable int _cached_size_;
229 ::std::string* name_;
230 ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option > options_;
231 friend void protobuf_AddDesc_engine_2eproto();
232 friend void protobuf_AssignDesc_engine_2eproto();
233 friend void protobuf_ShutdownFile_engine_2eproto();
235 void InitAsDefaultInstance();
236 static Engine* default_instance_;
246 inline bool Engine_Option::has_name()
const {
247 return (_has_bits_[0] & 0x00000001u) != 0;
249 inline void Engine_Option::set_has_name() {
250 _has_bits_[0] |= 0x00000001u;
252 inline void Engine_Option::clear_has_name() {
253 _has_bits_[0] &= ~0x00000001u;
255 inline void Engine_Option::clear_name() {
256 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
261 inline const ::std::string& Engine_Option::name()
const {
265 inline void Engine_Option::set_name(const ::std::string& value) {
267 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
268 name_ = new ::std::string;
270 name_->assign(value);
273 inline void Engine_Option::set_name(
const char* value) {
275 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
276 name_ = new ::std::string;
278 name_->assign(value);
281 inline void Engine_Option::set_name(
const char* value,
size_t size) {
283 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
284 name_ = new ::std::string;
286 name_->assign(reinterpret_cast<const char*>(value), size);
289 inline ::std::string* Engine_Option::mutable_name() {
291 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
292 name_ = new ::std::string;
297 inline ::std::string* Engine_Option::release_name() {
299 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
302 ::std::string* temp = name_;
303 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
307 inline void Engine_Option::set_allocated_name(::std::string* name) {
308 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
316 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
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::GetEmptyStringAlreadyInited()) {
337 inline const ::std::string& Engine_Option::state()
const {
341 inline void Engine_Option::set_state(const ::std::string& value) {
343 if (state_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
344 state_ = new ::std::string;
346 state_->assign(value);
349 inline void Engine_Option::set_state(
const char* value) {
351 if (state_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
352 state_ = new ::std::string;
354 state_->assign(value);
357 inline void Engine_Option::set_state(
const char* value,
size_t size) {
359 if (state_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
360 state_ = new ::std::string;
362 state_->assign(reinterpret_cast<const char*>(value), size);
365 inline ::std::string* Engine_Option::mutable_state() {
367 if (state_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
368 state_ = new ::std::string;
373 inline ::std::string* Engine_Option::release_state() {
375 if (state_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
378 ::std::string* temp = state_;
379 state_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
383 inline void Engine_Option::set_allocated_state(::std::string* state) {
384 if (state_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
392 state_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
402 inline bool Engine::has_name()
const {
403 return (_has_bits_[0] & 0x00000001u) != 0;
405 inline void Engine::set_has_name() {
406 _has_bits_[0] |= 0x00000001u;
408 inline void Engine::clear_has_name() {
409 _has_bits_[0] &= ~0x00000001u;
411 inline void Engine::clear_name() {
412 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
417 inline const ::std::string& Engine::name()
const {
421 inline void Engine::set_name(const ::std::string& value) {
423 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
424 name_ = new ::std::string;
426 name_->assign(value);
429 inline void Engine::set_name(
const char* value) {
431 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
432 name_ = new ::std::string;
434 name_->assign(value);
437 inline void Engine::set_name(
const char* value,
size_t size) {
439 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
440 name_ = new ::std::string;
442 name_->assign(reinterpret_cast<const char*>(value), size);
445 inline ::std::string* Engine::mutable_name() {
447 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
448 name_ = new ::std::string;
453 inline ::std::string* Engine::release_name() {
455 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
458 ::std::string* temp = name_;
459 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
463 inline void Engine::set_allocated_name(::std::string* name) {
464 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
472 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
478 inline int Engine::options_size()
const {
479 return options_.size();
481 inline void Engine::clear_options() {
484 inline const ::drizzled::message::Engine_Option& Engine::options(
int index)
const {
486 return options_.Get(index);
488 inline ::drizzled::message::Engine_Option* Engine::mutable_options(
int index) {
490 return options_.Mutable(index);
492 inline ::drizzled::message::Engine_Option* Engine::add_options() {
494 return options_.Add();
496 inline const ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option >&
497 Engine::options()
const {
501 inline ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option >*
502 Engine::mutable_options() {
524 #endif // PROTOBUF_engine_2eproto__INCLUDED
TODO: Rename this file - func.h is stupid.