Drizzled Public API Documentation

engine.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: engine.proto
3 
4 #ifndef PROTOBUF_engine_2eproto__INCLUDED
5 #define PROTOBUF_engine_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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>
27 // @@protoc_insertion_point(includes)
28 
29 namespace drizzled {
30 namespace message {
31 
32 // Internal implementation detail -- do not call these.
33 void protobuf_AddDesc_engine_2eproto();
34 void protobuf_AssignDesc_engine_2eproto();
35 void protobuf_ShutdownFile_engine_2eproto();
36 
37 class Engine;
38 class Engine_Option;
39 
40 // ===================================================================
41 
42 class Engine_Option : public ::google::protobuf::Message {
43  public:
44  Engine_Option();
45  virtual ~Engine_Option();
46 
47  Engine_Option(const Engine_Option& from);
48 
49  inline Engine_Option& operator=(const Engine_Option& from) {
50  CopyFrom(from);
51  return *this;
52  }
53 
54  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
55  return _unknown_fields_;
56  }
57 
58  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
59  return &_unknown_fields_;
60  }
61 
62  static const ::google::protobuf::Descriptor* descriptor();
63  static const Engine_Option& default_instance();
64 
65  void Swap(Engine_Option* other);
66 
67  // implements Message ----------------------------------------------
68 
69  Engine_Option* New() const;
70  void CopyFrom(const ::google::protobuf::Message& from);
71  void MergeFrom(const ::google::protobuf::Message& from);
72  void CopyFrom(const Engine_Option& from);
73  void MergeFrom(const Engine_Option& from);
74  void Clear();
75  bool IsInitialized() const;
76 
77  int ByteSize() 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_; }
84  private:
85  void SharedCtor();
86  void SharedDtor();
87  void SetCachedSize(int size) const;
88  public:
89  ::google::protobuf::Metadata GetMetadata() const;
90 
91  // nested types ----------------------------------------------------
92 
93  // accessors -------------------------------------------------------
94 
95  // required string name = 1;
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);
106 
107  // optional string state = 2;
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);
118 
119  // @@protoc_insertion_point(class_scope:drizzled.message.Engine.Option)
120  private:
121  inline void set_has_name();
122  inline void clear_has_name();
123  inline void set_has_state();
124  inline void clear_has_state();
125 
126  ::google::protobuf::UnknownFieldSet _unknown_fields_;
127 
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();
135 
136  void InitAsDefaultInstance();
137  static Engine_Option* default_instance_;
138 };
139 // -------------------------------------------------------------------
140 
141 class Engine : public ::google::protobuf::Message {
142  public:
143  Engine();
144  virtual ~Engine();
145 
146  Engine(const Engine& from);
147 
148  inline Engine& operator=(const Engine& from) {
149  CopyFrom(from);
150  return *this;
151  }
152 
153  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
154  return _unknown_fields_;
155  }
156 
157  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
158  return &_unknown_fields_;
159  }
160 
161  static const ::google::protobuf::Descriptor* descriptor();
162  static const Engine& default_instance();
163 
164  void Swap(Engine* other);
165 
166  // implements Message ----------------------------------------------
167 
168  Engine* New() const;
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);
173  void Clear();
174  bool IsInitialized() const;
175 
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_; }
183  private:
184  void SharedCtor();
185  void SharedDtor();
186  void SetCachedSize(int size) const;
187  public:
188  ::google::protobuf::Metadata GetMetadata() const;
189 
190  // nested types ----------------------------------------------------
191 
192  typedef Engine_Option Option;
193 
194  // accessors -------------------------------------------------------
195 
196  // required string name = 1;
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);
207 
208  // repeated .drizzled.message.Engine.Option options = 2;
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 >&
216  options() const;
217  inline ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option >*
218  mutable_options();
219 
220  // @@protoc_insertion_point(class_scope:drizzled.message.Engine)
221  private:
222  inline void set_has_name();
223  inline void clear_has_name();
224 
225  ::google::protobuf::UnknownFieldSet _unknown_fields_;
226 
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();
234 
235  void InitAsDefaultInstance();
236  static Engine* default_instance_;
237 };
238 // ===================================================================
239 
240 
241 // ===================================================================
242 
243 // Engine_Option
244 
245 // required string name = 1;
246 inline bool Engine_Option::has_name() const {
247  return (_has_bits_[0] & 0x00000001u) != 0;
248 }
249 inline void Engine_Option::set_has_name() {
250  _has_bits_[0] |= 0x00000001u;
251 }
252 inline void Engine_Option::clear_has_name() {
253  _has_bits_[0] &= ~0x00000001u;
254 }
255 inline void Engine_Option::clear_name() {
256  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
257  name_->clear();
258  }
259  clear_has_name();
260 }
261 inline const ::std::string& Engine_Option::name() const {
262  // @@protoc_insertion_point(field_get:drizzled.message.Engine.Option.name)
263  return *name_;
264 }
265 inline void Engine_Option::set_name(const ::std::string& value) {
266  set_has_name();
267  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
268  name_ = new ::std::string;
269  }
270  name_->assign(value);
271  // @@protoc_insertion_point(field_set:drizzled.message.Engine.Option.name)
272 }
273 inline void Engine_Option::set_name(const char* value) {
274  set_has_name();
275  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
276  name_ = new ::std::string;
277  }
278  name_->assign(value);
279  // @@protoc_insertion_point(field_set_char:drizzled.message.Engine.Option.name)
280 }
281 inline void Engine_Option::set_name(const char* value, size_t size) {
282  set_has_name();
283  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
284  name_ = new ::std::string;
285  }
286  name_->assign(reinterpret_cast<const char*>(value), size);
287  // @@protoc_insertion_point(field_set_pointer:drizzled.message.Engine.Option.name)
288 }
289 inline ::std::string* Engine_Option::mutable_name() {
290  set_has_name();
291  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
292  name_ = new ::std::string;
293  }
294  // @@protoc_insertion_point(field_mutable:drizzled.message.Engine.Option.name)
295  return name_;
296 }
297 inline ::std::string* Engine_Option::release_name() {
298  clear_has_name();
299  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
300  return NULL;
301  } else {
302  ::std::string* temp = name_;
303  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
304  return temp;
305  }
306 }
307 inline void Engine_Option::set_allocated_name(::std::string* name) {
308  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
309  delete name_;
310  }
311  if (name) {
312  set_has_name();
313  name_ = name;
314  } else {
315  clear_has_name();
316  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
317  }
318  // @@protoc_insertion_point(field_set_allocated:drizzled.message.Engine.Option.name)
319 }
320 
321 // optional string state = 2;
322 inline bool Engine_Option::has_state() const {
323  return (_has_bits_[0] & 0x00000002u) != 0;
324 }
325 inline void Engine_Option::set_has_state() {
326  _has_bits_[0] |= 0x00000002u;
327 }
328 inline void Engine_Option::clear_has_state() {
329  _has_bits_[0] &= ~0x00000002u;
330 }
331 inline void Engine_Option::clear_state() {
332  if (state_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
333  state_->clear();
334  }
335  clear_has_state();
336 }
337 inline const ::std::string& Engine_Option::state() const {
338  // @@protoc_insertion_point(field_get:drizzled.message.Engine.Option.state)
339  return *state_;
340 }
341 inline void Engine_Option::set_state(const ::std::string& value) {
342  set_has_state();
343  if (state_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
344  state_ = new ::std::string;
345  }
346  state_->assign(value);
347  // @@protoc_insertion_point(field_set:drizzled.message.Engine.Option.state)
348 }
349 inline void Engine_Option::set_state(const char* value) {
350  set_has_state();
351  if (state_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
352  state_ = new ::std::string;
353  }
354  state_->assign(value);
355  // @@protoc_insertion_point(field_set_char:drizzled.message.Engine.Option.state)
356 }
357 inline void Engine_Option::set_state(const char* value, size_t size) {
358  set_has_state();
359  if (state_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
360  state_ = new ::std::string;
361  }
362  state_->assign(reinterpret_cast<const char*>(value), size);
363  // @@protoc_insertion_point(field_set_pointer:drizzled.message.Engine.Option.state)
364 }
365 inline ::std::string* Engine_Option::mutable_state() {
366  set_has_state();
367  if (state_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
368  state_ = new ::std::string;
369  }
370  // @@protoc_insertion_point(field_mutable:drizzled.message.Engine.Option.state)
371  return state_;
372 }
373 inline ::std::string* Engine_Option::release_state() {
374  clear_has_state();
375  if (state_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
376  return NULL;
377  } else {
378  ::std::string* temp = state_;
379  state_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
380  return temp;
381  }
382 }
383 inline void Engine_Option::set_allocated_state(::std::string* state) {
384  if (state_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
385  delete state_;
386  }
387  if (state) {
388  set_has_state();
389  state_ = state;
390  } else {
391  clear_has_state();
392  state_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
393  }
394  // @@protoc_insertion_point(field_set_allocated:drizzled.message.Engine.Option.state)
395 }
396 
397 // -------------------------------------------------------------------
398 
399 // Engine
400 
401 // required string name = 1;
402 inline bool Engine::has_name() const {
403  return (_has_bits_[0] & 0x00000001u) != 0;
404 }
405 inline void Engine::set_has_name() {
406  _has_bits_[0] |= 0x00000001u;
407 }
408 inline void Engine::clear_has_name() {
409  _has_bits_[0] &= ~0x00000001u;
410 }
411 inline void Engine::clear_name() {
412  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
413  name_->clear();
414  }
415  clear_has_name();
416 }
417 inline const ::std::string& Engine::name() const {
418  // @@protoc_insertion_point(field_get:drizzled.message.Engine.name)
419  return *name_;
420 }
421 inline void Engine::set_name(const ::std::string& value) {
422  set_has_name();
423  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
424  name_ = new ::std::string;
425  }
426  name_->assign(value);
427  // @@protoc_insertion_point(field_set:drizzled.message.Engine.name)
428 }
429 inline void Engine::set_name(const char* value) {
430  set_has_name();
431  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
432  name_ = new ::std::string;
433  }
434  name_->assign(value);
435  // @@protoc_insertion_point(field_set_char:drizzled.message.Engine.name)
436 }
437 inline void Engine::set_name(const char* value, size_t size) {
438  set_has_name();
439  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
440  name_ = new ::std::string;
441  }
442  name_->assign(reinterpret_cast<const char*>(value), size);
443  // @@protoc_insertion_point(field_set_pointer:drizzled.message.Engine.name)
444 }
445 inline ::std::string* Engine::mutable_name() {
446  set_has_name();
447  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
448  name_ = new ::std::string;
449  }
450  // @@protoc_insertion_point(field_mutable:drizzled.message.Engine.name)
451  return name_;
452 }
453 inline ::std::string* Engine::release_name() {
454  clear_has_name();
455  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
456  return NULL;
457  } else {
458  ::std::string* temp = name_;
459  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
460  return temp;
461  }
462 }
463 inline void Engine::set_allocated_name(::std::string* name) {
464  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
465  delete name_;
466  }
467  if (name) {
468  set_has_name();
469  name_ = name;
470  } else {
471  clear_has_name();
472  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
473  }
474  // @@protoc_insertion_point(field_set_allocated:drizzled.message.Engine.name)
475 }
476 
477 // repeated .drizzled.message.Engine.Option options = 2;
478 inline int Engine::options_size() const {
479  return options_.size();
480 }
481 inline void Engine::clear_options() {
482  options_.Clear();
483 }
484 inline const ::drizzled::message::Engine_Option& Engine::options(int index) const {
485  // @@protoc_insertion_point(field_get:drizzled.message.Engine.options)
486  return options_.Get(index);
487 }
488 inline ::drizzled::message::Engine_Option* Engine::mutable_options(int index) {
489  // @@protoc_insertion_point(field_mutable:drizzled.message.Engine.options)
490  return options_.Mutable(index);
491 }
492 inline ::drizzled::message::Engine_Option* Engine::add_options() {
493  // @@protoc_insertion_point(field_add:drizzled.message.Engine.options)
494  return options_.Add();
495 }
496 inline const ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option >&
497 Engine::options() const {
498  // @@protoc_insertion_point(field_list:drizzled.message.Engine.options)
499  return options_;
500 }
501 inline ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option >*
502 Engine::mutable_options() {
503  // @@protoc_insertion_point(field_mutable_list:drizzled.message.Engine.options)
504  return &options_;
505 }
506 
507 
508 // @@protoc_insertion_point(namespace_scope)
509 
510 } // namespace message
511 } // namespace drizzled
512 
513 #ifndef SWIG
514 namespace google {
515 namespace protobuf {
516 
517 
518 } // namespace google
519 } // namespace protobuf
520 #endif // SWIG
521 
522 // @@protoc_insertion_point(global_scope)
523 
524 #endif // PROTOBUF_engine_2eproto__INCLUDED
TODO: Rename this file - func.h is stupid.