4 #ifndef PROTOBUF_schema_2eproto__INCLUDED
5 #define PROTOBUF_schema_2eproto__INCLUDED
9 #include <google/protobuf/stubs/common.h>
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
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.
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"
36 void protobuf_AddDesc_schema_2eproto();
37 void protobuf_AssignDesc_schema_2eproto();
38 void protobuf_ShutdownFile_schema_2eproto();
57 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
58 return _unknown_fields_;
61 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
62 return &_unknown_fields_;
65 static const ::google::protobuf::Descriptor* descriptor();
73 void CopyFrom(const ::google::protobuf::Message& from);
74 void MergeFrom(const ::google::protobuf::Message& from);
78 bool IsInitialized()
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_; }
90 void SetCachedSize(
int size)
const;
92 ::google::protobuf::Metadata GetMetadata()
const;
101 ::google::protobuf::UnknownFieldSet _unknown_fields_;
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();
109 void InitAsDefaultInstance();
114 class Schema :
public ::google::protobuf::Message {
126 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
127 return _unknown_fields_;
130 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
131 return &_unknown_fields_;
134 static const ::google::protobuf::Descriptor* descriptor();
135 static const Schema& default_instance();
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);
147 bool IsInitialized()
const;
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_; }
159 void SetCachedSize(
int size)
const;
161 ::google::protobuf::Metadata GetMetadata()
const;
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);
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);
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();
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);
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);
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);
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);
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);
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();
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();
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();
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();
299 ::google::protobuf::UnknownFieldSet _unknown_fields_;
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_;
314 friend void protobuf_AddDesc_schema_2eproto();
315 friend void protobuf_AssignDesc_schema_2eproto();
316 friend void protobuf_ShutdownFile_schema_2eproto();
318 void InitAsDefaultInstance();
319 static Schema* default_instance_;
333 inline bool Schema::has_name()
const {
334 return (_has_bits_[0] & 0x00000001u) != 0;
336 inline void Schema::set_has_name() {
337 _has_bits_[0] |= 0x00000001u;
339 inline void Schema::clear_has_name() {
340 _has_bits_[0] &= ~0x00000001u;
342 inline void Schema::clear_name() {
343 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
348 inline const ::std::string& Schema::name()
const {
352 inline void Schema::set_name(const ::std::string& value) {
354 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
355 name_ = new ::std::string;
357 name_->assign(value);
360 inline void Schema::set_name(
const char* value) {
362 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
363 name_ = new ::std::string;
365 name_->assign(value);
368 inline void Schema::set_name(
const char* value,
size_t size) {
370 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
371 name_ = new ::std::string;
373 name_->assign(reinterpret_cast<const char*>(value), size);
376 inline ::std::string* Schema::mutable_name() {
378 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
379 name_ = new ::std::string;
384 inline ::std::string* Schema::release_name() {
386 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
389 ::std::string* temp = name_;
390 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
394 inline void Schema::set_allocated_name(::std::string* name) {
395 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
403 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
409 inline bool Schema::has_collation()
const {
410 return (_has_bits_[0] & 0x00000002u) != 0;
412 inline void Schema::set_has_collation() {
413 _has_bits_[0] |= 0x00000002u;
415 inline void Schema::clear_has_collation() {
416 _has_bits_[0] &= ~0x00000002u;
418 inline void Schema::clear_collation() {
419 if (collation_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
422 clear_has_collation();
424 inline const ::std::string& Schema::collation()
const {
428 inline void Schema::set_collation(const ::std::string& value) {
430 if (collation_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
431 collation_ = new ::std::string;
433 collation_->assign(value);
436 inline void Schema::set_collation(
const char* value) {
438 if (collation_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
439 collation_ = new ::std::string;
441 collation_->assign(value);
444 inline void Schema::set_collation(
const char* value,
size_t size) {
446 if (collation_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
447 collation_ = new ::std::string;
449 collation_->assign(reinterpret_cast<const char*>(value), size);
452 inline ::std::string* Schema::mutable_collation() {
454 if (collation_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
455 collation_ = new ::std::string;
460 inline ::std::string* Schema::release_collation() {
461 clear_has_collation();
462 if (collation_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
465 ::std::string* temp = collation_;
466 collation_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
470 inline void Schema::set_allocated_collation(::std::string* collation) {
471 if (collation_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
476 collation_ = collation;
478 clear_has_collation();
479 collation_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
485 inline bool Schema::has_engine()
const {
486 return (_has_bits_[0] & 0x00000004u) != 0;
488 inline void Schema::set_has_engine() {
489 _has_bits_[0] |= 0x00000004u;
491 inline void Schema::clear_has_engine() {
492 _has_bits_[0] &= ~0x00000004u;
494 inline void Schema::clear_engine() {
495 if (engine_ != NULL) engine_->::drizzled::message::Engine::Clear();
498 inline const ::drizzled::message::Engine& Schema::engine()
const {
500 return engine_ != NULL ? *engine_ : *default_instance_->engine_;
502 inline ::drizzled::message::Engine* Schema::mutable_engine() {
504 if (engine_ == NULL) engine_ = new ::drizzled::message::Engine;
508 inline ::drizzled::message::Engine* Schema::release_engine() {
526 inline bool Schema::has_catalog()
const {
527 return (_has_bits_[0] & 0x00000008u) != 0;
529 inline void Schema::set_has_catalog() {
530 _has_bits_[0] |= 0x00000008u;
532 inline void Schema::clear_has_catalog() {
533 _has_bits_[0] &= ~0x00000008u;
535 inline void Schema::clear_catalog() {
536 if (catalog_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
541 inline const ::std::string& Schema::catalog()
const {
545 inline void Schema::set_catalog(const ::std::string& value) {
547 if (catalog_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
548 catalog_ = new ::std::string;
550 catalog_->assign(value);
553 inline void Schema::set_catalog(
const char* value) {
555 if (catalog_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
556 catalog_ = new ::std::string;
558 catalog_->assign(value);
561 inline void Schema::set_catalog(
const char* value,
size_t size) {
563 if (catalog_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
564 catalog_ = new ::std::string;
566 catalog_->assign(reinterpret_cast<const char*>(value), size);
569 inline ::std::string* Schema::mutable_catalog() {
571 if (catalog_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
572 catalog_ = new ::std::string;
577 inline ::std::string* Schema::release_catalog() {
579 if (catalog_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
582 ::std::string* temp = catalog_;
583 catalog_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
587 inline void Schema::set_allocated_catalog(::std::string* catalog) {
588 if (catalog_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
596 catalog_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
602 inline bool Schema::has_creation_timestamp()
const {
603 return (_has_bits_[0] & 0x00000010u) != 0;
605 inline void Schema::set_has_creation_timestamp() {
606 _has_bits_[0] |= 0x00000010u;
608 inline void Schema::clear_has_creation_timestamp() {
609 _has_bits_[0] &= ~0x00000010u;
611 inline void Schema::clear_creation_timestamp() {
612 creation_timestamp_ = GOOGLE_ULONGLONG(0);
613 clear_has_creation_timestamp();
615 inline ::google::protobuf::uint64 Schema::creation_timestamp()
const {
617 return creation_timestamp_;
619 inline void Schema::set_creation_timestamp(::google::protobuf::uint64 value) {
620 set_has_creation_timestamp();
621 creation_timestamp_ = value;
626 inline bool Schema::has_update_timestamp()
const {
627 return (_has_bits_[0] & 0x00000020u) != 0;
629 inline void Schema::set_has_update_timestamp() {
630 _has_bits_[0] |= 0x00000020u;
632 inline void Schema::clear_has_update_timestamp() {
633 _has_bits_[0] &= ~0x00000020u;
635 inline void Schema::clear_update_timestamp() {
636 update_timestamp_ = GOOGLE_ULONGLONG(0);
637 clear_has_update_timestamp();
639 inline ::google::protobuf::uint64 Schema::update_timestamp()
const {
641 return update_timestamp_;
643 inline void Schema::set_update_timestamp(::google::protobuf::uint64 value) {
644 set_has_update_timestamp();
645 update_timestamp_ = value;
650 inline bool Schema::has_uuid()
const {
651 return (_has_bits_[0] & 0x00000040u) != 0;
653 inline void Schema::set_has_uuid() {
654 _has_bits_[0] |= 0x00000040u;
656 inline void Schema::clear_has_uuid() {
657 _has_bits_[0] &= ~0x00000040u;
659 inline void Schema::clear_uuid() {
660 if (uuid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
665 inline const ::std::string& Schema::uuid()
const {
669 inline void Schema::set_uuid(const ::std::string& value) {
671 if (uuid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
672 uuid_ = new ::std::string;
674 uuid_->assign(value);
677 inline void Schema::set_uuid(
const char* value) {
679 if (uuid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
680 uuid_ = new ::std::string;
682 uuid_->assign(value);
685 inline void Schema::set_uuid(
const char* value,
size_t size) {
687 if (uuid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
688 uuid_ = new ::std::string;
690 uuid_->assign(reinterpret_cast<const char*>(value), size);
693 inline ::std::string* Schema::mutable_uuid() {
695 if (uuid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
696 uuid_ = new ::std::string;
701 inline ::std::string* Schema::release_uuid() {
703 if (uuid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
706 ::std::string* temp = uuid_;
707 uuid_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
711 inline void Schema::set_allocated_uuid(::std::string* uuid) {
712 if (uuid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
720 uuid_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
726 inline bool Schema::has_version()
const {
727 return (_has_bits_[0] & 0x00000080u) != 0;
729 inline void Schema::set_has_version() {
730 _has_bits_[0] |= 0x00000080u;
732 inline void Schema::clear_has_version() {
733 _has_bits_[0] &= ~0x00000080u;
735 inline void Schema::clear_version() {
736 version_ = GOOGLE_ULONGLONG(0);
739 inline ::google::protobuf::uint64 Schema::version()
const {
743 inline void Schema::set_version(::google::protobuf::uint64 value) {
750 inline bool Schema::has_options()
const {
751 return (_has_bits_[0] & 0x00000100u) != 0;
753 inline void Schema::set_has_options() {
754 _has_bits_[0] |= 0x00000100u;
756 inline void Schema::clear_has_options() {
757 _has_bits_[0] &= ~0x00000100u;
759 inline void Schema::clear_options() {
760 if (options_ != NULL) options_->::drizzled::message::Schema_Options::Clear();
763 inline const ::drizzled::message::Schema_Options& Schema::options()
const {
765 return options_ != NULL ? *options_ : *default_instance_->options_;
767 inline ::drizzled::message::Schema_Options* Schema::mutable_options() {
769 if (options_ == NULL) options_ = new ::drizzled::message::Schema_Options;
773 inline ::drizzled::message::Schema_Options* Schema::release_options() {
791 inline bool Schema::has_replication_options()
const {
792 return (_has_bits_[0] & 0x00000200u) != 0;
794 inline void Schema::set_has_replication_options() {
795 _has_bits_[0] |= 0x00000200u;
797 inline void Schema::clear_has_replication_options() {
798 _has_bits_[0] &= ~0x00000200u;
800 inline void Schema::clear_replication_options() {
801 if (replication_options_ != NULL) replication_options_->::drizzled::message::ReplicationOptions::Clear();
802 clear_has_replication_options();
804 inline const ::drizzled::message::ReplicationOptions& Schema::replication_options()
const {
806 return replication_options_ != NULL ? *replication_options_ : *default_instance_->replication_options_;
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;
812 return replication_options_;
814 inline ::drizzled::message::ReplicationOptions* Schema::release_replication_options() {
815 clear_has_replication_options();
817 replication_options_ = NULL;
821 delete replication_options_;
822 replication_options_ = replication_options;
823 if (replication_options) {
824 set_has_replication_options();
826 clear_has_replication_options();
832 inline bool Schema::has_access()
const {
833 return (_has_bits_[0] & 0x00000400u) != 0;
835 inline void Schema::set_has_access() {
836 _has_bits_[0] |= 0x00000400u;
838 inline void Schema::clear_has_access() {
839 _has_bits_[0] &= ~0x00000400u;
841 inline void Schema::clear_access() {
842 if (access_ != NULL) access_->::drizzled::message::Access::Clear();
845 inline const ::drizzled::message::Access& Schema::access()
const {
847 return access_ != NULL ? *access_ : *default_instance_->access_;
849 inline ::drizzled::message::Access* Schema::mutable_access() {
851 if (access_ == NULL) access_ = new ::drizzled::message::Access;
855 inline ::drizzled::message::Access* Schema::release_access() {
889 #endif // PROTOBUF_schema_2eproto__INCLUDED
TODO: Rename this file - func.h is stupid.