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