Drizzled Public API Documentation

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