Drizzled Public API Documentation

schema.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: schema.proto
3 
4 #ifndef PROTOBUF_schema_2eproto__INCLUDED
5 #define PROTOBUF_schema_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 #include "access.pb.h"
29 #include "replication_options.pb.h"
30 // @@protoc_insertion_point(includes)
31 
32 namespace drizzled {
33 namespace message {
34 
35 // Internal implementation detail -- do not call these.
36 void protobuf_AddDesc_schema_2eproto();
37 void protobuf_AssignDesc_schema_2eproto();
38 void protobuf_ShutdownFile_schema_2eproto();
39 
40 class Schema;
41 class Schema_Options;
42 
43 // ===================================================================
44 
45 class Schema_Options : public ::google::protobuf::Message {
46  public:
48  virtual ~Schema_Options();
49 
50  Schema_Options(const Schema_Options& from);
51 
52  inline Schema_Options& operator=(const Schema_Options& from) {
53  CopyFrom(from);
54  return *this;
55  }
56 
57  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
58  return _unknown_fields_;
59  }
60 
61  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
62  return &_unknown_fields_;
63  }
64 
65  static const ::google::protobuf::Descriptor* descriptor();
66  static const Schema_Options& default_instance();
67 
68  void Swap(Schema_Options* other);
69 
70  // implements Message ----------------------------------------------
71 
72  Schema_Options* New() const;
73  void CopyFrom(const ::google::protobuf::Message& from);
74  void MergeFrom(const ::google::protobuf::Message& from);
75  void CopyFrom(const Schema_Options& from);
76  void MergeFrom(const Schema_Options& from);
77  void Clear();
78  bool IsInitialized() const;
79 
80  int ByteSize() const;
81  bool MergePartialFromCodedStream(
82  ::google::protobuf::io::CodedInputStream* input);
83  void SerializeWithCachedSizes(
84  ::google::protobuf::io::CodedOutputStream* output) const;
85  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
86  int GetCachedSize() const { return _cached_size_; }
87  private:
88  void SharedCtor();
89  void SharedDtor();
90  void SetCachedSize(int size) const;
91  public:
92  ::google::protobuf::Metadata GetMetadata() const;
93 
94  // nested types ----------------------------------------------------
95 
96  // accessors -------------------------------------------------------
97 
98  // @@protoc_insertion_point(class_scope:drizzled.message.Schema.Options)
99  private:
100 
101  ::google::protobuf::UnknownFieldSet _unknown_fields_;
102 
103  ::google::protobuf::uint32 _has_bits_[1];
104  mutable int _cached_size_;
105  friend void protobuf_AddDesc_schema_2eproto();
106  friend void protobuf_AssignDesc_schema_2eproto();
107  friend void protobuf_ShutdownFile_schema_2eproto();
108 
109  void InitAsDefaultInstance();
110  static Schema_Options* default_instance_;
111 };
112 // -------------------------------------------------------------------
113 
114 class Schema : public ::google::protobuf::Message {
115  public:
116  Schema();
117  virtual ~Schema();
118 
119  Schema(const Schema& from);
120 
121  inline Schema& operator=(const Schema& from) {
122  CopyFrom(from);
123  return *this;
124  }
125 
126  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
127  return _unknown_fields_;
128  }
129 
130  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
131  return &_unknown_fields_;
132  }
133 
134  static const ::google::protobuf::Descriptor* descriptor();
135  static const Schema& default_instance();
136 
137  void Swap(Schema* other);
138 
139  // implements Message ----------------------------------------------
140 
141  Schema* New() const;
142  void CopyFrom(const ::google::protobuf::Message& from);
143  void MergeFrom(const ::google::protobuf::Message& from);
144  void CopyFrom(const Schema& from);
145  void MergeFrom(const Schema& from);
146  void Clear();
147  bool IsInitialized() const;
148 
149  int ByteSize() const;
150  bool MergePartialFromCodedStream(
151  ::google::protobuf::io::CodedInputStream* input);
152  void SerializeWithCachedSizes(
153  ::google::protobuf::io::CodedOutputStream* output) const;
154  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
155  int GetCachedSize() const { return _cached_size_; }
156  private:
157  void SharedCtor();
158  void SharedDtor();
159  void SetCachedSize(int size) const;
160  public:
161  ::google::protobuf::Metadata GetMetadata() const;
162 
163  // nested types ----------------------------------------------------
164 
165  typedef Schema_Options Options;
166 
167  // accessors -------------------------------------------------------
168 
169  // required string name = 1;
170  inline bool has_name() const;
171  inline void clear_name();
172  static const int kNameFieldNumber = 1;
173  inline const ::std::string& name() const;
174  inline void set_name(const ::std::string& value);
175  inline void set_name(const char* value);
176  inline void set_name(const char* value, size_t size);
177  inline ::std::string* mutable_name();
178  inline ::std::string* release_name();
179  inline void set_allocated_name(::std::string* name);
180 
181  // optional string collation = 2;
182  inline bool has_collation() const;
183  inline void clear_collation();
184  static const int kCollationFieldNumber = 2;
185  inline const ::std::string& collation() const;
186  inline void set_collation(const ::std::string& value);
187  inline void set_collation(const char* value);
188  inline void set_collation(const char* value, size_t size);
189  inline ::std::string* mutable_collation();
190  inline ::std::string* release_collation();
191  inline void set_allocated_collation(::std::string* collation);
192 
193  // required .drizzled.message.Engine engine = 3;
194  inline bool has_engine() const;
195  inline void clear_engine();
196  static const int kEngineFieldNumber = 3;
197  inline const ::drizzled::message::Engine& engine() const;
198  inline ::drizzled::message::Engine* mutable_engine();
199  inline ::drizzled::message::Engine* release_engine();
200  inline void set_allocated_engine(::drizzled::message::Engine* engine);
201 
202  // optional string catalog = 4;
203  inline bool has_catalog() const;
204  inline void clear_catalog();
205  static const int kCatalogFieldNumber = 4;
206  inline const ::std::string& catalog() const;
207  inline void set_catalog(const ::std::string& value);
208  inline void set_catalog(const char* value);
209  inline void set_catalog(const char* value, size_t size);
210  inline ::std::string* mutable_catalog();
211  inline ::std::string* release_catalog();
212  inline void set_allocated_catalog(::std::string* catalog);
213 
214  // required uint64 creation_timestamp = 11 [default = 0];
215  inline bool has_creation_timestamp() const;
216  inline void clear_creation_timestamp();
217  static const int kCreationTimestampFieldNumber = 11;
218  inline ::google::protobuf::uint64 creation_timestamp() const;
219  inline void set_creation_timestamp(::google::protobuf::uint64 value);
220 
221  // required uint64 update_timestamp = 12 [default = 0];
222  inline bool has_update_timestamp() const;
223  inline void clear_update_timestamp();
224  static const int kUpdateTimestampFieldNumber = 12;
225  inline ::google::protobuf::uint64 update_timestamp() const;
226  inline void set_update_timestamp(::google::protobuf::uint64 value);
227 
228  // optional string uuid = 13;
229  inline bool has_uuid() const;
230  inline void clear_uuid();
231  static const int kUuidFieldNumber = 13;
232  inline const ::std::string& uuid() const;
233  inline void set_uuid(const ::std::string& value);
234  inline void set_uuid(const char* value);
235  inline void set_uuid(const char* value, size_t size);
236  inline ::std::string* mutable_uuid();
237  inline ::std::string* release_uuid();
238  inline void set_allocated_uuid(::std::string* uuid);
239 
240  // optional uint64 version = 14;
241  inline bool has_version() const;
242  inline void clear_version();
243  static const int kVersionFieldNumber = 14;
244  inline ::google::protobuf::uint64 version() const;
245  inline void set_version(::google::protobuf::uint64 value);
246 
247  // optional .drizzled.message.Schema.Options options = 15;
248  inline bool has_options() const;
249  inline void clear_options();
250  static const int kOptionsFieldNumber = 15;
251  inline const ::drizzled::message::Schema_Options& options() const;
252  inline ::drizzled::message::Schema_Options* mutable_options();
253  inline ::drizzled::message::Schema_Options* release_options();
254  inline void set_allocated_options(::drizzled::message::Schema_Options* options);
255 
256  // optional .drizzled.message.ReplicationOptions replication_options = 16;
257  inline bool has_replication_options() const;
258  inline void clear_replication_options();
259  static const int kReplicationOptionsFieldNumber = 16;
260  inline const ::drizzled::message::ReplicationOptions& replication_options() const;
261  inline ::drizzled::message::ReplicationOptions* mutable_replication_options();
262  inline ::drizzled::message::ReplicationOptions* release_replication_options();
263  inline void set_allocated_replication_options(::drizzled::message::ReplicationOptions* replication_options);
264 
265  // optional .drizzled.message.Access access = 17;
266  inline bool has_access() const;
267  inline void clear_access();
268  static const int kAccessFieldNumber = 17;
269  inline const ::drizzled::message::Access& access() const;
270  inline ::drizzled::message::Access* mutable_access();
271  inline ::drizzled::message::Access* release_access();
272  inline void set_allocated_access(::drizzled::message::Access* access);
273 
274  // @@protoc_insertion_point(class_scope:drizzled.message.Schema)
275  private:
276  inline void set_has_name();
277  inline void clear_has_name();
278  inline void set_has_collation();
279  inline void clear_has_collation();
280  inline void set_has_engine();
281  inline void clear_has_engine();
282  inline void set_has_catalog();
283  inline void clear_has_catalog();
284  inline void set_has_creation_timestamp();
285  inline void clear_has_creation_timestamp();
286  inline void set_has_update_timestamp();
287  inline void clear_has_update_timestamp();
288  inline void set_has_uuid();
289  inline void clear_has_uuid();
290  inline void set_has_version();
291  inline void clear_has_version();
292  inline void set_has_options();
293  inline void clear_has_options();
294  inline void set_has_replication_options();
295  inline void clear_has_replication_options();
296  inline void set_has_access();
297  inline void clear_has_access();
298 
299  ::google::protobuf::UnknownFieldSet _unknown_fields_;
300 
301  ::google::protobuf::uint32 _has_bits_[1];
302  mutable int _cached_size_;
303  ::std::string* name_;
304  ::std::string* collation_;
306  ::std::string* catalog_;
307  ::google::protobuf::uint64 creation_timestamp_;
308  ::google::protobuf::uint64 update_timestamp_;
309  ::std::string* uuid_;
310  ::google::protobuf::uint64 version_;
312  ::drizzled::message::ReplicationOptions* replication_options_;
314  friend void protobuf_AddDesc_schema_2eproto();
315  friend void protobuf_AssignDesc_schema_2eproto();
316  friend void protobuf_ShutdownFile_schema_2eproto();
317 
318  void InitAsDefaultInstance();
319  static Schema* default_instance_;
320 };
321 // ===================================================================
322 
323 
324 // ===================================================================
325 
326 // Schema_Options
327 
328 // -------------------------------------------------------------------
329 
330 // Schema
331 
332 // required string name = 1;
333 inline bool Schema::has_name() const {
334  return (_has_bits_[0] & 0x00000001u) != 0;
335 }
336 inline void Schema::set_has_name() {
337  _has_bits_[0] |= 0x00000001u;
338 }
339 inline void Schema::clear_has_name() {
340  _has_bits_[0] &= ~0x00000001u;
341 }
342 inline void Schema::clear_name() {
343  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
344  name_->clear();
345  }
346  clear_has_name();
347 }
348 inline const ::std::string& Schema::name() const {
349  // @@protoc_insertion_point(field_get:drizzled.message.Schema.name)
350  return *name_;
351 }
352 inline void Schema::set_name(const ::std::string& value) {
353  set_has_name();
354  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
355  name_ = new ::std::string;
356  }
357  name_->assign(value);
358  // @@protoc_insertion_point(field_set:drizzled.message.Schema.name)
359 }
360 inline void Schema::set_name(const char* value) {
361  set_has_name();
362  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
363  name_ = new ::std::string;
364  }
365  name_->assign(value);
366  // @@protoc_insertion_point(field_set_char:drizzled.message.Schema.name)
367 }
368 inline void Schema::set_name(const char* value, size_t size) {
369  set_has_name();
370  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
371  name_ = new ::std::string;
372  }
373  name_->assign(reinterpret_cast<const char*>(value), size);
374  // @@protoc_insertion_point(field_set_pointer:drizzled.message.Schema.name)
375 }
376 inline ::std::string* Schema::mutable_name() {
377  set_has_name();
378  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
379  name_ = new ::std::string;
380  }
381  // @@protoc_insertion_point(field_mutable:drizzled.message.Schema.name)
382  return name_;
383 }
384 inline ::std::string* Schema::release_name() {
385  clear_has_name();
386  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
387  return NULL;
388  } else {
389  ::std::string* temp = name_;
390  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
391  return temp;
392  }
393 }
394 inline void Schema::set_allocated_name(::std::string* name) {
395  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
396  delete name_;
397  }
398  if (name) {
399  set_has_name();
400  name_ = name;
401  } else {
402  clear_has_name();
403  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
404  }
405  // @@protoc_insertion_point(field_set_allocated:drizzled.message.Schema.name)
406 }
407 
408 // optional string collation = 2;
409 inline bool Schema::has_collation() const {
410  return (_has_bits_[0] & 0x00000002u) != 0;
411 }
412 inline void Schema::set_has_collation() {
413  _has_bits_[0] |= 0x00000002u;
414 }
415 inline void Schema::clear_has_collation() {
416  _has_bits_[0] &= ~0x00000002u;
417 }
418 inline void Schema::clear_collation() {
419  if (collation_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
420  collation_->clear();
421  }
422  clear_has_collation();
423 }
424 inline const ::std::string& Schema::collation() const {
425  // @@protoc_insertion_point(field_get:drizzled.message.Schema.collation)
426  return *collation_;
427 }
428 inline void Schema::set_collation(const ::std::string& value) {
429  set_has_collation();
430  if (collation_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
431  collation_ = new ::std::string;
432  }
433  collation_->assign(value);
434  // @@protoc_insertion_point(field_set:drizzled.message.Schema.collation)
435 }
436 inline void Schema::set_collation(const char* value) {
437  set_has_collation();
438  if (collation_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
439  collation_ = new ::std::string;
440  }
441  collation_->assign(value);
442  // @@protoc_insertion_point(field_set_char:drizzled.message.Schema.collation)
443 }
444 inline void Schema::set_collation(const char* value, size_t size) {
445  set_has_collation();
446  if (collation_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
447  collation_ = new ::std::string;
448  }
449  collation_->assign(reinterpret_cast<const char*>(value), size);
450  // @@protoc_insertion_point(field_set_pointer:drizzled.message.Schema.collation)
451 }
452 inline ::std::string* Schema::mutable_collation() {
453  set_has_collation();
454  if (collation_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
455  collation_ = new ::std::string;
456  }
457  // @@protoc_insertion_point(field_mutable:drizzled.message.Schema.collation)
458  return collation_;
459 }
460 inline ::std::string* Schema::release_collation() {
461  clear_has_collation();
462  if (collation_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
463  return NULL;
464  } else {
465  ::std::string* temp = collation_;
466  collation_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
467  return temp;
468  }
469 }
470 inline void Schema::set_allocated_collation(::std::string* collation) {
471  if (collation_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
472  delete collation_;
473  }
474  if (collation) {
475  set_has_collation();
476  collation_ = collation;
477  } else {
478  clear_has_collation();
479  collation_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
480  }
481  // @@protoc_insertion_point(field_set_allocated:drizzled.message.Schema.collation)
482 }
483 
484 // required .drizzled.message.Engine engine = 3;
485 inline bool Schema::has_engine() const {
486  return (_has_bits_[0] & 0x00000004u) != 0;
487 }
488 inline void Schema::set_has_engine() {
489  _has_bits_[0] |= 0x00000004u;
490 }
491 inline void Schema::clear_has_engine() {
492  _has_bits_[0] &= ~0x00000004u;
493 }
494 inline void Schema::clear_engine() {
495  if (engine_ != NULL) engine_->::drizzled::message::Engine::Clear();
496  clear_has_engine();
497 }
498 inline const ::drizzled::message::Engine& Schema::engine() const {
499  // @@protoc_insertion_point(field_get:drizzled.message.Schema.engine)
500  return engine_ != NULL ? *engine_ : *default_instance_->engine_;
501 }
502 inline ::drizzled::message::Engine* Schema::mutable_engine() {
503  set_has_engine();
504  if (engine_ == NULL) engine_ = new ::drizzled::message::Engine;
505  // @@protoc_insertion_point(field_mutable:drizzled.message.Schema.engine)
506  return engine_;
507 }
508 inline ::drizzled::message::Engine* Schema::release_engine() {
509  clear_has_engine();
510  ::drizzled::message::Engine* temp = engine_;
511  engine_ = NULL;
512  return temp;
513 }
514 inline void Schema::set_allocated_engine(::drizzled::message::Engine* engine) {
515  delete engine_;
516  engine_ = engine;
517  if (engine) {
518  set_has_engine();
519  } else {
520  clear_has_engine();
521  }
522  // @@protoc_insertion_point(field_set_allocated:drizzled.message.Schema.engine)
523 }
524 
525 // optional string catalog = 4;
526 inline bool Schema::has_catalog() const {
527  return (_has_bits_[0] & 0x00000008u) != 0;
528 }
529 inline void Schema::set_has_catalog() {
530  _has_bits_[0] |= 0x00000008u;
531 }
532 inline void Schema::clear_has_catalog() {
533  _has_bits_[0] &= ~0x00000008u;
534 }
535 inline void Schema::clear_catalog() {
536  if (catalog_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
537  catalog_->clear();
538  }
539  clear_has_catalog();
540 }
541 inline const ::std::string& Schema::catalog() const {
542  // @@protoc_insertion_point(field_get:drizzled.message.Schema.catalog)
543  return *catalog_;
544 }
545 inline void Schema::set_catalog(const ::std::string& value) {
546  set_has_catalog();
547  if (catalog_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
548  catalog_ = new ::std::string;
549  }
550  catalog_->assign(value);
551  // @@protoc_insertion_point(field_set:drizzled.message.Schema.catalog)
552 }
553 inline void Schema::set_catalog(const char* value) {
554  set_has_catalog();
555  if (catalog_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
556  catalog_ = new ::std::string;
557  }
558  catalog_->assign(value);
559  // @@protoc_insertion_point(field_set_char:drizzled.message.Schema.catalog)
560 }
561 inline void Schema::set_catalog(const char* value, size_t size) {
562  set_has_catalog();
563  if (catalog_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
564  catalog_ = new ::std::string;
565  }
566  catalog_->assign(reinterpret_cast<const char*>(value), size);
567  // @@protoc_insertion_point(field_set_pointer:drizzled.message.Schema.catalog)
568 }
569 inline ::std::string* Schema::mutable_catalog() {
570  set_has_catalog();
571  if (catalog_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
572  catalog_ = new ::std::string;
573  }
574  // @@protoc_insertion_point(field_mutable:drizzled.message.Schema.catalog)
575  return catalog_;
576 }
577 inline ::std::string* Schema::release_catalog() {
578  clear_has_catalog();
579  if (catalog_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
580  return NULL;
581  } else {
582  ::std::string* temp = catalog_;
583  catalog_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
584  return temp;
585  }
586 }
587 inline void Schema::set_allocated_catalog(::std::string* catalog) {
588  if (catalog_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
589  delete catalog_;
590  }
591  if (catalog) {
592  set_has_catalog();
593  catalog_ = catalog;
594  } else {
595  clear_has_catalog();
596  catalog_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
597  }
598  // @@protoc_insertion_point(field_set_allocated:drizzled.message.Schema.catalog)
599 }
600 
601 // required uint64 creation_timestamp = 11 [default = 0];
602 inline bool Schema::has_creation_timestamp() const {
603  return (_has_bits_[0] & 0x00000010u) != 0;
604 }
605 inline void Schema::set_has_creation_timestamp() {
606  _has_bits_[0] |= 0x00000010u;
607 }
608 inline void Schema::clear_has_creation_timestamp() {
609  _has_bits_[0] &= ~0x00000010u;
610 }
611 inline void Schema::clear_creation_timestamp() {
612  creation_timestamp_ = GOOGLE_ULONGLONG(0);
613  clear_has_creation_timestamp();
614 }
615 inline ::google::protobuf::uint64 Schema::creation_timestamp() const {
616  // @@protoc_insertion_point(field_get:drizzled.message.Schema.creation_timestamp)
617  return creation_timestamp_;
618 }
619 inline void Schema::set_creation_timestamp(::google::protobuf::uint64 value) {
620  set_has_creation_timestamp();
621  creation_timestamp_ = value;
622  // @@protoc_insertion_point(field_set:drizzled.message.Schema.creation_timestamp)
623 }
624 
625 // required uint64 update_timestamp = 12 [default = 0];
626 inline bool Schema::has_update_timestamp() const {
627  return (_has_bits_[0] & 0x00000020u) != 0;
628 }
629 inline void Schema::set_has_update_timestamp() {
630  _has_bits_[0] |= 0x00000020u;
631 }
632 inline void Schema::clear_has_update_timestamp() {
633  _has_bits_[0] &= ~0x00000020u;
634 }
635 inline void Schema::clear_update_timestamp() {
636  update_timestamp_ = GOOGLE_ULONGLONG(0);
637  clear_has_update_timestamp();
638 }
639 inline ::google::protobuf::uint64 Schema::update_timestamp() const {
640  // @@protoc_insertion_point(field_get:drizzled.message.Schema.update_timestamp)
641  return update_timestamp_;
642 }
643 inline void Schema::set_update_timestamp(::google::protobuf::uint64 value) {
644  set_has_update_timestamp();
645  update_timestamp_ = value;
646  // @@protoc_insertion_point(field_set:drizzled.message.Schema.update_timestamp)
647 }
648 
649 // optional string uuid = 13;
650 inline bool Schema::has_uuid() const {
651  return (_has_bits_[0] & 0x00000040u) != 0;
652 }
653 inline void Schema::set_has_uuid() {
654  _has_bits_[0] |= 0x00000040u;
655 }
656 inline void Schema::clear_has_uuid() {
657  _has_bits_[0] &= ~0x00000040u;
658 }
659 inline void Schema::clear_uuid() {
660  if (uuid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
661  uuid_->clear();
662  }
663  clear_has_uuid();
664 }
665 inline const ::std::string& Schema::uuid() const {
666  // @@protoc_insertion_point(field_get:drizzled.message.Schema.uuid)
667  return *uuid_;
668 }
669 inline void Schema::set_uuid(const ::std::string& value) {
670  set_has_uuid();
671  if (uuid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
672  uuid_ = new ::std::string;
673  }
674  uuid_->assign(value);
675  // @@protoc_insertion_point(field_set:drizzled.message.Schema.uuid)
676 }
677 inline void Schema::set_uuid(const char* value) {
678  set_has_uuid();
679  if (uuid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
680  uuid_ = new ::std::string;
681  }
682  uuid_->assign(value);
683  // @@protoc_insertion_point(field_set_char:drizzled.message.Schema.uuid)
684 }
685 inline void Schema::set_uuid(const char* value, size_t size) {
686  set_has_uuid();
687  if (uuid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
688  uuid_ = new ::std::string;
689  }
690  uuid_->assign(reinterpret_cast<const char*>(value), size);
691  // @@protoc_insertion_point(field_set_pointer:drizzled.message.Schema.uuid)
692 }
693 inline ::std::string* Schema::mutable_uuid() {
694  set_has_uuid();
695  if (uuid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
696  uuid_ = new ::std::string;
697  }
698  // @@protoc_insertion_point(field_mutable:drizzled.message.Schema.uuid)
699  return uuid_;
700 }
701 inline ::std::string* Schema::release_uuid() {
702  clear_has_uuid();
703  if (uuid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
704  return NULL;
705  } else {
706  ::std::string* temp = uuid_;
707  uuid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
708  return temp;
709  }
710 }
711 inline void Schema::set_allocated_uuid(::std::string* uuid) {
712  if (uuid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
713  delete uuid_;
714  }
715  if (uuid) {
716  set_has_uuid();
717  uuid_ = uuid;
718  } else {
719  clear_has_uuid();
720  uuid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
721  }
722  // @@protoc_insertion_point(field_set_allocated:drizzled.message.Schema.uuid)
723 }
724 
725 // optional uint64 version = 14;
726 inline bool Schema::has_version() const {
727  return (_has_bits_[0] & 0x00000080u) != 0;
728 }
729 inline void Schema::set_has_version() {
730  _has_bits_[0] |= 0x00000080u;
731 }
732 inline void Schema::clear_has_version() {
733  _has_bits_[0] &= ~0x00000080u;
734 }
735 inline void Schema::clear_version() {
736  version_ = GOOGLE_ULONGLONG(0);
737  clear_has_version();
738 }
739 inline ::google::protobuf::uint64 Schema::version() const {
740  // @@protoc_insertion_point(field_get:drizzled.message.Schema.version)
741  return version_;
742 }
743 inline void Schema::set_version(::google::protobuf::uint64 value) {
744  set_has_version();
745  version_ = value;
746  // @@protoc_insertion_point(field_set:drizzled.message.Schema.version)
747 }
748 
749 // optional .drizzled.message.Schema.Options options = 15;
750 inline bool Schema::has_options() const {
751  return (_has_bits_[0] & 0x00000100u) != 0;
752 }
753 inline void Schema::set_has_options() {
754  _has_bits_[0] |= 0x00000100u;
755 }
756 inline void Schema::clear_has_options() {
757  _has_bits_[0] &= ~0x00000100u;
758 }
759 inline void Schema::clear_options() {
760  if (options_ != NULL) options_->::drizzled::message::Schema_Options::Clear();
761  clear_has_options();
762 }
763 inline const ::drizzled::message::Schema_Options& Schema::options() const {
764  // @@protoc_insertion_point(field_get:drizzled.message.Schema.options)
765  return options_ != NULL ? *options_ : *default_instance_->options_;
766 }
767 inline ::drizzled::message::Schema_Options* Schema::mutable_options() {
768  set_has_options();
769  if (options_ == NULL) options_ = new ::drizzled::message::Schema_Options;
770  // @@protoc_insertion_point(field_mutable:drizzled.message.Schema.options)
771  return options_;
772 }
773 inline ::drizzled::message::Schema_Options* Schema::release_options() {
774  clear_has_options();
775  ::drizzled::message::Schema_Options* temp = options_;
776  options_ = NULL;
777  return temp;
778 }
779 inline void Schema::set_allocated_options(::drizzled::message::Schema_Options* options) {
780  delete options_;
781  options_ = options;
782  if (options) {
783  set_has_options();
784  } else {
785  clear_has_options();
786  }
787  // @@protoc_insertion_point(field_set_allocated:drizzled.message.Schema.options)
788 }
789 
790 // optional .drizzled.message.ReplicationOptions replication_options = 16;
791 inline bool Schema::has_replication_options() const {
792  return (_has_bits_[0] & 0x00000200u) != 0;
793 }
794 inline void Schema::set_has_replication_options() {
795  _has_bits_[0] |= 0x00000200u;
796 }
797 inline void Schema::clear_has_replication_options() {
798  _has_bits_[0] &= ~0x00000200u;
799 }
800 inline void Schema::clear_replication_options() {
801  if (replication_options_ != NULL) replication_options_->::drizzled::message::ReplicationOptions::Clear();
802  clear_has_replication_options();
803 }
804 inline const ::drizzled::message::ReplicationOptions& Schema::replication_options() const {
805  // @@protoc_insertion_point(field_get:drizzled.message.Schema.replication_options)
806  return replication_options_ != NULL ? *replication_options_ : *default_instance_->replication_options_;
807 }
808 inline ::drizzled::message::ReplicationOptions* Schema::mutable_replication_options() {
809  set_has_replication_options();
810  if (replication_options_ == NULL) replication_options_ = new ::drizzled::message::ReplicationOptions;
811  // @@protoc_insertion_point(field_mutable:drizzled.message.Schema.replication_options)
812  return replication_options_;
813 }
814 inline ::drizzled::message::ReplicationOptions* Schema::release_replication_options() {
815  clear_has_replication_options();
816  ::drizzled::message::ReplicationOptions* temp = replication_options_;
817  replication_options_ = NULL;
818  return temp;
819 }
820 inline void Schema::set_allocated_replication_options(::drizzled::message::ReplicationOptions* replication_options) {
821  delete replication_options_;
822  replication_options_ = replication_options;
823  if (replication_options) {
824  set_has_replication_options();
825  } else {
826  clear_has_replication_options();
827  }
828  // @@protoc_insertion_point(field_set_allocated:drizzled.message.Schema.replication_options)
829 }
830 
831 // optional .drizzled.message.Access access = 17;
832 inline bool Schema::has_access() const {
833  return (_has_bits_[0] & 0x00000400u) != 0;
834 }
835 inline void Schema::set_has_access() {
836  _has_bits_[0] |= 0x00000400u;
837 }
838 inline void Schema::clear_has_access() {
839  _has_bits_[0] &= ~0x00000400u;
840 }
841 inline void Schema::clear_access() {
842  if (access_ != NULL) access_->::drizzled::message::Access::Clear();
843  clear_has_access();
844 }
845 inline const ::drizzled::message::Access& Schema::access() const {
846  // @@protoc_insertion_point(field_get:drizzled.message.Schema.access)
847  return access_ != NULL ? *access_ : *default_instance_->access_;
848 }
849 inline ::drizzled::message::Access* Schema::mutable_access() {
850  set_has_access();
851  if (access_ == NULL) access_ = new ::drizzled::message::Access;
852  // @@protoc_insertion_point(field_mutable:drizzled.message.Schema.access)
853  return access_;
854 }
855 inline ::drizzled::message::Access* Schema::release_access() {
856  clear_has_access();
857  ::drizzled::message::Access* temp = access_;
858  access_ = NULL;
859  return temp;
860 }
861 inline void Schema::set_allocated_access(::drizzled::message::Access* access) {
862  delete access_;
863  access_ = access;
864  if (access) {
865  set_has_access();
866  } else {
867  clear_has_access();
868  }
869  // @@protoc_insertion_point(field_set_allocated:drizzled.message.Schema.access)
870 }
871 
872 
873 // @@protoc_insertion_point(namespace_scope)
874 
875 } // namespace message
876 } // namespace drizzled
877 
878 #ifndef SWIG
879 namespace google {
880 namespace protobuf {
881 
882 
883 } // namespace google
884 } // namespace protobuf
885 #endif // SWIG
886 
887 // @@protoc_insertion_point(global_scope)
888 
889 #endif // PROTOBUF_schema_2eproto__INCLUDED
TODO: Rename this file - func.h is stupid.
Definition: schema.h:30