3 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
4 #include "alter_table.pb.h"
8 #include <google/protobuf/stubs/once.h>
9 #include <google/protobuf/io/coded_stream.h>
10 #include <google/protobuf/wire_format_lite_inl.h>
11 #include <google/protobuf/descriptor.h>
12 #include <google/protobuf/reflection_ops.h>
13 #include <google/protobuf/wire_format.h>
21 const ::google::protobuf::Descriptor* AlterTable_descriptor_ = NULL;
22 const ::google::protobuf::internal::GeneratedMessageReflection*
23 AlterTable_reflection_ = NULL;
24 const ::google::protobuf::Descriptor* AlterTable_AlterTableOperation_descriptor_ = NULL;
25 const ::google::protobuf::internal::GeneratedMessageReflection*
26 AlterTable_AlterTableOperation_reflection_ = NULL;
27 const ::google::protobuf::EnumDescriptor* AlterTable_AlterTableOperation_Operation_descriptor_ = NULL;
28 const ::google::protobuf::Descriptor* AlterTable_RenameTable_descriptor_ = NULL;
29 const ::google::protobuf::internal::GeneratedMessageReflection*
30 AlterTable_RenameTable_reflection_ = NULL;
31 const ::google::protobuf::Descriptor* AlterTable_AlterKeysOnOff_descriptor_ = NULL;
32 const ::google::protobuf::internal::GeneratedMessageReflection*
33 AlterTable_AlterKeysOnOff_reflection_ = NULL;
34 const ::google::protobuf::EnumDescriptor* AlterTable_BuildMethod_descriptor_ = NULL;
39 void protobuf_AssignDesc_alter_5ftable_2eproto() {
40 protobuf_AddDesc_alter_5ftable_2eproto();
41 const ::google::protobuf::FileDescriptor* file =
42 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
44 GOOGLE_CHECK(file != NULL);
45 AlterTable_descriptor_ = file->message_type(0);
46 static const int AlterTable_offsets_[8] = {
47 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, catalog_),
48 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, schema_),
49 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, name_),
50 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, build_method_),
51 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, ignore_),
52 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, operations_),
53 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, rename_),
54 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, alter_keys_onoff_),
56 AlterTable_reflection_ =
57 new ::google::protobuf::internal::GeneratedMessageReflection(
58 AlterTable_descriptor_,
59 AlterTable::default_instance_,
61 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, _has_bits_[0]),
62 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, _unknown_fields_),
64 ::google::protobuf::DescriptorPool::generated_pool(),
65 ::google::protobuf::MessageFactory::generated_factory(),
67 AlterTable_AlterTableOperation_descriptor_ = AlterTable_descriptor_->nested_type(0);
68 static const int AlterTable_AlterTableOperation_offsets_[2] = {
69 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterTableOperation, operation_),
70 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterTableOperation, drop_name_),
72 AlterTable_AlterTableOperation_reflection_ =
73 new ::google::protobuf::internal::GeneratedMessageReflection(
74 AlterTable_AlterTableOperation_descriptor_,
75 AlterTable_AlterTableOperation::default_instance_,
76 AlterTable_AlterTableOperation_offsets_,
77 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterTableOperation, _has_bits_[0]),
78 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterTableOperation, _unknown_fields_),
80 ::google::protobuf::DescriptorPool::generated_pool(),
81 ::google::protobuf::MessageFactory::generated_factory(),
82 sizeof(AlterTable_AlterTableOperation));
83 AlterTable_AlterTableOperation_Operation_descriptor_ = AlterTable_AlterTableOperation_descriptor_->enum_type(0);
84 AlterTable_RenameTable_descriptor_ = AlterTable_descriptor_->nested_type(1);
85 static const int AlterTable_RenameTable_offsets_[2] = {
86 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_RenameTable, to_schema_),
87 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_RenameTable, to_name_),
89 AlterTable_RenameTable_reflection_ =
90 new ::google::protobuf::internal::GeneratedMessageReflection(
91 AlterTable_RenameTable_descriptor_,
92 AlterTable_RenameTable::default_instance_,
93 AlterTable_RenameTable_offsets_,
94 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_RenameTable, _has_bits_[0]),
95 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_RenameTable, _unknown_fields_),
97 ::google::protobuf::DescriptorPool::generated_pool(),
98 ::google::protobuf::MessageFactory::generated_factory(),
99 sizeof(AlterTable_RenameTable));
100 AlterTable_AlterKeysOnOff_descriptor_ = AlterTable_descriptor_->nested_type(2);
101 static const int AlterTable_AlterKeysOnOff_offsets_[1] = {
102 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterKeysOnOff, enable_),
104 AlterTable_AlterKeysOnOff_reflection_ =
105 new ::google::protobuf::internal::GeneratedMessageReflection(
106 AlterTable_AlterKeysOnOff_descriptor_,
107 AlterTable_AlterKeysOnOff::default_instance_,
108 AlterTable_AlterKeysOnOff_offsets_,
109 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterKeysOnOff, _has_bits_[0]),
110 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterKeysOnOff, _unknown_fields_),
112 ::google::protobuf::DescriptorPool::generated_pool(),
113 ::google::protobuf::MessageFactory::generated_factory(),
114 sizeof(AlterTable_AlterKeysOnOff));
115 AlterTable_BuildMethod_descriptor_ = AlterTable_descriptor_->enum_type(0);
120 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
121 inline void protobuf_AssignDescriptorsOnce() {
122 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
123 &protobuf_AssignDesc_alter_5ftable_2eproto);
126 void protobuf_RegisterTypes(const ::std::string&) {
127 protobuf_AssignDescriptorsOnce();
128 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
129 AlterTable_descriptor_, &AlterTable::default_instance());
130 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
131 AlterTable_AlterTableOperation_descriptor_, &AlterTable_AlterTableOperation::default_instance());
132 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
133 AlterTable_RenameTable_descriptor_, &AlterTable_RenameTable::default_instance());
134 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
135 AlterTable_AlterKeysOnOff_descriptor_, &AlterTable_AlterKeysOnOff::default_instance());
140 void protobuf_ShutdownFile_alter_5ftable_2eproto() {
141 delete AlterTable::default_instance_;
142 delete AlterTable_reflection_;
143 delete AlterTable_AlterTableOperation::default_instance_;
144 delete AlterTable_AlterTableOperation_reflection_;
145 delete AlterTable_RenameTable::default_instance_;
146 delete AlterTable_RenameTable_reflection_;
147 delete AlterTable_AlterKeysOnOff::default_instance_;
148 delete AlterTable_AlterKeysOnOff_reflection_;
151 void protobuf_AddDesc_alter_5ftable_2eproto() {
152 static bool already_here =
false;
153 if (already_here)
return;
155 GOOGLE_PROTOBUF_VERIFY_VERSION;
157 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
158 "\n\021alter_table.proto\022\020drizzled.message\"\357\005"
159 "\n\nAlterTable\022\017\n\007catalog\030\001 \001(\t\022\016\n\006schema\030"
160 "\002 \002(\t\022\014\n\004name\030\003 \002(\t\022M\n\014build_method\030\004 \002("
161 "\0162(.drizzled.message.AlterTable.BuildMet"
162 "hod:\rBUILD_DEFAULT\022\025\n\006ignore\030\005 \002(\010:\005fals"
163 "e\022D\n\noperations\030\006 \003(\01320.drizzled.message"
164 ".AlterTable.AlterTableOperation\0228\n\006renam"
165 "e\030\007 \001(\0132(.drizzled.message.AlterTable.Re"
166 "nameTable\022E\n\020alter_keys_onoff\030\010 \001(\0132+.dr"
167 "izzled.message.AlterTable.AlterKeysOnOff"
168 "\032\350\001\n\023AlterTableOperation\022M\n\toperation\030\001 "
169 "\002(\0162:.drizzled.message.AlterTable.AlterT"
170 "ableOperation.Operation\022\021\n\tdrop_name\030\002 \001"
171 "(\t\"o\n\tOperation\022\026\n\022DISCARD_TABLESPACE\020\000\022"
172 "\025\n\021IMPORT_TABLESPACE\020\001\022\014\n\010DROP_KEY\020\002\022\017\n\013"
173 "DROP_COLUMN\020\003\022\024\n\020DROP_FOREIGN_KEY\020\004\0321\n\013R"
174 "enameTable\022\021\n\tto_schema\030\001 \002(\t\022\017\n\007to_name"
175 "\030\002 \002(\t\032 \n\016AlterKeysOnOff\022\016\n\006enable\030\001 \002(\010"
176 "\"E\n\013BuildMethod\022\021\n\rBUILD_DEFAULT\020\000\022\020\n\014BU"
177 "ILD_ONLINE\020\001\022\021\n\rBUILD_OFFLINE\020\002B+\n\024org.d"
178 "rizzle.messagesB\021AlterTableMessageH\001", 836);
179 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
180 "alter_table.proto", &protobuf_RegisterTypes);
181 AlterTable::default_instance_ =
new AlterTable();
182 AlterTable_AlterTableOperation::default_instance_ =
new AlterTable_AlterTableOperation();
183 AlterTable_RenameTable::default_instance_ =
new AlterTable_RenameTable();
184 AlterTable_AlterKeysOnOff::default_instance_ =
new AlterTable_AlterKeysOnOff();
185 AlterTable::default_instance_->InitAsDefaultInstance();
186 AlterTable_AlterTableOperation::default_instance_->InitAsDefaultInstance();
187 AlterTable_RenameTable::default_instance_->InitAsDefaultInstance();
188 AlterTable_AlterKeysOnOff::default_instance_->InitAsDefaultInstance();
189 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_alter_5ftable_2eproto);
195 protobuf_AddDesc_alter_5ftable_2eproto();
197 } static_descriptor_initializer_alter_5ftable_2eproto_;
202 const ::google::protobuf::EnumDescriptor* AlterTable_BuildMethod_descriptor() {
203 protobuf_AssignDescriptorsOnce();
204 return AlterTable_BuildMethod_descriptor_;
206 bool AlterTable_BuildMethod_IsValid(
int value) {
218 const AlterTable_BuildMethod AlterTable::BUILD_DEFAULT;
219 const AlterTable_BuildMethod AlterTable::BUILD_ONLINE;
220 const AlterTable_BuildMethod AlterTable::BUILD_OFFLINE;
221 const AlterTable_BuildMethod AlterTable::BuildMethod_MIN;
222 const AlterTable_BuildMethod AlterTable::BuildMethod_MAX;
223 const int AlterTable::BuildMethod_ARRAYSIZE;
225 const ::google::protobuf::EnumDescriptor* AlterTable_AlterTableOperation_Operation_descriptor() {
226 protobuf_AssignDescriptorsOnce();
227 return AlterTable_AlterTableOperation_Operation_descriptor_;
229 bool AlterTable_AlterTableOperation_Operation_IsValid(
int value) {
243 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::DISCARD_TABLESPACE;
244 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::IMPORT_TABLESPACE;
245 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::DROP_KEY;
246 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::DROP_COLUMN;
247 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::DROP_FOREIGN_KEY;
248 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::Operation_MIN;
249 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::Operation_MAX;
250 const int AlterTable_AlterTableOperation::Operation_ARRAYSIZE;
253 const int AlterTable_AlterTableOperation::kOperationFieldNumber;
254 const int AlterTable_AlterTableOperation::kDropNameFieldNumber;
257 AlterTable_AlterTableOperation::AlterTable_AlterTableOperation()
258 : ::google::protobuf::Message() {
262 void AlterTable_AlterTableOperation::InitAsDefaultInstance() {
265 AlterTable_AlterTableOperation::AlterTable_AlterTableOperation(
const AlterTable_AlterTableOperation& from)
266 : ::google::protobuf::Message() {
271 void AlterTable_AlterTableOperation::SharedCtor() {
274 drop_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
275 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
278 AlterTable_AlterTableOperation::~AlterTable_AlterTableOperation() {
282 void AlterTable_AlterTableOperation::SharedDtor() {
283 if (drop_name_ != &::google::protobuf::internal::kEmptyString) {
286 if (
this != default_instance_) {
290 void AlterTable_AlterTableOperation::SetCachedSize(
int size)
const {
291 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
292 _cached_size_ = size;
293 GOOGLE_SAFE_CONCURRENT_WRITES_END();
295 const ::google::protobuf::Descriptor* AlterTable_AlterTableOperation::descriptor() {
296 protobuf_AssignDescriptorsOnce();
297 return AlterTable_AlterTableOperation_descriptor_;
300 const AlterTable_AlterTableOperation& AlterTable_AlterTableOperation::default_instance() {
301 if (default_instance_ == NULL) protobuf_AddDesc_alter_5ftable_2eproto();
return *default_instance_;
304 AlterTable_AlterTableOperation* AlterTable_AlterTableOperation::default_instance_ = NULL;
306 AlterTable_AlterTableOperation* AlterTable_AlterTableOperation::New()
const {
307 return new AlterTable_AlterTableOperation;
310 void AlterTable_AlterTableOperation::Clear() {
311 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
313 if (has_drop_name()) {
314 if (drop_name_ != &::google::protobuf::internal::kEmptyString) {
319 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
320 mutable_unknown_fields()->Clear();
323 bool AlterTable_AlterTableOperation::MergePartialFromCodedStream(
324 ::google::protobuf::io::CodedInputStream* input) {
325 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
326 ::google::protobuf::uint32 tag;
327 while ((tag = input->ReadTag()) != 0) {
328 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
331 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
332 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
334 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
335 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
337 if (::drizzled::message::AlterTable_AlterTableOperation_Operation_IsValid(value)) {
338 set_operation(static_cast< ::drizzled::message::AlterTable_AlterTableOperation_Operation >(value));
340 mutable_unknown_fields()->AddVarint(1, value);
343 goto handle_uninterpreted;
345 if (input->ExpectTag(18))
goto parse_drop_name;
351 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
352 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
354 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
355 input, this->mutable_drop_name()));
356 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
357 this->drop_name().data(), this->drop_name().length(),
358 ::google::protobuf::internal::WireFormat::PARSE);
360 goto handle_uninterpreted;
362 if (input->ExpectAtEnd())
return true;
367 handle_uninterpreted:
368 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
369 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
372 DO_(::google::protobuf::internal::WireFormat::SkipField(
373 input, tag, mutable_unknown_fields()));
382 void AlterTable_AlterTableOperation::SerializeWithCachedSizes(
383 ::google::protobuf::io::CodedOutputStream* output)
const {
385 if (has_operation()) {
386 ::google::protobuf::internal::WireFormatLite::WriteEnum(
387 1, this->operation(), output);
391 if (has_drop_name()) {
392 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
393 this->drop_name().data(), this->drop_name().length(),
394 ::google::protobuf::internal::WireFormat::SERIALIZE);
395 ::google::protobuf::internal::WireFormatLite::WriteString(
396 2, this->drop_name(), output);
399 if (!unknown_fields().empty()) {
400 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
401 unknown_fields(), output);
405 ::google::protobuf::uint8* AlterTable_AlterTableOperation::SerializeWithCachedSizesToArray(
406 ::google::protobuf::uint8* target)
const {
408 if (has_operation()) {
409 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
410 1, this->operation(), target);
414 if (has_drop_name()) {
415 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
416 this->drop_name().data(), this->drop_name().length(),
417 ::google::protobuf::internal::WireFormat::SERIALIZE);
419 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
420 2, this->drop_name(), target);
423 if (!unknown_fields().empty()) {
424 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
425 unknown_fields(), target);
430 int AlterTable_AlterTableOperation::ByteSize()
const {
433 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
435 if (has_operation()) {
437 ::google::protobuf::internal::WireFormatLite::EnumSize(this->operation());
441 if (has_drop_name()) {
443 ::google::protobuf::internal::WireFormatLite::StringSize(
448 if (!unknown_fields().empty()) {
450 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
453 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
454 _cached_size_ = total_size;
455 GOOGLE_SAFE_CONCURRENT_WRITES_END();
459 void AlterTable_AlterTableOperation::MergeFrom(const ::google::protobuf::Message& from) {
460 GOOGLE_CHECK_NE(&from,
this);
461 const AlterTable_AlterTableOperation* source =
462 ::google::protobuf::internal::dynamic_cast_if_available<const AlterTable_AlterTableOperation*>(
464 if (source == NULL) {
465 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
471 void AlterTable_AlterTableOperation::MergeFrom(
const AlterTable_AlterTableOperation& from) {
472 GOOGLE_CHECK_NE(&from,
this);
473 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
474 if (from.has_operation()) {
475 set_operation(from.operation());
477 if (from.has_drop_name()) {
478 set_drop_name(from.drop_name());
481 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
484 void AlterTable_AlterTableOperation::CopyFrom(const ::google::protobuf::Message& from) {
485 if (&from ==
this)
return;
490 void AlterTable_AlterTableOperation::CopyFrom(
const AlterTable_AlterTableOperation& from) {
491 if (&from ==
this)
return;
496 bool AlterTable_AlterTableOperation::IsInitialized()
const {
497 if ((_has_bits_[0] & 0x00000001) != 0x00000001)
return false;
502 void AlterTable_AlterTableOperation::Swap(AlterTable_AlterTableOperation* other) {
504 std::swap(operation_, other->operation_);
505 std::swap(drop_name_, other->drop_name_);
506 std::swap(_has_bits_[0], other->_has_bits_[0]);
507 _unknown_fields_.Swap(&other->_unknown_fields_);
508 std::swap(_cached_size_, other->_cached_size_);
512 ::google::protobuf::Metadata AlterTable_AlterTableOperation::GetMetadata()
const {
513 protobuf_AssignDescriptorsOnce();
514 ::google::protobuf::Metadata metadata;
515 metadata.descriptor = AlterTable_AlterTableOperation_descriptor_;
516 metadata.reflection = AlterTable_AlterTableOperation_reflection_;
524 const int AlterTable_RenameTable::kToSchemaFieldNumber;
525 const int AlterTable_RenameTable::kToNameFieldNumber;
528 AlterTable_RenameTable::AlterTable_RenameTable()
529 : ::google::protobuf::Message() {
533 void AlterTable_RenameTable::InitAsDefaultInstance() {
536 AlterTable_RenameTable::AlterTable_RenameTable(
const AlterTable_RenameTable& from)
537 : ::google::protobuf::Message() {
542 void AlterTable_RenameTable::SharedCtor() {
544 to_schema_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
545 to_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
546 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
549 AlterTable_RenameTable::~AlterTable_RenameTable() {
553 void AlterTable_RenameTable::SharedDtor() {
554 if (to_schema_ != &::google::protobuf::internal::kEmptyString) {
557 if (to_name_ != &::google::protobuf::internal::kEmptyString) {
560 if (
this != default_instance_) {
564 void AlterTable_RenameTable::SetCachedSize(
int size)
const {
565 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
566 _cached_size_ = size;
567 GOOGLE_SAFE_CONCURRENT_WRITES_END();
569 const ::google::protobuf::Descriptor* AlterTable_RenameTable::descriptor() {
570 protobuf_AssignDescriptorsOnce();
571 return AlterTable_RenameTable_descriptor_;
574 const AlterTable_RenameTable& AlterTable_RenameTable::default_instance() {
575 if (default_instance_ == NULL) protobuf_AddDesc_alter_5ftable_2eproto();
return *default_instance_;
578 AlterTable_RenameTable* AlterTable_RenameTable::default_instance_ = NULL;
580 AlterTable_RenameTable* AlterTable_RenameTable::New()
const {
581 return new AlterTable_RenameTable;
584 void AlterTable_RenameTable::Clear() {
585 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
586 if (has_to_schema()) {
587 if (to_schema_ != &::google::protobuf::internal::kEmptyString) {
592 if (to_name_ != &::google::protobuf::internal::kEmptyString) {
597 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
598 mutable_unknown_fields()->Clear();
601 bool AlterTable_RenameTable::MergePartialFromCodedStream(
602 ::google::protobuf::io::CodedInputStream* input) {
603 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
604 ::google::protobuf::uint32 tag;
605 while ((tag = input->ReadTag()) != 0) {
606 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
609 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
610 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
611 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
612 input, this->mutable_to_schema()));
613 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
614 this->to_schema().data(), this->to_schema().length(),
615 ::google::protobuf::internal::WireFormat::PARSE);
617 goto handle_uninterpreted;
619 if (input->ExpectTag(18))
goto parse_to_name;
625 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
626 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
628 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
629 input, this->mutable_to_name()));
630 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
631 this->to_name().data(), this->to_name().length(),
632 ::google::protobuf::internal::WireFormat::PARSE);
634 goto handle_uninterpreted;
636 if (input->ExpectAtEnd())
return true;
641 handle_uninterpreted:
642 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
643 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
646 DO_(::google::protobuf::internal::WireFormat::SkipField(
647 input, tag, mutable_unknown_fields()));
656 void AlterTable_RenameTable::SerializeWithCachedSizes(
657 ::google::protobuf::io::CodedOutputStream* output)
const {
659 if (has_to_schema()) {
660 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
661 this->to_schema().data(), this->to_schema().length(),
662 ::google::protobuf::internal::WireFormat::SERIALIZE);
663 ::google::protobuf::internal::WireFormatLite::WriteString(
664 1, this->to_schema(), output);
669 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
670 this->to_name().data(), this->to_name().length(),
671 ::google::protobuf::internal::WireFormat::SERIALIZE);
672 ::google::protobuf::internal::WireFormatLite::WriteString(
673 2, this->to_name(), output);
676 if (!unknown_fields().empty()) {
677 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
678 unknown_fields(), output);
682 ::google::protobuf::uint8* AlterTable_RenameTable::SerializeWithCachedSizesToArray(
683 ::google::protobuf::uint8* target)
const {
685 if (has_to_schema()) {
686 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
687 this->to_schema().data(), this->to_schema().length(),
688 ::google::protobuf::internal::WireFormat::SERIALIZE);
690 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
691 1, this->to_schema(), target);
696 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
697 this->to_name().data(), this->to_name().length(),
698 ::google::protobuf::internal::WireFormat::SERIALIZE);
700 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
701 2, this->to_name(), target);
704 if (!unknown_fields().empty()) {
705 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
706 unknown_fields(), target);
711 int AlterTable_RenameTable::ByteSize()
const {
714 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
716 if (has_to_schema()) {
718 ::google::protobuf::internal::WireFormatLite::StringSize(
725 ::google::protobuf::internal::WireFormatLite::StringSize(
730 if (!unknown_fields().empty()) {
732 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
735 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
736 _cached_size_ = total_size;
737 GOOGLE_SAFE_CONCURRENT_WRITES_END();
741 void AlterTable_RenameTable::MergeFrom(const ::google::protobuf::Message& from) {
742 GOOGLE_CHECK_NE(&from,
this);
743 const AlterTable_RenameTable* source =
744 ::google::protobuf::internal::dynamic_cast_if_available<const AlterTable_RenameTable*>(
746 if (source == NULL) {
747 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
753 void AlterTable_RenameTable::MergeFrom(
const AlterTable_RenameTable& from) {
754 GOOGLE_CHECK_NE(&from,
this);
755 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
756 if (from.has_to_schema()) {
757 set_to_schema(from.to_schema());
759 if (from.has_to_name()) {
760 set_to_name(from.to_name());
763 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
766 void AlterTable_RenameTable::CopyFrom(const ::google::protobuf::Message& from) {
767 if (&from ==
this)
return;
772 void AlterTable_RenameTable::CopyFrom(
const AlterTable_RenameTable& from) {
773 if (&from ==
this)
return;
778 bool AlterTable_RenameTable::IsInitialized()
const {
779 if ((_has_bits_[0] & 0x00000003) != 0x00000003)
return false;
784 void AlterTable_RenameTable::Swap(AlterTable_RenameTable* other) {
786 std::swap(to_schema_, other->to_schema_);
787 std::swap(to_name_, other->to_name_);
788 std::swap(_has_bits_[0], other->_has_bits_[0]);
789 _unknown_fields_.Swap(&other->_unknown_fields_);
790 std::swap(_cached_size_, other->_cached_size_);
794 ::google::protobuf::Metadata AlterTable_RenameTable::GetMetadata()
const {
795 protobuf_AssignDescriptorsOnce();
796 ::google::protobuf::Metadata metadata;
797 metadata.descriptor = AlterTable_RenameTable_descriptor_;
798 metadata.reflection = AlterTable_RenameTable_reflection_;
806 const int AlterTable_AlterKeysOnOff::kEnableFieldNumber;
809 AlterTable_AlterKeysOnOff::AlterTable_AlterKeysOnOff()
810 : ::google::protobuf::Message() {
814 void AlterTable_AlterKeysOnOff::InitAsDefaultInstance() {
817 AlterTable_AlterKeysOnOff::AlterTable_AlterKeysOnOff(
const AlterTable_AlterKeysOnOff& from)
818 : ::google::protobuf::Message() {
823 void AlterTable_AlterKeysOnOff::SharedCtor() {
826 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
829 AlterTable_AlterKeysOnOff::~AlterTable_AlterKeysOnOff() {
833 void AlterTable_AlterKeysOnOff::SharedDtor() {
834 if (
this != default_instance_) {
838 void AlterTable_AlterKeysOnOff::SetCachedSize(
int size)
const {
839 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
840 _cached_size_ = size;
841 GOOGLE_SAFE_CONCURRENT_WRITES_END();
843 const ::google::protobuf::Descriptor* AlterTable_AlterKeysOnOff::descriptor() {
844 protobuf_AssignDescriptorsOnce();
845 return AlterTable_AlterKeysOnOff_descriptor_;
848 const AlterTable_AlterKeysOnOff& AlterTable_AlterKeysOnOff::default_instance() {
849 if (default_instance_ == NULL) protobuf_AddDesc_alter_5ftable_2eproto();
return *default_instance_;
852 AlterTable_AlterKeysOnOff* AlterTable_AlterKeysOnOff::default_instance_ = NULL;
854 AlterTable_AlterKeysOnOff* AlterTable_AlterKeysOnOff::New()
const {
855 return new AlterTable_AlterKeysOnOff;
858 void AlterTable_AlterKeysOnOff::Clear() {
859 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
862 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
863 mutable_unknown_fields()->Clear();
866 bool AlterTable_AlterKeysOnOff::MergePartialFromCodedStream(
867 ::google::protobuf::io::CodedInputStream* input) {
868 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
869 ::google::protobuf::uint32 tag;
870 while ((tag = input->ReadTag()) != 0) {
871 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
874 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
875 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
876 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
877 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
881 goto handle_uninterpreted;
883 if (input->ExpectAtEnd())
return true;
888 handle_uninterpreted:
889 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
890 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
893 DO_(::google::protobuf::internal::WireFormat::SkipField(
894 input, tag, mutable_unknown_fields()));
903 void AlterTable_AlterKeysOnOff::SerializeWithCachedSizes(
904 ::google::protobuf::io::CodedOutputStream* output)
const {
907 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->enable(), output);
910 if (!unknown_fields().empty()) {
911 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
912 unknown_fields(), output);
916 ::google::protobuf::uint8* AlterTable_AlterKeysOnOff::SerializeWithCachedSizesToArray(
917 ::google::protobuf::uint8* target)
const {
920 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->enable(), target);
923 if (!unknown_fields().empty()) {
924 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
925 unknown_fields(), target);
930 int AlterTable_AlterKeysOnOff::ByteSize()
const {
933 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
940 if (!unknown_fields().empty()) {
942 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
945 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
946 _cached_size_ = total_size;
947 GOOGLE_SAFE_CONCURRENT_WRITES_END();
951 void AlterTable_AlterKeysOnOff::MergeFrom(const ::google::protobuf::Message& from) {
952 GOOGLE_CHECK_NE(&from,
this);
953 const AlterTable_AlterKeysOnOff* source =
954 ::google::protobuf::internal::dynamic_cast_if_available<const AlterTable_AlterKeysOnOff*>(
956 if (source == NULL) {
957 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
963 void AlterTable_AlterKeysOnOff::MergeFrom(
const AlterTable_AlterKeysOnOff& from) {
964 GOOGLE_CHECK_NE(&from,
this);
965 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
966 if (from.has_enable()) {
967 set_enable(from.enable());
970 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
973 void AlterTable_AlterKeysOnOff::CopyFrom(const ::google::protobuf::Message& from) {
974 if (&from ==
this)
return;
979 void AlterTable_AlterKeysOnOff::CopyFrom(
const AlterTable_AlterKeysOnOff& from) {
980 if (&from ==
this)
return;
985 bool AlterTable_AlterKeysOnOff::IsInitialized()
const {
986 if ((_has_bits_[0] & 0x00000001) != 0x00000001)
return false;
991 void AlterTable_AlterKeysOnOff::Swap(AlterTable_AlterKeysOnOff* other) {
993 std::swap(enable_, other->enable_);
994 std::swap(_has_bits_[0], other->_has_bits_[0]);
995 _unknown_fields_.Swap(&other->_unknown_fields_);
996 std::swap(_cached_size_, other->_cached_size_);
1000 ::google::protobuf::Metadata AlterTable_AlterKeysOnOff::GetMetadata()
const {
1001 protobuf_AssignDescriptorsOnce();
1002 ::google::protobuf::Metadata metadata;
1003 metadata.descriptor = AlterTable_AlterKeysOnOff_descriptor_;
1004 metadata.reflection = AlterTable_AlterKeysOnOff_reflection_;
1012 const int AlterTable::kCatalogFieldNumber;
1013 const int AlterTable::kSchemaFieldNumber;
1014 const int AlterTable::kNameFieldNumber;
1015 const int AlterTable::kBuildMethodFieldNumber;
1016 const int AlterTable::kIgnoreFieldNumber;
1017 const int AlterTable::kOperationsFieldNumber;
1018 const int AlterTable::kRenameFieldNumber;
1019 const int AlterTable::kAlterKeysOnoffFieldNumber;
1022 AlterTable::AlterTable()
1023 : ::google::protobuf::Message() {
1027 void AlterTable::InitAsDefaultInstance() {
1032 AlterTable::AlterTable(
const AlterTable& from)
1033 : ::google::protobuf::Message() {
1038 void AlterTable::SharedCtor() {
1040 catalog_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
1041 schema_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
1042 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
1046 alter_keys_onoff_ = NULL;
1047 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1050 AlterTable::~AlterTable() {
1054 void AlterTable::SharedDtor() {
1055 if (catalog_ != &::google::protobuf::internal::kEmptyString) {
1058 if (schema_ != &::google::protobuf::internal::kEmptyString) {
1061 if (name_ != &::google::protobuf::internal::kEmptyString) {
1064 if (
this != default_instance_) {
1066 delete alter_keys_onoff_;
1070 void AlterTable::SetCachedSize(
int size)
const {
1071 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1072 _cached_size_ = size;
1073 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1075 const ::google::protobuf::Descriptor* AlterTable::descriptor() {
1076 protobuf_AssignDescriptorsOnce();
1077 return AlterTable_descriptor_;
1080 const AlterTable& AlterTable::default_instance() {
1081 if (default_instance_ == NULL) protobuf_AddDesc_alter_5ftable_2eproto();
return *default_instance_;
1084 AlterTable* AlterTable::default_instance_ = NULL;
1086 AlterTable* AlterTable::New()
const {
1087 return new AlterTable;
1090 void AlterTable::Clear() {
1091 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1092 if (has_catalog()) {
1093 if (catalog_ != &::google::protobuf::internal::kEmptyString) {
1098 if (schema_ != &::google::protobuf::internal::kEmptyString) {
1103 if (name_ != &::google::protobuf::internal::kEmptyString) {
1110 if (rename_ != NULL) rename_->::drizzled::message::AlterTable_RenameTable::Clear();
1112 if (has_alter_keys_onoff()) {
1113 if (alter_keys_onoff_ != NULL) alter_keys_onoff_->::drizzled::message::AlterTable_AlterKeysOnOff::Clear();
1116 operations_.Clear();
1117 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1118 mutable_unknown_fields()->Clear();
1121 bool AlterTable::MergePartialFromCodedStream(
1122 ::google::protobuf::io::CodedInputStream* input) {
1123 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1124 ::google::protobuf::uint32 tag;
1125 while ((tag = input->ReadTag()) != 0) {
1126 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1129 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1130 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1131 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1132 input, this->mutable_catalog()));
1133 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1134 this->catalog().data(), this->catalog().length(),
1135 ::google::protobuf::internal::WireFormat::PARSE);
1137 goto handle_uninterpreted;
1139 if (input->ExpectTag(18))
goto parse_schema;
1145 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1146 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1148 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1149 input, this->mutable_schema()));
1150 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1151 this->schema().data(), this->schema().length(),
1152 ::google::protobuf::internal::WireFormat::PARSE);
1154 goto handle_uninterpreted;
1156 if (input->ExpectTag(26))
goto parse_name;
1162 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1163 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1165 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1166 input, this->mutable_name()));
1167 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1168 this->name().data(), this->name().length(),
1169 ::google::protobuf::internal::WireFormat::PARSE);
1171 goto handle_uninterpreted;
1173 if (input->ExpectTag(32))
goto parse_build_method;
1179 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1180 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1183 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1184 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1186 if (::drizzled::message::AlterTable_BuildMethod_IsValid(value)) {
1187 set_build_method(static_cast< ::drizzled::message::AlterTable_BuildMethod >(value));
1189 mutable_unknown_fields()->AddVarint(4, value);
1192 goto handle_uninterpreted;
1194 if (input->ExpectTag(40))
goto parse_ignore;
1200 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1201 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1203 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1204 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1208 goto handle_uninterpreted;
1210 if (input->ExpectTag(50))
goto parse_operations;
1216 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1217 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1219 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1220 input, add_operations()));
1222 goto handle_uninterpreted;
1224 if (input->ExpectTag(50))
goto parse_operations;
1225 if (input->ExpectTag(58))
goto parse_rename;
1231 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1232 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1234 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1235 input, mutable_rename()));
1237 goto handle_uninterpreted;
1239 if (input->ExpectTag(66))
goto parse_alter_keys_onoff;
1245 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1246 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1247 parse_alter_keys_onoff:
1248 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1249 input, mutable_alter_keys_onoff()));
1251 goto handle_uninterpreted;
1253 if (input->ExpectAtEnd())
return true;
1258 handle_uninterpreted:
1259 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1260 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1263 DO_(::google::protobuf::internal::WireFormat::SkipField(
1264 input, tag, mutable_unknown_fields()));
1273 void AlterTable::SerializeWithCachedSizes(
1274 ::google::protobuf::io::CodedOutputStream* output)
const {
1276 if (has_catalog()) {
1277 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1278 this->catalog().data(), this->catalog().length(),
1279 ::google::protobuf::internal::WireFormat::SERIALIZE);
1280 ::google::protobuf::internal::WireFormatLite::WriteString(
1281 1, this->catalog(), output);
1286 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1287 this->schema().data(), this->schema().length(),
1288 ::google::protobuf::internal::WireFormat::SERIALIZE);
1289 ::google::protobuf::internal::WireFormatLite::WriteString(
1290 2, this->schema(), output);
1295 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1296 this->name().data(), this->name().length(),
1297 ::google::protobuf::internal::WireFormat::SERIALIZE);
1298 ::google::protobuf::internal::WireFormatLite::WriteString(
1299 3, this->name(), output);
1303 if (has_build_method()) {
1304 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1305 4, this->build_method(), output);
1310 ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->ignore(), output);
1314 for (
int i = 0; i < this->operations_size(); i++) {
1315 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1316 6, this->operations(i), output);
1321 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1322 7, this->rename(), output);
1326 if (has_alter_keys_onoff()) {
1327 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1328 8, this->alter_keys_onoff(), output);
1331 if (!unknown_fields().empty()) {
1332 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1333 unknown_fields(), output);
1337 ::google::protobuf::uint8* AlterTable::SerializeWithCachedSizesToArray(
1338 ::google::protobuf::uint8* target)
const {
1340 if (has_catalog()) {
1341 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1342 this->catalog().data(), this->catalog().length(),
1343 ::google::protobuf::internal::WireFormat::SERIALIZE);
1345 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1346 1, this->catalog(), target);
1351 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1352 this->schema().data(), this->schema().length(),
1353 ::google::protobuf::internal::WireFormat::SERIALIZE);
1355 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1356 2, this->schema(), target);
1361 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1362 this->name().data(), this->name().length(),
1363 ::google::protobuf::internal::WireFormat::SERIALIZE);
1365 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1366 3, this->name(), target);
1370 if (has_build_method()) {
1371 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1372 4, this->build_method(), target);
1377 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->ignore(), target);
1381 for (
int i = 0; i < this->operations_size(); i++) {
1382 target = ::google::protobuf::internal::WireFormatLite::
1383 WriteMessageNoVirtualToArray(
1384 6, this->operations(i), target);
1389 target = ::google::protobuf::internal::WireFormatLite::
1390 WriteMessageNoVirtualToArray(
1391 7, this->rename(), target);
1395 if (has_alter_keys_onoff()) {
1396 target = ::google::protobuf::internal::WireFormatLite::
1397 WriteMessageNoVirtualToArray(
1398 8, this->alter_keys_onoff(), target);
1401 if (!unknown_fields().empty()) {
1402 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1403 unknown_fields(), target);
1408 int AlterTable::ByteSize()
const {
1411 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1413 if (has_catalog()) {
1415 ::google::protobuf::internal::WireFormatLite::StringSize(
1422 ::google::protobuf::internal::WireFormatLite::StringSize(
1429 ::google::protobuf::internal::WireFormatLite::StringSize(
1434 if (has_build_method()) {
1436 ::google::protobuf::internal::WireFormatLite::EnumSize(this->build_method());
1441 total_size += 1 + 1;
1447 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1452 if (has_alter_keys_onoff()) {
1454 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1455 this->alter_keys_onoff());
1460 total_size += 1 * this->operations_size();
1461 for (
int i = 0; i < this->operations_size(); i++) {
1463 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1464 this->operations(i));
1467 if (!unknown_fields().empty()) {
1469 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1472 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1473 _cached_size_ = total_size;
1474 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1478 void AlterTable::MergeFrom(const ::google::protobuf::Message& from) {
1479 GOOGLE_CHECK_NE(&from,
this);
1480 const AlterTable* source =
1481 ::google::protobuf::internal::dynamic_cast_if_available<const AlterTable*>(
1483 if (source == NULL) {
1484 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
1490 void AlterTable::MergeFrom(
const AlterTable& from) {
1491 GOOGLE_CHECK_NE(&from,
this);
1492 operations_.MergeFrom(from.operations_);
1493 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1494 if (from.has_catalog()) {
1495 set_catalog(from.catalog());
1497 if (from.has_schema()) {
1498 set_schema(from.schema());
1500 if (from.has_name()) {
1501 set_name(from.name());
1503 if (from.has_build_method()) {
1504 set_build_method(from.build_method());
1506 if (from.has_ignore()) {
1507 set_ignore(from.ignore());
1509 if (from.has_rename()) {
1510 mutable_rename()->::drizzled::message::AlterTable_RenameTable::MergeFrom(from.rename());
1512 if (from.has_alter_keys_onoff()) {
1513 mutable_alter_keys_onoff()->::drizzled::message::AlterTable_AlterKeysOnOff::MergeFrom(from.alter_keys_onoff());
1516 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1519 void AlterTable::CopyFrom(const ::google::protobuf::Message& from) {
1520 if (&from ==
this)
return;
1525 void AlterTable::CopyFrom(
const AlterTable& from) {
1526 if (&from ==
this)
return;
1531 bool AlterTable::IsInitialized()
const {
1532 if ((_has_bits_[0] & 0x0000001e) != 0x0000001e)
return false;
1534 for (
int i = 0; i < operations_size(); i++) {
1535 if (!this->operations(i).IsInitialized())
return false;
1538 if (!this->rename().IsInitialized())
return false;
1540 if (has_alter_keys_onoff()) {
1541 if (!this->alter_keys_onoff().IsInitialized())
return false;
1546 void AlterTable::Swap(AlterTable* other) {
1547 if (other !=
this) {
1548 std::swap(catalog_, other->catalog_);
1549 std::swap(schema_, other->schema_);
1550 std::swap(name_, other->name_);
1551 std::swap(build_method_, other->build_method_);
1552 std::swap(ignore_, other->ignore_);
1553 operations_.Swap(&other->operations_);
1554 std::swap(rename_, other->rename_);
1555 std::swap(alter_keys_onoff_, other->alter_keys_onoff_);
1556 std::swap(_has_bits_[0], other->_has_bits_[0]);
1557 _unknown_fields_.Swap(&other->_unknown_fields_);
1558 std::swap(_cached_size_, other->_cached_size_);
1562 ::google::protobuf::Metadata AlterTable::GetMetadata()
const {
1563 protobuf_AssignDescriptorsOnce();
1564 ::google::protobuf::Metadata metadata;
1565 metadata.descriptor = AlterTable_descriptor_;
1566 metadata.reflection = AlterTable_reflection_;