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 < 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
14 #error your headers.
15 #endif
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.
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 
90  ::google::protobuf::Metadata GetMetadata() const;
91 
92  // nested types ----------------------------------------------------
93 
94  // accessors -------------------------------------------------------
95 
96  // required string name = 1;
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);
107 
108  // optional string state = 2;
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);
119 
120  // @@protoc_insertion_point(class_scope:drizzled.message.Engine.Option)
121  private:
122  inline void set_has_name();
123  inline void clear_has_name();
124  inline void set_has_state();
125  inline void clear_has_state();
126 
127  ::google::protobuf::UnknownFieldSet _unknown_fields_;
128 
129  ::std::string* name_;
130  ::std::string* state_;
131 
132  mutable int _cached_size_;
133  ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
134 
135  friend void protobuf_AddDesc_engine_2eproto();
136  friend void protobuf_AssignDesc_engine_2eproto();
137  friend void protobuf_ShutdownFile_engine_2eproto();
138 
139  void InitAsDefaultInstance();
140  static Engine_Option* default_instance_;
141 };
142 // -------------------------------------------------------------------
143 
144 class Engine : public ::google::protobuf::Message {
145  public:
146  Engine();
147  virtual ~Engine();
148 
149  Engine(const Engine& from);
150 
151  inline Engine& operator=(const Engine& from) {
152  CopyFrom(from);
153  return *this;
154  }
155 
156  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
157  return _unknown_fields_;
158  }
159 
160  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
161  return &_unknown_fields_;
162  }
163 
164  static const ::google::protobuf::Descriptor* descriptor();
165  static const Engine& default_instance();
166 
167  void Swap(Engine* other);
168 
169  // implements Message ----------------------------------------------
170 
171  Engine* New() const;
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);
176  void Clear();
177  bool IsInitialized() const;
178 
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_; }
186  private:
187  void SharedCtor();
188  void SharedDtor();
189  void SetCachedSize(int size) const;
190  public:
191 
192  ::google::protobuf::Metadata GetMetadata() const;
193 
194  // nested types ----------------------------------------------------
195 
196  typedef Engine_Option Option;
197 
198  // accessors -------------------------------------------------------
199 
200  // required string name = 1;
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);
211 
212  // repeated .drizzled.message.Engine.Option options = 2;
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 >&
220  options() const;
221  inline ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option >*
222  mutable_options();
223 
224  // @@protoc_insertion_point(class_scope:drizzled.message.Engine)
225  private:
226  inline void set_has_name();
227  inline void clear_has_name();
228 
229  ::google::protobuf::UnknownFieldSet _unknown_fields_;
230 
231  ::std::string* name_;
232  ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option > options_;
233 
234  mutable int _cached_size_;
235  ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
236 
237  friend void protobuf_AddDesc_engine_2eproto();
238  friend void protobuf_AssignDesc_engine_2eproto();
239  friend void protobuf_ShutdownFile_engine_2eproto();
240 
241  void InitAsDefaultInstance();
242  static Engine* default_instance_;
243 };
244 // ===================================================================
245 
246 
247 // ===================================================================
248 
249 // Engine_Option
250 
251 // required string name = 1;
252 inline bool Engine_Option::has_name() const {
253  return (_has_bits_[0] & 0x00000001u) != 0;
254 }
255 inline void Engine_Option::set_has_name() {
256  _has_bits_[0] |= 0x00000001u;
257 }
258 inline void Engine_Option::clear_has_name() {
259  _has_bits_[0] &= ~0x00000001u;
260 }
261 inline void Engine_Option::clear_name() {
262  if (name_ != &::google::protobuf::internal::kEmptyString) {
263  name_->clear();
264  }
265  clear_has_name();
266 }
267 inline const ::std::string& Engine_Option::name() const {
268  return *name_;
269 }
270 inline void Engine_Option::set_name(const ::std::string& value) {
271  set_has_name();
272  if (name_ == &::google::protobuf::internal::kEmptyString) {
273  name_ = new ::std::string;
274  }
275  name_->assign(value);
276 }
277 inline void Engine_Option::set_name(const char* value) {
278  set_has_name();
279  if (name_ == &::google::protobuf::internal::kEmptyString) {
280  name_ = new ::std::string;
281  }
282  name_->assign(value);
283 }
284 inline void Engine_Option::set_name(const char* value, size_t size) {
285  set_has_name();
286  if (name_ == &::google::protobuf::internal::kEmptyString) {
287  name_ = new ::std::string;
288  }
289  name_->assign(reinterpret_cast<const char*>(value), size);
290 }
291 inline ::std::string* Engine_Option::mutable_name() {
292  set_has_name();
293  if (name_ == &::google::protobuf::internal::kEmptyString) {
294  name_ = new ::std::string;
295  }
296  return name_;
297 }
298 inline ::std::string* Engine_Option::release_name() {
299  clear_has_name();
300  if (name_ == &::google::protobuf::internal::kEmptyString) {
301  return NULL;
302  } else {
303  ::std::string* temp = name_;
304  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
305  return temp;
306  }
307 }
308 inline void Engine_Option::set_allocated_name(::std::string* name) {
309  if (name_ != &::google::protobuf::internal::kEmptyString) {
310  delete name_;
311  }
312  if (name) {
313  set_has_name();
314  name_ = name;
315  } else {
316  clear_has_name();
317  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
318  }
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::kEmptyString) {
333  state_->clear();
334  }
335  clear_has_state();
336 }
337 inline const ::std::string& Engine_Option::state() const {
338  return *state_;
339 }
340 inline void Engine_Option::set_state(const ::std::string& value) {
341  set_has_state();
342  if (state_ == &::google::protobuf::internal::kEmptyString) {
343  state_ = new ::std::string;
344  }
345  state_->assign(value);
346 }
347 inline void Engine_Option::set_state(const char* value) {
348  set_has_state();
349  if (state_ == &::google::protobuf::internal::kEmptyString) {
350  state_ = new ::std::string;
351  }
352  state_->assign(value);
353 }
354 inline void Engine_Option::set_state(const char* value, size_t size) {
355  set_has_state();
356  if (state_ == &::google::protobuf::internal::kEmptyString) {
357  state_ = new ::std::string;
358  }
359  state_->assign(reinterpret_cast<const char*>(value), size);
360 }
361 inline ::std::string* Engine_Option::mutable_state() {
362  set_has_state();
363  if (state_ == &::google::protobuf::internal::kEmptyString) {
364  state_ = new ::std::string;
365  }
366  return state_;
367 }
368 inline ::std::string* Engine_Option::release_state() {
369  clear_has_state();
370  if (state_ == &::google::protobuf::internal::kEmptyString) {
371  return NULL;
372  } else {
373  ::std::string* temp = state_;
374  state_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
375  return temp;
376  }
377 }
378 inline void Engine_Option::set_allocated_state(::std::string* state) {
379  if (state_ != &::google::protobuf::internal::kEmptyString) {
380  delete state_;
381  }
382  if (state) {
383  set_has_state();
384  state_ = state;
385  } else {
386  clear_has_state();
387  state_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
388  }
389 }
390 
391 // -------------------------------------------------------------------
392 
393 // Engine
394 
395 // required string name = 1;
396 inline bool Engine::has_name() const {
397  return (_has_bits_[0] & 0x00000001u) != 0;
398 }
399 inline void Engine::set_has_name() {
400  _has_bits_[0] |= 0x00000001u;
401 }
402 inline void Engine::clear_has_name() {
403  _has_bits_[0] &= ~0x00000001u;
404 }
405 inline void Engine::clear_name() {
406  if (name_ != &::google::protobuf::internal::kEmptyString) {
407  name_->clear();
408  }
409  clear_has_name();
410 }
411 inline const ::std::string& Engine::name() const {
412  return *name_;
413 }
414 inline void Engine::set_name(const ::std::string& value) {
415  set_has_name();
416  if (name_ == &::google::protobuf::internal::kEmptyString) {
417  name_ = new ::std::string;
418  }
419  name_->assign(value);
420 }
421 inline void Engine::set_name(const char* value) {
422  set_has_name();
423  if (name_ == &::google::protobuf::internal::kEmptyString) {
424  name_ = new ::std::string;
425  }
426  name_->assign(value);
427 }
428 inline void Engine::set_name(const char* value, size_t size) {
429  set_has_name();
430  if (name_ == &::google::protobuf::internal::kEmptyString) {
431  name_ = new ::std::string;
432  }
433  name_->assign(reinterpret_cast<const char*>(value), size);
434 }
435 inline ::std::string* Engine::mutable_name() {
436  set_has_name();
437  if (name_ == &::google::protobuf::internal::kEmptyString) {
438  name_ = new ::std::string;
439  }
440  return name_;
441 }
442 inline ::std::string* Engine::release_name() {
443  clear_has_name();
444  if (name_ == &::google::protobuf::internal::kEmptyString) {
445  return NULL;
446  } else {
447  ::std::string* temp = name_;
448  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
449  return temp;
450  }
451 }
452 inline void Engine::set_allocated_name(::std::string* name) {
453  if (name_ != &::google::protobuf::internal::kEmptyString) {
454  delete name_;
455  }
456  if (name) {
457  set_has_name();
458  name_ = name;
459  } else {
460  clear_has_name();
461  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
462  }
463 }
464 
465 // repeated .drizzled.message.Engine.Option options = 2;
466 inline int Engine::options_size() const {
467  return options_.size();
468 }
469 inline void Engine::clear_options() {
470  options_.Clear();
471 }
472 inline const ::drizzled::message::Engine_Option& Engine::options(int index) const {
473  return options_.Get(index);
474 }
475 inline ::drizzled::message::Engine_Option* Engine::mutable_options(int index) {
476  return options_.Mutable(index);
477 }
478 inline ::drizzled::message::Engine_Option* Engine::add_options() {
479  return options_.Add();
480 }
481 inline const ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option >&
482 Engine::options() const {
483  return options_;
484 }
485 inline ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option >*
486 Engine::mutable_options() {
487  return &options_;
488 }
489 
490 
491 // @@protoc_insertion_point(namespace_scope)
492 
493 } // namespace message
494 } // namespace drizzled
495 
496 #ifndef SWIG
497 namespace google {
498 namespace protobuf {
499 
500 
501 } // namespace google
502 } // namespace protobuf
503 #endif // SWIG
504 
505 // @@protoc_insertion_point(global_scope)
506 
507 #endif // PROTOBUF_engine_2eproto__INCLUDED