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 < 2004000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 2004001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/generated_message_util.h>
23 #include <google/protobuf/repeated_field.h>
24 #include <google/protobuf/extension_set.h>
25 #include <google/protobuf/generated_message_reflection.h>
32 void protobuf_AddDesc_alter_5ftable_2eproto();
33 void protobuf_AssignDesc_alter_5ftable_2eproto();
34 void protobuf_ShutdownFile_alter_5ftable_2eproto();
37 class AlterTable_AlterTableOperation;
38 class AlterTable_RenameTable;
39 class AlterTable_AlterKeysOnOff;
41 enum AlterTable_AlterTableOperation_Operation {
42 AlterTable_AlterTableOperation_Operation_DISCARD_TABLESPACE = 0,
43 AlterTable_AlterTableOperation_Operation_IMPORT_TABLESPACE = 1,
44 AlterTable_AlterTableOperation_Operation_DROP_KEY = 2,
45 AlterTable_AlterTableOperation_Operation_DROP_COLUMN = 3,
46 AlterTable_AlterTableOperation_Operation_DROP_FOREIGN_KEY = 4
48 bool AlterTable_AlterTableOperation_Operation_IsValid(
int value);
49 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation_Operation_Operation_MIN = AlterTable_AlterTableOperation_Operation_DISCARD_TABLESPACE;
50 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation_Operation_Operation_MAX = AlterTable_AlterTableOperation_Operation_DROP_FOREIGN_KEY;
51 const int AlterTable_AlterTableOperation_Operation_Operation_ARRAYSIZE = AlterTable_AlterTableOperation_Operation_Operation_MAX + 1;
53 const ::google::protobuf::EnumDescriptor* AlterTable_AlterTableOperation_Operation_descriptor();
54 inline const ::std::string& AlterTable_AlterTableOperation_Operation_Name(AlterTable_AlterTableOperation_Operation value) {
55 return ::google::protobuf::internal::NameOfEnum(
56 AlterTable_AlterTableOperation_Operation_descriptor(), value);
58 inline bool AlterTable_AlterTableOperation_Operation_Parse(
59 const ::std::string& name, AlterTable_AlterTableOperation_Operation* value) {
60 return ::google::protobuf::internal::ParseNamedEnum<AlterTable_AlterTableOperation_Operation>(
61 AlterTable_AlterTableOperation_Operation_descriptor(), name, value);
63 enum AlterTable_BuildMethod {
64 AlterTable_BuildMethod_BUILD_DEFAULT = 0,
65 AlterTable_BuildMethod_BUILD_ONLINE = 1,
66 AlterTable_BuildMethod_BUILD_OFFLINE = 2
68 bool AlterTable_BuildMethod_IsValid(
int value);
69 const AlterTable_BuildMethod AlterTable_BuildMethod_BuildMethod_MIN = AlterTable_BuildMethod_BUILD_DEFAULT;
70 const AlterTable_BuildMethod AlterTable_BuildMethod_BuildMethod_MAX = AlterTable_BuildMethod_BUILD_OFFLINE;
71 const int AlterTable_BuildMethod_BuildMethod_ARRAYSIZE = AlterTable_BuildMethod_BuildMethod_MAX + 1;
73 const ::google::protobuf::EnumDescriptor* AlterTable_BuildMethod_descriptor();
74 inline const ::std::string& AlterTable_BuildMethod_Name(AlterTable_BuildMethod value) {
75 return ::google::protobuf::internal::NameOfEnum(
76 AlterTable_BuildMethod_descriptor(), value);
78 inline bool AlterTable_BuildMethod_Parse(
79 const ::std::string& name, AlterTable_BuildMethod* value) {
80 return ::google::protobuf::internal::ParseNamedEnum<AlterTable_BuildMethod>(
81 AlterTable_BuildMethod_descriptor(), name, value);
97 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
98 return _unknown_fields_;
101 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
102 return &_unknown_fields_;
105 static const ::google::protobuf::Descriptor* descriptor();
113 void CopyFrom(const ::google::protobuf::Message& from);
114 void MergeFrom(const ::google::protobuf::Message& from);
118 bool IsInitialized()
const;
120 int ByteSize()
const;
121 bool MergePartialFromCodedStream(
122 ::google::protobuf::io::CodedInputStream* input);
123 void SerializeWithCachedSizes(
124 ::google::protobuf::io::CodedOutputStream* output)
const;
125 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
126 int GetCachedSize()
const {
return _cached_size_; }
130 void SetCachedSize(
int size)
const;
133 ::google::protobuf::Metadata GetMetadata()
const;
137 typedef AlterTable_AlterTableOperation_Operation Operation;
138 static const Operation DISCARD_TABLESPACE = AlterTable_AlterTableOperation_Operation_DISCARD_TABLESPACE;
139 static const Operation IMPORT_TABLESPACE = AlterTable_AlterTableOperation_Operation_IMPORT_TABLESPACE;
140 static const Operation DROP_KEY = AlterTable_AlterTableOperation_Operation_DROP_KEY;
141 static const Operation DROP_COLUMN = AlterTable_AlterTableOperation_Operation_DROP_COLUMN;
142 static const Operation DROP_FOREIGN_KEY = AlterTable_AlterTableOperation_Operation_DROP_FOREIGN_KEY;
143 static inline bool Operation_IsValid(
int value) {
144 return AlterTable_AlterTableOperation_Operation_IsValid(value);
146 static const Operation Operation_MIN =
147 AlterTable_AlterTableOperation_Operation_Operation_MIN;
148 static const Operation Operation_MAX =
149 AlterTable_AlterTableOperation_Operation_Operation_MAX;
150 static const int Operation_ARRAYSIZE =
151 AlterTable_AlterTableOperation_Operation_Operation_ARRAYSIZE;
152 static inline const ::google::protobuf::EnumDescriptor*
153 Operation_descriptor() {
154 return AlterTable_AlterTableOperation_Operation_descriptor();
156 static inline const ::std::string& Operation_Name(Operation value) {
157 return AlterTable_AlterTableOperation_Operation_Name(value);
159 static inline bool Operation_Parse(const ::std::string& name,
161 return AlterTable_AlterTableOperation_Operation_Parse(name, value);
167 inline bool has_operation()
const;
168 inline void clear_operation();
169 static const int kOperationFieldNumber = 1;
170 inline ::drizzled::message::AlterTable_AlterTableOperation_Operation operation()
const;
171 inline void set_operation(::drizzled::message::AlterTable_AlterTableOperation_Operation value);
174 inline bool has_drop_name()
const;
175 inline void clear_drop_name();
176 static const int kDropNameFieldNumber = 2;
177 inline const ::std::string& drop_name()
const;
178 inline void set_drop_name(const ::std::string& value);
179 inline void set_drop_name(
const char* value);
180 inline void set_drop_name(
const char* value,
size_t size);
181 inline ::std::string* mutable_drop_name();
182 inline ::std::string* release_drop_name();
186 inline void set_has_operation();
187 inline void clear_has_operation();
188 inline void set_has_drop_name();
189 inline void clear_has_drop_name();
191 ::google::protobuf::UnknownFieldSet _unknown_fields_;
193 ::std::string* drop_name_;
196 mutable int _cached_size_;
197 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
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;
256 ::google::protobuf::Metadata GetMetadata()
const;
263 inline bool has_to_schema()
const;
264 inline void clear_to_schema();
265 static const int kToSchemaFieldNumber = 1;
266 inline const ::std::string& to_schema()
const;
267 inline void set_to_schema(const ::std::string& value);
268 inline void set_to_schema(
const char* value);
269 inline void set_to_schema(
const char* value,
size_t size);
270 inline ::std::string* mutable_to_schema();
271 inline ::std::string* release_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();
286 inline void set_has_to_schema();
287 inline void clear_has_to_schema();
288 inline void set_has_to_name();
289 inline void clear_has_to_name();
291 ::google::protobuf::UnknownFieldSet _unknown_fields_;
293 ::std::string* to_schema_;
294 ::std::string* to_name_;
296 mutable int _cached_size_;
297 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
299 friend void protobuf_AddDesc_alter_5ftable_2eproto();
300 friend void protobuf_AssignDesc_alter_5ftable_2eproto();
301 friend void protobuf_ShutdownFile_alter_5ftable_2eproto();
303 void InitAsDefaultInstance();
320 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
321 return _unknown_fields_;
324 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
325 return &_unknown_fields_;
328 static const ::google::protobuf::Descriptor* descriptor();
336 void CopyFrom(const ::google::protobuf::Message& from);
337 void MergeFrom(const ::google::protobuf::Message& from);
341 bool IsInitialized()
const;
343 int ByteSize()
const;
344 bool MergePartialFromCodedStream(
345 ::google::protobuf::io::CodedInputStream* input);
346 void SerializeWithCachedSizes(
347 ::google::protobuf::io::CodedOutputStream* output)
const;
348 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
349 int GetCachedSize()
const {
return _cached_size_; }
353 void SetCachedSize(
int size)
const;
356 ::google::protobuf::Metadata GetMetadata()
const;
363 inline bool has_enable()
const;
364 inline void clear_enable();
365 static const int kEnableFieldNumber = 1;
366 inline bool enable()
const;
367 inline void set_enable(
bool value);
371 inline void set_has_enable();
372 inline void clear_has_enable();
374 ::google::protobuf::UnknownFieldSet _unknown_fields_;
378 mutable int _cached_size_;
379 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
381 friend void protobuf_AddDesc_alter_5ftable_2eproto();
382 friend void protobuf_AssignDesc_alter_5ftable_2eproto();
383 friend void protobuf_ShutdownFile_alter_5ftable_2eproto();
385 void InitAsDefaultInstance();
402 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
403 return _unknown_fields_;
406 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
407 return &_unknown_fields_;
410 static const ::google::protobuf::Descriptor* descriptor();
418 void CopyFrom(const ::google::protobuf::Message& from);
419 void MergeFrom(const ::google::protobuf::Message& from);
423 bool IsInitialized()
const;
425 int ByteSize()
const;
426 bool MergePartialFromCodedStream(
427 ::google::protobuf::io::CodedInputStream* input);
428 void SerializeWithCachedSizes(
429 ::google::protobuf::io::CodedOutputStream* output)
const;
430 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
431 int GetCachedSize()
const {
return _cached_size_; }
435 void SetCachedSize(
int size)
const;
438 ::google::protobuf::Metadata GetMetadata()
const;
446 typedef AlterTable_BuildMethod BuildMethod;
447 static const BuildMethod BUILD_DEFAULT = AlterTable_BuildMethod_BUILD_DEFAULT;
448 static const BuildMethod BUILD_ONLINE = AlterTable_BuildMethod_BUILD_ONLINE;
449 static const BuildMethod BUILD_OFFLINE = AlterTable_BuildMethod_BUILD_OFFLINE;
450 static inline bool BuildMethod_IsValid(
int value) {
451 return AlterTable_BuildMethod_IsValid(value);
453 static const BuildMethod BuildMethod_MIN =
454 AlterTable_BuildMethod_BuildMethod_MIN;
455 static const BuildMethod BuildMethod_MAX =
456 AlterTable_BuildMethod_BuildMethod_MAX;
457 static const int BuildMethod_ARRAYSIZE =
458 AlterTable_BuildMethod_BuildMethod_ARRAYSIZE;
459 static inline const ::google::protobuf::EnumDescriptor*
460 BuildMethod_descriptor() {
461 return AlterTable_BuildMethod_descriptor();
463 static inline const ::std::string& BuildMethod_Name(BuildMethod value) {
464 return AlterTable_BuildMethod_Name(value);
466 static inline bool BuildMethod_Parse(const ::std::string& name,
467 BuildMethod* value) {
468 return AlterTable_BuildMethod_Parse(name, value);
474 inline bool has_catalog()
const;
475 inline void clear_catalog();
476 static const int kCatalogFieldNumber = 1;
477 inline const ::std::string& catalog()
const;
478 inline void set_catalog(const ::std::string& value);
479 inline void set_catalog(
const char* value);
480 inline void set_catalog(
const char* value,
size_t size);
481 inline ::std::string* mutable_catalog();
482 inline ::std::string* release_catalog();
485 inline bool has_schema()
const;
486 inline void clear_schema();
487 static const int kSchemaFieldNumber = 2;
488 inline const ::std::string& schema()
const;
489 inline void set_schema(const ::std::string& value);
490 inline void set_schema(
const char* value);
491 inline void set_schema(
const char* value,
size_t size);
492 inline ::std::string* mutable_schema();
493 inline ::std::string* release_schema();
496 inline bool has_name()
const;
497 inline void clear_name();
498 static const int kNameFieldNumber = 3;
499 inline const ::std::string& name()
const;
500 inline void set_name(const ::std::string& value);
501 inline void set_name(
const char* value);
502 inline void set_name(
const char* value,
size_t size);
503 inline ::std::string* mutable_name();
504 inline ::std::string* release_name();
507 inline bool has_build_method()
const;
508 inline void clear_build_method();
509 static const int kBuildMethodFieldNumber = 4;
510 inline ::drizzled::message::AlterTable_BuildMethod build_method()
const;
511 inline void set_build_method(::drizzled::message::AlterTable_BuildMethod value);
514 inline bool has_ignore()
const;
515 inline void clear_ignore();
516 static const int kIgnoreFieldNumber = 5;
517 inline bool ignore()
const;
518 inline void set_ignore(
bool value);
521 inline int operations_size()
const;
522 inline void clear_operations();
523 static const int kOperationsFieldNumber = 6;
524 inline const ::drizzled::message::AlterTable_AlterTableOperation& operations(
int index)
const;
525 inline ::drizzled::message::AlterTable_AlterTableOperation* mutable_operations(
int index);
526 inline ::drizzled::message::AlterTable_AlterTableOperation* add_operations();
527 inline const ::google::protobuf::RepeatedPtrField< ::drizzled::message::AlterTable_AlterTableOperation >&
529 inline ::google::protobuf::RepeatedPtrField< ::drizzled::message::AlterTable_AlterTableOperation >*
530 mutable_operations();
533 inline bool has_rename()
const;
534 inline void clear_rename();
535 static const int kRenameFieldNumber = 7;
536 inline const ::drizzled::message::AlterTable_RenameTable& rename()
const;
537 inline ::drizzled::message::AlterTable_RenameTable* mutable_rename();
538 inline ::drizzled::message::AlterTable_RenameTable* release_rename();
541 inline bool has_alter_keys_onoff()
const;
542 inline void clear_alter_keys_onoff();
543 static const int kAlterKeysOnoffFieldNumber = 8;
544 inline const ::drizzled::message::AlterTable_AlterKeysOnOff& alter_keys_onoff()
const;
545 inline ::drizzled::message::AlterTable_AlterKeysOnOff* mutable_alter_keys_onoff();
546 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 ::std::string* catalog_;
568 ::std::string* schema_;
569 ::std::string* name_;
572 ::google::protobuf::RepeatedPtrField< ::drizzled::message::AlterTable_AlterTableOperation > operations_;
576 mutable int _cached_size_;
577 ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32];
579 friend void protobuf_AddDesc_alter_5ftable_2eproto();
580 friend void protobuf_AssignDesc_alter_5ftable_2eproto();
581 friend void protobuf_ShutdownFile_alter_5ftable_2eproto();
583 void InitAsDefaultInstance();
594 inline bool AlterTable_AlterTableOperation::has_operation()
const {
595 return (_has_bits_[0] & 0x00000001u) != 0;
597 inline void AlterTable_AlterTableOperation::set_has_operation() {
598 _has_bits_[0] |= 0x00000001u;
600 inline void AlterTable_AlterTableOperation::clear_has_operation() {
601 _has_bits_[0] &= ~0x00000001u;
603 inline void AlterTable_AlterTableOperation::clear_operation() {
605 clear_has_operation();
607 inline ::drizzled::message::AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::operation()
const {
608 return static_cast< ::drizzled::message::AlterTable_AlterTableOperation_Operation
>(operation_);
610 inline void AlterTable_AlterTableOperation::set_operation(::drizzled::message::AlterTable_AlterTableOperation_Operation value) {
611 GOOGLE_DCHECK(::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::kEmptyString) {
630 clear_has_drop_name();
632 inline const ::std::string& AlterTable_AlterTableOperation::drop_name()
const {
635 inline void AlterTable_AlterTableOperation::set_drop_name(const ::std::string& value) {
637 if (drop_name_ == &::google::protobuf::internal::kEmptyString) {
638 drop_name_ = new ::std::string;
640 drop_name_->assign(value);
642 inline void AlterTable_AlterTableOperation::set_drop_name(
const char* value) {
644 if (drop_name_ == &::google::protobuf::internal::kEmptyString) {
645 drop_name_ = new ::std::string;
647 drop_name_->assign(value);
649 inline void AlterTable_AlterTableOperation::set_drop_name(
const char* value,
size_t size) {
651 if (drop_name_ == &::google::protobuf::internal::kEmptyString) {
652 drop_name_ = new ::std::string;
654 drop_name_->assign(reinterpret_cast<const char*>(value), size);
656 inline ::std::string* AlterTable_AlterTableOperation::mutable_drop_name() {
658 if (drop_name_ == &::google::protobuf::internal::kEmptyString) {
659 drop_name_ = new ::std::string;
663 inline ::std::string* AlterTable_AlterTableOperation::release_drop_name() {
664 clear_has_drop_name();
665 if (drop_name_ == &::google::protobuf::internal::kEmptyString) {
668 ::std::string* temp = drop_name_;
669 drop_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
679 inline bool AlterTable_RenameTable::has_to_schema()
const {
680 return (_has_bits_[0] & 0x00000001u) != 0;
682 inline void AlterTable_RenameTable::set_has_to_schema() {
683 _has_bits_[0] |= 0x00000001u;
685 inline void AlterTable_RenameTable::clear_has_to_schema() {
686 _has_bits_[0] &= ~0x00000001u;
688 inline void AlterTable_RenameTable::clear_to_schema() {
689 if (to_schema_ != &::google::protobuf::internal::kEmptyString) {
692 clear_has_to_schema();
694 inline const ::std::string& AlterTable_RenameTable::to_schema()
const {
697 inline void AlterTable_RenameTable::set_to_schema(const ::std::string& value) {
699 if (to_schema_ == &::google::protobuf::internal::kEmptyString) {
700 to_schema_ = new ::std::string;
702 to_schema_->assign(value);
704 inline void AlterTable_RenameTable::set_to_schema(
const char* value) {
706 if (to_schema_ == &::google::protobuf::internal::kEmptyString) {
707 to_schema_ = new ::std::string;
709 to_schema_->assign(value);
711 inline void AlterTable_RenameTable::set_to_schema(
const char* value,
size_t size) {
713 if (to_schema_ == &::google::protobuf::internal::kEmptyString) {
714 to_schema_ = new ::std::string;
716 to_schema_->assign(reinterpret_cast<const char*>(value), size);
718 inline ::std::string* AlterTable_RenameTable::mutable_to_schema() {
720 if (to_schema_ == &::google::protobuf::internal::kEmptyString) {
721 to_schema_ = new ::std::string;
725 inline ::std::string* AlterTable_RenameTable::release_to_schema() {
726 clear_has_to_schema();
727 if (to_schema_ == &::google::protobuf::internal::kEmptyString) {
730 ::std::string* temp = to_schema_;
731 to_schema_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
737 inline bool AlterTable_RenameTable::has_to_name()
const {
738 return (_has_bits_[0] & 0x00000002u) != 0;
740 inline void AlterTable_RenameTable::set_has_to_name() {
741 _has_bits_[0] |= 0x00000002u;
743 inline void AlterTable_RenameTable::clear_has_to_name() {
744 _has_bits_[0] &= ~0x00000002u;
746 inline void AlterTable_RenameTable::clear_to_name() {
747 if (to_name_ != &::google::protobuf::internal::kEmptyString) {
752 inline const ::std::string& AlterTable_RenameTable::to_name()
const {
755 inline void AlterTable_RenameTable::set_to_name(const ::std::string& value) {
757 if (to_name_ == &::google::protobuf::internal::kEmptyString) {
758 to_name_ = new ::std::string;
760 to_name_->assign(value);
762 inline void AlterTable_RenameTable::set_to_name(
const char* value) {
764 if (to_name_ == &::google::protobuf::internal::kEmptyString) {
765 to_name_ = new ::std::string;
767 to_name_->assign(value);
769 inline void AlterTable_RenameTable::set_to_name(
const char* value,
size_t size) {
771 if (to_name_ == &::google::protobuf::internal::kEmptyString) {
772 to_name_ = new ::std::string;
774 to_name_->assign(reinterpret_cast<const char*>(value), size);
776 inline ::std::string* AlterTable_RenameTable::mutable_to_name() {
778 if (to_name_ == &::google::protobuf::internal::kEmptyString) {
779 to_name_ = new ::std::string;
783 inline ::std::string* AlterTable_RenameTable::release_to_name() {
785 if (to_name_ == &::google::protobuf::internal::kEmptyString) {
788 ::std::string* temp = to_name_;
789 to_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
799 inline bool AlterTable_AlterKeysOnOff::has_enable()
const {
800 return (_has_bits_[0] & 0x00000001u) != 0;
802 inline void AlterTable_AlterKeysOnOff::set_has_enable() {
803 _has_bits_[0] |= 0x00000001u;
805 inline void AlterTable_AlterKeysOnOff::clear_has_enable() {
806 _has_bits_[0] &= ~0x00000001u;
808 inline void AlterTable_AlterKeysOnOff::clear_enable() {
812 inline bool AlterTable_AlterKeysOnOff::enable()
const {
815 inline void AlterTable_AlterKeysOnOff::set_enable(
bool value) {
825 inline bool AlterTable::has_catalog()
const {
826 return (_has_bits_[0] & 0x00000001u) != 0;
828 inline void AlterTable::set_has_catalog() {
829 _has_bits_[0] |= 0x00000001u;
831 inline void AlterTable::clear_has_catalog() {
832 _has_bits_[0] &= ~0x00000001u;
834 inline void AlterTable::clear_catalog() {
835 if (catalog_ != &::google::protobuf::internal::kEmptyString) {
840 inline const ::std::string& AlterTable::catalog()
const {
843 inline void AlterTable::set_catalog(const ::std::string& value) {
845 if (catalog_ == &::google::protobuf::internal::kEmptyString) {
846 catalog_ = new ::std::string;
848 catalog_->assign(value);
850 inline void AlterTable::set_catalog(
const char* value) {
852 if (catalog_ == &::google::protobuf::internal::kEmptyString) {
853 catalog_ = new ::std::string;
855 catalog_->assign(value);
857 inline void AlterTable::set_catalog(
const char* value,
size_t size) {
859 if (catalog_ == &::google::protobuf::internal::kEmptyString) {
860 catalog_ = new ::std::string;
862 catalog_->assign(reinterpret_cast<const char*>(value), size);
864 inline ::std::string* AlterTable::mutable_catalog() {
866 if (catalog_ == &::google::protobuf::internal::kEmptyString) {
867 catalog_ = new ::std::string;
871 inline ::std::string* AlterTable::release_catalog() {
873 if (catalog_ == &::google::protobuf::internal::kEmptyString) {
876 ::std::string* temp = catalog_;
877 catalog_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
883 inline bool AlterTable::has_schema()
const {
884 return (_has_bits_[0] & 0x00000002u) != 0;
886 inline void AlterTable::set_has_schema() {
887 _has_bits_[0] |= 0x00000002u;
889 inline void AlterTable::clear_has_schema() {
890 _has_bits_[0] &= ~0x00000002u;
892 inline void AlterTable::clear_schema() {
893 if (schema_ != &::google::protobuf::internal::kEmptyString) {
898 inline const ::std::string& AlterTable::schema()
const {
901 inline void AlterTable::set_schema(const ::std::string& value) {
903 if (schema_ == &::google::protobuf::internal::kEmptyString) {
904 schema_ = new ::std::string;
906 schema_->assign(value);
908 inline void AlterTable::set_schema(
const char* value) {
910 if (schema_ == &::google::protobuf::internal::kEmptyString) {
911 schema_ = new ::std::string;
913 schema_->assign(value);
915 inline void AlterTable::set_schema(
const char* value,
size_t size) {
917 if (schema_ == &::google::protobuf::internal::kEmptyString) {
918 schema_ = new ::std::string;
920 schema_->assign(reinterpret_cast<const char*>(value), size);
922 inline ::std::string* AlterTable::mutable_schema() {
924 if (schema_ == &::google::protobuf::internal::kEmptyString) {
925 schema_ = new ::std::string;
929 inline ::std::string* AlterTable::release_schema() {
931 if (schema_ == &::google::protobuf::internal::kEmptyString) {
934 ::std::string* temp = schema_;
935 schema_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
941 inline bool AlterTable::has_name()
const {
942 return (_has_bits_[0] & 0x00000004u) != 0;
944 inline void AlterTable::set_has_name() {
945 _has_bits_[0] |= 0x00000004u;
947 inline void AlterTable::clear_has_name() {
948 _has_bits_[0] &= ~0x00000004u;
950 inline void AlterTable::clear_name() {
951 if (name_ != &::google::protobuf::internal::kEmptyString) {
956 inline const ::std::string& AlterTable::name()
const {
959 inline void AlterTable::set_name(const ::std::string& value) {
961 if (name_ == &::google::protobuf::internal::kEmptyString) {
962 name_ = new ::std::string;
964 name_->assign(value);
966 inline void AlterTable::set_name(
const char* value) {
968 if (name_ == &::google::protobuf::internal::kEmptyString) {
969 name_ = new ::std::string;
971 name_->assign(value);
973 inline void AlterTable::set_name(
const char* value,
size_t size) {
975 if (name_ == &::google::protobuf::internal::kEmptyString) {
976 name_ = new ::std::string;
978 name_->assign(reinterpret_cast<const char*>(value), size);
980 inline ::std::string* AlterTable::mutable_name() {
982 if (name_ == &::google::protobuf::internal::kEmptyString) {
983 name_ = new ::std::string;
987 inline ::std::string* AlterTable::release_name() {
989 if (name_ == &::google::protobuf::internal::kEmptyString) {
992 ::std::string* temp = name_;
993 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
999 inline bool AlterTable::has_build_method()
const {
1000 return (_has_bits_[0] & 0x00000008u) != 0;
1002 inline void AlterTable::set_has_build_method() {
1003 _has_bits_[0] |= 0x00000008u;
1005 inline void AlterTable::clear_has_build_method() {
1006 _has_bits_[0] &= ~0x00000008u;
1008 inline void AlterTable::clear_build_method() {
1010 clear_has_build_method();
1012 inline ::drizzled::message::AlterTable_BuildMethod AlterTable::build_method()
const {
1013 return static_cast< ::drizzled::message::AlterTable_BuildMethod
>(build_method_);
1015 inline void AlterTable::set_build_method(::drizzled::message::AlterTable_BuildMethod value) {
1016 GOOGLE_DCHECK(::drizzled::message::AlterTable_BuildMethod_IsValid(value));
1017 set_has_build_method();
1018 build_method_ = value;
1022 inline bool AlterTable::has_ignore()
const {
1023 return (_has_bits_[0] & 0x00000010u) != 0;
1025 inline void AlterTable::set_has_ignore() {
1026 _has_bits_[0] |= 0x00000010u;
1028 inline void AlterTable::clear_has_ignore() {
1029 _has_bits_[0] &= ~0x00000010u;
1031 inline void AlterTable::clear_ignore() {
1035 inline bool AlterTable::ignore()
const {
1038 inline void AlterTable::set_ignore(
bool value) {
1044 inline int AlterTable::operations_size()
const {
1045 return operations_.size();
1047 inline void AlterTable::clear_operations() {
1048 operations_.Clear();
1050 inline const ::drizzled::message::AlterTable_AlterTableOperation& AlterTable::operations(
int index)
const {
1051 return operations_.Get(index);
1053 inline ::drizzled::message::AlterTable_AlterTableOperation* AlterTable::mutable_operations(
int index) {
1054 return operations_.Mutable(index);
1056 inline ::drizzled::message::AlterTable_AlterTableOperation* AlterTable::add_operations() {
1057 return operations_.Add();
1059 inline const ::google::protobuf::RepeatedPtrField< ::drizzled::message::AlterTable_AlterTableOperation >&
1060 AlterTable::operations()
const {
1063 inline ::google::protobuf::RepeatedPtrField< ::drizzled::message::AlterTable_AlterTableOperation >*
1064 AlterTable::mutable_operations() {
1065 return &operations_;
1069 inline bool AlterTable::has_rename()
const {
1070 return (_has_bits_[0] & 0x00000040u) != 0;
1072 inline void AlterTable::set_has_rename() {
1073 _has_bits_[0] |= 0x00000040u;
1075 inline void AlterTable::clear_has_rename() {
1076 _has_bits_[0] &= ~0x00000040u;
1078 inline void AlterTable::clear_rename() {
1079 if (rename_ != NULL) rename_->::drizzled::message::AlterTable_RenameTable::Clear();
1082 inline const ::drizzled::message::AlterTable_RenameTable& AlterTable::rename()
const {
1083 return rename_ != NULL ? *rename_ : *default_instance_->rename_;
1085 inline ::drizzled::message::AlterTable_RenameTable* AlterTable::mutable_rename() {
1087 if (rename_ == NULL) rename_ = new ::drizzled::message::AlterTable_RenameTable;
1090 inline ::drizzled::message::AlterTable_RenameTable* AlterTable::release_rename() {
1098 inline bool AlterTable::has_alter_keys_onoff()
const {
1099 return (_has_bits_[0] & 0x00000080u) != 0;
1101 inline void AlterTable::set_has_alter_keys_onoff() {
1102 _has_bits_[0] |= 0x00000080u;
1104 inline void AlterTable::clear_has_alter_keys_onoff() {
1105 _has_bits_[0] &= ~0x00000080u;
1107 inline void AlterTable::clear_alter_keys_onoff() {
1108 if (alter_keys_onoff_ != NULL) alter_keys_onoff_->::drizzled::message::AlterTable_AlterKeysOnOff::Clear();
1109 clear_has_alter_keys_onoff();
1111 inline const ::drizzled::message::AlterTable_AlterKeysOnOff& AlterTable::alter_keys_onoff()
const {
1112 return alter_keys_onoff_ != NULL ? *alter_keys_onoff_ : *default_instance_->alter_keys_onoff_;
1114 inline ::drizzled::message::AlterTable_AlterKeysOnOff* AlterTable::mutable_alter_keys_onoff() {
1115 set_has_alter_keys_onoff();
1116 if (alter_keys_onoff_ == NULL) alter_keys_onoff_ = new ::drizzled::message::AlterTable_AlterKeysOnOff;
1117 return alter_keys_onoff_;
1119 inline ::drizzled::message::AlterTable_AlterKeysOnOff* AlterTable::release_alter_keys_onoff() {
1120 clear_has_alter_keys_onoff();
1122 alter_keys_onoff_ = NULL;
1134 namespace protobuf {
1137 inline const EnumDescriptor* GetEnumDescriptor< ::drizzled::message::AlterTable_AlterTableOperation_Operation>() {
1138 return ::drizzled::message::AlterTable_AlterTableOperation_Operation_descriptor();
1141 inline const EnumDescriptor* GetEnumDescriptor< ::drizzled::message::AlterTable_BuildMethod>() {
1142 return ::drizzled::message::AlterTable_BuildMethod_descriptor();
1151 #endif // PROTOBUF_alter_5ftable_2eproto__INCLUDED