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 < 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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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>
26 // @@protoc_insertion_point(includes)
27 
28 namespace drizzled {
29 namespace message {
30 
31 // Internal implementation detail -- do not call these.
32 void protobuf_AddDesc_engine_2eproto();
33 void protobuf_AssignDesc_engine_2eproto();
34 void protobuf_ShutdownFile_engine_2eproto();
35 
36 class Engine;
37 class Engine_Option;
38 
39 // ===================================================================
40 
41 class Engine_Option : public ::google::protobuf::Message {
42  public:
43  Engine_Option();
44  virtual ~Engine_Option();
45 
46  Engine_Option(const Engine_Option& from);
47 
48  inline Engine_Option& operator=(const Engine_Option& from) {
49  CopyFrom(from);
50  return *this;
51  }
52 
53  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
54  return _unknown_fields_;
55  }
56 
57  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
58  return &_unknown_fields_;
59  }
60 
61  static const ::google::protobuf::Descriptor* descriptor();
62  static const Engine_Option& default_instance();
63 
64  void Swap(Engine_Option* other);
65 
66  // implements Message ----------------------------------------------
67 
68  Engine_Option* New() const;
69  void CopyFrom(const ::google::protobuf::Message& from);
70  void MergeFrom(const ::google::protobuf::Message& from);
71  void CopyFrom(const Engine_Option& from);
72  void MergeFrom(const Engine_Option& from);
73  void Clear();
74  bool IsInitialized() const;
75 
76  int ByteSize() 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_; }
83  private:
84  void SharedCtor();
85  void SharedDtor();
86  void SetCachedSize(int size) const;
87  public:
88 
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 
106  // optional string state = 2;
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();
116 
117  // @@protoc_insertion_point(class_scope:drizzled.message.Engine.Option)
118  private:
119  inline void set_has_name();
120  inline void clear_has_name();
121  inline void set_has_state();
122  inline void clear_has_state();
123 
124  ::google::protobuf::UnknownFieldSet _unknown_fields_;
125 
126  ::std::string* name_;
127  ::std::string* state_;
128 
129  mutable int _cached_size_;
130  ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
131 
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 
189  ::google::protobuf::Metadata GetMetadata() const;
190 
191  // nested types ----------------------------------------------------
192 
193  typedef Engine_Option Option;
194 
195  // accessors -------------------------------------------------------
196 
197  // required string name = 1;
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();
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  ::std::string* name_;
228  ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option > options_;
229 
230  mutable int _cached_size_;
231  ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
232 
233  friend void protobuf_AddDesc_engine_2eproto();
234  friend void protobuf_AssignDesc_engine_2eproto();
235  friend void protobuf_ShutdownFile_engine_2eproto();
236 
237  void InitAsDefaultInstance();
238  static Engine* default_instance_;
239 };
240 // ===================================================================
241 
242 
243 // ===================================================================
244 
245 // Engine_Option
246 
247 // required string name = 1;
248 inline bool Engine_Option::has_name() const {
249  return (_has_bits_[0] & 0x00000001u) != 0;
250 }
251 inline void Engine_Option::set_has_name() {
252  _has_bits_[0] |= 0x00000001u;
253 }
254 inline void Engine_Option::clear_has_name() {
255  _has_bits_[0] &= ~0x00000001u;
256 }
257 inline void Engine_Option::clear_name() {
258  if (name_ != &::google::protobuf::internal::kEmptyString) {
259  name_->clear();
260  }
261  clear_has_name();
262 }
263 inline const ::std::string& Engine_Option::name() const {
264  return *name_;
265 }
266 inline void Engine_Option::set_name(const ::std::string& value) {
267  set_has_name();
268  if (name_ == &::google::protobuf::internal::kEmptyString) {
269  name_ = new ::std::string;
270  }
271  name_->assign(value);
272 }
273 inline void Engine_Option::set_name(const char* value) {
274  set_has_name();
275  if (name_ == &::google::protobuf::internal::kEmptyString) {
276  name_ = new ::std::string;
277  }
278  name_->assign(value);
279 }
280 inline void Engine_Option::set_name(const char* value, size_t size) {
281  set_has_name();
282  if (name_ == &::google::protobuf::internal::kEmptyString) {
283  name_ = new ::std::string;
284  }
285  name_->assign(reinterpret_cast<const char*>(value), size);
286 }
287 inline ::std::string* Engine_Option::mutable_name() {
288  set_has_name();
289  if (name_ == &::google::protobuf::internal::kEmptyString) {
290  name_ = new ::std::string;
291  }
292  return name_;
293 }
294 inline ::std::string* Engine_Option::release_name() {
295  clear_has_name();
296  if (name_ == &::google::protobuf::internal::kEmptyString) {
297  return NULL;
298  } else {
299  ::std::string* temp = name_;
300  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
301  return temp;
302  }
303 }
304 
305 // optional string state = 2;
306 inline bool Engine_Option::has_state() const {
307  return (_has_bits_[0] & 0x00000002u) != 0;
308 }
309 inline void Engine_Option::set_has_state() {
310  _has_bits_[0] |= 0x00000002u;
311 }
312 inline void Engine_Option::clear_has_state() {
313  _has_bits_[0] &= ~0x00000002u;
314 }
315 inline void Engine_Option::clear_state() {
316  if (state_ != &::google::protobuf::internal::kEmptyString) {
317  state_->clear();
318  }
319  clear_has_state();
320 }
321 inline const ::std::string& Engine_Option::state() const {
322  return *state_;
323 }
324 inline void Engine_Option::set_state(const ::std::string& value) {
325  set_has_state();
326  if (state_ == &::google::protobuf::internal::kEmptyString) {
327  state_ = new ::std::string;
328  }
329  state_->assign(value);
330 }
331 inline void Engine_Option::set_state(const char* value) {
332  set_has_state();
333  if (state_ == &::google::protobuf::internal::kEmptyString) {
334  state_ = new ::std::string;
335  }
336  state_->assign(value);
337 }
338 inline void Engine_Option::set_state(const char* value, size_t size) {
339  set_has_state();
340  if (state_ == &::google::protobuf::internal::kEmptyString) {
341  state_ = new ::std::string;
342  }
343  state_->assign(reinterpret_cast<const char*>(value), size);
344 }
345 inline ::std::string* Engine_Option::mutable_state() {
346  set_has_state();
347  if (state_ == &::google::protobuf::internal::kEmptyString) {
348  state_ = new ::std::string;
349  }
350  return state_;
351 }
352 inline ::std::string* Engine_Option::release_state() {
353  clear_has_state();
354  if (state_ == &::google::protobuf::internal::kEmptyString) {
355  return NULL;
356  } else {
357  ::std::string* temp = state_;
358  state_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
359  return temp;
360  }
361 }
362 
363 // -------------------------------------------------------------------
364 
365 // Engine
366 
367 // required string name = 1;
368 inline bool Engine::has_name() const {
369  return (_has_bits_[0] & 0x00000001u) != 0;
370 }
371 inline void Engine::set_has_name() {
372  _has_bits_[0] |= 0x00000001u;
373 }
374 inline void Engine::clear_has_name() {
375  _has_bits_[0] &= ~0x00000001u;
376 }
377 inline void Engine::clear_name() {
378  if (name_ != &::google::protobuf::internal::kEmptyString) {
379  name_->clear();
380  }
381  clear_has_name();
382 }
383 inline const ::std::string& Engine::name() const {
384  return *name_;
385 }
386 inline void Engine::set_name(const ::std::string& value) {
387  set_has_name();
388  if (name_ == &::google::protobuf::internal::kEmptyString) {
389  name_ = new ::std::string;
390  }
391  name_->assign(value);
392 }
393 inline void Engine::set_name(const char* value) {
394  set_has_name();
395  if (name_ == &::google::protobuf::internal::kEmptyString) {
396  name_ = new ::std::string;
397  }
398  name_->assign(value);
399 }
400 inline void Engine::set_name(const char* value, size_t size) {
401  set_has_name();
402  if (name_ == &::google::protobuf::internal::kEmptyString) {
403  name_ = new ::std::string;
404  }
405  name_->assign(reinterpret_cast<const char*>(value), size);
406 }
407 inline ::std::string* Engine::mutable_name() {
408  set_has_name();
409  if (name_ == &::google::protobuf::internal::kEmptyString) {
410  name_ = new ::std::string;
411  }
412  return name_;
413 }
414 inline ::std::string* Engine::release_name() {
415  clear_has_name();
416  if (name_ == &::google::protobuf::internal::kEmptyString) {
417  return NULL;
418  } else {
419  ::std::string* temp = name_;
420  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
421  return temp;
422  }
423 }
424 
425 // repeated .drizzled.message.Engine.Option options = 2;
426 inline int Engine::options_size() const {
427  return options_.size();
428 }
429 inline void Engine::clear_options() {
430  options_.Clear();
431 }
432 inline const ::drizzled::message::Engine_Option& Engine::options(int index) const {
433  return options_.Get(index);
434 }
435 inline ::drizzled::message::Engine_Option* Engine::mutable_options(int index) {
436  return options_.Mutable(index);
437 }
438 inline ::drizzled::message::Engine_Option* Engine::add_options() {
439  return options_.Add();
440 }
441 inline const ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option >&
442 Engine::options() const {
443  return options_;
444 }
445 inline ::google::protobuf::RepeatedPtrField< ::drizzled::message::Engine_Option >*
446 Engine::mutable_options() {
447  return &options_;
448 }
449 
450 
451 // @@protoc_insertion_point(namespace_scope)
452 
453 } // namespace message
454 } // namespace drizzled
455 
456 #ifndef SWIG
457 namespace google {
458 namespace protobuf {
459 
460 
461 } // namespace google
462 } // namespace protobuf
463 #endif // SWIG
464 
465 // @@protoc_insertion_point(global_scope)
466 
467 #endif // PROTOBUF_engine_2eproto__INCLUDED