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