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 < 2005000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
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;
135 ::google::protobuf::Metadata GetMetadata()
const;
139 typedef AlterTable_AlterTableOperation_Operation Operation;
140 static const Operation DISCARD_TABLESPACE = AlterTable_AlterTableOperation_Operation_DISCARD_TABLESPACE;
141 static const Operation IMPORT_TABLESPACE = AlterTable_AlterTableOperation_Operation_IMPORT_TABLESPACE;
142 static const Operation DROP_KEY = AlterTable_AlterTableOperation_Operation_DROP_KEY;
143 static const Operation DROP_COLUMN = AlterTable_AlterTableOperation_Operation_DROP_COLUMN;
144 static const Operation DROP_FOREIGN_KEY = AlterTable_AlterTableOperation_Operation_DROP_FOREIGN_KEY;
145 static inline bool Operation_IsValid(
int value) {
146 return AlterTable_AlterTableOperation_Operation_IsValid(value);
148 static const Operation Operation_MIN =
149 AlterTable_AlterTableOperation_Operation_Operation_MIN;
150 static const Operation Operation_MAX =
151 AlterTable_AlterTableOperation_Operation_Operation_MAX;
152 static const int Operation_ARRAYSIZE =
153 AlterTable_AlterTableOperation_Operation_Operation_ARRAYSIZE;
154 static inline const ::google::protobuf::EnumDescriptor*
155 Operation_descriptor() {
156 return AlterTable_AlterTableOperation_Operation_descriptor();
158 static inline const ::std::string& Operation_Name(Operation value) {
159 return AlterTable_AlterTableOperation_Operation_Name(value);
161 static inline bool Operation_Parse(const ::std::string& name,
163 return AlterTable_AlterTableOperation_Operation_Parse(name, value);
169 inline bool has_operation()
const;
170 inline void clear_operation();
171 static const int kOperationFieldNumber = 1;
172 inline ::drizzled::message::AlterTable_AlterTableOperation_Operation operation()
const;
173 inline void set_operation(::drizzled::message::AlterTable_AlterTableOperation_Operation value);
176 inline bool has_drop_name()
const;
177 inline void clear_drop_name();
178 static const int kDropNameFieldNumber = 2;
179 inline const ::std::string& drop_name()
const;
180 inline void set_drop_name(const ::std::string& value);
181 inline void set_drop_name(
const char* value);
182 inline void set_drop_name(
const char* value,
size_t size);
183 inline ::std::string* mutable_drop_name();
184 inline ::std::string* release_drop_name();
185 inline void set_allocated_drop_name(::std::string* drop_name);
189 inline void set_has_operation();
190 inline void clear_has_operation();
191 inline void set_has_drop_name();
192 inline void clear_has_drop_name();
194 ::google::protobuf::UnknownFieldSet _unknown_fields_;
196 ::std::string* drop_name_;
199 mutable int _cached_size_;
200 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
202 friend void protobuf_AddDesc_alter_5ftable_2eproto();
203 friend void protobuf_AssignDesc_alter_5ftable_2eproto();
204 friend void protobuf_ShutdownFile_alter_5ftable_2eproto();
206 void InitAsDefaultInstance();
223 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
224 return _unknown_fields_;
227 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
228 return &_unknown_fields_;
231 static const ::google::protobuf::Descriptor* descriptor();
239 void CopyFrom(const ::google::protobuf::Message& from);
240 void MergeFrom(const ::google::protobuf::Message& from);
244 bool IsInitialized()
const;
246 int ByteSize()
const;
247 bool MergePartialFromCodedStream(
248 ::google::protobuf::io::CodedInputStream* input);
249 void SerializeWithCachedSizes(
250 ::google::protobuf::io::CodedOutputStream* output)
const;
251 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
252 int GetCachedSize()
const {
return _cached_size_; }
256 void SetCachedSize(
int size)
const;
259 ::google::protobuf::Metadata GetMetadata()
const;
266 inline bool has_to_schema()
const;
267 inline void clear_to_schema();
268 static const int kToSchemaFieldNumber = 1;
269 inline const ::std::string& to_schema()
const;
270 inline void set_to_schema(const ::std::string& value);
271 inline void set_to_schema(
const char* value);
272 inline void set_to_schema(
const char* value,
size_t size);
273 inline ::std::string* mutable_to_schema();
274 inline ::std::string* release_to_schema();
275 inline void set_allocated_to_schema(::std::string* to_schema);
278 inline bool has_to_name()
const;
279 inline void clear_to_name();
280 static const int kToNameFieldNumber = 2;
281 inline const ::std::string& to_name()
const;
282 inline void set_to_name(const ::std::string& value);
283 inline void set_to_name(
const char* value);
284 inline void set_to_name(
const char* value,
size_t size);
285 inline ::std::string* mutable_to_name();
286 inline ::std::string* release_to_name();
287 inline void set_allocated_to_name(::std::string* to_name);
291 inline void set_has_to_schema();
292 inline void clear_has_to_schema();
293 inline void set_has_to_name();
294 inline void clear_has_to_name();
296 ::google::protobuf::UnknownFieldSet _unknown_fields_;
298 ::std::string* to_schema_;
299 ::std::string* to_name_;
301 mutable int _cached_size_;
302 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
304 friend void protobuf_AddDesc_alter_5ftable_2eproto();
305 friend void protobuf_AssignDesc_alter_5ftable_2eproto();
306 friend void protobuf_ShutdownFile_alter_5ftable_2eproto();
308 void InitAsDefaultInstance();
325 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
326 return _unknown_fields_;
329 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
330 return &_unknown_fields_;
333 static const ::google::protobuf::Descriptor* descriptor();
341 void CopyFrom(const ::google::protobuf::Message& from);
342 void MergeFrom(const ::google::protobuf::Message& from);
346 bool IsInitialized()
const;
348 int ByteSize()
const;
349 bool MergePartialFromCodedStream(
350 ::google::protobuf::io::CodedInputStream* input);
351 void SerializeWithCachedSizes(
352 ::google::protobuf::io::CodedOutputStream* output)
const;
353 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
354 int GetCachedSize()
const {
return _cached_size_; }
358 void SetCachedSize(
int size)
const;
361 ::google::protobuf::Metadata GetMetadata()
const;
368 inline bool has_enable()
const;
369 inline void clear_enable();
370 static const int kEnableFieldNumber = 1;
371 inline bool enable()
const;
372 inline void set_enable(
bool value);
376 inline void set_has_enable();
377 inline void clear_has_enable();
379 ::google::protobuf::UnknownFieldSet _unknown_fields_;
383 mutable int _cached_size_;
384 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
386 friend void protobuf_AddDesc_alter_5ftable_2eproto();
387 friend void protobuf_AssignDesc_alter_5ftable_2eproto();
388 friend void protobuf_ShutdownFile_alter_5ftable_2eproto();
390 void InitAsDefaultInstance();
407 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
408 return _unknown_fields_;
411 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
412 return &_unknown_fields_;
415 static const ::google::protobuf::Descriptor* descriptor();
423 void CopyFrom(const ::google::protobuf::Message& from);
424 void MergeFrom(const ::google::protobuf::Message& from);
428 bool IsInitialized()
const;
430 int ByteSize()
const;
431 bool MergePartialFromCodedStream(
432 ::google::protobuf::io::CodedInputStream* input);
433 void SerializeWithCachedSizes(
434 ::google::protobuf::io::CodedOutputStream* output)
const;
435 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
436 int GetCachedSize()
const {
return _cached_size_; }
440 void SetCachedSize(
int size)
const;
443 ::google::protobuf::Metadata GetMetadata()
const;
451 typedef AlterTable_BuildMethod BuildMethod;
452 static const BuildMethod BUILD_DEFAULT = AlterTable_BuildMethod_BUILD_DEFAULT;
453 static const BuildMethod BUILD_ONLINE = AlterTable_BuildMethod_BUILD_ONLINE;
454 static const BuildMethod BUILD_OFFLINE = AlterTable_BuildMethod_BUILD_OFFLINE;
455 static inline bool BuildMethod_IsValid(
int value) {
456 return AlterTable_BuildMethod_IsValid(value);
458 static const BuildMethod BuildMethod_MIN =
459 AlterTable_BuildMethod_BuildMethod_MIN;
460 static const BuildMethod BuildMethod_MAX =
461 AlterTable_BuildMethod_BuildMethod_MAX;
462 static const int BuildMethod_ARRAYSIZE =
463 AlterTable_BuildMethod_BuildMethod_ARRAYSIZE;
464 static inline const ::google::protobuf::EnumDescriptor*
465 BuildMethod_descriptor() {
466 return AlterTable_BuildMethod_descriptor();
468 static inline const ::std::string& BuildMethod_Name(BuildMethod value) {
469 return AlterTable_BuildMethod_Name(value);
471 static inline bool BuildMethod_Parse(const ::std::string& name,
472 BuildMethod* value) {
473 return AlterTable_BuildMethod_Parse(name, value);
479 inline bool has_catalog()
const;
480 inline void clear_catalog();
481 static const int kCatalogFieldNumber = 1;
482 inline const ::std::string& catalog()
const;
483 inline void set_catalog(const ::std::string& value);
484 inline void set_catalog(
const char* value);
485 inline void set_catalog(
const char* value,
size_t size);
486 inline ::std::string* mutable_catalog();
487 inline ::std::string* release_catalog();
488 inline void set_allocated_catalog(::std::string* catalog);
491 inline bool has_schema()
const;
492 inline void clear_schema();
493 static const int kSchemaFieldNumber = 2;
494 inline const ::std::string& schema()
const;
495 inline void set_schema(const ::std::string& value);
496 inline void set_schema(
const char* value);
497 inline void set_schema(
const char* value,
size_t size);
498 inline ::std::string* mutable_schema();
499 inline ::std::string* release_schema();
500 inline void set_allocated_schema(::std::string* schema);
503 inline bool has_name()
const;
504 inline void clear_name();
505 static const int kNameFieldNumber = 3;
506 inline const ::std::string& name()
const;
507 inline void set_name(const ::std::string& value);
508 inline void set_name(
const char* value);
509 inline void set_name(
const char* value,
size_t size);
510 inline ::std::string* mutable_name();
511 inline ::std::string* release_name();
512 inline void set_allocated_name(::std::string* name);
515 inline bool has_build_method()
const;
516 inline void clear_build_method();
517 static const int kBuildMethodFieldNumber = 4;
518 inline ::drizzled::message::AlterTable_BuildMethod build_method()
const;
519 inline void set_build_method(::drizzled::message::AlterTable_BuildMethod value);
522 inline bool has_ignore()
const;
523 inline void clear_ignore();
524 static const int kIgnoreFieldNumber = 5;
525 inline bool ignore()
const;
526 inline void set_ignore(
bool value);
529 inline int operations_size()
const;
530 inline void clear_operations();
531 static const int kOperationsFieldNumber = 6;
532 inline const ::drizzled::message::AlterTable_AlterTableOperation& operations(
int index)
const;
533 inline ::drizzled::message::AlterTable_AlterTableOperation* mutable_operations(
int index);
534 inline ::drizzled::message::AlterTable_AlterTableOperation* add_operations();
535 inline const ::google::protobuf::RepeatedPtrField< ::drizzled::message::AlterTable_AlterTableOperation >&
537 inline ::google::protobuf::RepeatedPtrField< ::drizzled::message::AlterTable_AlterTableOperation >*
538 mutable_operations();
541 inline bool has_rename()
const;
542 inline void clear_rename();
543 static const int kRenameFieldNumber = 7;
544 inline const ::drizzled::message::AlterTable_RenameTable& rename()
const;
545 inline ::drizzled::message::AlterTable_RenameTable* mutable_rename();
546 inline ::drizzled::message::AlterTable_RenameTable* release_rename();
550 inline bool has_alter_keys_onoff()
const;
551 inline void clear_alter_keys_onoff();
552 static const int kAlterKeysOnoffFieldNumber = 8;
553 inline const ::drizzled::message::AlterTable_AlterKeysOnOff& alter_keys_onoff()
const;
554 inline ::drizzled::message::AlterTable_AlterKeysOnOff* mutable_alter_keys_onoff();
555 inline ::drizzled::message::AlterTable_AlterKeysOnOff* release_alter_keys_onoff();
560 inline void set_has_catalog();
561 inline void clear_has_catalog();
562 inline void set_has_schema();
563 inline void clear_has_schema();
564 inline void set_has_name();
565 inline void clear_has_name();
566 inline void set_has_build_method();
567 inline void clear_has_build_method();
568 inline void set_has_ignore();
569 inline void clear_has_ignore();
570 inline void set_has_rename();
571 inline void clear_has_rename();
572 inline void set_has_alter_keys_onoff();
573 inline void clear_has_alter_keys_onoff();
575 ::google::protobuf::UnknownFieldSet _unknown_fields_;
577 ::std::string* catalog_;
578 ::std::string* schema_;
579 ::std::string* name_;
582 ::google::protobuf::RepeatedPtrField< ::drizzled::message::AlterTable_AlterTableOperation > operations_;
586 mutable int _cached_size_;
587 ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32];
589 friend void protobuf_AddDesc_alter_5ftable_2eproto();
590 friend void protobuf_AssignDesc_alter_5ftable_2eproto();
591 friend void protobuf_ShutdownFile_alter_5ftable_2eproto();
593 void InitAsDefaultInstance();
604 inline bool AlterTable_AlterTableOperation::has_operation()
const {
605 return (_has_bits_[0] & 0x00000001u) != 0;
607 inline void AlterTable_AlterTableOperation::set_has_operation() {
608 _has_bits_[0] |= 0x00000001u;
610 inline void AlterTable_AlterTableOperation::clear_has_operation() {
611 _has_bits_[0] &= ~0x00000001u;
613 inline void AlterTable_AlterTableOperation::clear_operation() {
615 clear_has_operation();
617 inline ::drizzled::message::AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::operation()
const {
618 return static_cast< ::drizzled::message::AlterTable_AlterTableOperation_Operation
>(operation_);
620 inline void AlterTable_AlterTableOperation::set_operation(::drizzled::message::AlterTable_AlterTableOperation_Operation value) {
621 assert(::drizzled::message::AlterTable_AlterTableOperation_Operation_IsValid(value));
627 inline bool AlterTable_AlterTableOperation::has_drop_name()
const {
628 return (_has_bits_[0] & 0x00000002u) != 0;
630 inline void AlterTable_AlterTableOperation::set_has_drop_name() {
631 _has_bits_[0] |= 0x00000002u;
633 inline void AlterTable_AlterTableOperation::clear_has_drop_name() {
634 _has_bits_[0] &= ~0x00000002u;
636 inline void AlterTable_AlterTableOperation::clear_drop_name() {
637 if (drop_name_ != &::google::protobuf::internal::kEmptyString) {
640 clear_has_drop_name();
642 inline const ::std::string& AlterTable_AlterTableOperation::drop_name()
const {
645 inline void AlterTable_AlterTableOperation::set_drop_name(const ::std::string& value) {
647 if (drop_name_ == &::google::protobuf::internal::kEmptyString) {
648 drop_name_ = new ::std::string;
650 drop_name_->assign(value);
652 inline void AlterTable_AlterTableOperation::set_drop_name(
const char* value) {
654 if (drop_name_ == &::google::protobuf::internal::kEmptyString) {
655 drop_name_ = new ::std::string;
657 drop_name_->assign(value);
659 inline void AlterTable_AlterTableOperation::set_drop_name(
const char* value,
size_t size) {
661 if (drop_name_ == &::google::protobuf::internal::kEmptyString) {
662 drop_name_ = new ::std::string;
664 drop_name_->assign(reinterpret_cast<const char*>(value), size);
666 inline ::std::string* AlterTable_AlterTableOperation::mutable_drop_name() {
668 if (drop_name_ == &::google::protobuf::internal::kEmptyString) {
669 drop_name_ = new ::std::string;
673 inline ::std::string* AlterTable_AlterTableOperation::release_drop_name() {
674 clear_has_drop_name();
675 if (drop_name_ == &::google::protobuf::internal::kEmptyString) {
678 ::std::string* temp = drop_name_;
679 drop_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
683 inline void AlterTable_AlterTableOperation::set_allocated_drop_name(::std::string* drop_name) {
684 if (drop_name_ != &::google::protobuf::internal::kEmptyString) {
689 drop_name_ = drop_name;
691 clear_has_drop_name();
692 drop_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
701 inline bool AlterTable_RenameTable::has_to_schema()
const {
702 return (_has_bits_[0] & 0x00000001u) != 0;
704 inline void AlterTable_RenameTable::set_has_to_schema() {
705 _has_bits_[0] |= 0x00000001u;
707 inline void AlterTable_RenameTable::clear_has_to_schema() {
708 _has_bits_[0] &= ~0x00000001u;
710 inline void AlterTable_RenameTable::clear_to_schema() {
711 if (to_schema_ != &::google::protobuf::internal::kEmptyString) {
714 clear_has_to_schema();
716 inline const ::std::string& AlterTable_RenameTable::to_schema()
const {
719 inline void AlterTable_RenameTable::set_to_schema(const ::std::string& value) {
721 if (to_schema_ == &::google::protobuf::internal::kEmptyString) {
722 to_schema_ = new ::std::string;
724 to_schema_->assign(value);
726 inline void AlterTable_RenameTable::set_to_schema(
const char* value) {
728 if (to_schema_ == &::google::protobuf::internal::kEmptyString) {
729 to_schema_ = new ::std::string;
731 to_schema_->assign(value);
733 inline void AlterTable_RenameTable::set_to_schema(
const char* value,
size_t size) {
735 if (to_schema_ == &::google::protobuf::internal::kEmptyString) {
736 to_schema_ = new ::std::string;
738 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::kEmptyString) {
743 to_schema_ = new ::std::string;
747 inline ::std::string* AlterTable_RenameTable::release_to_schema() {
748 clear_has_to_schema();
749 if (to_schema_ == &::google::protobuf::internal::kEmptyString) {
752 ::std::string* temp = to_schema_;
753 to_schema_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
757 inline void AlterTable_RenameTable::set_allocated_to_schema(::std::string* to_schema) {
758 if (to_schema_ != &::google::protobuf::internal::kEmptyString) {
763 to_schema_ = to_schema;
765 clear_has_to_schema();
766 to_schema_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
771 inline bool AlterTable_RenameTable::has_to_name()
const {
772 return (_has_bits_[0] & 0x00000002u) != 0;
774 inline void AlterTable_RenameTable::set_has_to_name() {
775 _has_bits_[0] |= 0x00000002u;
777 inline void AlterTable_RenameTable::clear_has_to_name() {
778 _has_bits_[0] &= ~0x00000002u;
780 inline void AlterTable_RenameTable::clear_to_name() {
781 if (to_name_ != &::google::protobuf::internal::kEmptyString) {
786 inline const ::std::string& AlterTable_RenameTable::to_name()
const {
789 inline void AlterTable_RenameTable::set_to_name(const ::std::string& value) {
791 if (to_name_ == &::google::protobuf::internal::kEmptyString) {
792 to_name_ = new ::std::string;
794 to_name_->assign(value);
796 inline void AlterTable_RenameTable::set_to_name(
const char* value) {
798 if (to_name_ == &::google::protobuf::internal::kEmptyString) {
799 to_name_ = new ::std::string;
801 to_name_->assign(value);
803 inline void AlterTable_RenameTable::set_to_name(
const char* value,
size_t size) {
805 if (to_name_ == &::google::protobuf::internal::kEmptyString) {
806 to_name_ = new ::std::string;
808 to_name_->assign(reinterpret_cast<const char*>(value), size);
810 inline ::std::string* AlterTable_RenameTable::mutable_to_name() {
812 if (to_name_ == &::google::protobuf::internal::kEmptyString) {
813 to_name_ = new ::std::string;
817 inline ::std::string* AlterTable_RenameTable::release_to_name() {
819 if (to_name_ == &::google::protobuf::internal::kEmptyString) {
822 ::std::string* temp = to_name_;
823 to_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
827 inline void AlterTable_RenameTable::set_allocated_to_name(::std::string* to_name) {
828 if (to_name_ != &::google::protobuf::internal::kEmptyString) {
836 to_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
845 inline bool AlterTable_AlterKeysOnOff::has_enable()
const {
846 return (_has_bits_[0] & 0x00000001u) != 0;
848 inline void AlterTable_AlterKeysOnOff::set_has_enable() {
849 _has_bits_[0] |= 0x00000001u;
851 inline void AlterTable_AlterKeysOnOff::clear_has_enable() {
852 _has_bits_[0] &= ~0x00000001u;
854 inline void AlterTable_AlterKeysOnOff::clear_enable() {
858 inline bool AlterTable_AlterKeysOnOff::enable()
const {
861 inline void AlterTable_AlterKeysOnOff::set_enable(
bool value) {
871 inline bool AlterTable::has_catalog()
const {
872 return (_has_bits_[0] & 0x00000001u) != 0;
874 inline void AlterTable::set_has_catalog() {
875 _has_bits_[0] |= 0x00000001u;
877 inline void AlterTable::clear_has_catalog() {
878 _has_bits_[0] &= ~0x00000001u;
880 inline void AlterTable::clear_catalog() {
881 if (catalog_ != &::google::protobuf::internal::kEmptyString) {
886 inline const ::std::string& AlterTable::catalog()
const {
889 inline void AlterTable::set_catalog(const ::std::string& value) {
891 if (catalog_ == &::google::protobuf::internal::kEmptyString) {
892 catalog_ = new ::std::string;
894 catalog_->assign(value);
896 inline void AlterTable::set_catalog(
const char* value) {
898 if (catalog_ == &::google::protobuf::internal::kEmptyString) {
899 catalog_ = new ::std::string;
901 catalog_->assign(value);
903 inline void AlterTable::set_catalog(
const char* value,
size_t size) {
905 if (catalog_ == &::google::protobuf::internal::kEmptyString) {
906 catalog_ = new ::std::string;
908 catalog_->assign(reinterpret_cast<const char*>(value), size);
910 inline ::std::string* AlterTable::mutable_catalog() {
912 if (catalog_ == &::google::protobuf::internal::kEmptyString) {
913 catalog_ = new ::std::string;
917 inline ::std::string* AlterTable::release_catalog() {
919 if (catalog_ == &::google::protobuf::internal::kEmptyString) {
922 ::std::string* temp = catalog_;
923 catalog_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
927 inline void AlterTable::set_allocated_catalog(::std::string* catalog) {
928 if (catalog_ != &::google::protobuf::internal::kEmptyString) {
936 catalog_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
941 inline bool AlterTable::has_schema()
const {
942 return (_has_bits_[0] & 0x00000002u) != 0;
944 inline void AlterTable::set_has_schema() {
945 _has_bits_[0] |= 0x00000002u;
947 inline void AlterTable::clear_has_schema() {
948 _has_bits_[0] &= ~0x00000002u;
950 inline void AlterTable::clear_schema() {
951 if (schema_ != &::google::protobuf::internal::kEmptyString) {
956 inline const ::std::string& AlterTable::schema()
const {
959 inline void AlterTable::set_schema(const ::std::string& value) {
961 if (schema_ == &::google::protobuf::internal::kEmptyString) {
962 schema_ = new ::std::string;
964 schema_->assign(value);
966 inline void AlterTable::set_schema(
const char* value) {
968 if (schema_ == &::google::protobuf::internal::kEmptyString) {
969 schema_ = new ::std::string;
971 schema_->assign(value);
973 inline void AlterTable::set_schema(
const char* value,
size_t size) {
975 if (schema_ == &::google::protobuf::internal::kEmptyString) {
976 schema_ = new ::std::string;
978 schema_->assign(reinterpret_cast<const char*>(value), size);
980 inline ::std::string* AlterTable::mutable_schema() {
982 if (schema_ == &::google::protobuf::internal::kEmptyString) {
983 schema_ = new ::std::string;
987 inline ::std::string* AlterTable::release_schema() {
989 if (schema_ == &::google::protobuf::internal::kEmptyString) {
992 ::std::string* temp = schema_;
993 schema_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
997 inline void AlterTable::set_allocated_schema(::std::string* schema) {
998 if (schema_ != &::google::protobuf::internal::kEmptyString) {
1006 schema_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
1011 inline bool AlterTable::has_name()
const {
1012 return (_has_bits_[0] & 0x00000004u) != 0;
1014 inline void AlterTable::set_has_name() {
1015 _has_bits_[0] |= 0x00000004u;
1017 inline void AlterTable::clear_has_name() {
1018 _has_bits_[0] &= ~0x00000004u;
1020 inline void AlterTable::clear_name() {
1021 if (name_ != &::google::protobuf::internal::kEmptyString) {
1026 inline const ::std::string& AlterTable::name()
const {
1029 inline void AlterTable::set_name(const ::std::string& value) {
1031 if (name_ == &::google::protobuf::internal::kEmptyString) {
1032 name_ = new ::std::string;
1034 name_->assign(value);
1036 inline void AlterTable::set_name(
const char* value) {
1038 if (name_ == &::google::protobuf::internal::kEmptyString) {
1039 name_ = new ::std::string;
1041 name_->assign(value);
1043 inline void AlterTable::set_name(
const char* value,
size_t size) {
1045 if (name_ == &::google::protobuf::internal::kEmptyString) {
1046 name_ = new ::std::string;
1048 name_->assign(reinterpret_cast<const char*>(value), size);
1050 inline ::std::string* AlterTable::mutable_name() {
1052 if (name_ == &::google::protobuf::internal::kEmptyString) {
1053 name_ = new ::std::string;
1057 inline ::std::string* AlterTable::release_name() {
1059 if (name_ == &::google::protobuf::internal::kEmptyString) {
1062 ::std::string* temp = name_;
1063 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
1067 inline void AlterTable::set_allocated_name(::std::string* name) {
1068 if (name_ != &::google::protobuf::internal::kEmptyString) {
1076 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
1081 inline bool AlterTable::has_build_method()
const {
1082 return (_has_bits_[0] & 0x00000008u) != 0;
1084 inline void AlterTable::set_has_build_method() {
1085 _has_bits_[0] |= 0x00000008u;
1087 inline void AlterTable::clear_has_build_method() {
1088 _has_bits_[0] &= ~0x00000008u;
1090 inline void AlterTable::clear_build_method() {
1092 clear_has_build_method();
1094 inline ::drizzled::message::AlterTable_BuildMethod AlterTable::build_method()
const {
1095 return static_cast< ::drizzled::message::AlterTable_BuildMethod
>(build_method_);
1097 inline void AlterTable::set_build_method(::drizzled::message::AlterTable_BuildMethod value) {
1098 assert(::drizzled::message::AlterTable_BuildMethod_IsValid(value));
1099 set_has_build_method();
1100 build_method_ = value;
1104 inline bool AlterTable::has_ignore()
const {
1105 return (_has_bits_[0] & 0x00000010u) != 0;
1107 inline void AlterTable::set_has_ignore() {
1108 _has_bits_[0] |= 0x00000010u;
1110 inline void AlterTable::clear_has_ignore() {
1111 _has_bits_[0] &= ~0x00000010u;
1113 inline void AlterTable::clear_ignore() {
1117 inline bool AlterTable::ignore()
const {
1120 inline void AlterTable::set_ignore(
bool value) {
1126 inline int AlterTable::operations_size()
const {
1127 return operations_.size();
1129 inline void AlterTable::clear_operations() {
1130 operations_.Clear();
1132 inline const ::drizzled::message::AlterTable_AlterTableOperation& AlterTable::operations(
int index)
const {
1133 return operations_.Get(index);
1135 inline ::drizzled::message::AlterTable_AlterTableOperation* AlterTable::mutable_operations(
int index) {
1136 return operations_.Mutable(index);
1138 inline ::drizzled::message::AlterTable_AlterTableOperation* AlterTable::add_operations() {
1139 return operations_.Add();
1141 inline const ::google::protobuf::RepeatedPtrField< ::drizzled::message::AlterTable_AlterTableOperation >&
1142 AlterTable::operations()
const {
1145 inline ::google::protobuf::RepeatedPtrField< ::drizzled::message::AlterTable_AlterTableOperation >*
1146 AlterTable::mutable_operations() {
1147 return &operations_;
1151 inline bool AlterTable::has_rename()
const {
1152 return (_has_bits_[0] & 0x00000040u) != 0;
1154 inline void AlterTable::set_has_rename() {
1155 _has_bits_[0] |= 0x00000040u;
1157 inline void AlterTable::clear_has_rename() {
1158 _has_bits_[0] &= ~0x00000040u;
1160 inline void AlterTable::clear_rename() {
1161 if (rename_ != NULL) rename_->::drizzled::message::AlterTable_RenameTable::Clear();
1164 inline const ::drizzled::message::AlterTable_RenameTable& AlterTable::rename()
const {
1165 return rename_ != NULL ? *rename_ : *default_instance_->rename_;
1167 inline ::drizzled::message::AlterTable_RenameTable* AlterTable::mutable_rename() {
1169 if (rename_ == NULL) rename_ = new ::drizzled::message::AlterTable_RenameTable;
1172 inline ::drizzled::message::AlterTable_RenameTable* AlterTable::release_rename() {
1189 inline bool AlterTable::has_alter_keys_onoff()
const {
1190 return (_has_bits_[0] & 0x00000080u) != 0;
1192 inline void AlterTable::set_has_alter_keys_onoff() {
1193 _has_bits_[0] |= 0x00000080u;
1195 inline void AlterTable::clear_has_alter_keys_onoff() {
1196 _has_bits_[0] &= ~0x00000080u;
1198 inline void AlterTable::clear_alter_keys_onoff() {
1199 if (alter_keys_onoff_ != NULL) alter_keys_onoff_->::drizzled::message::AlterTable_AlterKeysOnOff::Clear();
1200 clear_has_alter_keys_onoff();
1202 inline const ::drizzled::message::AlterTable_AlterKeysOnOff& AlterTable::alter_keys_onoff()
const {
1203 return alter_keys_onoff_ != NULL ? *alter_keys_onoff_ : *default_instance_->alter_keys_onoff_;
1205 inline ::drizzled::message::AlterTable_AlterKeysOnOff* AlterTable::mutable_alter_keys_onoff() {
1206 set_has_alter_keys_onoff();
1207 if (alter_keys_onoff_ == NULL) alter_keys_onoff_ = new ::drizzled::message::AlterTable_AlterKeysOnOff;
1208 return alter_keys_onoff_;
1210 inline ::drizzled::message::AlterTable_AlterKeysOnOff* AlterTable::release_alter_keys_onoff() {
1211 clear_has_alter_keys_onoff();
1213 alter_keys_onoff_ = NULL;
1217 delete alter_keys_onoff_;
1218 alter_keys_onoff_ = alter_keys_onoff;
1219 if (alter_keys_onoff) {
1220 set_has_alter_keys_onoff();
1222 clear_has_alter_keys_onoff();
1234 namespace protobuf {
1237 inline const EnumDescriptor* GetEnumDescriptor< ::drizzled::message::AlterTable_AlterTableOperation_Operation>() {
1238 return ::drizzled::message::AlterTable_AlterTableOperation_Operation_descriptor();
1241 inline const EnumDescriptor* GetEnumDescriptor< ::drizzled::message::AlterTable_BuildMethod>() {
1242 return ::drizzled::message::AlterTable_BuildMethod_descriptor();
1251 #endif // PROTOBUF_alter_5ftable_2eproto__INCLUDED