4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 #include "alter_table.pb.h"
9 #include <google/protobuf/stubs/common.h>
10 #include <google/protobuf/stubs/once.h>
11 #include <google/protobuf/io/coded_stream.h>
12 #include <google/protobuf/wire_format_lite_inl.h>
13 #include <google/protobuf/descriptor.h>
14 #include <google/protobuf/generated_message_reflection.h>
15 #include <google/protobuf/reflection_ops.h>
16 #include <google/protobuf/wire_format.h>
24 const ::google::protobuf::Descriptor* AlterTable_descriptor_ = NULL;
25 const ::google::protobuf::internal::GeneratedMessageReflection*
26 AlterTable_reflection_ = NULL;
27 const ::google::protobuf::Descriptor* AlterTable_AlterTableOperation_descriptor_ = NULL;
28 const ::google::protobuf::internal::GeneratedMessageReflection*
29 AlterTable_AlterTableOperation_reflection_ = NULL;
30 const ::google::protobuf::EnumDescriptor* AlterTable_AlterTableOperation_Operation_descriptor_ = NULL;
31 const ::google::protobuf::Descriptor* AlterTable_RenameTable_descriptor_ = NULL;
32 const ::google::protobuf::internal::GeneratedMessageReflection*
33 AlterTable_RenameTable_reflection_ = NULL;
34 const ::google::protobuf::Descriptor* AlterTable_AlterKeysOnOff_descriptor_ = NULL;
35 const ::google::protobuf::internal::GeneratedMessageReflection*
36 AlterTable_AlterKeysOnOff_reflection_ = NULL;
37 const ::google::protobuf::EnumDescriptor* AlterTable_BuildMethod_descriptor_ = NULL;
42 void protobuf_AssignDesc_alter_5ftable_2eproto() {
43 protobuf_AddDesc_alter_5ftable_2eproto();
44 const ::google::protobuf::FileDescriptor* file =
45 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
47 GOOGLE_CHECK(file != NULL);
48 AlterTable_descriptor_ = file->message_type(0);
49 static const int AlterTable_offsets_[8] = {
50 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, catalog_),
51 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, schema_),
52 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, name_),
53 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, build_method_),
54 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, ignore_),
55 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, operations_),
56 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, rename_),
57 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, alter_keys_onoff_),
59 AlterTable_reflection_ =
60 new ::google::protobuf::internal::GeneratedMessageReflection(
61 AlterTable_descriptor_,
62 AlterTable::default_instance_,
64 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, _has_bits_[0]),
65 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, _unknown_fields_),
67 ::google::protobuf::DescriptorPool::generated_pool(),
68 ::google::protobuf::MessageFactory::generated_factory(),
70 AlterTable_AlterTableOperation_descriptor_ = AlterTable_descriptor_->nested_type(0);
71 static const int AlterTable_AlterTableOperation_offsets_[2] = {
72 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterTableOperation, operation_),
73 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterTableOperation, drop_name_),
75 AlterTable_AlterTableOperation_reflection_ =
76 new ::google::protobuf::internal::GeneratedMessageReflection(
77 AlterTable_AlterTableOperation_descriptor_,
78 AlterTable_AlterTableOperation::default_instance_,
79 AlterTable_AlterTableOperation_offsets_,
80 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterTableOperation, _has_bits_[0]),
81 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterTableOperation, _unknown_fields_),
83 ::google::protobuf::DescriptorPool::generated_pool(),
84 ::google::protobuf::MessageFactory::generated_factory(),
85 sizeof(AlterTable_AlterTableOperation));
86 AlterTable_AlterTableOperation_Operation_descriptor_ = AlterTable_AlterTableOperation_descriptor_->enum_type(0);
87 AlterTable_RenameTable_descriptor_ = AlterTable_descriptor_->nested_type(1);
88 static const int AlterTable_RenameTable_offsets_[2] = {
89 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_RenameTable, to_schema_),
90 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_RenameTable, to_name_),
92 AlterTable_RenameTable_reflection_ =
93 new ::google::protobuf::internal::GeneratedMessageReflection(
94 AlterTable_RenameTable_descriptor_,
95 AlterTable_RenameTable::default_instance_,
96 AlterTable_RenameTable_offsets_,
97 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_RenameTable, _has_bits_[0]),
98 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_RenameTable, _unknown_fields_),
100 ::google::protobuf::DescriptorPool::generated_pool(),
101 ::google::protobuf::MessageFactory::generated_factory(),
102 sizeof(AlterTable_RenameTable));
103 AlterTable_AlterKeysOnOff_descriptor_ = AlterTable_descriptor_->nested_type(2);
104 static const int AlterTable_AlterKeysOnOff_offsets_[1] = {
105 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterKeysOnOff, enable_),
107 AlterTable_AlterKeysOnOff_reflection_ =
108 new ::google::protobuf::internal::GeneratedMessageReflection(
109 AlterTable_AlterKeysOnOff_descriptor_,
110 AlterTable_AlterKeysOnOff::default_instance_,
111 AlterTable_AlterKeysOnOff_offsets_,
112 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterKeysOnOff, _has_bits_[0]),
113 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterKeysOnOff, _unknown_fields_),
115 ::google::protobuf::DescriptorPool::generated_pool(),
116 ::google::protobuf::MessageFactory::generated_factory(),
117 sizeof(AlterTable_AlterKeysOnOff));
118 AlterTable_BuildMethod_descriptor_ = AlterTable_descriptor_->enum_type(0);
123 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
124 inline void protobuf_AssignDescriptorsOnce() {
125 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
126 &protobuf_AssignDesc_alter_5ftable_2eproto);
129 void protobuf_RegisterTypes(const ::std::string&) {
130 protobuf_AssignDescriptorsOnce();
131 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
132 AlterTable_descriptor_, &AlterTable::default_instance());
133 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
134 AlterTable_AlterTableOperation_descriptor_, &AlterTable_AlterTableOperation::default_instance());
135 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
136 AlterTable_RenameTable_descriptor_, &AlterTable_RenameTable::default_instance());
137 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
138 AlterTable_AlterKeysOnOff_descriptor_, &AlterTable_AlterKeysOnOff::default_instance());
143 void protobuf_ShutdownFile_alter_5ftable_2eproto() {
144 delete AlterTable::default_instance_;
145 delete AlterTable_reflection_;
146 delete AlterTable_AlterTableOperation::default_instance_;
147 delete AlterTable_AlterTableOperation_reflection_;
148 delete AlterTable_RenameTable::default_instance_;
149 delete AlterTable_RenameTable_reflection_;
150 delete AlterTable_AlterKeysOnOff::default_instance_;
151 delete AlterTable_AlterKeysOnOff_reflection_;
154 void protobuf_AddDesc_alter_5ftable_2eproto() {
155 static bool already_here =
false;
156 if (already_here)
return;
158 GOOGLE_PROTOBUF_VERIFY_VERSION;
160 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
161 "\n\021alter_table.proto\022\020drizzled.message\"\357\005"
162 "\n\nAlterTable\022\017\n\007catalog\030\001 \001(\t\022\016\n\006schema\030"
163 "\002 \002(\t\022\014\n\004name\030\003 \002(\t\022M\n\014build_method\030\004 \002("
164 "\0162(.drizzled.message.AlterTable.BuildMet"
165 "hod:\rBUILD_DEFAULT\022\025\n\006ignore\030\005 \002(\010:\005fals"
166 "e\022D\n\noperations\030\006 \003(\01320.drizzled.message"
167 ".AlterTable.AlterTableOperation\0228\n\006renam"
168 "e\030\007 \001(\0132(.drizzled.message.AlterTable.Re"
169 "nameTable\022E\n\020alter_keys_onoff\030\010 \001(\0132+.dr"
170 "izzled.message.AlterTable.AlterKeysOnOff"
171 "\032\350\001\n\023AlterTableOperation\022M\n\toperation\030\001 "
172 "\002(\0162:.drizzled.message.AlterTable.AlterT"
173 "ableOperation.Operation\022\021\n\tdrop_name\030\002 \001"
174 "(\t\"o\n\tOperation\022\026\n\022DISCARD_TABLESPACE\020\000\022"
175 "\025\n\021IMPORT_TABLESPACE\020\001\022\014\n\010DROP_KEY\020\002\022\017\n\013"
176 "DROP_COLUMN\020\003\022\024\n\020DROP_FOREIGN_KEY\020\004\0321\n\013R"
177 "enameTable\022\021\n\tto_schema\030\001 \002(\t\022\017\n\007to_name"
178 "\030\002 \002(\t\032 \n\016AlterKeysOnOff\022\016\n\006enable\030\001 \002(\010"
179 "\"E\n\013BuildMethod\022\021\n\rBUILD_DEFAULT\020\000\022\020\n\014BU"
180 "ILD_ONLINE\020\001\022\021\n\rBUILD_OFFLINE\020\002B+\n\024org.d"
181 "rizzle.messagesB\021AlterTableMessageH\001", 836);
182 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
183 "alter_table.proto", &protobuf_RegisterTypes);
184 AlterTable::default_instance_ =
new AlterTable();
185 AlterTable_AlterTableOperation::default_instance_ =
new AlterTable_AlterTableOperation();
186 AlterTable_RenameTable::default_instance_ =
new AlterTable_RenameTable();
187 AlterTable_AlterKeysOnOff::default_instance_ =
new AlterTable_AlterKeysOnOff();
188 AlterTable::default_instance_->InitAsDefaultInstance();
189 AlterTable_AlterTableOperation::default_instance_->InitAsDefaultInstance();
190 AlterTable_RenameTable::default_instance_->InitAsDefaultInstance();
191 AlterTable_AlterKeysOnOff::default_instance_->InitAsDefaultInstance();
192 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_alter_5ftable_2eproto);
198 protobuf_AddDesc_alter_5ftable_2eproto();
200 } static_descriptor_initializer_alter_5ftable_2eproto_;
204 const ::google::protobuf::EnumDescriptor* AlterTable_BuildMethod_descriptor() {
205 protobuf_AssignDescriptorsOnce();
206 return AlterTable_BuildMethod_descriptor_;
208 bool AlterTable_BuildMethod_IsValid(
int value) {
220 const AlterTable_BuildMethod AlterTable::BUILD_DEFAULT;
221 const AlterTable_BuildMethod AlterTable::BUILD_ONLINE;
222 const AlterTable_BuildMethod AlterTable::BUILD_OFFLINE;
223 const AlterTable_BuildMethod AlterTable::BuildMethod_MIN;
224 const AlterTable_BuildMethod AlterTable::BuildMethod_MAX;
225 const int AlterTable::BuildMethod_ARRAYSIZE;
227 const ::google::protobuf::EnumDescriptor* AlterTable_AlterTableOperation_Operation_descriptor() {
228 protobuf_AssignDescriptorsOnce();
229 return AlterTable_AlterTableOperation_Operation_descriptor_;
231 bool AlterTable_AlterTableOperation_Operation_IsValid(
int value) {
245 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::DISCARD_TABLESPACE;
246 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::IMPORT_TABLESPACE;
247 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::DROP_KEY;
248 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::DROP_COLUMN;
249 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::DROP_FOREIGN_KEY;
250 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::Operation_MIN;
251 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::Operation_MAX;
252 const int AlterTable_AlterTableOperation::Operation_ARRAYSIZE;
255 const int AlterTable_AlterTableOperation::kOperationFieldNumber;
256 const int AlterTable_AlterTableOperation::kDropNameFieldNumber;
259 AlterTable_AlterTableOperation::AlterTable_AlterTableOperation()
260 : ::
google::protobuf::Message() {
265 void AlterTable_AlterTableOperation::InitAsDefaultInstance() {
268 AlterTable_AlterTableOperation::AlterTable_AlterTableOperation(
const AlterTable_AlterTableOperation& from)
269 : ::
google::protobuf::Message() {
275 void AlterTable_AlterTableOperation::SharedCtor() {
276 ::google::protobuf::internal::GetEmptyString();
279 drop_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
280 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
283 AlterTable_AlterTableOperation::~AlterTable_AlterTableOperation() {
288 void AlterTable_AlterTableOperation::SharedDtor() {
289 if (drop_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
292 if (
this != default_instance_) {
296 void AlterTable_AlterTableOperation::SetCachedSize(
int size)
const {
297 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
298 _cached_size_ = size;
299 GOOGLE_SAFE_CONCURRENT_WRITES_END();
301 const ::google::protobuf::Descriptor* AlterTable_AlterTableOperation::descriptor() {
302 protobuf_AssignDescriptorsOnce();
303 return AlterTable_AlterTableOperation_descriptor_;
306 const AlterTable_AlterTableOperation& AlterTable_AlterTableOperation::default_instance() {
307 if (default_instance_ == NULL) protobuf_AddDesc_alter_5ftable_2eproto();
308 return *default_instance_;
311 AlterTable_AlterTableOperation* AlterTable_AlterTableOperation::default_instance_ = NULL;
313 AlterTable_AlterTableOperation* AlterTable_AlterTableOperation::New()
const {
314 return new AlterTable_AlterTableOperation;
317 void AlterTable_AlterTableOperation::Clear() {
318 if (_has_bits_[0 / 32] & 3) {
320 if (has_drop_name()) {
321 if (drop_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
326 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
327 mutable_unknown_fields()->Clear();
330 bool AlterTable_AlterTableOperation::MergePartialFromCodedStream(
331 ::google::protobuf::io::CodedInputStream* input) {
332 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
333 ::google::protobuf::uint32 tag;
336 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
338 if (!p.second)
goto handle_unusual;
339 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
344 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
345 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
347 if (::drizzled::message::AlterTable_AlterTableOperation_Operation_IsValid(value)) {
348 set_operation(static_cast< ::drizzled::message::AlterTable_AlterTableOperation_Operation >(value));
350 mutable_unknown_fields()->AddVarint(1, value);
355 if (input->ExpectTag(18))
goto parse_drop_name;
363 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
364 input, this->mutable_drop_name()));
365 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
366 this->drop_name().data(), this->drop_name().length(),
367 ::google::protobuf::internal::WireFormat::PARSE,
372 if (input->ExpectAtEnd())
goto success;
379 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
380 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
383 DO_(::google::protobuf::internal::WireFormat::SkipField(
384 input, tag, mutable_unknown_fields()));
398 void AlterTable_AlterTableOperation::SerializeWithCachedSizes(
399 ::google::protobuf::io::CodedOutputStream* output)
const {
402 if (has_operation()) {
403 ::google::protobuf::internal::WireFormatLite::WriteEnum(
404 1, this->operation(), output);
408 if (has_drop_name()) {
409 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
410 this->drop_name().data(), this->drop_name().length(),
411 ::google::protobuf::internal::WireFormat::SERIALIZE,
413 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
414 2, this->drop_name(), output);
417 if (!unknown_fields().empty()) {
418 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
419 unknown_fields(), output);
424 ::google::protobuf::uint8* AlterTable_AlterTableOperation::SerializeWithCachedSizesToArray(
425 ::google::protobuf::uint8* target)
const {
428 if (has_operation()) {
429 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
430 1, this->operation(), target);
434 if (has_drop_name()) {
435 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
436 this->drop_name().data(), this->drop_name().length(),
437 ::google::protobuf::internal::WireFormat::SERIALIZE,
440 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
441 2, this->drop_name(), target);
444 if (!unknown_fields().empty()) {
445 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
446 unknown_fields(), target);
452 int AlterTable_AlterTableOperation::ByteSize()
const {
455 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
457 if (has_operation()) {
459 ::google::protobuf::internal::WireFormatLite::EnumSize(this->operation());
463 if (has_drop_name()) {
465 ::google::protobuf::internal::WireFormatLite::StringSize(
470 if (!unknown_fields().empty()) {
472 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
475 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
476 _cached_size_ = total_size;
477 GOOGLE_SAFE_CONCURRENT_WRITES_END();
481 void AlterTable_AlterTableOperation::MergeFrom(const ::google::protobuf::Message& from) {
482 GOOGLE_CHECK_NE(&from,
this);
483 const AlterTable_AlterTableOperation* source =
484 ::google::protobuf::internal::dynamic_cast_if_available<const AlterTable_AlterTableOperation*>(
486 if (source == NULL) {
487 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
493 void AlterTable_AlterTableOperation::MergeFrom(
const AlterTable_AlterTableOperation& from) {
494 GOOGLE_CHECK_NE(&from,
this);
495 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
496 if (from.has_operation()) {
497 set_operation(from.operation());
499 if (from.has_drop_name()) {
500 set_drop_name(from.drop_name());
503 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
506 void AlterTable_AlterTableOperation::CopyFrom(const ::google::protobuf::Message& from) {
507 if (&from ==
this)
return;
512 void AlterTable_AlterTableOperation::CopyFrom(
const AlterTable_AlterTableOperation& from) {
513 if (&from ==
this)
return;
518 bool AlterTable_AlterTableOperation::IsInitialized()
const {
519 if ((_has_bits_[0] & 0x00000001) != 0x00000001)
return false;
524 void AlterTable_AlterTableOperation::Swap(AlterTable_AlterTableOperation* other) {
526 std::swap(operation_, other->operation_);
527 std::swap(drop_name_, other->drop_name_);
528 std::swap(_has_bits_[0], other->_has_bits_[0]);
529 _unknown_fields_.Swap(&other->_unknown_fields_);
530 std::swap(_cached_size_, other->_cached_size_);
534 ::google::protobuf::Metadata AlterTable_AlterTableOperation::GetMetadata()
const {
535 protobuf_AssignDescriptorsOnce();
536 ::google::protobuf::Metadata metadata;
537 metadata.descriptor = AlterTable_AlterTableOperation_descriptor_;
538 metadata.reflection = AlterTable_AlterTableOperation_reflection_;
546 const int AlterTable_RenameTable::kToSchemaFieldNumber;
547 const int AlterTable_RenameTable::kToNameFieldNumber;
550 AlterTable_RenameTable::AlterTable_RenameTable()
551 : ::
google::protobuf::Message() {
556 void AlterTable_RenameTable::InitAsDefaultInstance() {
559 AlterTable_RenameTable::AlterTable_RenameTable(
const AlterTable_RenameTable& from)
560 : ::
google::protobuf::Message() {
566 void AlterTable_RenameTable::SharedCtor() {
567 ::google::protobuf::internal::GetEmptyString();
569 to_schema_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
570 to_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
571 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
574 AlterTable_RenameTable::~AlterTable_RenameTable() {
579 void AlterTable_RenameTable::SharedDtor() {
580 if (to_schema_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
583 if (to_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
586 if (
this != default_instance_) {
590 void AlterTable_RenameTable::SetCachedSize(
int size)
const {
591 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
592 _cached_size_ = size;
593 GOOGLE_SAFE_CONCURRENT_WRITES_END();
595 const ::google::protobuf::Descriptor* AlterTable_RenameTable::descriptor() {
596 protobuf_AssignDescriptorsOnce();
597 return AlterTable_RenameTable_descriptor_;
600 const AlterTable_RenameTable& AlterTable_RenameTable::default_instance() {
601 if (default_instance_ == NULL) protobuf_AddDesc_alter_5ftable_2eproto();
602 return *default_instance_;
605 AlterTable_RenameTable* AlterTable_RenameTable::default_instance_ = NULL;
607 AlterTable_RenameTable* AlterTable_RenameTable::New()
const {
608 return new AlterTable_RenameTable;
611 void AlterTable_RenameTable::Clear() {
612 if (_has_bits_[0 / 32] & 3) {
613 if (has_to_schema()) {
614 if (to_schema_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
619 if (to_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
624 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
625 mutable_unknown_fields()->Clear();
628 bool AlterTable_RenameTable::MergePartialFromCodedStream(
629 ::google::protobuf::io::CodedInputStream* input) {
630 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
631 ::google::protobuf::uint32 tag;
634 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
636 if (!p.second)
goto handle_unusual;
637 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
641 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
642 input, this->mutable_to_schema()));
643 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
644 this->to_schema().data(), this->to_schema().length(),
645 ::google::protobuf::internal::WireFormat::PARSE,
650 if (input->ExpectTag(18))
goto parse_to_name;
658 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
659 input, this->mutable_to_name()));
660 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
661 this->to_name().data(), this->to_name().length(),
662 ::google::protobuf::internal::WireFormat::PARSE,
667 if (input->ExpectAtEnd())
goto success;
674 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
675 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
678 DO_(::google::protobuf::internal::WireFormat::SkipField(
679 input, tag, mutable_unknown_fields()));
693 void AlterTable_RenameTable::SerializeWithCachedSizes(
694 ::google::protobuf::io::CodedOutputStream* output)
const {
697 if (has_to_schema()) {
698 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
699 this->to_schema().data(), this->to_schema().length(),
700 ::google::protobuf::internal::WireFormat::SERIALIZE,
702 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
703 1, this->to_schema(), output);
708 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
709 this->to_name().data(), this->to_name().length(),
710 ::google::protobuf::internal::WireFormat::SERIALIZE,
712 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
713 2, this->to_name(), output);
716 if (!unknown_fields().empty()) {
717 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
718 unknown_fields(), output);
723 ::google::protobuf::uint8* AlterTable_RenameTable::SerializeWithCachedSizesToArray(
724 ::google::protobuf::uint8* target)
const {
727 if (has_to_schema()) {
728 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
729 this->to_schema().data(), this->to_schema().length(),
730 ::google::protobuf::internal::WireFormat::SERIALIZE,
733 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
734 1, this->to_schema(), target);
739 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
740 this->to_name().data(), this->to_name().length(),
741 ::google::protobuf::internal::WireFormat::SERIALIZE,
744 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
745 2, this->to_name(), target);
748 if (!unknown_fields().empty()) {
749 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
750 unknown_fields(), target);
756 int AlterTable_RenameTable::ByteSize()
const {
759 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
761 if (has_to_schema()) {
763 ::google::protobuf::internal::WireFormatLite::StringSize(
770 ::google::protobuf::internal::WireFormatLite::StringSize(
775 if (!unknown_fields().empty()) {
777 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
780 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
781 _cached_size_ = total_size;
782 GOOGLE_SAFE_CONCURRENT_WRITES_END();
786 void AlterTable_RenameTable::MergeFrom(const ::google::protobuf::Message& from) {
787 GOOGLE_CHECK_NE(&from,
this);
788 const AlterTable_RenameTable* source =
789 ::google::protobuf::internal::dynamic_cast_if_available<const AlterTable_RenameTable*>(
791 if (source == NULL) {
792 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
798 void AlterTable_RenameTable::MergeFrom(
const AlterTable_RenameTable& from) {
799 GOOGLE_CHECK_NE(&from,
this);
800 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
801 if (from.has_to_schema()) {
802 set_to_schema(from.to_schema());
804 if (from.has_to_name()) {
805 set_to_name(from.to_name());
808 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
811 void AlterTable_RenameTable::CopyFrom(const ::google::protobuf::Message& from) {
812 if (&from ==
this)
return;
817 void AlterTable_RenameTable::CopyFrom(
const AlterTable_RenameTable& from) {
818 if (&from ==
this)
return;
823 bool AlterTable_RenameTable::IsInitialized()
const {
824 if ((_has_bits_[0] & 0x00000003) != 0x00000003)
return false;
829 void AlterTable_RenameTable::Swap(AlterTable_RenameTable* other) {
831 std::swap(to_schema_, other->to_schema_);
832 std::swap(to_name_, other->to_name_);
833 std::swap(_has_bits_[0], other->_has_bits_[0]);
834 _unknown_fields_.Swap(&other->_unknown_fields_);
835 std::swap(_cached_size_, other->_cached_size_);
839 ::google::protobuf::Metadata AlterTable_RenameTable::GetMetadata()
const {
840 protobuf_AssignDescriptorsOnce();
841 ::google::protobuf::Metadata metadata;
842 metadata.descriptor = AlterTable_RenameTable_descriptor_;
843 metadata.reflection = AlterTable_RenameTable_reflection_;
851 const int AlterTable_AlterKeysOnOff::kEnableFieldNumber;
854 AlterTable_AlterKeysOnOff::AlterTable_AlterKeysOnOff()
855 : ::
google::protobuf::Message() {
860 void AlterTable_AlterKeysOnOff::InitAsDefaultInstance() {
863 AlterTable_AlterKeysOnOff::AlterTable_AlterKeysOnOff(
const AlterTable_AlterKeysOnOff& from)
864 : ::
google::protobuf::Message() {
870 void AlterTable_AlterKeysOnOff::SharedCtor() {
873 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
876 AlterTable_AlterKeysOnOff::~AlterTable_AlterKeysOnOff() {
881 void AlterTable_AlterKeysOnOff::SharedDtor() {
882 if (
this != default_instance_) {
886 void AlterTable_AlterKeysOnOff::SetCachedSize(
int size)
const {
887 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
888 _cached_size_ = size;
889 GOOGLE_SAFE_CONCURRENT_WRITES_END();
891 const ::google::protobuf::Descriptor* AlterTable_AlterKeysOnOff::descriptor() {
892 protobuf_AssignDescriptorsOnce();
893 return AlterTable_AlterKeysOnOff_descriptor_;
896 const AlterTable_AlterKeysOnOff& AlterTable_AlterKeysOnOff::default_instance() {
897 if (default_instance_ == NULL) protobuf_AddDesc_alter_5ftable_2eproto();
898 return *default_instance_;
901 AlterTable_AlterKeysOnOff* AlterTable_AlterKeysOnOff::default_instance_ = NULL;
903 AlterTable_AlterKeysOnOff* AlterTable_AlterKeysOnOff::New()
const {
904 return new AlterTable_AlterKeysOnOff;
907 void AlterTable_AlterKeysOnOff::Clear() {
909 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
910 mutable_unknown_fields()->Clear();
913 bool AlterTable_AlterKeysOnOff::MergePartialFromCodedStream(
914 ::google::protobuf::io::CodedInputStream* input) {
915 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
916 ::google::protobuf::uint32 tag;
919 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
921 if (!p.second)
goto handle_unusual;
922 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
926 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
927 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
933 if (input->ExpectAtEnd())
goto success;
940 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
941 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
944 DO_(::google::protobuf::internal::WireFormat::SkipField(
945 input, tag, mutable_unknown_fields()));
959 void AlterTable_AlterKeysOnOff::SerializeWithCachedSizes(
960 ::google::protobuf::io::CodedOutputStream* output)
const {
964 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->enable(), output);
967 if (!unknown_fields().empty()) {
968 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
969 unknown_fields(), output);
974 ::google::protobuf::uint8* AlterTable_AlterKeysOnOff::SerializeWithCachedSizesToArray(
975 ::google::protobuf::uint8* target)
const {
979 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->enable(), target);
982 if (!unknown_fields().empty()) {
983 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
984 unknown_fields(), target);
990 int AlterTable_AlterKeysOnOff::ByteSize()
const {
993 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1000 if (!unknown_fields().empty()) {
1002 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1005 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1006 _cached_size_ = total_size;
1007 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1011 void AlterTable_AlterKeysOnOff::MergeFrom(const ::google::protobuf::Message& from) {
1012 GOOGLE_CHECK_NE(&from,
this);
1013 const AlterTable_AlterKeysOnOff* source =
1014 ::google::protobuf::internal::dynamic_cast_if_available<const AlterTable_AlterKeysOnOff*>(
1016 if (source == NULL) {
1017 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
1023 void AlterTable_AlterKeysOnOff::MergeFrom(
const AlterTable_AlterKeysOnOff& from) {
1024 GOOGLE_CHECK_NE(&from,
this);
1025 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1026 if (from.has_enable()) {
1027 set_enable(from.enable());
1030 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1033 void AlterTable_AlterKeysOnOff::CopyFrom(const ::google::protobuf::Message& from) {
1034 if (&from ==
this)
return;
1039 void AlterTable_AlterKeysOnOff::CopyFrom(
const AlterTable_AlterKeysOnOff& from) {
1040 if (&from ==
this)
return;
1045 bool AlterTable_AlterKeysOnOff::IsInitialized()
const {
1046 if ((_has_bits_[0] & 0x00000001) != 0x00000001)
return false;
1051 void AlterTable_AlterKeysOnOff::Swap(AlterTable_AlterKeysOnOff* other) {
1052 if (other !=
this) {
1053 std::swap(enable_, other->enable_);
1054 std::swap(_has_bits_[0], other->_has_bits_[0]);
1055 _unknown_fields_.Swap(&other->_unknown_fields_);
1056 std::swap(_cached_size_, other->_cached_size_);
1060 ::google::protobuf::Metadata AlterTable_AlterKeysOnOff::GetMetadata()
const {
1061 protobuf_AssignDescriptorsOnce();
1062 ::google::protobuf::Metadata metadata;
1063 metadata.descriptor = AlterTable_AlterKeysOnOff_descriptor_;
1064 metadata.reflection = AlterTable_AlterKeysOnOff_reflection_;
1072 const int AlterTable::kCatalogFieldNumber;
1073 const int AlterTable::kSchemaFieldNumber;
1074 const int AlterTable::kNameFieldNumber;
1075 const int AlterTable::kBuildMethodFieldNumber;
1076 const int AlterTable::kIgnoreFieldNumber;
1077 const int AlterTable::kOperationsFieldNumber;
1078 const int AlterTable::kRenameFieldNumber;
1079 const int AlterTable::kAlterKeysOnoffFieldNumber;
1082 AlterTable::AlterTable()
1083 : ::
google::protobuf::Message() {
1088 void AlterTable::InitAsDefaultInstance() {
1093 AlterTable::AlterTable(
const AlterTable& from)
1094 : ::
google::protobuf::Message() {
1100 void AlterTable::SharedCtor() {
1101 ::google::protobuf::internal::GetEmptyString();
1103 catalog_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1104 schema_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1105 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1109 alter_keys_onoff_ = NULL;
1110 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1113 AlterTable::~AlterTable() {
1118 void AlterTable::SharedDtor() {
1119 if (catalog_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1122 if (schema_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1125 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1128 if (
this != default_instance_) {
1130 delete alter_keys_onoff_;
1134 void AlterTable::SetCachedSize(
int size)
const {
1135 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1136 _cached_size_ = size;
1137 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1139 const ::google::protobuf::Descriptor* AlterTable::descriptor() {
1140 protobuf_AssignDescriptorsOnce();
1141 return AlterTable_descriptor_;
1144 const AlterTable& AlterTable::default_instance() {
1145 if (default_instance_ == NULL) protobuf_AddDesc_alter_5ftable_2eproto();
1146 return *default_instance_;
1149 AlterTable* AlterTable::default_instance_ = NULL;
1151 AlterTable* AlterTable::New()
const {
1152 return new AlterTable;
1155 void AlterTable::Clear() {
1156 #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
1157 &reinterpret_cast<AlterTable*>(16)->f) - \
1158 reinterpret_cast<char*>(16))
1160 #define ZR_(first, last) do { \
1161 size_t f = OFFSET_OF_FIELD_(first); \
1162 size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
1163 ::memset(&first, 0, n); \
1166 if (_has_bits_[0 / 32] & 223) {
1167 ZR_(build_method_, ignore_);
1168 if (has_catalog()) {
1169 if (catalog_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1174 if (schema_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1179 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1184 if (rename_ != NULL) rename_->::drizzled::message::AlterTable_RenameTable::Clear();
1186 if (has_alter_keys_onoff()) {
1187 if (alter_keys_onoff_ != NULL) alter_keys_onoff_->::drizzled::message::AlterTable_AlterKeysOnOff::Clear();
1191 #undef OFFSET_OF_FIELD_
1194 operations_.Clear();
1195 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1196 mutable_unknown_fields()->Clear();
1199 bool AlterTable::MergePartialFromCodedStream(
1200 ::google::protobuf::io::CodedInputStream* input) {
1201 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1202 ::google::protobuf::uint32 tag;
1205 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1207 if (!p.second)
goto handle_unusual;
1208 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1212 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1213 input, this->mutable_catalog()));
1214 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1215 this->catalog().data(), this->catalog().length(),
1216 ::google::protobuf::internal::WireFormat::PARSE,
1219 goto handle_unusual;
1221 if (input->ExpectTag(18))
goto parse_schema;
1229 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1230 input, this->mutable_schema()));
1231 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1232 this->schema().data(), this->schema().length(),
1233 ::google::protobuf::internal::WireFormat::PARSE,
1236 goto handle_unusual;
1238 if (input->ExpectTag(26))
goto parse_name;
1246 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1247 input, this->mutable_name()));
1248 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1249 this->name().data(), this->name().length(),
1250 ::google::protobuf::internal::WireFormat::PARSE,
1253 goto handle_unusual;
1255 if (input->ExpectTag(32))
goto parse_build_method;
1264 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1265 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1267 if (::drizzled::message::AlterTable_BuildMethod_IsValid(value)) {
1268 set_build_method(static_cast< ::drizzled::message::AlterTable_BuildMethod >(value));
1270 mutable_unknown_fields()->AddVarint(4, value);
1273 goto handle_unusual;
1275 if (input->ExpectTag(40))
goto parse_ignore;
1283 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1284 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1288 goto handle_unusual;
1290 if (input->ExpectTag(50))
goto parse_operations;
1298 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1299 input, add_operations()));
1301 goto handle_unusual;
1303 if (input->ExpectTag(50))
goto parse_operations;
1304 if (input->ExpectTag(58))
goto parse_rename;
1312 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1313 input, mutable_rename()));
1315 goto handle_unusual;
1317 if (input->ExpectTag(66))
goto parse_alter_keys_onoff;
1324 parse_alter_keys_onoff:
1325 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1326 input, mutable_alter_keys_onoff()));
1328 goto handle_unusual;
1330 if (input->ExpectAtEnd())
goto success;
1337 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1338 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1341 DO_(::google::protobuf::internal::WireFormat::SkipField(
1342 input, tag, mutable_unknown_fields()));
1356 void AlterTable::SerializeWithCachedSizes(
1357 ::google::protobuf::io::CodedOutputStream* output)
const {
1360 if (has_catalog()) {
1361 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1362 this->catalog().data(), this->catalog().length(),
1363 ::google::protobuf::internal::WireFormat::SERIALIZE,
1365 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1366 1, this->catalog(), output);
1371 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1372 this->schema().data(), this->schema().length(),
1373 ::google::protobuf::internal::WireFormat::SERIALIZE,
1375 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1376 2, this->schema(), output);
1381 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1382 this->name().data(), this->name().length(),
1383 ::google::protobuf::internal::WireFormat::SERIALIZE,
1385 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1386 3, this->name(), output);
1390 if (has_build_method()) {
1391 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1392 4, this->build_method(), output);
1397 ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->ignore(), output);
1401 for (
int i = 0; i < this->operations_size(); i++) {
1402 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1403 6, this->operations(i), output);
1408 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1409 7, this->rename(), output);
1413 if (has_alter_keys_onoff()) {
1414 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1415 8, this->alter_keys_onoff(), output);
1418 if (!unknown_fields().empty()) {
1419 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1420 unknown_fields(), output);
1425 ::google::protobuf::uint8* AlterTable::SerializeWithCachedSizesToArray(
1426 ::google::protobuf::uint8* target)
const {
1429 if (has_catalog()) {
1430 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1431 this->catalog().data(), this->catalog().length(),
1432 ::google::protobuf::internal::WireFormat::SERIALIZE,
1435 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1436 1, this->catalog(), target);
1441 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1442 this->schema().data(), this->schema().length(),
1443 ::google::protobuf::internal::WireFormat::SERIALIZE,
1446 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1447 2, this->schema(), target);
1452 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1453 this->name().data(), this->name().length(),
1454 ::google::protobuf::internal::WireFormat::SERIALIZE,
1457 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1458 3, this->name(), target);
1462 if (has_build_method()) {
1463 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1464 4, this->build_method(), target);
1469 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->ignore(), target);
1473 for (
int i = 0; i < this->operations_size(); i++) {
1474 target = ::google::protobuf::internal::WireFormatLite::
1475 WriteMessageNoVirtualToArray(
1476 6, this->operations(i), target);
1481 target = ::google::protobuf::internal::WireFormatLite::
1482 WriteMessageNoVirtualToArray(
1483 7, this->rename(), target);
1487 if (has_alter_keys_onoff()) {
1488 target = ::google::protobuf::internal::WireFormatLite::
1489 WriteMessageNoVirtualToArray(
1490 8, this->alter_keys_onoff(), target);
1493 if (!unknown_fields().empty()) {
1494 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1495 unknown_fields(), target);
1501 int AlterTable::ByteSize()
const {
1504 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1506 if (has_catalog()) {
1508 ::google::protobuf::internal::WireFormatLite::StringSize(
1515 ::google::protobuf::internal::WireFormatLite::StringSize(
1522 ::google::protobuf::internal::WireFormatLite::StringSize(
1527 if (has_build_method()) {
1529 ::google::protobuf::internal::WireFormatLite::EnumSize(this->build_method());
1534 total_size += 1 + 1;
1540 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1545 if (has_alter_keys_onoff()) {
1547 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1548 this->alter_keys_onoff());
1553 total_size += 1 * this->operations_size();
1554 for (
int i = 0; i < this->operations_size(); i++) {
1556 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1557 this->operations(i));
1560 if (!unknown_fields().empty()) {
1562 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1565 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1566 _cached_size_ = total_size;
1567 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1571 void AlterTable::MergeFrom(const ::google::protobuf::Message& from) {
1572 GOOGLE_CHECK_NE(&from,
this);
1573 const AlterTable* source =
1574 ::google::protobuf::internal::dynamic_cast_if_available<const AlterTable*>(
1576 if (source == NULL) {
1577 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
1583 void AlterTable::MergeFrom(
const AlterTable& from) {
1584 GOOGLE_CHECK_NE(&from,
this);
1585 operations_.MergeFrom(from.operations_);
1586 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1587 if (from.has_catalog()) {
1588 set_catalog(from.catalog());
1590 if (from.has_schema()) {
1591 set_schema(from.schema());
1593 if (from.has_name()) {
1594 set_name(from.name());
1596 if (from.has_build_method()) {
1597 set_build_method(from.build_method());
1599 if (from.has_ignore()) {
1600 set_ignore(from.ignore());
1602 if (from.has_rename()) {
1603 mutable_rename()->::drizzled::message::AlterTable_RenameTable::MergeFrom(from.rename());
1605 if (from.has_alter_keys_onoff()) {
1606 mutable_alter_keys_onoff()->::drizzled::message::AlterTable_AlterKeysOnOff::MergeFrom(from.alter_keys_onoff());
1609 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1612 void AlterTable::CopyFrom(const ::google::protobuf::Message& from) {
1613 if (&from ==
this)
return;
1618 void AlterTable::CopyFrom(
const AlterTable& from) {
1619 if (&from ==
this)
return;
1624 bool AlterTable::IsInitialized()
const {
1625 if ((_has_bits_[0] & 0x0000001e) != 0x0000001e)
return false;
1627 if (!::google::protobuf::internal::AllAreInitialized(this->operations()))
return false;
1629 if (!this->rename().IsInitialized())
return false;
1631 if (has_alter_keys_onoff()) {
1632 if (!this->alter_keys_onoff().IsInitialized())
return false;
1637 void AlterTable::Swap(AlterTable* other) {
1638 if (other !=
this) {
1639 std::swap(catalog_, other->catalog_);
1640 std::swap(schema_, other->schema_);
1641 std::swap(name_, other->name_);
1642 std::swap(build_method_, other->build_method_);
1643 std::swap(ignore_, other->ignore_);
1644 operations_.Swap(&other->operations_);
1645 std::swap(rename_, other->rename_);
1646 std::swap(alter_keys_onoff_, other->alter_keys_onoff_);
1647 std::swap(_has_bits_[0], other->_has_bits_[0]);
1648 _unknown_fields_.Swap(&other->_unknown_fields_);
1649 std::swap(_cached_size_, other->_cached_size_);
1653 ::google::protobuf::Metadata AlterTable::GetMetadata()
const {
1654 protobuf_AssignDescriptorsOnce();
1655 ::google::protobuf::Metadata metadata;
1656 metadata.descriptor = AlterTable_descriptor_;
1657 metadata.reflection = AlterTable_reflection_;
TODO: Rename this file - func.h is stupid.