4 #ifndef PROTOBUF_alter_5ftable_2eproto__INCLUDED
5 #define PROTOBUF_alter_5ftable_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/generated_enum_reflection.h>
27 #include <google/protobuf/unknown_field_set.h>
34 void protobuf_AddDesc_alter_5ftable_2eproto();
35 void protobuf_AssignDesc_alter_5ftable_2eproto();
36 void protobuf_ShutdownFile_alter_5ftable_2eproto();
39 class AlterTable_AlterTableOperation;
40 class AlterTable_RenameTable;
41 class AlterTable_AlterKeysOnOff;
43 enum AlterTable_AlterTableOperation_Operation {
44 AlterTable_AlterTableOperation_Operation_DISCARD_TABLESPACE = 0,
45 AlterTable_AlterTableOperation_Operation_IMPORT_TABLESPACE = 1,
46 AlterTable_AlterTableOperation_Operation_DROP_KEY = 2,
47 AlterTable_AlterTableOperation_Operation_DROP_COLUMN = 3,
48 AlterTable_AlterTableOperation_Operation_DROP_FOREIGN_KEY = 4
50 bool AlterTable_AlterTableOperation_Operation_IsValid(
int value);
51 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation_Operation_Operation_MIN = AlterTable_AlterTableOperation_Operation_DISCARD_TABLESPACE;
52 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation_Operation_Operation_MAX = AlterTable_AlterTableOperation_Operation_DROP_FOREIGN_KEY;
53 const int AlterTable_AlterTableOperation_Operation_Operation_ARRAYSIZE = AlterTable_AlterTableOperation_Operation_Operation_MAX + 1;
55 const ::google::protobuf::EnumDescriptor* AlterTable_AlterTableOperation_Operation_descriptor();
56 inline const ::std::string& AlterTable_AlterTableOperation_Operation_Name(AlterTable_AlterTableOperation_Operation value) {
57 return ::google::protobuf::internal::NameOfEnum(
58 AlterTable_AlterTableOperation_Operation_descriptor(), value);
60 inline bool AlterTable_AlterTableOperation_Operation_Parse(
61 const ::std::string& name, AlterTable_AlterTableOperation_Operation* value) {
62 return ::google::protobuf::internal::ParseNamedEnum<AlterTable_AlterTableOperation_Operation>(
63 AlterTable_AlterTableOperation_Operation_descriptor(), name, value);
65 enum AlterTable_BuildMethod {
66 AlterTable_BuildMethod_BUILD_DEFAULT = 0,
67 AlterTable_BuildMethod_BUILD_ONLINE = 1,
68 AlterTable_BuildMethod_BUILD_OFFLINE = 2
70 bool AlterTable_BuildMethod_IsValid(
int value);
71 const AlterTable_BuildMethod AlterTable_BuildMethod_BuildMethod_MIN = AlterTable_BuildMethod_BUILD_DEFAULT;
72 const AlterTable_BuildMethod AlterTable_BuildMethod_BuildMethod_MAX = AlterTable_BuildMethod_BUILD_OFFLINE;
73 const int AlterTable_BuildMethod_BuildMethod_ARRAYSIZE = AlterTable_BuildMethod_BuildMethod_MAX + 1;
75 const ::google::protobuf::EnumDescriptor* AlterTable_BuildMethod_descriptor();
76 inline const ::std::string& AlterTable_BuildMethod_Name(AlterTable_BuildMethod value) {
77 return ::google::protobuf::internal::NameOfEnum(
78 AlterTable_BuildMethod_descriptor(), value);
80 inline bool AlterTable_BuildMethod_Parse(
81 const ::std::string& name, AlterTable_BuildMethod* value) {
82 return ::google::protobuf::internal::ParseNamedEnum<AlterTable_BuildMethod>(
83 AlterTable_BuildMethod_descriptor(), name, value);
99 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
100 return _unknown_fields_;
103 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
104 return &_unknown_fields_;
107 static const ::google::protobuf::Descriptor* descriptor();
115 void CopyFrom(const ::google::protobuf::Message& from);
116 void MergeFrom(const ::google::protobuf::Message& from);
120 bool IsInitialized()
const;
122 int ByteSize()
const;
123 bool MergePartialFromCodedStream(
124 ::google::protobuf::io::CodedInputStream* input);
125 void SerializeWithCachedSizes(
126 ::google::protobuf::io::CodedOutputStream* output)
const;
127 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
128 int GetCachedSize()
const {
return _cached_size_; }
132 void SetCachedSize(
int size)
const;
134 ::google::protobuf::Metadata GetMetadata()
const;
138 typedef AlterTable_AlterTableOperation_Operation Operation;
139 static const Operation DISCARD_TABLESPACE = AlterTable_AlterTableOperation_Operation_DISCARD_TABLESPACE;
140 static const Operation IMPORT_TABLESPACE = AlterTable_AlterTableOperation_Operation_IMPORT_TABLESPACE;
141 static const Operation DROP_KEY = AlterTable_AlterTableOperation_Operation_DROP_KEY;
142 static const Operation DROP_COLUMN = AlterTable_AlterTableOperation_Operation_DROP_COLUMN;
143 static const Operation DROP_FOREIGN_KEY = AlterTable_AlterTableOperation_Operation_DROP_FOREIGN_KEY;
144 static inline bool Operation_IsValid(
int value) {
145 return AlterTable_AlterTableOperation_Operation_IsValid(value);
147 static const Operation Operation_MIN =
148 AlterTable_AlterTableOperation_Operation_Operation_MIN;
149 static const Operation Operation_MAX =
150 AlterTable_AlterTableOperation_Operation_Operation_MAX;
151 static const int Operation_ARRAYSIZE =
152 AlterTable_AlterTableOperation_Operation_Operation_ARRAYSIZE;
153 static inline const ::google::protobuf::EnumDescriptor*
154 Operation_descriptor() {
155 return AlterTable_AlterTableOperation_Operation_descriptor();
157 static inline const ::std::string& Operation_Name(Operation value) {
158 return AlterTable_AlterTableOperation_Operation_Name(value);
160 static inline bool Operation_Parse(const ::std::string& name,
162 return AlterTable_AlterTableOperation_Operation_Parse(name, value);
168 inline bool has_operation()
const;
169 inline void clear_operation();
170 static const int kOperationFieldNumber = 1;
171 inline ::drizzled::message::AlterTable_AlterTableOperation_Operation operation()
const;
172 inline void set_operation(::drizzled::message::AlterTable_AlterTableOperation_Operation value);
175 inline bool has_drop_name()
const;
176 inline void clear_drop_name();
177 static const int kDropNameFieldNumber = 2;
178 inline const ::std::string& drop_name()
const;
179 inline void set_drop_name(const ::std::string& value);
180 inline void set_drop_name(
const char* value);
181 inline void set_drop_name(
const char* value,
size_t size);
182 inline ::std::string* mutable_drop_name();
183 inline ::std::string* release_drop_name();
184 inline void set_allocated_drop_name(::std::string* drop_name);
188 inline void set_has_operation();
189 inline void clear_has_operation();
190 inline void set_has_drop_name();
191 inline void clear_has_drop_name();
193 ::google::protobuf::UnknownFieldSet _unknown_fields_;
195 ::google::protobuf::uint32 _has_bits_[1];
196 mutable int _cached_size_;
197 ::std::string* drop_name_;
199 friend void protobuf_AddDesc_alter_5ftable_2eproto();
200 friend void protobuf_AssignDesc_alter_5ftable_2eproto();
201 friend void protobuf_ShutdownFile_alter_5ftable_2eproto();
203 void InitAsDefaultInstance();
220 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
221 return _unknown_fields_;
224 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
225 return &_unknown_fields_;
228 static const ::google::protobuf::Descriptor* descriptor();
236 void CopyFrom(const ::google::protobuf::Message& from);
237 void MergeFrom(const ::google::protobuf::Message& from);
241 bool IsInitialized()
const;
243 int ByteSize()
const;
244 bool MergePartialFromCodedStream(
245 ::google::protobuf::io::CodedInputStream* input);
246 void SerializeWithCachedSizes(
247 ::google::protobuf::io::CodedOutputStream* output)
const;
248 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
249 int GetCachedSize()
const {
return _cached_size_; }
253 void SetCachedSize(
int size)
const;
255 ::google::protobuf::Metadata GetMetadata()
const;
262 inline bool has_to_schema()
const;
263 inline void clear_to_schema();
264 static const int kToSchemaFieldNumber = 1;
265 inline const ::std::string& to_schema()
const;
266 inline void set_to_schema(const ::std::string& value);
267 inline void set_to_schema(
const char* value);
268 inline void set_to_schema(
const char* value,
size_t size);
269 inline ::std::string* mutable_to_schema();
270 inline ::std::string* release_to_schema();
271 inline void set_allocated_to_schema(::std::string* to_schema);
274 inline bool has_to_name()
const;
275 inline void clear_to_name();
276 static const int kToNameFieldNumber = 2;
277 inline const ::std::string& to_name()
const;
278 inline void set_to_name(const ::std::string& value);
279 inline void set_to_name(
const char* value);
280 inline void set_to_name(
const char* value,
size_t size);
281 inline ::std::string* mutable_to_name();
282 inline ::std::string* release_to_name();
283 inline void set_allocated_to_name(::std::string* to_name);
287 inline void set_has_to_schema();
288 inline void clear_has_to_schema();
289 inline void set_has_to_name();
290 inline void clear_has_to_name();
292 ::google::protobuf::UnknownFieldSet _unknown_fields_;
294 ::google::protobuf::uint32 _has_bits_[1];
295 mutable int _cached_size_;
296 ::std::string* to_schema_;
297 ::std::string* to_name_;
298 friend void protobuf_AddDesc_alter_5ftable_2eproto();
299 friend void protobuf_AssignDesc_alter_5ftable_2eproto();
300 friend void protobuf_ShutdownFile_alter_5ftable_2eproto();
302 void InitAsDefaultInstance();
319 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
320 return _unknown_fields_;
323 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
324 return &_unknown_fields_;
327 static const ::google::protobuf::Descriptor* descriptor();
335 void CopyFrom(const ::google::protobuf::Message& from);
336 void MergeFrom(const ::google::protobuf::Message& from);
340 bool IsInitialized()
const;
342 int ByteSize()
const;
343 bool MergePartialFromCodedStream(
344 ::google::protobuf::io::CodedInputStream* input);
345 void SerializeWithCachedSizes(
346 ::google::protobuf::io::CodedOutputStream* output)
const;
347 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
348 int GetCachedSize()
const {
return _cached_size_; }
352 void SetCachedSize(
int size)
const;
354 ::google::protobuf::Metadata GetMetadata()
const;
361 inline bool has_enable()
const;
362 inline void clear_enable();
363 static const int kEnableFieldNumber = 1;
364 inline bool enable()
const;
365 inline void set_enable(
bool value);
369 inline void set_has_enable();
370 inline void clear_has_enable();
372 ::google::protobuf::UnknownFieldSet _unknown_fields_;
374 ::google::protobuf::uint32 _has_bits_[1];
375 mutable int _cached_size_;
377 friend void protobuf_AddDesc_alter_5ftable_2eproto();
378 friend void protobuf_AssignDesc_alter_5ftable_2eproto();
379 friend void protobuf_ShutdownFile_alter_5ftable_2eproto();
381 void InitAsDefaultInstance();
398 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
399 return _unknown_fields_;
402 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
403 return &_unknown_fields_;
406 static const ::google::protobuf::Descriptor* descriptor();
414 void CopyFrom(const ::google::protobuf::Message& from);
415 void MergeFrom(const ::google::protobuf::Message& from);
419 bool IsInitialized()
const;
421 int ByteSize()
const;
422 bool MergePartialFromCodedStream(
423 ::google::protobuf::io::CodedInputStream* input);
424 void SerializeWithCachedSizes(
425 ::google::protobuf::io::CodedOutputStream* output)
const;
426 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
427 int GetCachedSize()
const {
return _cached_size_; }
431 void SetCachedSize(
int size)
const;
433 ::google::protobuf::Metadata GetMetadata()
const;
441 typedef AlterTable_BuildMethod BuildMethod;
442 static const BuildMethod BUILD_DEFAULT = AlterTable_BuildMethod_BUILD_DEFAULT;
443 static const BuildMethod BUILD_ONLINE = AlterTable_BuildMethod_BUILD_ONLINE;
444 static const BuildMethod BUILD_OFFLINE = AlterTable_BuildMethod_BUILD_OFFLINE;
445 static inline bool BuildMethod_IsValid(
int value) {
446 return AlterTable_BuildMethod_IsValid(value);
448 static const BuildMethod BuildMethod_MIN =
449 AlterTable_BuildMethod_BuildMethod_MIN;
450 static const BuildMethod BuildMethod_MAX =
451 AlterTable_BuildMethod_BuildMethod_MAX;
452 static const int BuildMethod_ARRAYSIZE =
453 AlterTable_BuildMethod_BuildMethod_ARRAYSIZE;
454 static inline const ::google::protobuf::EnumDescriptor*
455 BuildMethod_descriptor() {
456 return AlterTable_BuildMethod_descriptor();
458 static inline const ::std::string& BuildMethod_Name(BuildMethod value) {
459 return AlterTable_BuildMethod_Name(value);
461 static inline bool BuildMethod_Parse(const ::std::string& name,
462 BuildMethod* value) {
463 return AlterTable_BuildMethod_Parse(name, value);
469 inline bool has_catalog()
const;
470 inline void clear_catalog();
471 static const int kCatalogFieldNumber = 1;
472 inline const ::std::string& catalog()
const;
473 inline void set_catalog(const ::std::string& value);
474 inline void set_catalog(
const char* value);
475 inline void set_catalog(
const char* value,
size_t size);
476 inline ::std::string* mutable_catalog();
477 inline ::std::string* release_catalog();
478 inline void set_allocated_catalog(::std::string* catalog);
481 inline bool has_schema()
const;
482 inline void clear_schema();
483 static const int kSchemaFieldNumber = 2;
484 inline const ::std::string& schema()
const;
485 inline void set_schema(const ::std::string& value);
486 inline void set_schema(
const char* value);
487 inline void set_schema(
const char* value,
size_t size);
488 inline ::std::string* mutable_schema();
489 inline ::std::string* release_schema();
490 inline void set_allocated_schema(::std::string* schema);
493 inline bool has_name()
const;
494 inline void clear_name();
495 static const int kNameFieldNumber = 3;
496 inline const ::std::string& name()
const;
497 inline void set_name(const ::std::string& value);
498 inline void set_name(
const char* value);
499 inline void set_name(
const char* value,
size_t size);
500 inline ::std::string* mutable_name();
501 inline ::std::string* release_name();
502 inline void set_allocated_name(::std::string* name);
505 inline bool has_build_method()
const;
506 inline void clear_build_method();
507 static const int kBuildMethodFieldNumber = 4;
508 inline ::drizzled::message::AlterTable_BuildMethod build_method()
const;
509 inline void set_build_method(::drizzled::message::AlterTable_BuildMethod value);
512 inline bool has_ignore()
const;
513 inline void clear_ignore();
514 static const int kIgnoreFieldNumber = 5;
515 inline bool ignore()
const;
516 inline void set_ignore(
bool value);
519 inline int operations_size()
const;
520 inline void clear_operations();
521 static const int kOperationsFieldNumber = 6;
522 inline const ::drizzled::message::AlterTable_AlterTableOperation& operations(
int index)
const;
523 inline ::drizzled::message::AlterTable_AlterTableOperation* mutable_operations(
int index);
524 inline ::drizzled::message::AlterTable_AlterTableOperation* add_operations();
525 inline const ::google::protobuf::RepeatedPtrField< ::drizzled::message::AlterTable_AlterTableOperation >&
527 inline ::google::protobuf::RepeatedPtrField< ::drizzled::message::AlterTable_AlterTableOperation >*
528 mutable_operations();
531 inline bool has_rename()
const;
532 inline void clear_rename();
533 static const int kRenameFieldNumber = 7;
534 inline const ::drizzled::message::AlterTable_RenameTable& rename()
const;
535 inline ::drizzled::message::AlterTable_RenameTable* mutable_rename();
536 inline ::drizzled::message::AlterTable_RenameTable* release_rename();
540 inline bool has_alter_keys_onoff()
const;
541 inline void clear_alter_keys_onoff();
542 static const int kAlterKeysOnoffFieldNumber = 8;
543 inline const ::drizzled::message::AlterTable_AlterKeysOnOff& alter_keys_onoff()
const;
544 inline ::drizzled::message::AlterTable_AlterKeysOnOff* mutable_alter_keys_onoff();
545 inline ::drizzled::message::AlterTable_AlterKeysOnOff* release_alter_keys_onoff();
550 inline void set_has_catalog();
551 inline void clear_has_catalog();
552 inline void set_has_schema();
553 inline void clear_has_schema();
554 inline void set_has_name();
555 inline void clear_has_name();
556 inline void set_has_build_method();
557 inline void clear_has_build_method();
558 inline void set_has_ignore();
559 inline void clear_has_ignore();
560 inline void set_has_rename();
561 inline void clear_has_rename();
562 inline void set_has_alter_keys_onoff();
563 inline void clear_has_alter_keys_onoff();
565 ::google::protobuf::UnknownFieldSet _unknown_fields_;
567 ::google::protobuf::uint32 _has_bits_[1];
568 mutable int _cached_size_;
569 ::std::string* catalog_;
570 ::std::string* schema_;
571 ::std::string* name_;
574 ::google::protobuf::RepeatedPtrField< ::drizzled::message::AlterTable_AlterTableOperation > operations_;
577 friend void protobuf_AddDesc_alter_5ftable_2eproto();
578 friend void protobuf_AssignDesc_alter_5ftable_2eproto();
579 friend void protobuf_ShutdownFile_alter_5ftable_2eproto();
581 void InitAsDefaultInstance();
592 inline bool AlterTable_AlterTableOperation::has_operation()
const {
593 return (_has_bits_[0] & 0x00000001u) != 0;
595 inline void AlterTable_AlterTableOperation::set_has_operation() {
596 _has_bits_[0] |= 0x00000001u;
598 inline void AlterTable_AlterTableOperation::clear_has_operation() {
599 _has_bits_[0] &= ~0x00000001u;
601 inline void AlterTable_AlterTableOperation::clear_operation() {
603 clear_has_operation();
605 inline ::drizzled::message::AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::operation()
const {
607 return static_cast< ::drizzled::message::AlterTable_AlterTableOperation_Operation
>(operation_);
609 inline void AlterTable_AlterTableOperation::set_operation(::drizzled::message::AlterTable_AlterTableOperation_Operation value) {
610 assert(::drizzled::message::AlterTable_AlterTableOperation_Operation_IsValid(value));
617 inline bool AlterTable_AlterTableOperation::has_drop_name()
const {
618 return (_has_bits_[0] & 0x00000002u) != 0;
620 inline void AlterTable_AlterTableOperation::set_has_drop_name() {
621 _has_bits_[0] |= 0x00000002u;
623 inline void AlterTable_AlterTableOperation::clear_has_drop_name() {
624 _has_bits_[0] &= ~0x00000002u;
626 inline void AlterTable_AlterTableOperation::clear_drop_name() {
627 if (drop_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
630 clear_has_drop_name();
632 inline const ::std::string& AlterTable_AlterTableOperation::drop_name()
const {
636 inline void AlterTable_AlterTableOperation::set_drop_name(const ::std::string& value) {
638 if (drop_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
639 drop_name_ = new ::std::string;
641 drop_name_->assign(value);
644 inline void AlterTable_AlterTableOperation::set_drop_name(
const char* value) {
646 if (drop_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
647 drop_name_ = new ::std::string;
649 drop_name_->assign(value);
652 inline void AlterTable_AlterTableOperation::set_drop_name(
const char* value,
size_t size) {
654 if (drop_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
655 drop_name_ = new ::std::string;
657 drop_name_->assign(reinterpret_cast<const char*>(value), size);
660 inline ::std::string* AlterTable_AlterTableOperation::mutable_drop_name() {
662 if (drop_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
663 drop_name_ = new ::std::string;
668 inline ::std::string* AlterTable_AlterTableOperation::release_drop_name() {
669 clear_has_drop_name();
670 if (drop_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
673 ::std::string* temp = drop_name_;
674 drop_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
678 inline void AlterTable_AlterTableOperation::set_allocated_drop_name(::std::string* drop_name) {
679 if (drop_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
684 drop_name_ = drop_name;
686 clear_has_drop_name();
687 drop_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
697 inline bool AlterTable_RenameTable::has_to_schema()
const {
698 return (_has_bits_[0] & 0x00000001u) != 0;
700 inline void AlterTable_RenameTable::set_has_to_schema() {
701 _has_bits_[0] |= 0x00000001u;
703 inline void AlterTable_RenameTable::clear_has_to_schema() {
704 _has_bits_[0] &= ~0x00000001u;
706 inline void AlterTable_RenameTable::clear_to_schema() {
707 if (to_schema_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
710 clear_has_to_schema();
712 inline const ::std::string& AlterTable_RenameTable::to_schema()
const {
716 inline void AlterTable_RenameTable::set_to_schema(const ::std::string& value) {
718 if (to_schema_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
719 to_schema_ = new ::std::string;
721 to_schema_->assign(value);
724 inline void AlterTable_RenameTable::set_to_schema(
const char* value) {
726 if (to_schema_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
727 to_schema_ = new ::std::string;
729 to_schema_->assign(value);
732 inline void AlterTable_RenameTable::set_to_schema(
const char* value,
size_t size) {
734 if (to_schema_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
735 to_schema_ = new ::std::string;
737 to_schema_->assign(reinterpret_cast<const char*>(value), size);
740 inline ::std::string* AlterTable_RenameTable::mutable_to_schema() {
742 if (to_schema_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
743 to_schema_ = new ::std::string;
748 inline ::std::string* AlterTable_RenameTable::release_to_schema() {
749 clear_has_to_schema();
750 if (to_schema_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
753 ::std::string* temp = to_schema_;
754 to_schema_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
758 inline void AlterTable_RenameTable::set_allocated_to_schema(::std::string* to_schema) {
759 if (to_schema_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
764 to_schema_ = to_schema;
766 clear_has_to_schema();
767 to_schema_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
773 inline bool AlterTable_RenameTable::has_to_name()
const {
774 return (_has_bits_[0] & 0x00000002u) != 0;
776 inline void AlterTable_RenameTable::set_has_to_name() {
777 _has_bits_[0] |= 0x00000002u;
779 inline void AlterTable_RenameTable::clear_has_to_name() {
780 _has_bits_[0] &= ~0x00000002u;
782 inline void AlterTable_RenameTable::clear_to_name() {
783 if (to_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
788 inline const ::std::string& AlterTable_RenameTable::to_name()
const {
792 inline void AlterTable_RenameTable::set_to_name(const ::std::string& value) {
794 if (to_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
795 to_name_ = new ::std::string;
797 to_name_->assign(value);
800 inline void AlterTable_RenameTable::set_to_name(
const char* value) {
802 if (to_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
803 to_name_ = new ::std::string;
805 to_name_->assign(value);
808 inline void AlterTable_RenameTable::set_to_name(
const char* value,
size_t size) {
810 if (to_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
811 to_name_ = new ::std::string;
813 to_name_->assign(reinterpret_cast<const char*>(value), size);
816 inline ::std::string* AlterTable_RenameTable::mutable_to_name() {
818 if (to_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
819 to_name_ = new ::std::string;
824 inline ::std::string* AlterTable_RenameTable::release_to_name() {
826 if (to_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
829 ::std::string* temp = to_name_;
830 to_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
834 inline void AlterTable_RenameTable::set_allocated_to_name(::std::string* to_name) {
835 if (to_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
843 to_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
853 inline bool AlterTable_AlterKeysOnOff::has_enable()
const {
854 return (_has_bits_[0] & 0x00000001u) != 0;
856 inline void AlterTable_AlterKeysOnOff::set_has_enable() {
857 _has_bits_[0] |= 0x00000001u;
859 inline void AlterTable_AlterKeysOnOff::clear_has_enable() {
860 _has_bits_[0] &= ~0x00000001u;
862 inline void AlterTable_AlterKeysOnOff::clear_enable() {
866 inline bool AlterTable_AlterKeysOnOff::enable()
const {
870 inline void AlterTable_AlterKeysOnOff::set_enable(
bool value) {
881 inline bool AlterTable::has_catalog()
const {
882 return (_has_bits_[0] & 0x00000001u) != 0;
884 inline void AlterTable::set_has_catalog() {
885 _has_bits_[0] |= 0x00000001u;
887 inline void AlterTable::clear_has_catalog() {
888 _has_bits_[0] &= ~0x00000001u;
890 inline void AlterTable::clear_catalog() {
891 if (catalog_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
896 inline const ::std::string& AlterTable::catalog()
const {
900 inline void AlterTable::set_catalog(const ::std::string& value) {
902 if (catalog_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
903 catalog_ = new ::std::string;
905 catalog_->assign(value);
908 inline void AlterTable::set_catalog(
const char* value) {
910 if (catalog_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
911 catalog_ = new ::std::string;
913 catalog_->assign(value);
916 inline void AlterTable::set_catalog(
const char* value,
size_t size) {
918 if (catalog_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
919 catalog_ = new ::std::string;
921 catalog_->assign(reinterpret_cast<const char*>(value), size);
924 inline ::std::string* AlterTable::mutable_catalog() {
926 if (catalog_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
927 catalog_ = new ::std::string;
932 inline ::std::string* AlterTable::release_catalog() {
934 if (catalog_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
937 ::std::string* temp = catalog_;
938 catalog_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
942 inline void AlterTable::set_allocated_catalog(::std::string* catalog) {
943 if (catalog_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
951 catalog_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
957 inline bool AlterTable::has_schema()
const {
958 return (_has_bits_[0] & 0x00000002u) != 0;
960 inline void AlterTable::set_has_schema() {
961 _has_bits_[0] |= 0x00000002u;
963 inline void AlterTable::clear_has_schema() {
964 _has_bits_[0] &= ~0x00000002u;
966 inline void AlterTable::clear_schema() {
967 if (schema_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
972 inline const ::std::string& AlterTable::schema()
const {
976 inline void AlterTable::set_schema(const ::std::string& value) {
978 if (schema_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
979 schema_ = new ::std::string;
981 schema_->assign(value);
984 inline void AlterTable::set_schema(
const char* value) {
986 if (schema_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
987 schema_ = new ::std::string;
989 schema_->assign(value);
992 inline void AlterTable::set_schema(
const char* value,
size_t size) {
994 if (schema_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
995 schema_ = new ::std::string;
997 schema_->assign(reinterpret_cast<const char*>(value), size);
1000 inline ::std::string* AlterTable::mutable_schema() {
1002 if (schema_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1003 schema_ = new ::std::string;
1008 inline ::std::string* AlterTable::release_schema() {
1010 if (schema_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1013 ::std::string* temp = schema_;
1014 schema_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1018 inline void AlterTable::set_allocated_schema(::std::string* schema) {
1019 if (schema_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1027 schema_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1033 inline bool AlterTable::has_name()
const {
1034 return (_has_bits_[0] & 0x00000004u) != 0;
1036 inline void AlterTable::set_has_name() {
1037 _has_bits_[0] |= 0x00000004u;
1039 inline void AlterTable::clear_has_name() {
1040 _has_bits_[0] &= ~0x00000004u;
1042 inline void AlterTable::clear_name() {
1043 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1048 inline const ::std::string& AlterTable::name()
const {
1052 inline void AlterTable::set_name(const ::std::string& value) {
1054 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1055 name_ = new ::std::string;
1057 name_->assign(value);
1060 inline void AlterTable::set_name(
const char* value) {
1062 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1063 name_ = new ::std::string;
1065 name_->assign(value);
1068 inline void AlterTable::set_name(
const char* value,
size_t size) {
1070 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1071 name_ = new ::std::string;
1073 name_->assign(reinterpret_cast<const char*>(value), size);
1076 inline ::std::string* AlterTable::mutable_name() {
1078 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1079 name_ = new ::std::string;
1084 inline ::std::string* AlterTable::release_name() {
1086 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1089 ::std::string* temp = name_;
1090 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1094 inline void AlterTable::set_allocated_name(::std::string* name) {
1095 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1103 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1109 inline bool AlterTable::has_build_method()
const {
1110 return (_has_bits_[0] & 0x00000008u) != 0;
1112 inline void AlterTable::set_has_build_method() {
1113 _has_bits_[0] |= 0x00000008u;
1115 inline void AlterTable::clear_has_build_method() {
1116 _has_bits_[0] &= ~0x00000008u;
1118 inline void AlterTable::clear_build_method() {
1120 clear_has_build_method();
1122 inline ::drizzled::message::AlterTable_BuildMethod AlterTable::build_method()
const {
1124 return static_cast< ::drizzled::message::AlterTable_BuildMethod
>(build_method_);
1126 inline void AlterTable::set_build_method(::drizzled::message::AlterTable_BuildMethod value) {
1127 assert(::drizzled::message::AlterTable_BuildMethod_IsValid(value));
1128 set_has_build_method();
1129 build_method_ = value;
1134 inline bool AlterTable::has_ignore()
const {
1135 return (_has_bits_[0] & 0x00000010u) != 0;
1137 inline void AlterTable::set_has_ignore() {
1138 _has_bits_[0] |= 0x00000010u;
1140 inline void AlterTable::clear_has_ignore() {
1141 _has_bits_[0] &= ~0x00000010u;
1143 inline void AlterTable::clear_ignore() {
1147 inline bool AlterTable::ignore()
const {
1151 inline void AlterTable::set_ignore(
bool value) {
1158 inline int AlterTable::operations_size()
const {
1159 return operations_.size();
1161 inline void AlterTable::clear_operations() {
1162 operations_.Clear();
1164 inline const ::drizzled::message::AlterTable_AlterTableOperation& AlterTable::operations(
int index)
const {
1166 return operations_.Get(index);
1168 inline ::drizzled::message::AlterTable_AlterTableOperation* AlterTable::mutable_operations(
int index) {
1170 return operations_.Mutable(index);
1172 inline ::drizzled::message::AlterTable_AlterTableOperation* AlterTable::add_operations() {
1174 return operations_.Add();
1176 inline const ::google::protobuf::RepeatedPtrField< ::drizzled::message::AlterTable_AlterTableOperation >&
1177 AlterTable::operations()
const {
1181 inline ::google::protobuf::RepeatedPtrField< ::drizzled::message::AlterTable_AlterTableOperation >*
1182 AlterTable::mutable_operations() {
1184 return &operations_;
1188 inline bool AlterTable::has_rename()
const {
1189 return (_has_bits_[0] & 0x00000040u) != 0;
1191 inline void AlterTable::set_has_rename() {
1192 _has_bits_[0] |= 0x00000040u;
1194 inline void AlterTable::clear_has_rename() {
1195 _has_bits_[0] &= ~0x00000040u;
1197 inline void AlterTable::clear_rename() {
1198 if (rename_ != NULL) rename_->::drizzled::message::AlterTable_RenameTable::Clear();
1201 inline const ::drizzled::message::AlterTable_RenameTable& AlterTable::rename()
const {
1203 return rename_ != NULL ? *rename_ : *default_instance_->rename_;
1205 inline ::drizzled::message::AlterTable_RenameTable* AlterTable::mutable_rename() {
1207 if (rename_ == NULL) rename_ = new ::drizzled::message::AlterTable_RenameTable;
1211 inline ::drizzled::message::AlterTable_RenameTable* AlterTable::release_rename() {
1229 inline bool AlterTable::has_alter_keys_onoff()
const {
1230 return (_has_bits_[0] & 0x00000080u) != 0;
1232 inline void AlterTable::set_has_alter_keys_onoff() {
1233 _has_bits_[0] |= 0x00000080u;
1235 inline void AlterTable::clear_has_alter_keys_onoff() {
1236 _has_bits_[0] &= ~0x00000080u;
1238 inline void AlterTable::clear_alter_keys_onoff() {
1239 if (alter_keys_onoff_ != NULL) alter_keys_onoff_->::drizzled::message::AlterTable_AlterKeysOnOff::Clear();
1240 clear_has_alter_keys_onoff();
1242 inline const ::drizzled::message::AlterTable_AlterKeysOnOff& AlterTable::alter_keys_onoff()
const {
1244 return alter_keys_onoff_ != NULL ? *alter_keys_onoff_ : *default_instance_->alter_keys_onoff_;
1246 inline ::drizzled::message::AlterTable_AlterKeysOnOff* AlterTable::mutable_alter_keys_onoff() {
1247 set_has_alter_keys_onoff();
1248 if (alter_keys_onoff_ == NULL) alter_keys_onoff_ = new ::drizzled::message::AlterTable_AlterKeysOnOff;
1250 return alter_keys_onoff_;
1252 inline ::drizzled::message::AlterTable_AlterKeysOnOff* AlterTable::release_alter_keys_onoff() {
1253 clear_has_alter_keys_onoff();
1255 alter_keys_onoff_ = NULL;
1259 delete alter_keys_onoff_;
1260 alter_keys_onoff_ = alter_keys_onoff;
1261 if (alter_keys_onoff) {
1262 set_has_alter_keys_onoff();
1264 clear_has_alter_keys_onoff();
1277 namespace protobuf {
1279 template <>
struct is_proto_enum< ::drizzled::message::AlterTable_AlterTableOperation_Operation> : ::google::protobuf::internal::true_type {};
1281 inline const EnumDescriptor* GetEnumDescriptor< ::drizzled::message::AlterTable_AlterTableOperation_Operation>() {
1282 return ::drizzled::message::AlterTable_AlterTableOperation_Operation_descriptor();
1284 template <>
struct is_proto_enum< ::drizzled::message::AlterTable_BuildMethod> : ::google::protobuf::internal::true_type {};
1286 inline const EnumDescriptor* GetEnumDescriptor< ::drizzled::message::AlterTable_BuildMethod>() {
1287 return ::drizzled::message::AlterTable_BuildMethod_descriptor();
1296 #endif // PROTOBUF_alter_5ftable_2eproto__INCLUDED
TODO: Rename this file - func.h is stupid.