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() {
264 void AlterTable_AlterTableOperation::InitAsDefaultInstance() {
267 AlterTable_AlterTableOperation::AlterTable_AlterTableOperation(
const AlterTable_AlterTableOperation& from)
268 : ::google::protobuf::Message() {
273 void AlterTable_AlterTableOperation::SharedCtor() {
276 drop_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
277 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
280 AlterTable_AlterTableOperation::~AlterTable_AlterTableOperation() {
284 void AlterTable_AlterTableOperation::SharedDtor() {
285 if (drop_name_ != &::google::protobuf::internal::kEmptyString) {
288 if (
this != default_instance_) {
292 void AlterTable_AlterTableOperation::SetCachedSize(
int size)
const {
293 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
294 _cached_size_ = size;
295 GOOGLE_SAFE_CONCURRENT_WRITES_END();
297 const ::google::protobuf::Descriptor* AlterTable_AlterTableOperation::descriptor() {
298 protobuf_AssignDescriptorsOnce();
299 return AlterTable_AlterTableOperation_descriptor_;
302 const AlterTable_AlterTableOperation& AlterTable_AlterTableOperation::default_instance() {
303 if (default_instance_ == NULL) protobuf_AddDesc_alter_5ftable_2eproto();
304 return *default_instance_;
307 AlterTable_AlterTableOperation* AlterTable_AlterTableOperation::default_instance_ = NULL;
309 AlterTable_AlterTableOperation* AlterTable_AlterTableOperation::New()
const {
310 return new AlterTable_AlterTableOperation;
313 void AlterTable_AlterTableOperation::Clear() {
314 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
316 if (has_drop_name()) {
317 if (drop_name_ != &::google::protobuf::internal::kEmptyString) {
322 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
323 mutable_unknown_fields()->Clear();
326 bool AlterTable_AlterTableOperation::MergePartialFromCodedStream(
327 ::google::protobuf::io::CodedInputStream* input) {
328 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
329 ::google::protobuf::uint32 tag;
330 while ((tag = input->ReadTag()) != 0) {
331 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
334 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
335 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
337 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
338 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
340 if (::drizzled::message::AlterTable_AlterTableOperation_Operation_IsValid(value)) {
341 set_operation(static_cast< ::drizzled::message::AlterTable_AlterTableOperation_Operation >(value));
343 mutable_unknown_fields()->AddVarint(1, value);
346 goto handle_uninterpreted;
348 if (input->ExpectTag(18))
goto parse_drop_name;
354 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
355 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
357 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
358 input, this->mutable_drop_name()));
359 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
360 this->drop_name().data(), this->drop_name().length(),
361 ::google::protobuf::internal::WireFormat::PARSE);
363 goto handle_uninterpreted;
365 if (input->ExpectAtEnd())
return true;
370 handle_uninterpreted:
371 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
372 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
375 DO_(::google::protobuf::internal::WireFormat::SkipField(
376 input, tag, mutable_unknown_fields()));
385 void AlterTable_AlterTableOperation::SerializeWithCachedSizes(
386 ::google::protobuf::io::CodedOutputStream* output)
const {
388 if (has_operation()) {
389 ::google::protobuf::internal::WireFormatLite::WriteEnum(
390 1, this->operation(), output);
394 if (has_drop_name()) {
395 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
396 this->drop_name().data(), this->drop_name().length(),
397 ::google::protobuf::internal::WireFormat::SERIALIZE);
398 ::google::protobuf::internal::WireFormatLite::WriteString(
399 2, this->drop_name(), output);
402 if (!unknown_fields().empty()) {
403 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
404 unknown_fields(), output);
408 ::google::protobuf::uint8* AlterTable_AlterTableOperation::SerializeWithCachedSizesToArray(
409 ::google::protobuf::uint8* target)
const {
411 if (has_operation()) {
412 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
413 1, this->operation(), target);
417 if (has_drop_name()) {
418 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
419 this->drop_name().data(), this->drop_name().length(),
420 ::google::protobuf::internal::WireFormat::SERIALIZE);
422 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
423 2, this->drop_name(), target);
426 if (!unknown_fields().empty()) {
427 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
428 unknown_fields(), target);
433 int AlterTable_AlterTableOperation::ByteSize()
const {
436 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
438 if (has_operation()) {
440 ::google::protobuf::internal::WireFormatLite::EnumSize(this->operation());
444 if (has_drop_name()) {
446 ::google::protobuf::internal::WireFormatLite::StringSize(
451 if (!unknown_fields().empty()) {
453 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
456 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
457 _cached_size_ = total_size;
458 GOOGLE_SAFE_CONCURRENT_WRITES_END();
462 void AlterTable_AlterTableOperation::MergeFrom(const ::google::protobuf::Message& from) {
463 GOOGLE_CHECK_NE(&from,
this);
464 const AlterTable_AlterTableOperation* source =
465 ::google::protobuf::internal::dynamic_cast_if_available<const AlterTable_AlterTableOperation*>(
467 if (source == NULL) {
468 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
474 void AlterTable_AlterTableOperation::MergeFrom(
const AlterTable_AlterTableOperation& from) {
475 GOOGLE_CHECK_NE(&from,
this);
476 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
477 if (from.has_operation()) {
478 set_operation(from.operation());
480 if (from.has_drop_name()) {
481 set_drop_name(from.drop_name());
484 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
487 void AlterTable_AlterTableOperation::CopyFrom(const ::google::protobuf::Message& from) {
488 if (&from ==
this)
return;
493 void AlterTable_AlterTableOperation::CopyFrom(
const AlterTable_AlterTableOperation& from) {
494 if (&from ==
this)
return;
499 bool AlterTable_AlterTableOperation::IsInitialized()
const {
500 if ((_has_bits_[0] & 0x00000001) != 0x00000001)
return false;
505 void AlterTable_AlterTableOperation::Swap(AlterTable_AlterTableOperation* other) {
507 std::swap(operation_, other->operation_);
508 std::swap(drop_name_, other->drop_name_);
509 std::swap(_has_bits_[0], other->_has_bits_[0]);
510 _unknown_fields_.Swap(&other->_unknown_fields_);
511 std::swap(_cached_size_, other->_cached_size_);
515 ::google::protobuf::Metadata AlterTable_AlterTableOperation::GetMetadata()
const {
516 protobuf_AssignDescriptorsOnce();
517 ::google::protobuf::Metadata metadata;
518 metadata.descriptor = AlterTable_AlterTableOperation_descriptor_;
519 metadata.reflection = AlterTable_AlterTableOperation_reflection_;
527 const int AlterTable_RenameTable::kToSchemaFieldNumber;
528 const int AlterTable_RenameTable::kToNameFieldNumber;
531 AlterTable_RenameTable::AlterTable_RenameTable()
532 : ::google::protobuf::Message() {
536 void AlterTable_RenameTable::InitAsDefaultInstance() {
539 AlterTable_RenameTable::AlterTable_RenameTable(
const AlterTable_RenameTable& from)
540 : ::google::protobuf::Message() {
545 void AlterTable_RenameTable::SharedCtor() {
547 to_schema_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
548 to_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
549 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
552 AlterTable_RenameTable::~AlterTable_RenameTable() {
556 void AlterTable_RenameTable::SharedDtor() {
557 if (to_schema_ != &::google::protobuf::internal::kEmptyString) {
560 if (to_name_ != &::google::protobuf::internal::kEmptyString) {
563 if (
this != default_instance_) {
567 void AlterTable_RenameTable::SetCachedSize(
int size)
const {
568 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
569 _cached_size_ = size;
570 GOOGLE_SAFE_CONCURRENT_WRITES_END();
572 const ::google::protobuf::Descriptor* AlterTable_RenameTable::descriptor() {
573 protobuf_AssignDescriptorsOnce();
574 return AlterTable_RenameTable_descriptor_;
577 const AlterTable_RenameTable& AlterTable_RenameTable::default_instance() {
578 if (default_instance_ == NULL) protobuf_AddDesc_alter_5ftable_2eproto();
579 return *default_instance_;
582 AlterTable_RenameTable* AlterTable_RenameTable::default_instance_ = NULL;
584 AlterTable_RenameTable* AlterTable_RenameTable::New()
const {
585 return new AlterTable_RenameTable;
588 void AlterTable_RenameTable::Clear() {
589 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
590 if (has_to_schema()) {
591 if (to_schema_ != &::google::protobuf::internal::kEmptyString) {
596 if (to_name_ != &::google::protobuf::internal::kEmptyString) {
601 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
602 mutable_unknown_fields()->Clear();
605 bool AlterTable_RenameTable::MergePartialFromCodedStream(
606 ::google::protobuf::io::CodedInputStream* input) {
607 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
608 ::google::protobuf::uint32 tag;
609 while ((tag = input->ReadTag()) != 0) {
610 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
613 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
614 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
615 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
616 input, this->mutable_to_schema()));
617 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
618 this->to_schema().data(), this->to_schema().length(),
619 ::google::protobuf::internal::WireFormat::PARSE);
621 goto handle_uninterpreted;
623 if (input->ExpectTag(18))
goto parse_to_name;
629 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
630 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
632 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
633 input, this->mutable_to_name()));
634 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
635 this->to_name().data(), this->to_name().length(),
636 ::google::protobuf::internal::WireFormat::PARSE);
638 goto handle_uninterpreted;
640 if (input->ExpectAtEnd())
return true;
645 handle_uninterpreted:
646 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
647 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
650 DO_(::google::protobuf::internal::WireFormat::SkipField(
651 input, tag, mutable_unknown_fields()));
660 void AlterTable_RenameTable::SerializeWithCachedSizes(
661 ::google::protobuf::io::CodedOutputStream* output)
const {
663 if (has_to_schema()) {
664 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
665 this->to_schema().data(), this->to_schema().length(),
666 ::google::protobuf::internal::WireFormat::SERIALIZE);
667 ::google::protobuf::internal::WireFormatLite::WriteString(
668 1, this->to_schema(), output);
673 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
674 this->to_name().data(), this->to_name().length(),
675 ::google::protobuf::internal::WireFormat::SERIALIZE);
676 ::google::protobuf::internal::WireFormatLite::WriteString(
677 2, this->to_name(), output);
680 if (!unknown_fields().empty()) {
681 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
682 unknown_fields(), output);
686 ::google::protobuf::uint8* AlterTable_RenameTable::SerializeWithCachedSizesToArray(
687 ::google::protobuf::uint8* target)
const {
689 if (has_to_schema()) {
690 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
691 this->to_schema().data(), this->to_schema().length(),
692 ::google::protobuf::internal::WireFormat::SERIALIZE);
694 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
695 1, this->to_schema(), target);
700 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
701 this->to_name().data(), this->to_name().length(),
702 ::google::protobuf::internal::WireFormat::SERIALIZE);
704 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
705 2, this->to_name(), target);
708 if (!unknown_fields().empty()) {
709 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
710 unknown_fields(), target);
715 int AlterTable_RenameTable::ByteSize()
const {
718 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
720 if (has_to_schema()) {
722 ::google::protobuf::internal::WireFormatLite::StringSize(
729 ::google::protobuf::internal::WireFormatLite::StringSize(
734 if (!unknown_fields().empty()) {
736 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
739 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
740 _cached_size_ = total_size;
741 GOOGLE_SAFE_CONCURRENT_WRITES_END();
745 void AlterTable_RenameTable::MergeFrom(const ::google::protobuf::Message& from) {
746 GOOGLE_CHECK_NE(&from,
this);
747 const AlterTable_RenameTable* source =
748 ::google::protobuf::internal::dynamic_cast_if_available<const AlterTable_RenameTable*>(
750 if (source == NULL) {
751 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
757 void AlterTable_RenameTable::MergeFrom(
const AlterTable_RenameTable& from) {
758 GOOGLE_CHECK_NE(&from,
this);
759 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
760 if (from.has_to_schema()) {
761 set_to_schema(from.to_schema());
763 if (from.has_to_name()) {
764 set_to_name(from.to_name());
767 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
770 void AlterTable_RenameTable::CopyFrom(const ::google::protobuf::Message& from) {
771 if (&from ==
this)
return;
776 void AlterTable_RenameTable::CopyFrom(
const AlterTable_RenameTable& from) {
777 if (&from ==
this)
return;
782 bool AlterTable_RenameTable::IsInitialized()
const {
783 if ((_has_bits_[0] & 0x00000003) != 0x00000003)
return false;
788 void AlterTable_RenameTable::Swap(AlterTable_RenameTable* other) {
790 std::swap(to_schema_, other->to_schema_);
791 std::swap(to_name_, other->to_name_);
792 std::swap(_has_bits_[0], other->_has_bits_[0]);
793 _unknown_fields_.Swap(&other->_unknown_fields_);
794 std::swap(_cached_size_, other->_cached_size_);
798 ::google::protobuf::Metadata AlterTable_RenameTable::GetMetadata()
const {
799 protobuf_AssignDescriptorsOnce();
800 ::google::protobuf::Metadata metadata;
801 metadata.descriptor = AlterTable_RenameTable_descriptor_;
802 metadata.reflection = AlterTable_RenameTable_reflection_;
810 const int AlterTable_AlterKeysOnOff::kEnableFieldNumber;
813 AlterTable_AlterKeysOnOff::AlterTable_AlterKeysOnOff()
814 : ::google::protobuf::Message() {
818 void AlterTable_AlterKeysOnOff::InitAsDefaultInstance() {
821 AlterTable_AlterKeysOnOff::AlterTable_AlterKeysOnOff(
const AlterTable_AlterKeysOnOff& from)
822 : ::google::protobuf::Message() {
827 void AlterTable_AlterKeysOnOff::SharedCtor() {
830 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
833 AlterTable_AlterKeysOnOff::~AlterTable_AlterKeysOnOff() {
837 void AlterTable_AlterKeysOnOff::SharedDtor() {
838 if (
this != default_instance_) {
842 void AlterTable_AlterKeysOnOff::SetCachedSize(
int size)
const {
843 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
844 _cached_size_ = size;
845 GOOGLE_SAFE_CONCURRENT_WRITES_END();
847 const ::google::protobuf::Descriptor* AlterTable_AlterKeysOnOff::descriptor() {
848 protobuf_AssignDescriptorsOnce();
849 return AlterTable_AlterKeysOnOff_descriptor_;
852 const AlterTable_AlterKeysOnOff& AlterTable_AlterKeysOnOff::default_instance() {
853 if (default_instance_ == NULL) protobuf_AddDesc_alter_5ftable_2eproto();
854 return *default_instance_;
857 AlterTable_AlterKeysOnOff* AlterTable_AlterKeysOnOff::default_instance_ = NULL;
859 AlterTable_AlterKeysOnOff* AlterTable_AlterKeysOnOff::New()
const {
860 return new AlterTable_AlterKeysOnOff;
863 void AlterTable_AlterKeysOnOff::Clear() {
864 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
867 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
868 mutable_unknown_fields()->Clear();
871 bool AlterTable_AlterKeysOnOff::MergePartialFromCodedStream(
872 ::google::protobuf::io::CodedInputStream* input) {
873 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
874 ::google::protobuf::uint32 tag;
875 while ((tag = input->ReadTag()) != 0) {
876 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
879 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
880 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
881 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
882 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
886 goto handle_uninterpreted;
888 if (input->ExpectAtEnd())
return true;
893 handle_uninterpreted:
894 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
895 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
898 DO_(::google::protobuf::internal::WireFormat::SkipField(
899 input, tag, mutable_unknown_fields()));
908 void AlterTable_AlterKeysOnOff::SerializeWithCachedSizes(
909 ::google::protobuf::io::CodedOutputStream* output)
const {
912 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->enable(), output);
915 if (!unknown_fields().empty()) {
916 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
917 unknown_fields(), output);
921 ::google::protobuf::uint8* AlterTable_AlterKeysOnOff::SerializeWithCachedSizesToArray(
922 ::google::protobuf::uint8* target)
const {
925 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->enable(), target);
928 if (!unknown_fields().empty()) {
929 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
930 unknown_fields(), target);
935 int AlterTable_AlterKeysOnOff::ByteSize()
const {
938 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
945 if (!unknown_fields().empty()) {
947 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
950 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
951 _cached_size_ = total_size;
952 GOOGLE_SAFE_CONCURRENT_WRITES_END();
956 void AlterTable_AlterKeysOnOff::MergeFrom(const ::google::protobuf::Message& from) {
957 GOOGLE_CHECK_NE(&from,
this);
958 const AlterTable_AlterKeysOnOff* source =
959 ::google::protobuf::internal::dynamic_cast_if_available<const AlterTable_AlterKeysOnOff*>(
961 if (source == NULL) {
962 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
968 void AlterTable_AlterKeysOnOff::MergeFrom(
const AlterTable_AlterKeysOnOff& from) {
969 GOOGLE_CHECK_NE(&from,
this);
970 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
971 if (from.has_enable()) {
972 set_enable(from.enable());
975 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
978 void AlterTable_AlterKeysOnOff::CopyFrom(const ::google::protobuf::Message& from) {
979 if (&from ==
this)
return;
984 void AlterTable_AlterKeysOnOff::CopyFrom(
const AlterTable_AlterKeysOnOff& from) {
985 if (&from ==
this)
return;
990 bool AlterTable_AlterKeysOnOff::IsInitialized()
const {
991 if ((_has_bits_[0] & 0x00000001) != 0x00000001)
return false;
996 void AlterTable_AlterKeysOnOff::Swap(AlterTable_AlterKeysOnOff* other) {
998 std::swap(enable_, other->enable_);
999 std::swap(_has_bits_[0], other->_has_bits_[0]);
1000 _unknown_fields_.Swap(&other->_unknown_fields_);
1001 std::swap(_cached_size_, other->_cached_size_);
1005 ::google::protobuf::Metadata AlterTable_AlterKeysOnOff::GetMetadata()
const {
1006 protobuf_AssignDescriptorsOnce();
1007 ::google::protobuf::Metadata metadata;
1008 metadata.descriptor = AlterTable_AlterKeysOnOff_descriptor_;
1009 metadata.reflection = AlterTable_AlterKeysOnOff_reflection_;
1017 const int AlterTable::kCatalogFieldNumber;
1018 const int AlterTable::kSchemaFieldNumber;
1019 const int AlterTable::kNameFieldNumber;
1020 const int AlterTable::kBuildMethodFieldNumber;
1021 const int AlterTable::kIgnoreFieldNumber;
1022 const int AlterTable::kOperationsFieldNumber;
1023 const int AlterTable::kRenameFieldNumber;
1024 const int AlterTable::kAlterKeysOnoffFieldNumber;
1027 AlterTable::AlterTable()
1028 : ::google::protobuf::Message() {
1032 void AlterTable::InitAsDefaultInstance() {
1037 AlterTable::AlterTable(
const AlterTable& from)
1038 : ::google::protobuf::Message() {
1043 void AlterTable::SharedCtor() {
1045 catalog_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
1046 schema_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
1047 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
1051 alter_keys_onoff_ = NULL;
1052 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1055 AlterTable::~AlterTable() {
1059 void AlterTable::SharedDtor() {
1060 if (catalog_ != &::google::protobuf::internal::kEmptyString) {
1063 if (schema_ != &::google::protobuf::internal::kEmptyString) {
1066 if (name_ != &::google::protobuf::internal::kEmptyString) {
1069 if (
this != default_instance_) {
1071 delete alter_keys_onoff_;
1075 void AlterTable::SetCachedSize(
int size)
const {
1076 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1077 _cached_size_ = size;
1078 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1080 const ::google::protobuf::Descriptor* AlterTable::descriptor() {
1081 protobuf_AssignDescriptorsOnce();
1082 return AlterTable_descriptor_;
1085 const AlterTable& AlterTable::default_instance() {
1086 if (default_instance_ == NULL) protobuf_AddDesc_alter_5ftable_2eproto();
1087 return *default_instance_;
1090 AlterTable* AlterTable::default_instance_ = NULL;
1092 AlterTable* AlterTable::New()
const {
1093 return new AlterTable;
1096 void AlterTable::Clear() {
1097 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1098 if (has_catalog()) {
1099 if (catalog_ != &::google::protobuf::internal::kEmptyString) {
1104 if (schema_ != &::google::protobuf::internal::kEmptyString) {
1109 if (name_ != &::google::protobuf::internal::kEmptyString) {
1116 if (rename_ != NULL) rename_->::drizzled::message::AlterTable_RenameTable::Clear();
1118 if (has_alter_keys_onoff()) {
1119 if (alter_keys_onoff_ != NULL) alter_keys_onoff_->::drizzled::message::AlterTable_AlterKeysOnOff::Clear();
1122 operations_.Clear();
1123 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1124 mutable_unknown_fields()->Clear();
1127 bool AlterTable::MergePartialFromCodedStream(
1128 ::google::protobuf::io::CodedInputStream* input) {
1129 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1130 ::google::protobuf::uint32 tag;
1131 while ((tag = input->ReadTag()) != 0) {
1132 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1135 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1136 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1137 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1138 input, this->mutable_catalog()));
1139 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1140 this->catalog().data(), this->catalog().length(),
1141 ::google::protobuf::internal::WireFormat::PARSE);
1143 goto handle_uninterpreted;
1145 if (input->ExpectTag(18))
goto parse_schema;
1151 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1152 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1154 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1155 input, this->mutable_schema()));
1156 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1157 this->schema().data(), this->schema().length(),
1158 ::google::protobuf::internal::WireFormat::PARSE);
1160 goto handle_uninterpreted;
1162 if (input->ExpectTag(26))
goto parse_name;
1168 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1169 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1171 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1172 input, this->mutable_name()));
1173 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1174 this->name().data(), this->name().length(),
1175 ::google::protobuf::internal::WireFormat::PARSE);
1177 goto handle_uninterpreted;
1179 if (input->ExpectTag(32))
goto parse_build_method;
1185 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1186 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1189 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1190 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1192 if (::drizzled::message::AlterTable_BuildMethod_IsValid(value)) {
1193 set_build_method(static_cast< ::drizzled::message::AlterTable_BuildMethod >(value));
1195 mutable_unknown_fields()->AddVarint(4, value);
1198 goto handle_uninterpreted;
1200 if (input->ExpectTag(40))
goto parse_ignore;
1206 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1207 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1209 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1210 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1214 goto handle_uninterpreted;
1216 if (input->ExpectTag(50))
goto parse_operations;
1222 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1223 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1225 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1226 input, add_operations()));
1228 goto handle_uninterpreted;
1230 if (input->ExpectTag(50))
goto parse_operations;
1231 if (input->ExpectTag(58))
goto parse_rename;
1237 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1238 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1240 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1241 input, mutable_rename()));
1243 goto handle_uninterpreted;
1245 if (input->ExpectTag(66))
goto parse_alter_keys_onoff;
1251 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1252 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1253 parse_alter_keys_onoff:
1254 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1255 input, mutable_alter_keys_onoff()));
1257 goto handle_uninterpreted;
1259 if (input->ExpectAtEnd())
return true;
1264 handle_uninterpreted:
1265 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1266 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1269 DO_(::google::protobuf::internal::WireFormat::SkipField(
1270 input, tag, mutable_unknown_fields()));
1279 void AlterTable::SerializeWithCachedSizes(
1280 ::google::protobuf::io::CodedOutputStream* output)
const {
1282 if (has_catalog()) {
1283 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1284 this->catalog().data(), this->catalog().length(),
1285 ::google::protobuf::internal::WireFormat::SERIALIZE);
1286 ::google::protobuf::internal::WireFormatLite::WriteString(
1287 1, this->catalog(), output);
1292 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1293 this->schema().data(), this->schema().length(),
1294 ::google::protobuf::internal::WireFormat::SERIALIZE);
1295 ::google::protobuf::internal::WireFormatLite::WriteString(
1296 2, this->schema(), output);
1301 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1302 this->name().data(), this->name().length(),
1303 ::google::protobuf::internal::WireFormat::SERIALIZE);
1304 ::google::protobuf::internal::WireFormatLite::WriteString(
1305 3, this->name(), output);
1309 if (has_build_method()) {
1310 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1311 4, this->build_method(), output);
1316 ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->ignore(), output);
1320 for (
int i = 0; i < this->operations_size(); i++) {
1321 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1322 6, this->operations(i), output);
1327 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1328 7, this->rename(), output);
1332 if (has_alter_keys_onoff()) {
1333 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1334 8, this->alter_keys_onoff(), output);
1337 if (!unknown_fields().empty()) {
1338 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1339 unknown_fields(), output);
1343 ::google::protobuf::uint8* AlterTable::SerializeWithCachedSizesToArray(
1344 ::google::protobuf::uint8* target)
const {
1346 if (has_catalog()) {
1347 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1348 this->catalog().data(), this->catalog().length(),
1349 ::google::protobuf::internal::WireFormat::SERIALIZE);
1351 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1352 1, this->catalog(), target);
1357 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1358 this->schema().data(), this->schema().length(),
1359 ::google::protobuf::internal::WireFormat::SERIALIZE);
1361 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1362 2, this->schema(), target);
1367 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1368 this->name().data(), this->name().length(),
1369 ::google::protobuf::internal::WireFormat::SERIALIZE);
1371 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1372 3, this->name(), target);
1376 if (has_build_method()) {
1377 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1378 4, this->build_method(), target);
1383 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->ignore(), target);
1387 for (
int i = 0; i < this->operations_size(); i++) {
1388 target = ::google::protobuf::internal::WireFormatLite::
1389 WriteMessageNoVirtualToArray(
1390 6, this->operations(i), target);
1395 target = ::google::protobuf::internal::WireFormatLite::
1396 WriteMessageNoVirtualToArray(
1397 7, this->rename(), target);
1401 if (has_alter_keys_onoff()) {
1402 target = ::google::protobuf::internal::WireFormatLite::
1403 WriteMessageNoVirtualToArray(
1404 8, this->alter_keys_onoff(), target);
1407 if (!unknown_fields().empty()) {
1408 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1409 unknown_fields(), target);
1414 int AlterTable::ByteSize()
const {
1417 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1419 if (has_catalog()) {
1421 ::google::protobuf::internal::WireFormatLite::StringSize(
1428 ::google::protobuf::internal::WireFormatLite::StringSize(
1435 ::google::protobuf::internal::WireFormatLite::StringSize(
1440 if (has_build_method()) {
1442 ::google::protobuf::internal::WireFormatLite::EnumSize(this->build_method());
1447 total_size += 1 + 1;
1453 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1458 if (has_alter_keys_onoff()) {
1460 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1461 this->alter_keys_onoff());
1466 total_size += 1 * this->operations_size();
1467 for (
int i = 0; i < this->operations_size(); i++) {
1469 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1470 this->operations(i));
1473 if (!unknown_fields().empty()) {
1475 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1478 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1479 _cached_size_ = total_size;
1480 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1484 void AlterTable::MergeFrom(const ::google::protobuf::Message& from) {
1485 GOOGLE_CHECK_NE(&from,
this);
1486 const AlterTable* source =
1487 ::google::protobuf::internal::dynamic_cast_if_available<const AlterTable*>(
1489 if (source == NULL) {
1490 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
1496 void AlterTable::MergeFrom(
const AlterTable& from) {
1497 GOOGLE_CHECK_NE(&from,
this);
1498 operations_.MergeFrom(from.operations_);
1499 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1500 if (from.has_catalog()) {
1501 set_catalog(from.catalog());
1503 if (from.has_schema()) {
1504 set_schema(from.schema());
1506 if (from.has_name()) {
1507 set_name(from.name());
1509 if (from.has_build_method()) {
1510 set_build_method(from.build_method());
1512 if (from.has_ignore()) {
1513 set_ignore(from.ignore());
1515 if (from.has_rename()) {
1516 mutable_rename()->::drizzled::message::AlterTable_RenameTable::MergeFrom(from.rename());
1518 if (from.has_alter_keys_onoff()) {
1519 mutable_alter_keys_onoff()->::drizzled::message::AlterTable_AlterKeysOnOff::MergeFrom(from.alter_keys_onoff());
1522 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1525 void AlterTable::CopyFrom(const ::google::protobuf::Message& from) {
1526 if (&from ==
this)
return;
1531 void AlterTable::CopyFrom(
const AlterTable& from) {
1532 if (&from ==
this)
return;
1537 bool AlterTable::IsInitialized()
const {
1538 if ((_has_bits_[0] & 0x0000001e) != 0x0000001e)
return false;
1540 for (
int i = 0; i < operations_size(); i++) {
1541 if (!this->operations(i).IsInitialized())
return false;
1544 if (!this->rename().IsInitialized())
return false;
1546 if (has_alter_keys_onoff()) {
1547 if (!this->alter_keys_onoff().IsInitialized())
return false;
1552 void AlterTable::Swap(AlterTable* other) {
1553 if (other !=
this) {
1554 std::swap(catalog_, other->catalog_);
1555 std::swap(schema_, other->schema_);
1556 std::swap(name_, other->name_);
1557 std::swap(build_method_, other->build_method_);
1558 std::swap(ignore_, other->ignore_);
1559 operations_.Swap(&other->operations_);
1560 std::swap(rename_, other->rename_);
1561 std::swap(alter_keys_onoff_, other->alter_keys_onoff_);
1562 std::swap(_has_bits_[0], other->_has_bits_[0]);
1563 _unknown_fields_.Swap(&other->_unknown_fields_);
1564 std::swap(_cached_size_, other->_cached_size_);
1568 ::google::protobuf::Metadata AlterTable::GetMetadata()
const {
1569 protobuf_AssignDescriptorsOnce();
1570 ::google::protobuf::Metadata metadata;
1571 metadata.descriptor = AlterTable_descriptor_;
1572 metadata.reflection = AlterTable_reflection_;