Drizzled Public API Documentation

catalog.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: catalog.proto
3 
4 #ifndef PROTOBUF_catalog_2eproto__INCLUDED
5 #define PROTOBUF_catalog_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 #include "engine.pb.h"
28 // @@protoc_insertion_point(includes)
29 
30 namespace drizzled {
31 namespace message {
32 
33 // Internal implementation detail -- do not call these.
34 void protobuf_AddDesc_catalog_2eproto();
35 void protobuf_AssignDesc_catalog_2eproto();
36 void protobuf_ShutdownFile_catalog_2eproto();
37 
38 class Catalog;
39 
40 // ===================================================================
41 
42 class Catalog : public ::google::protobuf::Message {
43  public:
44  Catalog();
45  virtual ~Catalog();
46 
47  Catalog(const Catalog& from);
48 
49  inline Catalog& operator=(const Catalog& 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 Catalog& default_instance();
64 
65  void Swap(Catalog* other);
66 
67  // implements Message ----------------------------------------------
68 
69  Catalog* New() const;
70  void CopyFrom(const ::google::protobuf::Message& from);
71  void MergeFrom(const ::google::protobuf::Message& from);
72  void CopyFrom(const Catalog& from);
73  void MergeFrom(const Catalog& 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  // required .drizzled.message.Engine engine = 3;
108  inline bool has_engine() const;
109  inline void clear_engine();
110  static const int kEngineFieldNumber = 3;
111  inline const ::drizzled::message::Engine& engine() const;
112  inline ::drizzled::message::Engine* mutable_engine();
113  inline ::drizzled::message::Engine* release_engine();
114  inline void set_allocated_engine(::drizzled::message::Engine* engine);
115 
116  // required uint64 creation_timestamp = 11 [default = 0];
117  inline bool has_creation_timestamp() const;
118  inline void clear_creation_timestamp();
119  static const int kCreationTimestampFieldNumber = 11;
120  inline ::google::protobuf::uint64 creation_timestamp() const;
121  inline void set_creation_timestamp(::google::protobuf::uint64 value);
122 
123  // required uint64 update_timestamp = 12 [default = 0];
124  inline bool has_update_timestamp() const;
125  inline void clear_update_timestamp();
126  static const int kUpdateTimestampFieldNumber = 12;
127  inline ::google::protobuf::uint64 update_timestamp() const;
128  inline void set_update_timestamp(::google::protobuf::uint64 value);
129 
130  // optional string uuid = 13;
131  inline bool has_uuid() const;
132  inline void clear_uuid();
133  static const int kUuidFieldNumber = 13;
134  inline const ::std::string& uuid() const;
135  inline void set_uuid(const ::std::string& value);
136  inline void set_uuid(const char* value);
137  inline void set_uuid(const char* value, size_t size);
138  inline ::std::string* mutable_uuid();
139  inline ::std::string* release_uuid();
140  inline void set_allocated_uuid(::std::string* uuid);
141 
142  // optional uint64 version = 14;
143  inline bool has_version() const;
144  inline void clear_version();
145  static const int kVersionFieldNumber = 14;
146  inline ::google::protobuf::uint64 version() const;
147  inline void set_version(::google::protobuf::uint64 value);
148 
149  // @@protoc_insertion_point(class_scope:drizzled.message.Catalog)
150  private:
151  inline void set_has_name();
152  inline void clear_has_name();
153  inline void set_has_engine();
154  inline void clear_has_engine();
155  inline void set_has_creation_timestamp();
156  inline void clear_has_creation_timestamp();
157  inline void set_has_update_timestamp();
158  inline void clear_has_update_timestamp();
159  inline void set_has_uuid();
160  inline void clear_has_uuid();
161  inline void set_has_version();
162  inline void clear_has_version();
163 
164  ::google::protobuf::UnknownFieldSet _unknown_fields_;
165 
166  ::google::protobuf::uint32 _has_bits_[1];
167  mutable int _cached_size_;
168  ::std::string* name_;
170  ::google::protobuf::uint64 creation_timestamp_;
171  ::google::protobuf::uint64 update_timestamp_;
172  ::std::string* uuid_;
173  ::google::protobuf::uint64 version_;
174  friend void protobuf_AddDesc_catalog_2eproto();
175  friend void protobuf_AssignDesc_catalog_2eproto();
176  friend void protobuf_ShutdownFile_catalog_2eproto();
177 
178  void InitAsDefaultInstance();
179  static Catalog* default_instance_;
180 };
181 // ===================================================================
182 
183 
184 // ===================================================================
185 
186 // Catalog
187 
188 // required string name = 1;
189 inline bool Catalog::has_name() const {
190  return (_has_bits_[0] & 0x00000001u) != 0;
191 }
192 inline void Catalog::set_has_name() {
193  _has_bits_[0] |= 0x00000001u;
194 }
195 inline void Catalog::clear_has_name() {
196  _has_bits_[0] &= ~0x00000001u;
197 }
198 inline void Catalog::clear_name() {
199  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
200  name_->clear();
201  }
202  clear_has_name();
203 }
204 inline const ::std::string& Catalog::name() const {
205  // @@protoc_insertion_point(field_get:drizzled.message.Catalog.name)
206  return *name_;
207 }
208 inline void Catalog::set_name(const ::std::string& value) {
209  set_has_name();
210  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
211  name_ = new ::std::string;
212  }
213  name_->assign(value);
214  // @@protoc_insertion_point(field_set:drizzled.message.Catalog.name)
215 }
216 inline void Catalog::set_name(const char* value) {
217  set_has_name();
218  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
219  name_ = new ::std::string;
220  }
221  name_->assign(value);
222  // @@protoc_insertion_point(field_set_char:drizzled.message.Catalog.name)
223 }
224 inline void Catalog::set_name(const char* value, size_t size) {
225  set_has_name();
226  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
227  name_ = new ::std::string;
228  }
229  name_->assign(reinterpret_cast<const char*>(value), size);
230  // @@protoc_insertion_point(field_set_pointer:drizzled.message.Catalog.name)
231 }
232 inline ::std::string* Catalog::mutable_name() {
233  set_has_name();
234  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
235  name_ = new ::std::string;
236  }
237  // @@protoc_insertion_point(field_mutable:drizzled.message.Catalog.name)
238  return name_;
239 }
240 inline ::std::string* Catalog::release_name() {
241  clear_has_name();
242  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
243  return NULL;
244  } else {
245  ::std::string* temp = name_;
246  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
247  return temp;
248  }
249 }
250 inline void Catalog::set_allocated_name(::std::string* name) {
251  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
252  delete name_;
253  }
254  if (name) {
255  set_has_name();
256  name_ = name;
257  } else {
258  clear_has_name();
259  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
260  }
261  // @@protoc_insertion_point(field_set_allocated:drizzled.message.Catalog.name)
262 }
263 
264 // required .drizzled.message.Engine engine = 3;
265 inline bool Catalog::has_engine() const {
266  return (_has_bits_[0] & 0x00000002u) != 0;
267 }
268 inline void Catalog::set_has_engine() {
269  _has_bits_[0] |= 0x00000002u;
270 }
271 inline void Catalog::clear_has_engine() {
272  _has_bits_[0] &= ~0x00000002u;
273 }
274 inline void Catalog::clear_engine() {
275  if (engine_ != NULL) engine_->::drizzled::message::Engine::Clear();
276  clear_has_engine();
277 }
278 inline const ::drizzled::message::Engine& Catalog::engine() const {
279  // @@protoc_insertion_point(field_get:drizzled.message.Catalog.engine)
280  return engine_ != NULL ? *engine_ : *default_instance_->engine_;
281 }
282 inline ::drizzled::message::Engine* Catalog::mutable_engine() {
283  set_has_engine();
284  if (engine_ == NULL) engine_ = new ::drizzled::message::Engine;
285  // @@protoc_insertion_point(field_mutable:drizzled.message.Catalog.engine)
286  return engine_;
287 }
288 inline ::drizzled::message::Engine* Catalog::release_engine() {
289  clear_has_engine();
290  ::drizzled::message::Engine* temp = engine_;
291  engine_ = NULL;
292  return temp;
293 }
294 inline void Catalog::set_allocated_engine(::drizzled::message::Engine* engine) {
295  delete engine_;
296  engine_ = engine;
297  if (engine) {
298  set_has_engine();
299  } else {
300  clear_has_engine();
301  }
302  // @@protoc_insertion_point(field_set_allocated:drizzled.message.Catalog.engine)
303 }
304 
305 // required uint64 creation_timestamp = 11 [default = 0];
306 inline bool Catalog::has_creation_timestamp() const {
307  return (_has_bits_[0] & 0x00000004u) != 0;
308 }
309 inline void Catalog::set_has_creation_timestamp() {
310  _has_bits_[0] |= 0x00000004u;
311 }
312 inline void Catalog::clear_has_creation_timestamp() {
313  _has_bits_[0] &= ~0x00000004u;
314 }
315 inline void Catalog::clear_creation_timestamp() {
316  creation_timestamp_ = GOOGLE_ULONGLONG(0);
317  clear_has_creation_timestamp();
318 }
319 inline ::google::protobuf::uint64 Catalog::creation_timestamp() const {
320  // @@protoc_insertion_point(field_get:drizzled.message.Catalog.creation_timestamp)
321  return creation_timestamp_;
322 }
323 inline void Catalog::set_creation_timestamp(::google::protobuf::uint64 value) {
324  set_has_creation_timestamp();
325  creation_timestamp_ = value;
326  // @@protoc_insertion_point(field_set:drizzled.message.Catalog.creation_timestamp)
327 }
328 
329 // required uint64 update_timestamp = 12 [default = 0];
330 inline bool Catalog::has_update_timestamp() const {
331  return (_has_bits_[0] & 0x00000008u) != 0;
332 }
333 inline void Catalog::set_has_update_timestamp() {
334  _has_bits_[0] |= 0x00000008u;
335 }
336 inline void Catalog::clear_has_update_timestamp() {
337  _has_bits_[0] &= ~0x00000008u;
338 }
339 inline void Catalog::clear_update_timestamp() {
340  update_timestamp_ = GOOGLE_ULONGLONG(0);
341  clear_has_update_timestamp();
342 }
343 inline ::google::protobuf::uint64 Catalog::update_timestamp() const {
344  // @@protoc_insertion_point(field_get:drizzled.message.Catalog.update_timestamp)
345  return update_timestamp_;
346 }
347 inline void Catalog::set_update_timestamp(::google::protobuf::uint64 value) {
348  set_has_update_timestamp();
349  update_timestamp_ = value;
350  // @@protoc_insertion_point(field_set:drizzled.message.Catalog.update_timestamp)
351 }
352 
353 // optional string uuid = 13;
354 inline bool Catalog::has_uuid() const {
355  return (_has_bits_[0] & 0x00000010u) != 0;
356 }
357 inline void Catalog::set_has_uuid() {
358  _has_bits_[0] |= 0x00000010u;
359 }
360 inline void Catalog::clear_has_uuid() {
361  _has_bits_[0] &= ~0x00000010u;
362 }
363 inline void Catalog::clear_uuid() {
364  if (uuid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
365  uuid_->clear();
366  }
367  clear_has_uuid();
368 }
369 inline const ::std::string& Catalog::uuid() const {
370  // @@protoc_insertion_point(field_get:drizzled.message.Catalog.uuid)
371  return *uuid_;
372 }
373 inline void Catalog::set_uuid(const ::std::string& value) {
374  set_has_uuid();
375  if (uuid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
376  uuid_ = new ::std::string;
377  }
378  uuid_->assign(value);
379  // @@protoc_insertion_point(field_set:drizzled.message.Catalog.uuid)
380 }
381 inline void Catalog::set_uuid(const char* value) {
382  set_has_uuid();
383  if (uuid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
384  uuid_ = new ::std::string;
385  }
386  uuid_->assign(value);
387  // @@protoc_insertion_point(field_set_char:drizzled.message.Catalog.uuid)
388 }
389 inline void Catalog::set_uuid(const char* value, size_t size) {
390  set_has_uuid();
391  if (uuid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
392  uuid_ = new ::std::string;
393  }
394  uuid_->assign(reinterpret_cast<const char*>(value), size);
395  // @@protoc_insertion_point(field_set_pointer:drizzled.message.Catalog.uuid)
396 }
397 inline ::std::string* Catalog::mutable_uuid() {
398  set_has_uuid();
399  if (uuid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
400  uuid_ = new ::std::string;
401  }
402  // @@protoc_insertion_point(field_mutable:drizzled.message.Catalog.uuid)
403  return uuid_;
404 }
405 inline ::std::string* Catalog::release_uuid() {
406  clear_has_uuid();
407  if (uuid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
408  return NULL;
409  } else {
410  ::std::string* temp = uuid_;
411  uuid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
412  return temp;
413  }
414 }
415 inline void Catalog::set_allocated_uuid(::std::string* uuid) {
416  if (uuid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
417  delete uuid_;
418  }
419  if (uuid) {
420  set_has_uuid();
421  uuid_ = uuid;
422  } else {
423  clear_has_uuid();
424  uuid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
425  }
426  // @@protoc_insertion_point(field_set_allocated:drizzled.message.Catalog.uuid)
427 }
428 
429 // optional uint64 version = 14;
430 inline bool Catalog::has_version() const {
431  return (_has_bits_[0] & 0x00000020u) != 0;
432 }
433 inline void Catalog::set_has_version() {
434  _has_bits_[0] |= 0x00000020u;
435 }
436 inline void Catalog::clear_has_version() {
437  _has_bits_[0] &= ~0x00000020u;
438 }
439 inline void Catalog::clear_version() {
440  version_ = GOOGLE_ULONGLONG(0);
441  clear_has_version();
442 }
443 inline ::google::protobuf::uint64 Catalog::version() const {
444  // @@protoc_insertion_point(field_get:drizzled.message.Catalog.version)
445  return version_;
446 }
447 inline void Catalog::set_version(::google::protobuf::uint64 value) {
448  set_has_version();
449  version_ = value;
450  // @@protoc_insertion_point(field_set:drizzled.message.Catalog.version)
451 }
452 
453 
454 // @@protoc_insertion_point(namespace_scope)
455 
456 } // namespace message
457 } // namespace drizzled
458 
459 #ifndef SWIG
460 namespace google {
461 namespace protobuf {
462 
463 
464 } // namespace google
465 } // namespace protobuf
466 #endif // SWIG
467 
468 // @@protoc_insertion_point(global_scope)
469 
470 #endif // PROTOBUF_catalog_2eproto__INCLUDED
TODO: Rename this file - func.h is stupid.