00001
00002
00003 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
00004 #include "alter_table.pb.h"
00005
00006 #include <algorithm>
00007
00008 #include <google/protobuf/stubs/once.h>
00009 #include <google/protobuf/io/coded_stream.h>
00010 #include <google/protobuf/wire_format_lite_inl.h>
00011 #include <google/protobuf/descriptor.h>
00012 #include <google/protobuf/reflection_ops.h>
00013 #include <google/protobuf/wire_format.h>
00014
00015
00016 namespace drizzled {
00017 namespace message {
00018
00019 namespace {
00020
00021 const ::google::protobuf::Descriptor* AlterTable_descriptor_ = NULL;
00022 const ::google::protobuf::internal::GeneratedMessageReflection*
00023 AlterTable_reflection_ = NULL;
00024 const ::google::protobuf::Descriptor* AlterTable_AlterTableOperation_descriptor_ = NULL;
00025 const ::google::protobuf::internal::GeneratedMessageReflection*
00026 AlterTable_AlterTableOperation_reflection_ = NULL;
00027 const ::google::protobuf::EnumDescriptor* AlterTable_AlterTableOperation_Operation_descriptor_ = NULL;
00028 const ::google::protobuf::Descriptor* AlterTable_RenameTable_descriptor_ = NULL;
00029 const ::google::protobuf::internal::GeneratedMessageReflection*
00030 AlterTable_RenameTable_reflection_ = NULL;
00031 const ::google::protobuf::Descriptor* AlterTable_AlterKeysOnOff_descriptor_ = NULL;
00032 const ::google::protobuf::internal::GeneratedMessageReflection*
00033 AlterTable_AlterKeysOnOff_reflection_ = NULL;
00034 const ::google::protobuf::EnumDescriptor* AlterTable_BuildMethod_descriptor_ = NULL;
00035
00036 }
00037
00038
00039 void protobuf_AssignDesc_alter_5ftable_2eproto() {
00040 protobuf_AddDesc_alter_5ftable_2eproto();
00041 const ::google::protobuf::FileDescriptor* file =
00042 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
00043 "alter_table.proto");
00044 GOOGLE_CHECK(file != NULL);
00045 AlterTable_descriptor_ = file->message_type(0);
00046 static const int AlterTable_offsets_[8] = {
00047 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, catalog_),
00048 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, schema_),
00049 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, name_),
00050 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, build_method_),
00051 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, ignore_),
00052 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, operations_),
00053 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, rename_),
00054 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, alter_keys_onoff_),
00055 };
00056 AlterTable_reflection_ =
00057 new ::google::protobuf::internal::GeneratedMessageReflection(
00058 AlterTable_descriptor_,
00059 AlterTable::default_instance_,
00060 AlterTable_offsets_,
00061 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, _has_bits_[0]),
00062 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, _unknown_fields_),
00063 -1,
00064 ::google::protobuf::DescriptorPool::generated_pool(),
00065 ::google::protobuf::MessageFactory::generated_factory(),
00066 sizeof(AlterTable));
00067 AlterTable_AlterTableOperation_descriptor_ = AlterTable_descriptor_->nested_type(0);
00068 static const int AlterTable_AlterTableOperation_offsets_[2] = {
00069 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterTableOperation, operation_),
00070 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterTableOperation, drop_name_),
00071 };
00072 AlterTable_AlterTableOperation_reflection_ =
00073 new ::google::protobuf::internal::GeneratedMessageReflection(
00074 AlterTable_AlterTableOperation_descriptor_,
00075 AlterTable_AlterTableOperation::default_instance_,
00076 AlterTable_AlterTableOperation_offsets_,
00077 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterTableOperation, _has_bits_[0]),
00078 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterTableOperation, _unknown_fields_),
00079 -1,
00080 ::google::protobuf::DescriptorPool::generated_pool(),
00081 ::google::protobuf::MessageFactory::generated_factory(),
00082 sizeof(AlterTable_AlterTableOperation));
00083 AlterTable_AlterTableOperation_Operation_descriptor_ = AlterTable_AlterTableOperation_descriptor_->enum_type(0);
00084 AlterTable_RenameTable_descriptor_ = AlterTable_descriptor_->nested_type(1);
00085 static const int AlterTable_RenameTable_offsets_[2] = {
00086 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_RenameTable, to_schema_),
00087 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_RenameTable, to_name_),
00088 };
00089 AlterTable_RenameTable_reflection_ =
00090 new ::google::protobuf::internal::GeneratedMessageReflection(
00091 AlterTable_RenameTable_descriptor_,
00092 AlterTable_RenameTable::default_instance_,
00093 AlterTable_RenameTable_offsets_,
00094 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_RenameTable, _has_bits_[0]),
00095 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_RenameTable, _unknown_fields_),
00096 -1,
00097 ::google::protobuf::DescriptorPool::generated_pool(),
00098 ::google::protobuf::MessageFactory::generated_factory(),
00099 sizeof(AlterTable_RenameTable));
00100 AlterTable_AlterKeysOnOff_descriptor_ = AlterTable_descriptor_->nested_type(2);
00101 static const int AlterTable_AlterKeysOnOff_offsets_[1] = {
00102 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterKeysOnOff, enable_),
00103 };
00104 AlterTable_AlterKeysOnOff_reflection_ =
00105 new ::google::protobuf::internal::GeneratedMessageReflection(
00106 AlterTable_AlterKeysOnOff_descriptor_,
00107 AlterTable_AlterKeysOnOff::default_instance_,
00108 AlterTable_AlterKeysOnOff_offsets_,
00109 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterKeysOnOff, _has_bits_[0]),
00110 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterKeysOnOff, _unknown_fields_),
00111 -1,
00112 ::google::protobuf::DescriptorPool::generated_pool(),
00113 ::google::protobuf::MessageFactory::generated_factory(),
00114 sizeof(AlterTable_AlterKeysOnOff));
00115 AlterTable_BuildMethod_descriptor_ = AlterTable_descriptor_->enum_type(0);
00116 }
00117
00118 namespace {
00119
00120 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
00121 inline void protobuf_AssignDescriptorsOnce() {
00122 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
00123 &protobuf_AssignDesc_alter_5ftable_2eproto);
00124 }
00125
00126 void protobuf_RegisterTypes(const ::std::string&) {
00127 protobuf_AssignDescriptorsOnce();
00128 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00129 AlterTable_descriptor_, &AlterTable::default_instance());
00130 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00131 AlterTable_AlterTableOperation_descriptor_, &AlterTable_AlterTableOperation::default_instance());
00132 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00133 AlterTable_RenameTable_descriptor_, &AlterTable_RenameTable::default_instance());
00134 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00135 AlterTable_AlterKeysOnOff_descriptor_, &AlterTable_AlterKeysOnOff::default_instance());
00136 }
00137
00138 }
00139
00140 void protobuf_ShutdownFile_alter_5ftable_2eproto() {
00141 delete AlterTable::default_instance_;
00142 delete AlterTable_reflection_;
00143 delete AlterTable_AlterTableOperation::default_instance_;
00144 delete AlterTable_AlterTableOperation_reflection_;
00145 delete AlterTable_RenameTable::default_instance_;
00146 delete AlterTable_RenameTable_reflection_;
00147 delete AlterTable_AlterKeysOnOff::default_instance_;
00148 delete AlterTable_AlterKeysOnOff_reflection_;
00149 }
00150
00151 void protobuf_AddDesc_alter_5ftable_2eproto() {
00152 static bool already_here = false;
00153 if (already_here) return;
00154 already_here = true;
00155 GOOGLE_PROTOBUF_VERIFY_VERSION;
00156
00157 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
00158 "\n\021alter_table.proto\022\020drizzled.message\"\357\005"
00159 "\n\nAlterTable\022\017\n\007catalog\030\001 \001(\t\022\016\n\006schema\030"
00160 "\002 \002(\t\022\014\n\004name\030\003 \002(\t\022M\n\014build_method\030\004 \002("
00161 "\0162(.drizzled.message.AlterTable.BuildMet"
00162 "hod:\rBUILD_DEFAULT\022\025\n\006ignore\030\005 \002(\010:\005fals"
00163 "e\022D\n\noperations\030\006 \003(\01320.drizzled.message"
00164 ".AlterTable.AlterTableOperation\0228\n\006renam"
00165 "e\030\007 \001(\0132(.drizzled.message.AlterTable.Re"
00166 "nameTable\022E\n\020alter_keys_onoff\030\010 \001(\0132+.dr"
00167 "izzled.message.AlterTable.AlterKeysOnOff"
00168 "\032\350\001\n\023AlterTableOperation\022M\n\toperation\030\001 "
00169 "\002(\0162:.drizzled.message.AlterTable.AlterT"
00170 "ableOperation.Operation\022\021\n\tdrop_name\030\002 \001"
00171 "(\t\"o\n\tOperation\022\026\n\022DISCARD_TABLESPACE\020\000\022"
00172 "\025\n\021IMPORT_TABLESPACE\020\001\022\014\n\010DROP_KEY\020\002\022\017\n\013"
00173 "DROP_COLUMN\020\003\022\024\n\020DROP_FOREIGN_KEY\020\004\0321\n\013R"
00174 "enameTable\022\021\n\tto_schema\030\001 \002(\t\022\017\n\007to_name"
00175 "\030\002 \002(\t\032 \n\016AlterKeysOnOff\022\016\n\006enable\030\001 \002(\010"
00176 "\"E\n\013BuildMethod\022\021\n\rBUILD_DEFAULT\020\000\022\020\n\014BU"
00177 "ILD_ONLINE\020\001\022\021\n\rBUILD_OFFLINE\020\002B+\n\024org.d"
00178 "rizzle.messagesB\021AlterTableMessageH\001", 836);
00179 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
00180 "alter_table.proto", &protobuf_RegisterTypes);
00181 AlterTable::default_instance_ = new AlterTable();
00182 AlterTable_AlterTableOperation::default_instance_ = new AlterTable_AlterTableOperation();
00183 AlterTable_RenameTable::default_instance_ = new AlterTable_RenameTable();
00184 AlterTable_AlterKeysOnOff::default_instance_ = new AlterTable_AlterKeysOnOff();
00185 AlterTable::default_instance_->InitAsDefaultInstance();
00186 AlterTable_AlterTableOperation::default_instance_->InitAsDefaultInstance();
00187 AlterTable_RenameTable::default_instance_->InitAsDefaultInstance();
00188 AlterTable_AlterKeysOnOff::default_instance_->InitAsDefaultInstance();
00189 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_alter_5ftable_2eproto);
00190 }
00191
00192
00193 struct StaticDescriptorInitializer_alter_5ftable_2eproto {
00194 StaticDescriptorInitializer_alter_5ftable_2eproto() {
00195 protobuf_AddDesc_alter_5ftable_2eproto();
00196 }
00197 } static_descriptor_initializer_alter_5ftable_2eproto_;
00198
00199
00200
00201
00202 const ::google::protobuf::EnumDescriptor* AlterTable_BuildMethod_descriptor() {
00203 protobuf_AssignDescriptorsOnce();
00204 return AlterTable_BuildMethod_descriptor_;
00205 }
00206 bool AlterTable_BuildMethod_IsValid(int value) {
00207 switch(value) {
00208 case 0:
00209 case 1:
00210 case 2:
00211 return true;
00212 default:
00213 return false;
00214 }
00215 }
00216
00217 #ifndef _MSC_VER
00218 const AlterTable_BuildMethod AlterTable::BUILD_DEFAULT;
00219 const AlterTable_BuildMethod AlterTable::BUILD_ONLINE;
00220 const AlterTable_BuildMethod AlterTable::BUILD_OFFLINE;
00221 const AlterTable_BuildMethod AlterTable::BuildMethod_MIN;
00222 const AlterTable_BuildMethod AlterTable::BuildMethod_MAX;
00223 const int AlterTable::BuildMethod_ARRAYSIZE;
00224 #endif // _MSC_VER
00225 const ::google::protobuf::EnumDescriptor* AlterTable_AlterTableOperation_Operation_descriptor() {
00226 protobuf_AssignDescriptorsOnce();
00227 return AlterTable_AlterTableOperation_Operation_descriptor_;
00228 }
00229 bool AlterTable_AlterTableOperation_Operation_IsValid(int value) {
00230 switch(value) {
00231 case 0:
00232 case 1:
00233 case 2:
00234 case 3:
00235 case 4:
00236 return true;
00237 default:
00238 return false;
00239 }
00240 }
00241
00242 #ifndef _MSC_VER
00243 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::DISCARD_TABLESPACE;
00244 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::IMPORT_TABLESPACE;
00245 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::DROP_KEY;
00246 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::DROP_COLUMN;
00247 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::DROP_FOREIGN_KEY;
00248 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::Operation_MIN;
00249 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::Operation_MAX;
00250 const int AlterTable_AlterTableOperation::Operation_ARRAYSIZE;
00251 #endif // _MSC_VER
00252 #ifndef _MSC_VER
00253 const int AlterTable_AlterTableOperation::kOperationFieldNumber;
00254 const int AlterTable_AlterTableOperation::kDropNameFieldNumber;
00255 #endif // !_MSC_VER
00256
00257 AlterTable_AlterTableOperation::AlterTable_AlterTableOperation()
00258 : ::google::protobuf::Message() {
00259 SharedCtor();
00260 }
00261
00262 void AlterTable_AlterTableOperation::InitAsDefaultInstance() {
00263 }
00264
00265 AlterTable_AlterTableOperation::AlterTable_AlterTableOperation(const AlterTable_AlterTableOperation& from)
00266 : ::google::protobuf::Message() {
00267 SharedCtor();
00268 MergeFrom(from);
00269 }
00270
00271 void AlterTable_AlterTableOperation::SharedCtor() {
00272 _cached_size_ = 0;
00273 operation_ = 0;
00274 drop_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00275 ::memset(_has_bits_, 0, sizeof(_has_bits_));
00276 }
00277
00278 AlterTable_AlterTableOperation::~AlterTable_AlterTableOperation() {
00279 SharedDtor();
00280 }
00281
00282 void AlterTable_AlterTableOperation::SharedDtor() {
00283 if (drop_name_ != &::google::protobuf::internal::kEmptyString) {
00284 delete drop_name_;
00285 }
00286 if (this != default_instance_) {
00287 }
00288 }
00289
00290 void AlterTable_AlterTableOperation::SetCachedSize(int size) const {
00291 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
00292 _cached_size_ = size;
00293 GOOGLE_SAFE_CONCURRENT_WRITES_END();
00294 }
00295 const ::google::protobuf::Descriptor* AlterTable_AlterTableOperation::descriptor() {
00296 protobuf_AssignDescriptorsOnce();
00297 return AlterTable_AlterTableOperation_descriptor_;
00298 }
00299
00300 const AlterTable_AlterTableOperation& AlterTable_AlterTableOperation::default_instance() {
00301 if (default_instance_ == NULL) protobuf_AddDesc_alter_5ftable_2eproto(); return *default_instance_;
00302 }
00303
00304 AlterTable_AlterTableOperation* AlterTable_AlterTableOperation::default_instance_ = NULL;
00305
00306 AlterTable_AlterTableOperation* AlterTable_AlterTableOperation::New() const {
00307 return new AlterTable_AlterTableOperation;
00308 }
00309
00310 void AlterTable_AlterTableOperation::Clear() {
00311 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00312 operation_ = 0;
00313 if (has_drop_name()) {
00314 if (drop_name_ != &::google::protobuf::internal::kEmptyString) {
00315 drop_name_->clear();
00316 }
00317 }
00318 }
00319 ::memset(_has_bits_, 0, sizeof(_has_bits_));
00320 mutable_unknown_fields()->Clear();
00321 }
00322
00323 bool AlterTable_AlterTableOperation::MergePartialFromCodedStream(
00324 ::google::protobuf::io::CodedInputStream* input) {
00325 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
00326 ::google::protobuf::uint32 tag;
00327 while ((tag = input->ReadTag()) != 0) {
00328 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
00329
00330 case 1: {
00331 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00332 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
00333 int value;
00334 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
00335 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
00336 input, &value)));
00337 if (::drizzled::message::AlterTable_AlterTableOperation_Operation_IsValid(value)) {
00338 set_operation(static_cast< ::drizzled::message::AlterTable_AlterTableOperation_Operation >(value));
00339 } else {
00340 mutable_unknown_fields()->AddVarint(1, value);
00341 }
00342 } else {
00343 goto handle_uninterpreted;
00344 }
00345 if (input->ExpectTag(18)) goto parse_drop_name;
00346 break;
00347 }
00348
00349
00350 case 2: {
00351 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00352 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00353 parse_drop_name:
00354 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
00355 input, this->mutable_drop_name()));
00356 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00357 this->drop_name().data(), this->drop_name().length(),
00358 ::google::protobuf::internal::WireFormat::PARSE);
00359 } else {
00360 goto handle_uninterpreted;
00361 }
00362 if (input->ExpectAtEnd()) return true;
00363 break;
00364 }
00365
00366 default: {
00367 handle_uninterpreted:
00368 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00369 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
00370 return true;
00371 }
00372 DO_(::google::protobuf::internal::WireFormat::SkipField(
00373 input, tag, mutable_unknown_fields()));
00374 break;
00375 }
00376 }
00377 }
00378 return true;
00379 #undef DO_
00380 }
00381
00382 void AlterTable_AlterTableOperation::SerializeWithCachedSizes(
00383 ::google::protobuf::io::CodedOutputStream* output) const {
00384
00385 if (has_operation()) {
00386 ::google::protobuf::internal::WireFormatLite::WriteEnum(
00387 1, this->operation(), output);
00388 }
00389
00390
00391 if (has_drop_name()) {
00392 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00393 this->drop_name().data(), this->drop_name().length(),
00394 ::google::protobuf::internal::WireFormat::SERIALIZE);
00395 ::google::protobuf::internal::WireFormatLite::WriteString(
00396 2, this->drop_name(), output);
00397 }
00398
00399 if (!unknown_fields().empty()) {
00400 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
00401 unknown_fields(), output);
00402 }
00403 }
00404
00405 ::google::protobuf::uint8* AlterTable_AlterTableOperation::SerializeWithCachedSizesToArray(
00406 ::google::protobuf::uint8* target) const {
00407
00408 if (has_operation()) {
00409 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
00410 1, this->operation(), target);
00411 }
00412
00413
00414 if (has_drop_name()) {
00415 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00416 this->drop_name().data(), this->drop_name().length(),
00417 ::google::protobuf::internal::WireFormat::SERIALIZE);
00418 target =
00419 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
00420 2, this->drop_name(), target);
00421 }
00422
00423 if (!unknown_fields().empty()) {
00424 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
00425 unknown_fields(), target);
00426 }
00427 return target;
00428 }
00429
00430 int AlterTable_AlterTableOperation::ByteSize() const {
00431 int total_size = 0;
00432
00433 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00434
00435 if (has_operation()) {
00436 total_size += 1 +
00437 ::google::protobuf::internal::WireFormatLite::EnumSize(this->operation());
00438 }
00439
00440
00441 if (has_drop_name()) {
00442 total_size += 1 +
00443 ::google::protobuf::internal::WireFormatLite::StringSize(
00444 this->drop_name());
00445 }
00446
00447 }
00448 if (!unknown_fields().empty()) {
00449 total_size +=
00450 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
00451 unknown_fields());
00452 }
00453 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
00454 _cached_size_ = total_size;
00455 GOOGLE_SAFE_CONCURRENT_WRITES_END();
00456 return total_size;
00457 }
00458
00459 void AlterTable_AlterTableOperation::MergeFrom(const ::google::protobuf::Message& from) {
00460 GOOGLE_CHECK_NE(&from, this);
00461 const AlterTable_AlterTableOperation* source =
00462 ::google::protobuf::internal::dynamic_cast_if_available<const AlterTable_AlterTableOperation*>(
00463 &from);
00464 if (source == NULL) {
00465 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
00466 } else {
00467 MergeFrom(*source);
00468 }
00469 }
00470
00471 void AlterTable_AlterTableOperation::MergeFrom(const AlterTable_AlterTableOperation& from) {
00472 GOOGLE_CHECK_NE(&from, this);
00473 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00474 if (from.has_operation()) {
00475 set_operation(from.operation());
00476 }
00477 if (from.has_drop_name()) {
00478 set_drop_name(from.drop_name());
00479 }
00480 }
00481 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
00482 }
00483
00484 void AlterTable_AlterTableOperation::CopyFrom(const ::google::protobuf::Message& from) {
00485 if (&from == this) return;
00486 Clear();
00487 MergeFrom(from);
00488 }
00489
00490 void AlterTable_AlterTableOperation::CopyFrom(const AlterTable_AlterTableOperation& from) {
00491 if (&from == this) return;
00492 Clear();
00493 MergeFrom(from);
00494 }
00495
00496 bool AlterTable_AlterTableOperation::IsInitialized() const {
00497 if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
00498
00499 return true;
00500 }
00501
00502 void AlterTable_AlterTableOperation::Swap(AlterTable_AlterTableOperation* other) {
00503 if (other != this) {
00504 std::swap(operation_, other->operation_);
00505 std::swap(drop_name_, other->drop_name_);
00506 std::swap(_has_bits_[0], other->_has_bits_[0]);
00507 _unknown_fields_.Swap(&other->_unknown_fields_);
00508 std::swap(_cached_size_, other->_cached_size_);
00509 }
00510 }
00511
00512 ::google::protobuf::Metadata AlterTable_AlterTableOperation::GetMetadata() const {
00513 protobuf_AssignDescriptorsOnce();
00514 ::google::protobuf::Metadata metadata;
00515 metadata.descriptor = AlterTable_AlterTableOperation_descriptor_;
00516 metadata.reflection = AlterTable_AlterTableOperation_reflection_;
00517 return metadata;
00518 }
00519
00520
00521
00522
00523 #ifndef _MSC_VER
00524 const int AlterTable_RenameTable::kToSchemaFieldNumber;
00525 const int AlterTable_RenameTable::kToNameFieldNumber;
00526 #endif // !_MSC_VER
00527
00528 AlterTable_RenameTable::AlterTable_RenameTable()
00529 : ::google::protobuf::Message() {
00530 SharedCtor();
00531 }
00532
00533 void AlterTable_RenameTable::InitAsDefaultInstance() {
00534 }
00535
00536 AlterTable_RenameTable::AlterTable_RenameTable(const AlterTable_RenameTable& from)
00537 : ::google::protobuf::Message() {
00538 SharedCtor();
00539 MergeFrom(from);
00540 }
00541
00542 void AlterTable_RenameTable::SharedCtor() {
00543 _cached_size_ = 0;
00544 to_schema_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00545 to_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00546 ::memset(_has_bits_, 0, sizeof(_has_bits_));
00547 }
00548
00549 AlterTable_RenameTable::~AlterTable_RenameTable() {
00550 SharedDtor();
00551 }
00552
00553 void AlterTable_RenameTable::SharedDtor() {
00554 if (to_schema_ != &::google::protobuf::internal::kEmptyString) {
00555 delete to_schema_;
00556 }
00557 if (to_name_ != &::google::protobuf::internal::kEmptyString) {
00558 delete to_name_;
00559 }
00560 if (this != default_instance_) {
00561 }
00562 }
00563
00564 void AlterTable_RenameTable::SetCachedSize(int size) const {
00565 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
00566 _cached_size_ = size;
00567 GOOGLE_SAFE_CONCURRENT_WRITES_END();
00568 }
00569 const ::google::protobuf::Descriptor* AlterTable_RenameTable::descriptor() {
00570 protobuf_AssignDescriptorsOnce();
00571 return AlterTable_RenameTable_descriptor_;
00572 }
00573
00574 const AlterTable_RenameTable& AlterTable_RenameTable::default_instance() {
00575 if (default_instance_ == NULL) protobuf_AddDesc_alter_5ftable_2eproto(); return *default_instance_;
00576 }
00577
00578 AlterTable_RenameTable* AlterTable_RenameTable::default_instance_ = NULL;
00579
00580 AlterTable_RenameTable* AlterTable_RenameTable::New() const {
00581 return new AlterTable_RenameTable;
00582 }
00583
00584 void AlterTable_RenameTable::Clear() {
00585 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00586 if (has_to_schema()) {
00587 if (to_schema_ != &::google::protobuf::internal::kEmptyString) {
00588 to_schema_->clear();
00589 }
00590 }
00591 if (has_to_name()) {
00592 if (to_name_ != &::google::protobuf::internal::kEmptyString) {
00593 to_name_->clear();
00594 }
00595 }
00596 }
00597 ::memset(_has_bits_, 0, sizeof(_has_bits_));
00598 mutable_unknown_fields()->Clear();
00599 }
00600
00601 bool AlterTable_RenameTable::MergePartialFromCodedStream(
00602 ::google::protobuf::io::CodedInputStream* input) {
00603 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
00604 ::google::protobuf::uint32 tag;
00605 while ((tag = input->ReadTag()) != 0) {
00606 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
00607
00608 case 1: {
00609 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00610 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00611 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
00612 input, this->mutable_to_schema()));
00613 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00614 this->to_schema().data(), this->to_schema().length(),
00615 ::google::protobuf::internal::WireFormat::PARSE);
00616 } else {
00617 goto handle_uninterpreted;
00618 }
00619 if (input->ExpectTag(18)) goto parse_to_name;
00620 break;
00621 }
00622
00623
00624 case 2: {
00625 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00626 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00627 parse_to_name:
00628 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
00629 input, this->mutable_to_name()));
00630 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00631 this->to_name().data(), this->to_name().length(),
00632 ::google::protobuf::internal::WireFormat::PARSE);
00633 } else {
00634 goto handle_uninterpreted;
00635 }
00636 if (input->ExpectAtEnd()) return true;
00637 break;
00638 }
00639
00640 default: {
00641 handle_uninterpreted:
00642 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00643 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
00644 return true;
00645 }
00646 DO_(::google::protobuf::internal::WireFormat::SkipField(
00647 input, tag, mutable_unknown_fields()));
00648 break;
00649 }
00650 }
00651 }
00652 return true;
00653 #undef DO_
00654 }
00655
00656 void AlterTable_RenameTable::SerializeWithCachedSizes(
00657 ::google::protobuf::io::CodedOutputStream* output) const {
00658
00659 if (has_to_schema()) {
00660 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00661 this->to_schema().data(), this->to_schema().length(),
00662 ::google::protobuf::internal::WireFormat::SERIALIZE);
00663 ::google::protobuf::internal::WireFormatLite::WriteString(
00664 1, this->to_schema(), output);
00665 }
00666
00667
00668 if (has_to_name()) {
00669 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00670 this->to_name().data(), this->to_name().length(),
00671 ::google::protobuf::internal::WireFormat::SERIALIZE);
00672 ::google::protobuf::internal::WireFormatLite::WriteString(
00673 2, this->to_name(), output);
00674 }
00675
00676 if (!unknown_fields().empty()) {
00677 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
00678 unknown_fields(), output);
00679 }
00680 }
00681
00682 ::google::protobuf::uint8* AlterTable_RenameTable::SerializeWithCachedSizesToArray(
00683 ::google::protobuf::uint8* target) const {
00684
00685 if (has_to_schema()) {
00686 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00687 this->to_schema().data(), this->to_schema().length(),
00688 ::google::protobuf::internal::WireFormat::SERIALIZE);
00689 target =
00690 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
00691 1, this->to_schema(), target);
00692 }
00693
00694
00695 if (has_to_name()) {
00696 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00697 this->to_name().data(), this->to_name().length(),
00698 ::google::protobuf::internal::WireFormat::SERIALIZE);
00699 target =
00700 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
00701 2, this->to_name(), target);
00702 }
00703
00704 if (!unknown_fields().empty()) {
00705 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
00706 unknown_fields(), target);
00707 }
00708 return target;
00709 }
00710
00711 int AlterTable_RenameTable::ByteSize() const {
00712 int total_size = 0;
00713
00714 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00715
00716 if (has_to_schema()) {
00717 total_size += 1 +
00718 ::google::protobuf::internal::WireFormatLite::StringSize(
00719 this->to_schema());
00720 }
00721
00722
00723 if (has_to_name()) {
00724 total_size += 1 +
00725 ::google::protobuf::internal::WireFormatLite::StringSize(
00726 this->to_name());
00727 }
00728
00729 }
00730 if (!unknown_fields().empty()) {
00731 total_size +=
00732 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
00733 unknown_fields());
00734 }
00735 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
00736 _cached_size_ = total_size;
00737 GOOGLE_SAFE_CONCURRENT_WRITES_END();
00738 return total_size;
00739 }
00740
00741 void AlterTable_RenameTable::MergeFrom(const ::google::protobuf::Message& from) {
00742 GOOGLE_CHECK_NE(&from, this);
00743 const AlterTable_RenameTable* source =
00744 ::google::protobuf::internal::dynamic_cast_if_available<const AlterTable_RenameTable*>(
00745 &from);
00746 if (source == NULL) {
00747 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
00748 } else {
00749 MergeFrom(*source);
00750 }
00751 }
00752
00753 void AlterTable_RenameTable::MergeFrom(const AlterTable_RenameTable& from) {
00754 GOOGLE_CHECK_NE(&from, this);
00755 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00756 if (from.has_to_schema()) {
00757 set_to_schema(from.to_schema());
00758 }
00759 if (from.has_to_name()) {
00760 set_to_name(from.to_name());
00761 }
00762 }
00763 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
00764 }
00765
00766 void AlterTable_RenameTable::CopyFrom(const ::google::protobuf::Message& from) {
00767 if (&from == this) return;
00768 Clear();
00769 MergeFrom(from);
00770 }
00771
00772 void AlterTable_RenameTable::CopyFrom(const AlterTable_RenameTable& from) {
00773 if (&from == this) return;
00774 Clear();
00775 MergeFrom(from);
00776 }
00777
00778 bool AlterTable_RenameTable::IsInitialized() const {
00779 if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
00780
00781 return true;
00782 }
00783
00784 void AlterTable_RenameTable::Swap(AlterTable_RenameTable* other) {
00785 if (other != this) {
00786 std::swap(to_schema_, other->to_schema_);
00787 std::swap(to_name_, other->to_name_);
00788 std::swap(_has_bits_[0], other->_has_bits_[0]);
00789 _unknown_fields_.Swap(&other->_unknown_fields_);
00790 std::swap(_cached_size_, other->_cached_size_);
00791 }
00792 }
00793
00794 ::google::protobuf::Metadata AlterTable_RenameTable::GetMetadata() const {
00795 protobuf_AssignDescriptorsOnce();
00796 ::google::protobuf::Metadata metadata;
00797 metadata.descriptor = AlterTable_RenameTable_descriptor_;
00798 metadata.reflection = AlterTable_RenameTable_reflection_;
00799 return metadata;
00800 }
00801
00802
00803
00804
00805 #ifndef _MSC_VER
00806 const int AlterTable_AlterKeysOnOff::kEnableFieldNumber;
00807 #endif // !_MSC_VER
00808
00809 AlterTable_AlterKeysOnOff::AlterTable_AlterKeysOnOff()
00810 : ::google::protobuf::Message() {
00811 SharedCtor();
00812 }
00813
00814 void AlterTable_AlterKeysOnOff::InitAsDefaultInstance() {
00815 }
00816
00817 AlterTable_AlterKeysOnOff::AlterTable_AlterKeysOnOff(const AlterTable_AlterKeysOnOff& from)
00818 : ::google::protobuf::Message() {
00819 SharedCtor();
00820 MergeFrom(from);
00821 }
00822
00823 void AlterTable_AlterKeysOnOff::SharedCtor() {
00824 _cached_size_ = 0;
00825 enable_ = false;
00826 ::memset(_has_bits_, 0, sizeof(_has_bits_));
00827 }
00828
00829 AlterTable_AlterKeysOnOff::~AlterTable_AlterKeysOnOff() {
00830 SharedDtor();
00831 }
00832
00833 void AlterTable_AlterKeysOnOff::SharedDtor() {
00834 if (this != default_instance_) {
00835 }
00836 }
00837
00838 void AlterTable_AlterKeysOnOff::SetCachedSize(int size) const {
00839 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
00840 _cached_size_ = size;
00841 GOOGLE_SAFE_CONCURRENT_WRITES_END();
00842 }
00843 const ::google::protobuf::Descriptor* AlterTable_AlterKeysOnOff::descriptor() {
00844 protobuf_AssignDescriptorsOnce();
00845 return AlterTable_AlterKeysOnOff_descriptor_;
00846 }
00847
00848 const AlterTable_AlterKeysOnOff& AlterTable_AlterKeysOnOff::default_instance() {
00849 if (default_instance_ == NULL) protobuf_AddDesc_alter_5ftable_2eproto(); return *default_instance_;
00850 }
00851
00852 AlterTable_AlterKeysOnOff* AlterTable_AlterKeysOnOff::default_instance_ = NULL;
00853
00854 AlterTable_AlterKeysOnOff* AlterTable_AlterKeysOnOff::New() const {
00855 return new AlterTable_AlterKeysOnOff;
00856 }
00857
00858 void AlterTable_AlterKeysOnOff::Clear() {
00859 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00860 enable_ = false;
00861 }
00862 ::memset(_has_bits_, 0, sizeof(_has_bits_));
00863 mutable_unknown_fields()->Clear();
00864 }
00865
00866 bool AlterTable_AlterKeysOnOff::MergePartialFromCodedStream(
00867 ::google::protobuf::io::CodedInputStream* input) {
00868 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
00869 ::google::protobuf::uint32 tag;
00870 while ((tag = input->ReadTag()) != 0) {
00871 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
00872
00873 case 1: {
00874 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00875 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
00876 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
00877 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
00878 input, &enable_)));
00879 set_has_enable();
00880 } else {
00881 goto handle_uninterpreted;
00882 }
00883 if (input->ExpectAtEnd()) return true;
00884 break;
00885 }
00886
00887 default: {
00888 handle_uninterpreted:
00889 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00890 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
00891 return true;
00892 }
00893 DO_(::google::protobuf::internal::WireFormat::SkipField(
00894 input, tag, mutable_unknown_fields()));
00895 break;
00896 }
00897 }
00898 }
00899 return true;
00900 #undef DO_
00901 }
00902
00903 void AlterTable_AlterKeysOnOff::SerializeWithCachedSizes(
00904 ::google::protobuf::io::CodedOutputStream* output) const {
00905
00906 if (has_enable()) {
00907 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->enable(), output);
00908 }
00909
00910 if (!unknown_fields().empty()) {
00911 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
00912 unknown_fields(), output);
00913 }
00914 }
00915
00916 ::google::protobuf::uint8* AlterTable_AlterKeysOnOff::SerializeWithCachedSizesToArray(
00917 ::google::protobuf::uint8* target) const {
00918
00919 if (has_enable()) {
00920 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->enable(), target);
00921 }
00922
00923 if (!unknown_fields().empty()) {
00924 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
00925 unknown_fields(), target);
00926 }
00927 return target;
00928 }
00929
00930 int AlterTable_AlterKeysOnOff::ByteSize() const {
00931 int total_size = 0;
00932
00933 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00934
00935 if (has_enable()) {
00936 total_size += 1 + 1;
00937 }
00938
00939 }
00940 if (!unknown_fields().empty()) {
00941 total_size +=
00942 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
00943 unknown_fields());
00944 }
00945 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
00946 _cached_size_ = total_size;
00947 GOOGLE_SAFE_CONCURRENT_WRITES_END();
00948 return total_size;
00949 }
00950
00951 void AlterTable_AlterKeysOnOff::MergeFrom(const ::google::protobuf::Message& from) {
00952 GOOGLE_CHECK_NE(&from, this);
00953 const AlterTable_AlterKeysOnOff* source =
00954 ::google::protobuf::internal::dynamic_cast_if_available<const AlterTable_AlterKeysOnOff*>(
00955 &from);
00956 if (source == NULL) {
00957 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
00958 } else {
00959 MergeFrom(*source);
00960 }
00961 }
00962
00963 void AlterTable_AlterKeysOnOff::MergeFrom(const AlterTable_AlterKeysOnOff& from) {
00964 GOOGLE_CHECK_NE(&from, this);
00965 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00966 if (from.has_enable()) {
00967 set_enable(from.enable());
00968 }
00969 }
00970 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
00971 }
00972
00973 void AlterTable_AlterKeysOnOff::CopyFrom(const ::google::protobuf::Message& from) {
00974 if (&from == this) return;
00975 Clear();
00976 MergeFrom(from);
00977 }
00978
00979 void AlterTable_AlterKeysOnOff::CopyFrom(const AlterTable_AlterKeysOnOff& from) {
00980 if (&from == this) return;
00981 Clear();
00982 MergeFrom(from);
00983 }
00984
00985 bool AlterTable_AlterKeysOnOff::IsInitialized() const {
00986 if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
00987
00988 return true;
00989 }
00990
00991 void AlterTable_AlterKeysOnOff::Swap(AlterTable_AlterKeysOnOff* other) {
00992 if (other != this) {
00993 std::swap(enable_, other->enable_);
00994 std::swap(_has_bits_[0], other->_has_bits_[0]);
00995 _unknown_fields_.Swap(&other->_unknown_fields_);
00996 std::swap(_cached_size_, other->_cached_size_);
00997 }
00998 }
00999
01000 ::google::protobuf::Metadata AlterTable_AlterKeysOnOff::GetMetadata() const {
01001 protobuf_AssignDescriptorsOnce();
01002 ::google::protobuf::Metadata metadata;
01003 metadata.descriptor = AlterTable_AlterKeysOnOff_descriptor_;
01004 metadata.reflection = AlterTable_AlterKeysOnOff_reflection_;
01005 return metadata;
01006 }
01007
01008
01009
01010
01011 #ifndef _MSC_VER
01012 const int AlterTable::kCatalogFieldNumber;
01013 const int AlterTable::kSchemaFieldNumber;
01014 const int AlterTable::kNameFieldNumber;
01015 const int AlterTable::kBuildMethodFieldNumber;
01016 const int AlterTable::kIgnoreFieldNumber;
01017 const int AlterTable::kOperationsFieldNumber;
01018 const int AlterTable::kRenameFieldNumber;
01019 const int AlterTable::kAlterKeysOnoffFieldNumber;
01020 #endif // !_MSC_VER
01021
01022 AlterTable::AlterTable()
01023 : ::google::protobuf::Message() {
01024 SharedCtor();
01025 }
01026
01027 void AlterTable::InitAsDefaultInstance() {
01028 rename_ = const_cast< ::drizzled::message::AlterTable_RenameTable*>(&::drizzled::message::AlterTable_RenameTable::default_instance());
01029 alter_keys_onoff_ = const_cast< ::drizzled::message::AlterTable_AlterKeysOnOff*>(&::drizzled::message::AlterTable_AlterKeysOnOff::default_instance());
01030 }
01031
01032 AlterTable::AlterTable(const AlterTable& from)
01033 : ::google::protobuf::Message() {
01034 SharedCtor();
01035 MergeFrom(from);
01036 }
01037
01038 void AlterTable::SharedCtor() {
01039 _cached_size_ = 0;
01040 catalog_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
01041 schema_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
01042 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
01043 build_method_ = 0;
01044 ignore_ = false;
01045 rename_ = NULL;
01046 alter_keys_onoff_ = NULL;
01047 ::memset(_has_bits_, 0, sizeof(_has_bits_));
01048 }
01049
01050 AlterTable::~AlterTable() {
01051 SharedDtor();
01052 }
01053
01054 void AlterTable::SharedDtor() {
01055 if (catalog_ != &::google::protobuf::internal::kEmptyString) {
01056 delete catalog_;
01057 }
01058 if (schema_ != &::google::protobuf::internal::kEmptyString) {
01059 delete schema_;
01060 }
01061 if (name_ != &::google::protobuf::internal::kEmptyString) {
01062 delete name_;
01063 }
01064 if (this != default_instance_) {
01065 delete rename_;
01066 delete alter_keys_onoff_;
01067 }
01068 }
01069
01070 void AlterTable::SetCachedSize(int size) const {
01071 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
01072 _cached_size_ = size;
01073 GOOGLE_SAFE_CONCURRENT_WRITES_END();
01074 }
01075 const ::google::protobuf::Descriptor* AlterTable::descriptor() {
01076 protobuf_AssignDescriptorsOnce();
01077 return AlterTable_descriptor_;
01078 }
01079
01080 const AlterTable& AlterTable::default_instance() {
01081 if (default_instance_ == NULL) protobuf_AddDesc_alter_5ftable_2eproto(); return *default_instance_;
01082 }
01083
01084 AlterTable* AlterTable::default_instance_ = NULL;
01085
01086 AlterTable* AlterTable::New() const {
01087 return new AlterTable;
01088 }
01089
01090 void AlterTable::Clear() {
01091 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
01092 if (has_catalog()) {
01093 if (catalog_ != &::google::protobuf::internal::kEmptyString) {
01094 catalog_->clear();
01095 }
01096 }
01097 if (has_schema()) {
01098 if (schema_ != &::google::protobuf::internal::kEmptyString) {
01099 schema_->clear();
01100 }
01101 }
01102 if (has_name()) {
01103 if (name_ != &::google::protobuf::internal::kEmptyString) {
01104 name_->clear();
01105 }
01106 }
01107 build_method_ = 0;
01108 ignore_ = false;
01109 if (has_rename()) {
01110 if (rename_ != NULL) rename_->::drizzled::message::AlterTable_RenameTable::Clear();
01111 }
01112 if (has_alter_keys_onoff()) {
01113 if (alter_keys_onoff_ != NULL) alter_keys_onoff_->::drizzled::message::AlterTable_AlterKeysOnOff::Clear();
01114 }
01115 }
01116 operations_.Clear();
01117 ::memset(_has_bits_, 0, sizeof(_has_bits_));
01118 mutable_unknown_fields()->Clear();
01119 }
01120
01121 bool AlterTable::MergePartialFromCodedStream(
01122 ::google::protobuf::io::CodedInputStream* input) {
01123 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
01124 ::google::protobuf::uint32 tag;
01125 while ((tag = input->ReadTag()) != 0) {
01126 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
01127
01128 case 1: {
01129 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01130 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
01131 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
01132 input, this->mutable_catalog()));
01133 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01134 this->catalog().data(), this->catalog().length(),
01135 ::google::protobuf::internal::WireFormat::PARSE);
01136 } else {
01137 goto handle_uninterpreted;
01138 }
01139 if (input->ExpectTag(18)) goto parse_schema;
01140 break;
01141 }
01142
01143
01144 case 2: {
01145 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01146 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
01147 parse_schema:
01148 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
01149 input, this->mutable_schema()));
01150 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01151 this->schema().data(), this->schema().length(),
01152 ::google::protobuf::internal::WireFormat::PARSE);
01153 } else {
01154 goto handle_uninterpreted;
01155 }
01156 if (input->ExpectTag(26)) goto parse_name;
01157 break;
01158 }
01159
01160
01161 case 3: {
01162 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01163 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
01164 parse_name:
01165 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
01166 input, this->mutable_name()));
01167 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01168 this->name().data(), this->name().length(),
01169 ::google::protobuf::internal::WireFormat::PARSE);
01170 } else {
01171 goto handle_uninterpreted;
01172 }
01173 if (input->ExpectTag(32)) goto parse_build_method;
01174 break;
01175 }
01176
01177
01178 case 4: {
01179 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01180 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
01181 parse_build_method:
01182 int value;
01183 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
01184 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
01185 input, &value)));
01186 if (::drizzled::message::AlterTable_BuildMethod_IsValid(value)) {
01187 set_build_method(static_cast< ::drizzled::message::AlterTable_BuildMethod >(value));
01188 } else {
01189 mutable_unknown_fields()->AddVarint(4, value);
01190 }
01191 } else {
01192 goto handle_uninterpreted;
01193 }
01194 if (input->ExpectTag(40)) goto parse_ignore;
01195 break;
01196 }
01197
01198
01199 case 5: {
01200 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01201 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
01202 parse_ignore:
01203 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
01204 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
01205 input, &ignore_)));
01206 set_has_ignore();
01207 } else {
01208 goto handle_uninterpreted;
01209 }
01210 if (input->ExpectTag(50)) goto parse_operations;
01211 break;
01212 }
01213
01214
01215 case 6: {
01216 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01217 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
01218 parse_operations:
01219 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
01220 input, add_operations()));
01221 } else {
01222 goto handle_uninterpreted;
01223 }
01224 if (input->ExpectTag(50)) goto parse_operations;
01225 if (input->ExpectTag(58)) goto parse_rename;
01226 break;
01227 }
01228
01229
01230 case 7: {
01231 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01232 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
01233 parse_rename:
01234 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
01235 input, mutable_rename()));
01236 } else {
01237 goto handle_uninterpreted;
01238 }
01239 if (input->ExpectTag(66)) goto parse_alter_keys_onoff;
01240 break;
01241 }
01242
01243
01244 case 8: {
01245 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01246 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
01247 parse_alter_keys_onoff:
01248 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
01249 input, mutable_alter_keys_onoff()));
01250 } else {
01251 goto handle_uninterpreted;
01252 }
01253 if (input->ExpectAtEnd()) return true;
01254 break;
01255 }
01256
01257 default: {
01258 handle_uninterpreted:
01259 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01260 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
01261 return true;
01262 }
01263 DO_(::google::protobuf::internal::WireFormat::SkipField(
01264 input, tag, mutable_unknown_fields()));
01265 break;
01266 }
01267 }
01268 }
01269 return true;
01270 #undef DO_
01271 }
01272
01273 void AlterTable::SerializeWithCachedSizes(
01274 ::google::protobuf::io::CodedOutputStream* output) const {
01275
01276 if (has_catalog()) {
01277 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01278 this->catalog().data(), this->catalog().length(),
01279 ::google::protobuf::internal::WireFormat::SERIALIZE);
01280 ::google::protobuf::internal::WireFormatLite::WriteString(
01281 1, this->catalog(), output);
01282 }
01283
01284
01285 if (has_schema()) {
01286 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01287 this->schema().data(), this->schema().length(),
01288 ::google::protobuf::internal::WireFormat::SERIALIZE);
01289 ::google::protobuf::internal::WireFormatLite::WriteString(
01290 2, this->schema(), output);
01291 }
01292
01293
01294 if (has_name()) {
01295 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01296 this->name().data(), this->name().length(),
01297 ::google::protobuf::internal::WireFormat::SERIALIZE);
01298 ::google::protobuf::internal::WireFormatLite::WriteString(
01299 3, this->name(), output);
01300 }
01301
01302
01303 if (has_build_method()) {
01304 ::google::protobuf::internal::WireFormatLite::WriteEnum(
01305 4, this->build_method(), output);
01306 }
01307
01308
01309 if (has_ignore()) {
01310 ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->ignore(), output);
01311 }
01312
01313
01314 for (int i = 0; i < this->operations_size(); i++) {
01315 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
01316 6, this->operations(i), output);
01317 }
01318
01319
01320 if (has_rename()) {
01321 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
01322 7, this->rename(), output);
01323 }
01324
01325
01326 if (has_alter_keys_onoff()) {
01327 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
01328 8, this->alter_keys_onoff(), output);
01329 }
01330
01331 if (!unknown_fields().empty()) {
01332 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
01333 unknown_fields(), output);
01334 }
01335 }
01336
01337 ::google::protobuf::uint8* AlterTable::SerializeWithCachedSizesToArray(
01338 ::google::protobuf::uint8* target) const {
01339
01340 if (has_catalog()) {
01341 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01342 this->catalog().data(), this->catalog().length(),
01343 ::google::protobuf::internal::WireFormat::SERIALIZE);
01344 target =
01345 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
01346 1, this->catalog(), target);
01347 }
01348
01349
01350 if (has_schema()) {
01351 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01352 this->schema().data(), this->schema().length(),
01353 ::google::protobuf::internal::WireFormat::SERIALIZE);
01354 target =
01355 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
01356 2, this->schema(), target);
01357 }
01358
01359
01360 if (has_name()) {
01361 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01362 this->name().data(), this->name().length(),
01363 ::google::protobuf::internal::WireFormat::SERIALIZE);
01364 target =
01365 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
01366 3, this->name(), target);
01367 }
01368
01369
01370 if (has_build_method()) {
01371 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
01372 4, this->build_method(), target);
01373 }
01374
01375
01376 if (has_ignore()) {
01377 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->ignore(), target);
01378 }
01379
01380
01381 for (int i = 0; i < this->operations_size(); i++) {
01382 target = ::google::protobuf::internal::WireFormatLite::
01383 WriteMessageNoVirtualToArray(
01384 6, this->operations(i), target);
01385 }
01386
01387
01388 if (has_rename()) {
01389 target = ::google::protobuf::internal::WireFormatLite::
01390 WriteMessageNoVirtualToArray(
01391 7, this->rename(), target);
01392 }
01393
01394
01395 if (has_alter_keys_onoff()) {
01396 target = ::google::protobuf::internal::WireFormatLite::
01397 WriteMessageNoVirtualToArray(
01398 8, this->alter_keys_onoff(), target);
01399 }
01400
01401 if (!unknown_fields().empty()) {
01402 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
01403 unknown_fields(), target);
01404 }
01405 return target;
01406 }
01407
01408 int AlterTable::ByteSize() const {
01409 int total_size = 0;
01410
01411 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
01412
01413 if (has_catalog()) {
01414 total_size += 1 +
01415 ::google::protobuf::internal::WireFormatLite::StringSize(
01416 this->catalog());
01417 }
01418
01419
01420 if (has_schema()) {
01421 total_size += 1 +
01422 ::google::protobuf::internal::WireFormatLite::StringSize(
01423 this->schema());
01424 }
01425
01426
01427 if (has_name()) {
01428 total_size += 1 +
01429 ::google::protobuf::internal::WireFormatLite::StringSize(
01430 this->name());
01431 }
01432
01433
01434 if (has_build_method()) {
01435 total_size += 1 +
01436 ::google::protobuf::internal::WireFormatLite::EnumSize(this->build_method());
01437 }
01438
01439
01440 if (has_ignore()) {
01441 total_size += 1 + 1;
01442 }
01443
01444
01445 if (has_rename()) {
01446 total_size += 1 +
01447 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
01448 this->rename());
01449 }
01450
01451
01452 if (has_alter_keys_onoff()) {
01453 total_size += 1 +
01454 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
01455 this->alter_keys_onoff());
01456 }
01457
01458 }
01459
01460 total_size += 1 * this->operations_size();
01461 for (int i = 0; i < this->operations_size(); i++) {
01462 total_size +=
01463 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
01464 this->operations(i));
01465 }
01466
01467 if (!unknown_fields().empty()) {
01468 total_size +=
01469 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
01470 unknown_fields());
01471 }
01472 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
01473 _cached_size_ = total_size;
01474 GOOGLE_SAFE_CONCURRENT_WRITES_END();
01475 return total_size;
01476 }
01477
01478 void AlterTable::MergeFrom(const ::google::protobuf::Message& from) {
01479 GOOGLE_CHECK_NE(&from, this);
01480 const AlterTable* source =
01481 ::google::protobuf::internal::dynamic_cast_if_available<const AlterTable*>(
01482 &from);
01483 if (source == NULL) {
01484 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
01485 } else {
01486 MergeFrom(*source);
01487 }
01488 }
01489
01490 void AlterTable::MergeFrom(const AlterTable& from) {
01491 GOOGLE_CHECK_NE(&from, this);
01492 operations_.MergeFrom(from.operations_);
01493 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
01494 if (from.has_catalog()) {
01495 set_catalog(from.catalog());
01496 }
01497 if (from.has_schema()) {
01498 set_schema(from.schema());
01499 }
01500 if (from.has_name()) {
01501 set_name(from.name());
01502 }
01503 if (from.has_build_method()) {
01504 set_build_method(from.build_method());
01505 }
01506 if (from.has_ignore()) {
01507 set_ignore(from.ignore());
01508 }
01509 if (from.has_rename()) {
01510 mutable_rename()->::drizzled::message::AlterTable_RenameTable::MergeFrom(from.rename());
01511 }
01512 if (from.has_alter_keys_onoff()) {
01513 mutable_alter_keys_onoff()->::drizzled::message::AlterTable_AlterKeysOnOff::MergeFrom(from.alter_keys_onoff());
01514 }
01515 }
01516 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
01517 }
01518
01519 void AlterTable::CopyFrom(const ::google::protobuf::Message& from) {
01520 if (&from == this) return;
01521 Clear();
01522 MergeFrom(from);
01523 }
01524
01525 void AlterTable::CopyFrom(const AlterTable& from) {
01526 if (&from == this) return;
01527 Clear();
01528 MergeFrom(from);
01529 }
01530
01531 bool AlterTable::IsInitialized() const {
01532 if ((_has_bits_[0] & 0x0000001e) != 0x0000001e) return false;
01533
01534 for (int i = 0; i < operations_size(); i++) {
01535 if (!this->operations(i).IsInitialized()) return false;
01536 }
01537 if (has_rename()) {
01538 if (!this->rename().IsInitialized()) return false;
01539 }
01540 if (has_alter_keys_onoff()) {
01541 if (!this->alter_keys_onoff().IsInitialized()) return false;
01542 }
01543 return true;
01544 }
01545
01546 void AlterTable::Swap(AlterTable* other) {
01547 if (other != this) {
01548 std::swap(catalog_, other->catalog_);
01549 std::swap(schema_, other->schema_);
01550 std::swap(name_, other->name_);
01551 std::swap(build_method_, other->build_method_);
01552 std::swap(ignore_, other->ignore_);
01553 operations_.Swap(&other->operations_);
01554 std::swap(rename_, other->rename_);
01555 std::swap(alter_keys_onoff_, other->alter_keys_onoff_);
01556 std::swap(_has_bits_[0], other->_has_bits_[0]);
01557 _unknown_fields_.Swap(&other->_unknown_fields_);
01558 std::swap(_cached_size_, other->_cached_size_);
01559 }
01560 }
01561
01562 ::google::protobuf::Metadata AlterTable::GetMetadata() const {
01563 protobuf_AssignDescriptorsOnce();
01564 ::google::protobuf::Metadata metadata;
01565 metadata.descriptor = AlterTable_descriptor_;
01566 metadata.reflection = AlterTable_reflection_;
01567 return metadata;
01568 }
01569
01570
01571
01572
01573 }
01574 }
01575
01576