Drizzled Public API Documentation

alter_table.pb.cc
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 
3 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
4 #include "alter_table.pb.h"
5 
6 #include <algorithm>
7 
8 #include <google/protobuf/stubs/once.h>
9 #include <google/protobuf/io/coded_stream.h>
10 #include <google/protobuf/wire_format_lite_inl.h>
11 #include <google/protobuf/descriptor.h>
12 #include <google/protobuf/reflection_ops.h>
13 #include <google/protobuf/wire_format.h>
14 // @@protoc_insertion_point(includes)
15 
16 namespace drizzled {
17 namespace message {
18 
19 namespace {
20 
21 const ::google::protobuf::Descriptor* AlterTable_descriptor_ = NULL;
22 const ::google::protobuf::internal::GeneratedMessageReflection*
23  AlterTable_reflection_ = NULL;
24 const ::google::protobuf::Descriptor* AlterTable_AlterTableOperation_descriptor_ = NULL;
25 const ::google::protobuf::internal::GeneratedMessageReflection*
26  AlterTable_AlterTableOperation_reflection_ = NULL;
27 const ::google::protobuf::EnumDescriptor* AlterTable_AlterTableOperation_Operation_descriptor_ = NULL;
28 const ::google::protobuf::Descriptor* AlterTable_RenameTable_descriptor_ = NULL;
29 const ::google::protobuf::internal::GeneratedMessageReflection*
30  AlterTable_RenameTable_reflection_ = NULL;
31 const ::google::protobuf::Descriptor* AlterTable_AlterKeysOnOff_descriptor_ = NULL;
32 const ::google::protobuf::internal::GeneratedMessageReflection*
33  AlterTable_AlterKeysOnOff_reflection_ = NULL;
34 const ::google::protobuf::EnumDescriptor* AlterTable_BuildMethod_descriptor_ = NULL;
35 
36 } // namespace
37 
38 
39 void protobuf_AssignDesc_alter_5ftable_2eproto() {
40  protobuf_AddDesc_alter_5ftable_2eproto();
41  const ::google::protobuf::FileDescriptor* file =
42  ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
43  "alter_table.proto");
44  GOOGLE_CHECK(file != NULL);
45  AlterTable_descriptor_ = file->message_type(0);
46  static const int AlterTable_offsets_[8] = {
47  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, catalog_),
48  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, schema_),
49  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, name_),
50  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, build_method_),
51  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, ignore_),
52  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, operations_),
53  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, rename_),
54  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, alter_keys_onoff_),
55  };
56  AlterTable_reflection_ =
57  new ::google::protobuf::internal::GeneratedMessageReflection(
58  AlterTable_descriptor_,
59  AlterTable::default_instance_,
60  AlterTable_offsets_,
61  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, _has_bits_[0]),
62  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, _unknown_fields_),
63  -1,
64  ::google::protobuf::DescriptorPool::generated_pool(),
65  ::google::protobuf::MessageFactory::generated_factory(),
66  sizeof(AlterTable));
67  AlterTable_AlterTableOperation_descriptor_ = AlterTable_descriptor_->nested_type(0);
68  static const int AlterTable_AlterTableOperation_offsets_[2] = {
69  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterTableOperation, operation_),
70  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterTableOperation, drop_name_),
71  };
72  AlterTable_AlterTableOperation_reflection_ =
73  new ::google::protobuf::internal::GeneratedMessageReflection(
74  AlterTable_AlterTableOperation_descriptor_,
75  AlterTable_AlterTableOperation::default_instance_,
76  AlterTable_AlterTableOperation_offsets_,
77  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterTableOperation, _has_bits_[0]),
78  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterTableOperation, _unknown_fields_),
79  -1,
80  ::google::protobuf::DescriptorPool::generated_pool(),
81  ::google::protobuf::MessageFactory::generated_factory(),
82  sizeof(AlterTable_AlterTableOperation));
83  AlterTable_AlterTableOperation_Operation_descriptor_ = AlterTable_AlterTableOperation_descriptor_->enum_type(0);
84  AlterTable_RenameTable_descriptor_ = AlterTable_descriptor_->nested_type(1);
85  static const int AlterTable_RenameTable_offsets_[2] = {
86  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_RenameTable, to_schema_),
87  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_RenameTable, to_name_),
88  };
89  AlterTable_RenameTable_reflection_ =
90  new ::google::protobuf::internal::GeneratedMessageReflection(
91  AlterTable_RenameTable_descriptor_,
92  AlterTable_RenameTable::default_instance_,
93  AlterTable_RenameTable_offsets_,
94  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_RenameTable, _has_bits_[0]),
95  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_RenameTable, _unknown_fields_),
96  -1,
97  ::google::protobuf::DescriptorPool::generated_pool(),
98  ::google::protobuf::MessageFactory::generated_factory(),
99  sizeof(AlterTable_RenameTable));
100  AlterTable_AlterKeysOnOff_descriptor_ = AlterTable_descriptor_->nested_type(2);
101  static const int AlterTable_AlterKeysOnOff_offsets_[1] = {
102  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterKeysOnOff, enable_),
103  };
104  AlterTable_AlterKeysOnOff_reflection_ =
105  new ::google::protobuf::internal::GeneratedMessageReflection(
106  AlterTable_AlterKeysOnOff_descriptor_,
107  AlterTable_AlterKeysOnOff::default_instance_,
108  AlterTable_AlterKeysOnOff_offsets_,
109  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterKeysOnOff, _has_bits_[0]),
110  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable_AlterKeysOnOff, _unknown_fields_),
111  -1,
112  ::google::protobuf::DescriptorPool::generated_pool(),
113  ::google::protobuf::MessageFactory::generated_factory(),
114  sizeof(AlterTable_AlterKeysOnOff));
115  AlterTable_BuildMethod_descriptor_ = AlterTable_descriptor_->enum_type(0);
116 }
117 
118 namespace {
119 
120 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
121 inline void protobuf_AssignDescriptorsOnce() {
122  ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
123  &protobuf_AssignDesc_alter_5ftable_2eproto);
124 }
125 
126 void protobuf_RegisterTypes(const ::std::string&) {
127  protobuf_AssignDescriptorsOnce();
128  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
129  AlterTable_descriptor_, &AlterTable::default_instance());
130  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
131  AlterTable_AlterTableOperation_descriptor_, &AlterTable_AlterTableOperation::default_instance());
132  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
133  AlterTable_RenameTable_descriptor_, &AlterTable_RenameTable::default_instance());
134  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
135  AlterTable_AlterKeysOnOff_descriptor_, &AlterTable_AlterKeysOnOff::default_instance());
136 }
137 
138 } // namespace
139 
140 void protobuf_ShutdownFile_alter_5ftable_2eproto() {
141  delete AlterTable::default_instance_;
142  delete AlterTable_reflection_;
143  delete AlterTable_AlterTableOperation::default_instance_;
144  delete AlterTable_AlterTableOperation_reflection_;
145  delete AlterTable_RenameTable::default_instance_;
146  delete AlterTable_RenameTable_reflection_;
147  delete AlterTable_AlterKeysOnOff::default_instance_;
148  delete AlterTable_AlterKeysOnOff_reflection_;
149 }
150 
151 void protobuf_AddDesc_alter_5ftable_2eproto() {
152  static bool already_here = false;
153  if (already_here) return;
154  already_here = true;
155  GOOGLE_PROTOBUF_VERIFY_VERSION;
156 
157  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
158  "\n\021alter_table.proto\022\020drizzled.message\"\357\005"
159  "\n\nAlterTable\022\017\n\007catalog\030\001 \001(\t\022\016\n\006schema\030"
160  "\002 \002(\t\022\014\n\004name\030\003 \002(\t\022M\n\014build_method\030\004 \002("
161  "\0162(.drizzled.message.AlterTable.BuildMet"
162  "hod:\rBUILD_DEFAULT\022\025\n\006ignore\030\005 \002(\010:\005fals"
163  "e\022D\n\noperations\030\006 \003(\01320.drizzled.message"
164  ".AlterTable.AlterTableOperation\0228\n\006renam"
165  "e\030\007 \001(\0132(.drizzled.message.AlterTable.Re"
166  "nameTable\022E\n\020alter_keys_onoff\030\010 \001(\0132+.dr"
167  "izzled.message.AlterTable.AlterKeysOnOff"
168  "\032\350\001\n\023AlterTableOperation\022M\n\toperation\030\001 "
169  "\002(\0162:.drizzled.message.AlterTable.AlterT"
170  "ableOperation.Operation\022\021\n\tdrop_name\030\002 \001"
171  "(\t\"o\n\tOperation\022\026\n\022DISCARD_TABLESPACE\020\000\022"
172  "\025\n\021IMPORT_TABLESPACE\020\001\022\014\n\010DROP_KEY\020\002\022\017\n\013"
173  "DROP_COLUMN\020\003\022\024\n\020DROP_FOREIGN_KEY\020\004\0321\n\013R"
174  "enameTable\022\021\n\tto_schema\030\001 \002(\t\022\017\n\007to_name"
175  "\030\002 \002(\t\032 \n\016AlterKeysOnOff\022\016\n\006enable\030\001 \002(\010"
176  "\"E\n\013BuildMethod\022\021\n\rBUILD_DEFAULT\020\000\022\020\n\014BU"
177  "ILD_ONLINE\020\001\022\021\n\rBUILD_OFFLINE\020\002B+\n\024org.d"
178  "rizzle.messagesB\021AlterTableMessageH\001", 836);
179  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
180  "alter_table.proto", &protobuf_RegisterTypes);
181  AlterTable::default_instance_ = new AlterTable();
182  AlterTable_AlterTableOperation::default_instance_ = new AlterTable_AlterTableOperation();
183  AlterTable_RenameTable::default_instance_ = new AlterTable_RenameTable();
184  AlterTable_AlterKeysOnOff::default_instance_ = new AlterTable_AlterKeysOnOff();
185  AlterTable::default_instance_->InitAsDefaultInstance();
186  AlterTable_AlterTableOperation::default_instance_->InitAsDefaultInstance();
187  AlterTable_RenameTable::default_instance_->InitAsDefaultInstance();
188  AlterTable_AlterKeysOnOff::default_instance_->InitAsDefaultInstance();
189  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_alter_5ftable_2eproto);
190 }
191 
192 // Force AddDescriptors() to be called at static initialization time.
195  protobuf_AddDesc_alter_5ftable_2eproto();
196  }
197 } static_descriptor_initializer_alter_5ftable_2eproto_;
198 
199 
200 // ===================================================================
201 
202 const ::google::protobuf::EnumDescriptor* AlterTable_BuildMethod_descriptor() {
203  protobuf_AssignDescriptorsOnce();
204  return AlterTable_BuildMethod_descriptor_;
205 }
206 bool AlterTable_BuildMethod_IsValid(int value) {
207  switch(value) {
208  case 0:
209  case 1:
210  case 2:
211  return true;
212  default:
213  return false;
214  }
215 }
216 
217 #ifndef _MSC_VER
218 const AlterTable_BuildMethod AlterTable::BUILD_DEFAULT;
219 const AlterTable_BuildMethod AlterTable::BUILD_ONLINE;
220 const AlterTable_BuildMethod AlterTable::BUILD_OFFLINE;
221 const AlterTable_BuildMethod AlterTable::BuildMethod_MIN;
222 const AlterTable_BuildMethod AlterTable::BuildMethod_MAX;
223 const int AlterTable::BuildMethod_ARRAYSIZE;
224 #endif // _MSC_VER
225 const ::google::protobuf::EnumDescriptor* AlterTable_AlterTableOperation_Operation_descriptor() {
226  protobuf_AssignDescriptorsOnce();
227  return AlterTable_AlterTableOperation_Operation_descriptor_;
228 }
229 bool AlterTable_AlterTableOperation_Operation_IsValid(int value) {
230  switch(value) {
231  case 0:
232  case 1:
233  case 2:
234  case 3:
235  case 4:
236  return true;
237  default:
238  return false;
239  }
240 }
241 
242 #ifndef _MSC_VER
243 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::DISCARD_TABLESPACE;
244 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::IMPORT_TABLESPACE;
245 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::DROP_KEY;
246 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::DROP_COLUMN;
247 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::DROP_FOREIGN_KEY;
248 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::Operation_MIN;
249 const AlterTable_AlterTableOperation_Operation AlterTable_AlterTableOperation::Operation_MAX;
250 const int AlterTable_AlterTableOperation::Operation_ARRAYSIZE;
251 #endif // _MSC_VER
252 #ifndef _MSC_VER
253 const int AlterTable_AlterTableOperation::kOperationFieldNumber;
254 const int AlterTable_AlterTableOperation::kDropNameFieldNumber;
255 #endif // !_MSC_VER
256 
257 AlterTable_AlterTableOperation::AlterTable_AlterTableOperation()
258  : ::google::protobuf::Message() {
259  SharedCtor();
260 }
261 
262 void AlterTable_AlterTableOperation::InitAsDefaultInstance() {
263 }
264 
265 AlterTable_AlterTableOperation::AlterTable_AlterTableOperation(const AlterTable_AlterTableOperation& from)
266  : ::google::protobuf::Message() {
267  SharedCtor();
268  MergeFrom(from);
269 }
270 
271 void AlterTable_AlterTableOperation::SharedCtor() {
272  _cached_size_ = 0;
273  operation_ = 0;
274  drop_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
275  ::memset(_has_bits_, 0, sizeof(_has_bits_));
276 }
277 
278 AlterTable_AlterTableOperation::~AlterTable_AlterTableOperation() {
279  SharedDtor();
280 }
281 
282 void AlterTable_AlterTableOperation::SharedDtor() {
283  if (drop_name_ != &::google::protobuf::internal::kEmptyString) {
284  delete drop_name_;
285  }
286  if (this != default_instance_) {
287  }
288 }
289 
290 void AlterTable_AlterTableOperation::SetCachedSize(int size) const {
291  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
292  _cached_size_ = size;
293  GOOGLE_SAFE_CONCURRENT_WRITES_END();
294 }
295 const ::google::protobuf::Descriptor* AlterTable_AlterTableOperation::descriptor() {
296  protobuf_AssignDescriptorsOnce();
297  return AlterTable_AlterTableOperation_descriptor_;
298 }
299 
300 const AlterTable_AlterTableOperation& AlterTable_AlterTableOperation::default_instance() {
301  if (default_instance_ == NULL) protobuf_AddDesc_alter_5ftable_2eproto(); return *default_instance_;
302 }
303 
304 AlterTable_AlterTableOperation* AlterTable_AlterTableOperation::default_instance_ = NULL;
305 
306 AlterTable_AlterTableOperation* AlterTable_AlterTableOperation::New() const {
307  return new AlterTable_AlterTableOperation;
308 }
309 
310 void AlterTable_AlterTableOperation::Clear() {
311  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
312  operation_ = 0;
313  if (has_drop_name()) {
314  if (drop_name_ != &::google::protobuf::internal::kEmptyString) {
315  drop_name_->clear();
316  }
317  }
318  }
319  ::memset(_has_bits_, 0, sizeof(_has_bits_));
320  mutable_unknown_fields()->Clear();
321 }
322 
323 bool AlterTable_AlterTableOperation::MergePartialFromCodedStream(
324  ::google::protobuf::io::CodedInputStream* input) {
325 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
326  ::google::protobuf::uint32 tag;
327  while ((tag = input->ReadTag()) != 0) {
328  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
329  // required .drizzled.message.AlterTable.AlterTableOperation.Operation operation = 1;
330  case 1: {
331  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
332  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
333  int value;
334  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
335  int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
336  input, &value)));
337  if (::drizzled::message::AlterTable_AlterTableOperation_Operation_IsValid(value)) {
338  set_operation(static_cast< ::drizzled::message::AlterTable_AlterTableOperation_Operation >(value));
339  } else {
340  mutable_unknown_fields()->AddVarint(1, value);
341  }
342  } else {
343  goto handle_uninterpreted;
344  }
345  if (input->ExpectTag(18)) goto parse_drop_name;
346  break;
347  }
348 
349  // optional string drop_name = 2;
350  case 2: {
351  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
352  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
353  parse_drop_name:
354  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
355  input, this->mutable_drop_name()));
356  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
357  this->drop_name().data(), this->drop_name().length(),
358  ::google::protobuf::internal::WireFormat::PARSE);
359  } else {
360  goto handle_uninterpreted;
361  }
362  if (input->ExpectAtEnd()) return true;
363  break;
364  }
365 
366  default: {
367  handle_uninterpreted:
368  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
369  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
370  return true;
371  }
372  DO_(::google::protobuf::internal::WireFormat::SkipField(
373  input, tag, mutable_unknown_fields()));
374  break;
375  }
376  }
377  }
378  return true;
379 #undef DO_
380 }
381 
382 void AlterTable_AlterTableOperation::SerializeWithCachedSizes(
383  ::google::protobuf::io::CodedOutputStream* output) const {
384  // required .drizzled.message.AlterTable.AlterTableOperation.Operation operation = 1;
385  if (has_operation()) {
386  ::google::protobuf::internal::WireFormatLite::WriteEnum(
387  1, this->operation(), output);
388  }
389 
390  // optional string drop_name = 2;
391  if (has_drop_name()) {
392  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
393  this->drop_name().data(), this->drop_name().length(),
394  ::google::protobuf::internal::WireFormat::SERIALIZE);
395  ::google::protobuf::internal::WireFormatLite::WriteString(
396  2, this->drop_name(), output);
397  }
398 
399  if (!unknown_fields().empty()) {
400  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
401  unknown_fields(), output);
402  }
403 }
404 
405 ::google::protobuf::uint8* AlterTable_AlterTableOperation::SerializeWithCachedSizesToArray(
406  ::google::protobuf::uint8* target) const {
407  // required .drizzled.message.AlterTable.AlterTableOperation.Operation operation = 1;
408  if (has_operation()) {
409  target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
410  1, this->operation(), target);
411  }
412 
413  // optional string drop_name = 2;
414  if (has_drop_name()) {
415  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
416  this->drop_name().data(), this->drop_name().length(),
417  ::google::protobuf::internal::WireFormat::SERIALIZE);
418  target =
419  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
420  2, this->drop_name(), target);
421  }
422 
423  if (!unknown_fields().empty()) {
424  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
425  unknown_fields(), target);
426  }
427  return target;
428 }
429 
430 int AlterTable_AlterTableOperation::ByteSize() const {
431  int total_size = 0;
432 
433  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
434  // required .drizzled.message.AlterTable.AlterTableOperation.Operation operation = 1;
435  if (has_operation()) {
436  total_size += 1 +
437  ::google::protobuf::internal::WireFormatLite::EnumSize(this->operation());
438  }
439 
440  // optional string drop_name = 2;
441  if (has_drop_name()) {
442  total_size += 1 +
443  ::google::protobuf::internal::WireFormatLite::StringSize(
444  this->drop_name());
445  }
446 
447  }
448  if (!unknown_fields().empty()) {
449  total_size +=
450  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
451  unknown_fields());
452  }
453  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
454  _cached_size_ = total_size;
455  GOOGLE_SAFE_CONCURRENT_WRITES_END();
456  return total_size;
457 }
458 
459 void AlterTable_AlterTableOperation::MergeFrom(const ::google::protobuf::Message& from) {
460  GOOGLE_CHECK_NE(&from, this);
461  const AlterTable_AlterTableOperation* source =
462  ::google::protobuf::internal::dynamic_cast_if_available<const AlterTable_AlterTableOperation*>(
463  &from);
464  if (source == NULL) {
465  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
466  } else {
467  MergeFrom(*source);
468  }
469 }
470 
471 void AlterTable_AlterTableOperation::MergeFrom(const AlterTable_AlterTableOperation& from) {
472  GOOGLE_CHECK_NE(&from, this);
473  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
474  if (from.has_operation()) {
475  set_operation(from.operation());
476  }
477  if (from.has_drop_name()) {
478  set_drop_name(from.drop_name());
479  }
480  }
481  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
482 }
483 
484 void AlterTable_AlterTableOperation::CopyFrom(const ::google::protobuf::Message& from) {
485  if (&from == this) return;
486  Clear();
487  MergeFrom(from);
488 }
489 
490 void AlterTable_AlterTableOperation::CopyFrom(const AlterTable_AlterTableOperation& from) {
491  if (&from == this) return;
492  Clear();
493  MergeFrom(from);
494 }
495 
496 bool AlterTable_AlterTableOperation::IsInitialized() const {
497  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
498 
499  return true;
500 }
501 
502 void AlterTable_AlterTableOperation::Swap(AlterTable_AlterTableOperation* other) {
503  if (other != this) {
504  std::swap(operation_, other->operation_);
505  std::swap(drop_name_, other->drop_name_);
506  std::swap(_has_bits_[0], other->_has_bits_[0]);
507  _unknown_fields_.Swap(&other->_unknown_fields_);
508  std::swap(_cached_size_, other->_cached_size_);
509  }
510 }
511 
512 ::google::protobuf::Metadata AlterTable_AlterTableOperation::GetMetadata() const {
513  protobuf_AssignDescriptorsOnce();
514  ::google::protobuf::Metadata metadata;
515  metadata.descriptor = AlterTable_AlterTableOperation_descriptor_;
516  metadata.reflection = AlterTable_AlterTableOperation_reflection_;
517  return metadata;
518 }
519 
520 
521 // -------------------------------------------------------------------
522 
523 #ifndef _MSC_VER
524 const int AlterTable_RenameTable::kToSchemaFieldNumber;
525 const int AlterTable_RenameTable::kToNameFieldNumber;
526 #endif // !_MSC_VER
527 
528 AlterTable_RenameTable::AlterTable_RenameTable()
529  : ::google::protobuf::Message() {
530  SharedCtor();
531 }
532 
533 void AlterTable_RenameTable::InitAsDefaultInstance() {
534 }
535 
536 AlterTable_RenameTable::AlterTable_RenameTable(const AlterTable_RenameTable& from)
537  : ::google::protobuf::Message() {
538  SharedCtor();
539  MergeFrom(from);
540 }
541 
542 void AlterTable_RenameTable::SharedCtor() {
543  _cached_size_ = 0;
544  to_schema_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
545  to_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
546  ::memset(_has_bits_, 0, sizeof(_has_bits_));
547 }
548 
549 AlterTable_RenameTable::~AlterTable_RenameTable() {
550  SharedDtor();
551 }
552 
553 void AlterTable_RenameTable::SharedDtor() {
554  if (to_schema_ != &::google::protobuf::internal::kEmptyString) {
555  delete to_schema_;
556  }
557  if (to_name_ != &::google::protobuf::internal::kEmptyString) {
558  delete to_name_;
559  }
560  if (this != default_instance_) {
561  }
562 }
563 
564 void AlterTable_RenameTable::SetCachedSize(int size) const {
565  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
566  _cached_size_ = size;
567  GOOGLE_SAFE_CONCURRENT_WRITES_END();
568 }
569 const ::google::protobuf::Descriptor* AlterTable_RenameTable::descriptor() {
570  protobuf_AssignDescriptorsOnce();
571  return AlterTable_RenameTable_descriptor_;
572 }
573 
574 const AlterTable_RenameTable& AlterTable_RenameTable::default_instance() {
575  if (default_instance_ == NULL) protobuf_AddDesc_alter_5ftable_2eproto(); return *default_instance_;
576 }
577 
578 AlterTable_RenameTable* AlterTable_RenameTable::default_instance_ = NULL;
579 
580 AlterTable_RenameTable* AlterTable_RenameTable::New() const {
581  return new AlterTable_RenameTable;
582 }
583 
584 void AlterTable_RenameTable::Clear() {
585  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
586  if (has_to_schema()) {
587  if (to_schema_ != &::google::protobuf::internal::kEmptyString) {
588  to_schema_->clear();
589  }
590  }
591  if (has_to_name()) {
592  if (to_name_ != &::google::protobuf::internal::kEmptyString) {
593  to_name_->clear();
594  }
595  }
596  }
597  ::memset(_has_bits_, 0, sizeof(_has_bits_));
598  mutable_unknown_fields()->Clear();
599 }
600 
601 bool AlterTable_RenameTable::MergePartialFromCodedStream(
602  ::google::protobuf::io::CodedInputStream* input) {
603 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
604  ::google::protobuf::uint32 tag;
605  while ((tag = input->ReadTag()) != 0) {
606  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
607  // required string to_schema = 1;
608  case 1: {
609  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
610  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
611  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
612  input, this->mutable_to_schema()));
613  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
614  this->to_schema().data(), this->to_schema().length(),
615  ::google::protobuf::internal::WireFormat::PARSE);
616  } else {
617  goto handle_uninterpreted;
618  }
619  if (input->ExpectTag(18)) goto parse_to_name;
620  break;
621  }
622 
623  // required string to_name = 2;
624  case 2: {
625  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
626  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
627  parse_to_name:
628  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
629  input, this->mutable_to_name()));
630  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
631  this->to_name().data(), this->to_name().length(),
632  ::google::protobuf::internal::WireFormat::PARSE);
633  } else {
634  goto handle_uninterpreted;
635  }
636  if (input->ExpectAtEnd()) return true;
637  break;
638  }
639 
640  default: {
641  handle_uninterpreted:
642  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
643  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
644  return true;
645  }
646  DO_(::google::protobuf::internal::WireFormat::SkipField(
647  input, tag, mutable_unknown_fields()));
648  break;
649  }
650  }
651  }
652  return true;
653 #undef DO_
654 }
655 
656 void AlterTable_RenameTable::SerializeWithCachedSizes(
657  ::google::protobuf::io::CodedOutputStream* output) const {
658  // required string to_schema = 1;
659  if (has_to_schema()) {
660  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
661  this->to_schema().data(), this->to_schema().length(),
662  ::google::protobuf::internal::WireFormat::SERIALIZE);
663  ::google::protobuf::internal::WireFormatLite::WriteString(
664  1, this->to_schema(), output);
665  }
666 
667  // required string to_name = 2;
668  if (has_to_name()) {
669  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
670  this->to_name().data(), this->to_name().length(),
671  ::google::protobuf::internal::WireFormat::SERIALIZE);
672  ::google::protobuf::internal::WireFormatLite::WriteString(
673  2, this->to_name(), output);
674  }
675 
676  if (!unknown_fields().empty()) {
677  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
678  unknown_fields(), output);
679  }
680 }
681 
682 ::google::protobuf::uint8* AlterTable_RenameTable::SerializeWithCachedSizesToArray(
683  ::google::protobuf::uint8* target) const {
684  // required string to_schema = 1;
685  if (has_to_schema()) {
686  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
687  this->to_schema().data(), this->to_schema().length(),
688  ::google::protobuf::internal::WireFormat::SERIALIZE);
689  target =
690  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
691  1, this->to_schema(), target);
692  }
693 
694  // required string to_name = 2;
695  if (has_to_name()) {
696  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
697  this->to_name().data(), this->to_name().length(),
698  ::google::protobuf::internal::WireFormat::SERIALIZE);
699  target =
700  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
701  2, this->to_name(), target);
702  }
703 
704  if (!unknown_fields().empty()) {
705  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
706  unknown_fields(), target);
707  }
708  return target;
709 }
710 
711 int AlterTable_RenameTable::ByteSize() const {
712  int total_size = 0;
713 
714  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
715  // required string to_schema = 1;
716  if (has_to_schema()) {
717  total_size += 1 +
718  ::google::protobuf::internal::WireFormatLite::StringSize(
719  this->to_schema());
720  }
721 
722  // required string to_name = 2;
723  if (has_to_name()) {
724  total_size += 1 +
725  ::google::protobuf::internal::WireFormatLite::StringSize(
726  this->to_name());
727  }
728 
729  }
730  if (!unknown_fields().empty()) {
731  total_size +=
732  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
733  unknown_fields());
734  }
735  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
736  _cached_size_ = total_size;
737  GOOGLE_SAFE_CONCURRENT_WRITES_END();
738  return total_size;
739 }
740 
741 void AlterTable_RenameTable::MergeFrom(const ::google::protobuf::Message& from) {
742  GOOGLE_CHECK_NE(&from, this);
743  const AlterTable_RenameTable* source =
744  ::google::protobuf::internal::dynamic_cast_if_available<const AlterTable_RenameTable*>(
745  &from);
746  if (source == NULL) {
747  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
748  } else {
749  MergeFrom(*source);
750  }
751 }
752 
753 void AlterTable_RenameTable::MergeFrom(const AlterTable_RenameTable& from) {
754  GOOGLE_CHECK_NE(&from, this);
755  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
756  if (from.has_to_schema()) {
757  set_to_schema(from.to_schema());
758  }
759  if (from.has_to_name()) {
760  set_to_name(from.to_name());
761  }
762  }
763  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
764 }
765 
766 void AlterTable_RenameTable::CopyFrom(const ::google::protobuf::Message& from) {
767  if (&from == this) return;
768  Clear();
769  MergeFrom(from);
770 }
771 
772 void AlterTable_RenameTable::CopyFrom(const AlterTable_RenameTable& from) {
773  if (&from == this) return;
774  Clear();
775  MergeFrom(from);
776 }
777 
778 bool AlterTable_RenameTable::IsInitialized() const {
779  if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
780 
781  return true;
782 }
783 
784 void AlterTable_RenameTable::Swap(AlterTable_RenameTable* other) {
785  if (other != this) {
786  std::swap(to_schema_, other->to_schema_);
787  std::swap(to_name_, other->to_name_);
788  std::swap(_has_bits_[0], other->_has_bits_[0]);
789  _unknown_fields_.Swap(&other->_unknown_fields_);
790  std::swap(_cached_size_, other->_cached_size_);
791  }
792 }
793 
794 ::google::protobuf::Metadata AlterTable_RenameTable::GetMetadata() const {
795  protobuf_AssignDescriptorsOnce();
796  ::google::protobuf::Metadata metadata;
797  metadata.descriptor = AlterTable_RenameTable_descriptor_;
798  metadata.reflection = AlterTable_RenameTable_reflection_;
799  return metadata;
800 }
801 
802 
803 // -------------------------------------------------------------------
804 
805 #ifndef _MSC_VER
806 const int AlterTable_AlterKeysOnOff::kEnableFieldNumber;
807 #endif // !_MSC_VER
808 
809 AlterTable_AlterKeysOnOff::AlterTable_AlterKeysOnOff()
810  : ::google::protobuf::Message() {
811  SharedCtor();
812 }
813 
814 void AlterTable_AlterKeysOnOff::InitAsDefaultInstance() {
815 }
816 
817 AlterTable_AlterKeysOnOff::AlterTable_AlterKeysOnOff(const AlterTable_AlterKeysOnOff& from)
818  : ::google::protobuf::Message() {
819  SharedCtor();
820  MergeFrom(from);
821 }
822 
823 void AlterTable_AlterKeysOnOff::SharedCtor() {
824  _cached_size_ = 0;
825  enable_ = false;
826  ::memset(_has_bits_, 0, sizeof(_has_bits_));
827 }
828 
829 AlterTable_AlterKeysOnOff::~AlterTable_AlterKeysOnOff() {
830  SharedDtor();
831 }
832 
833 void AlterTable_AlterKeysOnOff::SharedDtor() {
834  if (this != default_instance_) {
835  }
836 }
837 
838 void AlterTable_AlterKeysOnOff::SetCachedSize(int size) const {
839  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
840  _cached_size_ = size;
841  GOOGLE_SAFE_CONCURRENT_WRITES_END();
842 }
843 const ::google::protobuf::Descriptor* AlterTable_AlterKeysOnOff::descriptor() {
844  protobuf_AssignDescriptorsOnce();
845  return AlterTable_AlterKeysOnOff_descriptor_;
846 }
847 
848 const AlterTable_AlterKeysOnOff& AlterTable_AlterKeysOnOff::default_instance() {
849  if (default_instance_ == NULL) protobuf_AddDesc_alter_5ftable_2eproto(); return *default_instance_;
850 }
851 
852 AlterTable_AlterKeysOnOff* AlterTable_AlterKeysOnOff::default_instance_ = NULL;
853 
854 AlterTable_AlterKeysOnOff* AlterTable_AlterKeysOnOff::New() const {
855  return new AlterTable_AlterKeysOnOff;
856 }
857 
858 void AlterTable_AlterKeysOnOff::Clear() {
859  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
860  enable_ = false;
861  }
862  ::memset(_has_bits_, 0, sizeof(_has_bits_));
863  mutable_unknown_fields()->Clear();
864 }
865 
866 bool AlterTable_AlterKeysOnOff::MergePartialFromCodedStream(
867  ::google::protobuf::io::CodedInputStream* input) {
868 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
869  ::google::protobuf::uint32 tag;
870  while ((tag = input->ReadTag()) != 0) {
871  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
872  // required bool enable = 1;
873  case 1: {
874  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
875  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
876  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
877  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
878  input, &enable_)));
879  set_has_enable();
880  } else {
881  goto handle_uninterpreted;
882  }
883  if (input->ExpectAtEnd()) return true;
884  break;
885  }
886 
887  default: {
888  handle_uninterpreted:
889  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
890  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
891  return true;
892  }
893  DO_(::google::protobuf::internal::WireFormat::SkipField(
894  input, tag, mutable_unknown_fields()));
895  break;
896  }
897  }
898  }
899  return true;
900 #undef DO_
901 }
902 
903 void AlterTable_AlterKeysOnOff::SerializeWithCachedSizes(
904  ::google::protobuf::io::CodedOutputStream* output) const {
905  // required bool enable = 1;
906  if (has_enable()) {
907  ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->enable(), output);
908  }
909 
910  if (!unknown_fields().empty()) {
911  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
912  unknown_fields(), output);
913  }
914 }
915 
916 ::google::protobuf::uint8* AlterTable_AlterKeysOnOff::SerializeWithCachedSizesToArray(
917  ::google::protobuf::uint8* target) const {
918  // required bool enable = 1;
919  if (has_enable()) {
920  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->enable(), target);
921  }
922 
923  if (!unknown_fields().empty()) {
924  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
925  unknown_fields(), target);
926  }
927  return target;
928 }
929 
930 int AlterTable_AlterKeysOnOff::ByteSize() const {
931  int total_size = 0;
932 
933  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
934  // required bool enable = 1;
935  if (has_enable()) {
936  total_size += 1 + 1;
937  }
938 
939  }
940  if (!unknown_fields().empty()) {
941  total_size +=
942  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
943  unknown_fields());
944  }
945  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
946  _cached_size_ = total_size;
947  GOOGLE_SAFE_CONCURRENT_WRITES_END();
948  return total_size;
949 }
950 
951 void AlterTable_AlterKeysOnOff::MergeFrom(const ::google::protobuf::Message& from) {
952  GOOGLE_CHECK_NE(&from, this);
953  const AlterTable_AlterKeysOnOff* source =
954  ::google::protobuf::internal::dynamic_cast_if_available<const AlterTable_AlterKeysOnOff*>(
955  &from);
956  if (source == NULL) {
957  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
958  } else {
959  MergeFrom(*source);
960  }
961 }
962 
963 void AlterTable_AlterKeysOnOff::MergeFrom(const AlterTable_AlterKeysOnOff& from) {
964  GOOGLE_CHECK_NE(&from, this);
965  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
966  if (from.has_enable()) {
967  set_enable(from.enable());
968  }
969  }
970  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
971 }
972 
973 void AlterTable_AlterKeysOnOff::CopyFrom(const ::google::protobuf::Message& from) {
974  if (&from == this) return;
975  Clear();
976  MergeFrom(from);
977 }
978 
979 void AlterTable_AlterKeysOnOff::CopyFrom(const AlterTable_AlterKeysOnOff& from) {
980  if (&from == this) return;
981  Clear();
982  MergeFrom(from);
983 }
984 
985 bool AlterTable_AlterKeysOnOff::IsInitialized() const {
986  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
987 
988  return true;
989 }
990 
991 void AlterTable_AlterKeysOnOff::Swap(AlterTable_AlterKeysOnOff* other) {
992  if (other != this) {
993  std::swap(enable_, other->enable_);
994  std::swap(_has_bits_[0], other->_has_bits_[0]);
995  _unknown_fields_.Swap(&other->_unknown_fields_);
996  std::swap(_cached_size_, other->_cached_size_);
997  }
998 }
999 
1000 ::google::protobuf::Metadata AlterTable_AlterKeysOnOff::GetMetadata() const {
1001  protobuf_AssignDescriptorsOnce();
1002  ::google::protobuf::Metadata metadata;
1003  metadata.descriptor = AlterTable_AlterKeysOnOff_descriptor_;
1004  metadata.reflection = AlterTable_AlterKeysOnOff_reflection_;
1005  return metadata;
1006 }
1007 
1008 
1009 // -------------------------------------------------------------------
1010 
1011 #ifndef _MSC_VER
1012 const int AlterTable::kCatalogFieldNumber;
1013 const int AlterTable::kSchemaFieldNumber;
1014 const int AlterTable::kNameFieldNumber;
1015 const int AlterTable::kBuildMethodFieldNumber;
1016 const int AlterTable::kIgnoreFieldNumber;
1017 const int AlterTable::kOperationsFieldNumber;
1018 const int AlterTable::kRenameFieldNumber;
1019 const int AlterTable::kAlterKeysOnoffFieldNumber;
1020 #endif // !_MSC_VER
1021 
1022 AlterTable::AlterTable()
1023  : ::google::protobuf::Message() {
1024  SharedCtor();
1025 }
1026 
1027 void AlterTable::InitAsDefaultInstance() {
1028  rename_ = const_cast< ::drizzled::message::AlterTable_RenameTable*>(&::drizzled::message::AlterTable_RenameTable::default_instance());
1029  alter_keys_onoff_ = const_cast< ::drizzled::message::AlterTable_AlterKeysOnOff*>(&::drizzled::message::AlterTable_AlterKeysOnOff::default_instance());
1030 }
1031 
1032 AlterTable::AlterTable(const AlterTable& from)
1033  : ::google::protobuf::Message() {
1034  SharedCtor();
1035  MergeFrom(from);
1036 }
1037 
1038 void AlterTable::SharedCtor() {
1039  _cached_size_ = 0;
1040  catalog_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1041  schema_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1042  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1043  build_method_ = 0;
1044  ignore_ = false;
1045  rename_ = NULL;
1046  alter_keys_onoff_ = NULL;
1047  ::memset(_has_bits_, 0, sizeof(_has_bits_));
1048 }
1049 
1050 AlterTable::~AlterTable() {
1051  SharedDtor();
1052 }
1053 
1054 void AlterTable::SharedDtor() {
1055  if (catalog_ != &::google::protobuf::internal::kEmptyString) {
1056  delete catalog_;
1057  }
1058  if (schema_ != &::google::protobuf::internal::kEmptyString) {
1059  delete schema_;
1060  }
1061  if (name_ != &::google::protobuf::internal::kEmptyString) {
1062  delete name_;
1063  }
1064  if (this != default_instance_) {
1065  delete rename_;
1066  delete alter_keys_onoff_;
1067  }
1068 }
1069 
1070 void AlterTable::SetCachedSize(int size) const {
1071  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1072  _cached_size_ = size;
1073  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1074 }
1075 const ::google::protobuf::Descriptor* AlterTable::descriptor() {
1076  protobuf_AssignDescriptorsOnce();
1077  return AlterTable_descriptor_;
1078 }
1079 
1080 const AlterTable& AlterTable::default_instance() {
1081  if (default_instance_ == NULL) protobuf_AddDesc_alter_5ftable_2eproto(); return *default_instance_;
1082 }
1083 
1084 AlterTable* AlterTable::default_instance_ = NULL;
1085 
1086 AlterTable* AlterTable::New() const {
1087  return new AlterTable;
1088 }
1089 
1090 void AlterTable::Clear() {
1091  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1092  if (has_catalog()) {
1093  if (catalog_ != &::google::protobuf::internal::kEmptyString) {
1094  catalog_->clear();
1095  }
1096  }
1097  if (has_schema()) {
1098  if (schema_ != &::google::protobuf::internal::kEmptyString) {
1099  schema_->clear();
1100  }
1101  }
1102  if (has_name()) {
1103  if (name_ != &::google::protobuf::internal::kEmptyString) {
1104  name_->clear();
1105  }
1106  }
1107  build_method_ = 0;
1108  ignore_ = false;
1109  if (has_rename()) {
1110  if (rename_ != NULL) rename_->::drizzled::message::AlterTable_RenameTable::Clear();
1111  }
1112  if (has_alter_keys_onoff()) {
1113  if (alter_keys_onoff_ != NULL) alter_keys_onoff_->::drizzled::message::AlterTable_AlterKeysOnOff::Clear();
1114  }
1115  }
1116  operations_.Clear();
1117  ::memset(_has_bits_, 0, sizeof(_has_bits_));
1118  mutable_unknown_fields()->Clear();
1119 }
1120 
1121 bool AlterTable::MergePartialFromCodedStream(
1122  ::google::protobuf::io::CodedInputStream* input) {
1123 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1124  ::google::protobuf::uint32 tag;
1125  while ((tag = input->ReadTag()) != 0) {
1126  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1127  // optional string catalog = 1;
1128  case 1: {
1129  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1130  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1131  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1132  input, this->mutable_catalog()));
1133  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1134  this->catalog().data(), this->catalog().length(),
1135  ::google::protobuf::internal::WireFormat::PARSE);
1136  } else {
1137  goto handle_uninterpreted;
1138  }
1139  if (input->ExpectTag(18)) goto parse_schema;
1140  break;
1141  }
1142 
1143  // required string schema = 2;
1144  case 2: {
1145  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1146  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1147  parse_schema:
1148  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1149  input, this->mutable_schema()));
1150  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1151  this->schema().data(), this->schema().length(),
1152  ::google::protobuf::internal::WireFormat::PARSE);
1153  } else {
1154  goto handle_uninterpreted;
1155  }
1156  if (input->ExpectTag(26)) goto parse_name;
1157  break;
1158  }
1159 
1160  // required string name = 3;
1161  case 3: {
1162  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1163  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1164  parse_name:
1165  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1166  input, this->mutable_name()));
1167  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1168  this->name().data(), this->name().length(),
1169  ::google::protobuf::internal::WireFormat::PARSE);
1170  } else {
1171  goto handle_uninterpreted;
1172  }
1173  if (input->ExpectTag(32)) goto parse_build_method;
1174  break;
1175  }
1176 
1177  // required .drizzled.message.AlterTable.BuildMethod build_method = 4 [default = BUILD_DEFAULT];
1178  case 4: {
1179  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1180  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1181  parse_build_method:
1182  int value;
1183  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1184  int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1185  input, &value)));
1186  if (::drizzled::message::AlterTable_BuildMethod_IsValid(value)) {
1187  set_build_method(static_cast< ::drizzled::message::AlterTable_BuildMethod >(value));
1188  } else {
1189  mutable_unknown_fields()->AddVarint(4, value);
1190  }
1191  } else {
1192  goto handle_uninterpreted;
1193  }
1194  if (input->ExpectTag(40)) goto parse_ignore;
1195  break;
1196  }
1197 
1198  // required bool ignore = 5 [default = false];
1199  case 5: {
1200  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1201  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1202  parse_ignore:
1203  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1204  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1205  input, &ignore_)));
1206  set_has_ignore();
1207  } else {
1208  goto handle_uninterpreted;
1209  }
1210  if (input->ExpectTag(50)) goto parse_operations;
1211  break;
1212  }
1213 
1214  // repeated .drizzled.message.AlterTable.AlterTableOperation operations = 6;
1215  case 6: {
1216  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1217  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1218  parse_operations:
1219  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1220  input, add_operations()));
1221  } else {
1222  goto handle_uninterpreted;
1223  }
1224  if (input->ExpectTag(50)) goto parse_operations;
1225  if (input->ExpectTag(58)) goto parse_rename;
1226  break;
1227  }
1228 
1229  // optional .drizzled.message.AlterTable.RenameTable rename = 7;
1230  case 7: {
1231  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1232  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1233  parse_rename:
1234  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1235  input, mutable_rename()));
1236  } else {
1237  goto handle_uninterpreted;
1238  }
1239  if (input->ExpectTag(66)) goto parse_alter_keys_onoff;
1240  break;
1241  }
1242 
1243  // optional .drizzled.message.AlterTable.AlterKeysOnOff alter_keys_onoff = 8;
1244  case 8: {
1245  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1246  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1247  parse_alter_keys_onoff:
1248  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1249  input, mutable_alter_keys_onoff()));
1250  } else {
1251  goto handle_uninterpreted;
1252  }
1253  if (input->ExpectAtEnd()) return true;
1254  break;
1255  }
1256 
1257  default: {
1258  handle_uninterpreted:
1259  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1260  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1261  return true;
1262  }
1263  DO_(::google::protobuf::internal::WireFormat::SkipField(
1264  input, tag, mutable_unknown_fields()));
1265  break;
1266  }
1267  }
1268  }
1269  return true;
1270 #undef DO_
1271 }
1272 
1273 void AlterTable::SerializeWithCachedSizes(
1274  ::google::protobuf::io::CodedOutputStream* output) const {
1275  // optional string catalog = 1;
1276  if (has_catalog()) {
1277  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1278  this->catalog().data(), this->catalog().length(),
1279  ::google::protobuf::internal::WireFormat::SERIALIZE);
1280  ::google::protobuf::internal::WireFormatLite::WriteString(
1281  1, this->catalog(), output);
1282  }
1283 
1284  // required string schema = 2;
1285  if (has_schema()) {
1286  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1287  this->schema().data(), this->schema().length(),
1288  ::google::protobuf::internal::WireFormat::SERIALIZE);
1289  ::google::protobuf::internal::WireFormatLite::WriteString(
1290  2, this->schema(), output);
1291  }
1292 
1293  // required string name = 3;
1294  if (has_name()) {
1295  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1296  this->name().data(), this->name().length(),
1297  ::google::protobuf::internal::WireFormat::SERIALIZE);
1298  ::google::protobuf::internal::WireFormatLite::WriteString(
1299  3, this->name(), output);
1300  }
1301 
1302  // required .drizzled.message.AlterTable.BuildMethod build_method = 4 [default = BUILD_DEFAULT];
1303  if (has_build_method()) {
1304  ::google::protobuf::internal::WireFormatLite::WriteEnum(
1305  4, this->build_method(), output);
1306  }
1307 
1308  // required bool ignore = 5 [default = false];
1309  if (has_ignore()) {
1310  ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->ignore(), output);
1311  }
1312 
1313  // repeated .drizzled.message.AlterTable.AlterTableOperation operations = 6;
1314  for (int i = 0; i < this->operations_size(); i++) {
1315  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1316  6, this->operations(i), output);
1317  }
1318 
1319  // optional .drizzled.message.AlterTable.RenameTable rename = 7;
1320  if (has_rename()) {
1321  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1322  7, this->rename(), output);
1323  }
1324 
1325  // optional .drizzled.message.AlterTable.AlterKeysOnOff alter_keys_onoff = 8;
1326  if (has_alter_keys_onoff()) {
1327  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1328  8, this->alter_keys_onoff(), output);
1329  }
1330 
1331  if (!unknown_fields().empty()) {
1332  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1333  unknown_fields(), output);
1334  }
1335 }
1336 
1337 ::google::protobuf::uint8* AlterTable::SerializeWithCachedSizesToArray(
1338  ::google::protobuf::uint8* target) const {
1339  // optional string catalog = 1;
1340  if (has_catalog()) {
1341  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1342  this->catalog().data(), this->catalog().length(),
1343  ::google::protobuf::internal::WireFormat::SERIALIZE);
1344  target =
1345  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1346  1, this->catalog(), target);
1347  }
1348 
1349  // required string schema = 2;
1350  if (has_schema()) {
1351  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1352  this->schema().data(), this->schema().length(),
1353  ::google::protobuf::internal::WireFormat::SERIALIZE);
1354  target =
1355  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1356  2, this->schema(), target);
1357  }
1358 
1359  // required string name = 3;
1360  if (has_name()) {
1361  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1362  this->name().data(), this->name().length(),
1363  ::google::protobuf::internal::WireFormat::SERIALIZE);
1364  target =
1365  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1366  3, this->name(), target);
1367  }
1368 
1369  // required .drizzled.message.AlterTable.BuildMethod build_method = 4 [default = BUILD_DEFAULT];
1370  if (has_build_method()) {
1371  target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1372  4, this->build_method(), target);
1373  }
1374 
1375  // required bool ignore = 5 [default = false];
1376  if (has_ignore()) {
1377  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->ignore(), target);
1378  }
1379 
1380  // repeated .drizzled.message.AlterTable.AlterTableOperation operations = 6;
1381  for (int i = 0; i < this->operations_size(); i++) {
1382  target = ::google::protobuf::internal::WireFormatLite::
1383  WriteMessageNoVirtualToArray(
1384  6, this->operations(i), target);
1385  }
1386 
1387  // optional .drizzled.message.AlterTable.RenameTable rename = 7;
1388  if (has_rename()) {
1389  target = ::google::protobuf::internal::WireFormatLite::
1390  WriteMessageNoVirtualToArray(
1391  7, this->rename(), target);
1392  }
1393 
1394  // optional .drizzled.message.AlterTable.AlterKeysOnOff alter_keys_onoff = 8;
1395  if (has_alter_keys_onoff()) {
1396  target = ::google::protobuf::internal::WireFormatLite::
1397  WriteMessageNoVirtualToArray(
1398  8, this->alter_keys_onoff(), target);
1399  }
1400 
1401  if (!unknown_fields().empty()) {
1402  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1403  unknown_fields(), target);
1404  }
1405  return target;
1406 }
1407 
1408 int AlterTable::ByteSize() const {
1409  int total_size = 0;
1410 
1411  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1412  // optional string catalog = 1;
1413  if (has_catalog()) {
1414  total_size += 1 +
1415  ::google::protobuf::internal::WireFormatLite::StringSize(
1416  this->catalog());
1417  }
1418 
1419  // required string schema = 2;
1420  if (has_schema()) {
1421  total_size += 1 +
1422  ::google::protobuf::internal::WireFormatLite::StringSize(
1423  this->schema());
1424  }
1425 
1426  // required string name = 3;
1427  if (has_name()) {
1428  total_size += 1 +
1429  ::google::protobuf::internal::WireFormatLite::StringSize(
1430  this->name());
1431  }
1432 
1433  // required .drizzled.message.AlterTable.BuildMethod build_method = 4 [default = BUILD_DEFAULT];
1434  if (has_build_method()) {
1435  total_size += 1 +
1436  ::google::protobuf::internal::WireFormatLite::EnumSize(this->build_method());
1437  }
1438 
1439  // required bool ignore = 5 [default = false];
1440  if (has_ignore()) {
1441  total_size += 1 + 1;
1442  }
1443 
1444  // optional .drizzled.message.AlterTable.RenameTable rename = 7;
1445  if (has_rename()) {
1446  total_size += 1 +
1447  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1448  this->rename());
1449  }
1450 
1451  // optional .drizzled.message.AlterTable.AlterKeysOnOff alter_keys_onoff = 8;
1452  if (has_alter_keys_onoff()) {
1453  total_size += 1 +
1454  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1455  this->alter_keys_onoff());
1456  }
1457 
1458  }
1459  // repeated .drizzled.message.AlterTable.AlterTableOperation operations = 6;
1460  total_size += 1 * this->operations_size();
1461  for (int i = 0; i < this->operations_size(); i++) {
1462  total_size +=
1463  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1464  this->operations(i));
1465  }
1466 
1467  if (!unknown_fields().empty()) {
1468  total_size +=
1469  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1470  unknown_fields());
1471  }
1472  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1473  _cached_size_ = total_size;
1474  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1475  return total_size;
1476 }
1477 
1478 void AlterTable::MergeFrom(const ::google::protobuf::Message& from) {
1479  GOOGLE_CHECK_NE(&from, this);
1480  const AlterTable* source =
1481  ::google::protobuf::internal::dynamic_cast_if_available<const AlterTable*>(
1482  &from);
1483  if (source == NULL) {
1484  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1485  } else {
1486  MergeFrom(*source);
1487  }
1488 }
1489 
1490 void AlterTable::MergeFrom(const AlterTable& from) {
1491  GOOGLE_CHECK_NE(&from, this);
1492  operations_.MergeFrom(from.operations_);
1493  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1494  if (from.has_catalog()) {
1495  set_catalog(from.catalog());
1496  }
1497  if (from.has_schema()) {
1498  set_schema(from.schema());
1499  }
1500  if (from.has_name()) {
1501  set_name(from.name());
1502  }
1503  if (from.has_build_method()) {
1504  set_build_method(from.build_method());
1505  }
1506  if (from.has_ignore()) {
1507  set_ignore(from.ignore());
1508  }
1509  if (from.has_rename()) {
1510  mutable_rename()->::drizzled::message::AlterTable_RenameTable::MergeFrom(from.rename());
1511  }
1512  if (from.has_alter_keys_onoff()) {
1513  mutable_alter_keys_onoff()->::drizzled::message::AlterTable_AlterKeysOnOff::MergeFrom(from.alter_keys_onoff());
1514  }
1515  }
1516  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1517 }
1518 
1519 void AlterTable::CopyFrom(const ::google::protobuf::Message& from) {
1520  if (&from == this) return;
1521  Clear();
1522  MergeFrom(from);
1523 }
1524 
1525 void AlterTable::CopyFrom(const AlterTable& from) {
1526  if (&from == this) return;
1527  Clear();
1528  MergeFrom(from);
1529 }
1530 
1531 bool AlterTable::IsInitialized() const {
1532  if ((_has_bits_[0] & 0x0000001e) != 0x0000001e) return false;
1533 
1534  for (int i = 0; i < operations_size(); i++) {
1535  if (!this->operations(i).IsInitialized()) return false;
1536  }
1537  if (has_rename()) {
1538  if (!this->rename().IsInitialized()) return false;
1539  }
1540  if (has_alter_keys_onoff()) {
1541  if (!this->alter_keys_onoff().IsInitialized()) return false;
1542  }
1543  return true;
1544 }
1545 
1546 void AlterTable::Swap(AlterTable* other) {
1547  if (other != this) {
1548  std::swap(catalog_, other->catalog_);
1549  std::swap(schema_, other->schema_);
1550  std::swap(name_, other->name_);
1551  std::swap(build_method_, other->build_method_);
1552  std::swap(ignore_, other->ignore_);
1553  operations_.Swap(&other->operations_);
1554  std::swap(rename_, other->rename_);
1555  std::swap(alter_keys_onoff_, other->alter_keys_onoff_);
1556  std::swap(_has_bits_[0], other->_has_bits_[0]);
1557  _unknown_fields_.Swap(&other->_unknown_fields_);
1558  std::swap(_cached_size_, other->_cached_size_);
1559  }
1560 }
1561 
1562 ::google::protobuf::Metadata AlterTable::GetMetadata() const {
1563  protobuf_AssignDescriptorsOnce();
1564  ::google::protobuf::Metadata metadata;
1565  metadata.descriptor = AlterTable_descriptor_;
1566  metadata.reflection = AlterTable_reflection_;
1567  return metadata;
1568 }
1569 
1570 
1571 // @@protoc_insertion_point(namespace_scope)
1572 
1573 } // namespace message
1574 } // namespace drizzled
1575 
1576 // @@protoc_insertion_point(global_scope)