Drizzled Public API Documentation

table.pb.cc
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: table.proto
3 
4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 #include "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* Table_descriptor_ = NULL;
25 const ::google::protobuf::internal::GeneratedMessageReflection*
26  Table_reflection_ = NULL;
27 const ::google::protobuf::Descriptor* Table_TableOptions_descriptor_ = NULL;
28 const ::google::protobuf::internal::GeneratedMessageReflection*
29  Table_TableOptions_reflection_ = NULL;
30 const ::google::protobuf::Descriptor* Table_ForeignKeyConstraint_descriptor_ = NULL;
31 const ::google::protobuf::internal::GeneratedMessageReflection*
32  Table_ForeignKeyConstraint_reflection_ = NULL;
33 const ::google::protobuf::EnumDescriptor* Table_ForeignKeyConstraint_ForeignKeyMatchOption_descriptor_ = NULL;
34 const ::google::protobuf::EnumDescriptor* Table_ForeignKeyConstraint_ForeignKeyOption_descriptor_ = NULL;
35 const ::google::protobuf::Descriptor* Table_Field_descriptor_ = NULL;
36 const ::google::protobuf::internal::GeneratedMessageReflection*
37  Table_Field_reflection_ = NULL;
38 const ::google::protobuf::Descriptor* Table_Field_FieldOptions_descriptor_ = NULL;
39 const ::google::protobuf::internal::GeneratedMessageReflection*
40  Table_Field_FieldOptions_reflection_ = NULL;
41 const ::google::protobuf::Descriptor* Table_Field_FieldConstraints_descriptor_ = NULL;
42 const ::google::protobuf::internal::GeneratedMessageReflection*
43  Table_Field_FieldConstraints_reflection_ = NULL;
44 const ::google::protobuf::Descriptor* Table_Field_NumericFieldOptions_descriptor_ = NULL;
45 const ::google::protobuf::internal::GeneratedMessageReflection*
46  Table_Field_NumericFieldOptions_reflection_ = NULL;
47 const ::google::protobuf::Descriptor* Table_Field_StringFieldOptions_descriptor_ = NULL;
48 const ::google::protobuf::internal::GeneratedMessageReflection*
49  Table_Field_StringFieldOptions_reflection_ = NULL;
50 const ::google::protobuf::Descriptor* Table_Field_EnumerationValues_descriptor_ = NULL;
51 const ::google::protobuf::internal::GeneratedMessageReflection*
52  Table_Field_EnumerationValues_reflection_ = NULL;
53 const ::google::protobuf::Descriptor* Table_Field_TimeFieldOptions_descriptor_ = NULL;
54 const ::google::protobuf::internal::GeneratedMessageReflection*
55  Table_Field_TimeFieldOptions_reflection_ = NULL;
56 const ::google::protobuf::EnumDescriptor* Table_Field_FieldType_descriptor_ = NULL;
57 const ::google::protobuf::Descriptor* Table_Index_descriptor_ = NULL;
58 const ::google::protobuf::internal::GeneratedMessageReflection*
59  Table_Index_reflection_ = NULL;
60 const ::google::protobuf::Descriptor* Table_Index_IndexPart_descriptor_ = NULL;
61 const ::google::protobuf::internal::GeneratedMessageReflection*
62  Table_Index_IndexPart_reflection_ = NULL;
63 const ::google::protobuf::Descriptor* Table_Index_Options_descriptor_ = NULL;
64 const ::google::protobuf::internal::GeneratedMessageReflection*
65  Table_Index_Options_reflection_ = NULL;
66 const ::google::protobuf::EnumDescriptor* Table_Index_IndexType_descriptor_ = NULL;
67 const ::google::protobuf::EnumDescriptor* Table_TableType_descriptor_ = NULL;
68 const ::google::protobuf::Descriptor* AddedFields_descriptor_ = NULL;
69 const ::google::protobuf::internal::GeneratedMessageReflection*
70  AddedFields_reflection_ = NULL;
71 
72 } // namespace
73 
74 
75 void protobuf_AssignDesc_table_2eproto() {
76  protobuf_AddDesc_table_2eproto();
77  const ::google::protobuf::FileDescriptor* file =
78  ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
79  "table.proto");
80  GOOGLE_CHECK(file != NULL);
81  Table_descriptor_ = file->message_type(0);
82  static const int Table_offsets_[15] = {
83  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, name_),
84  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, schema_),
85  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, type_),
86  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, engine_),
87  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, field_),
88  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, indexes_),
89  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, fk_constraint_),
90  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, options_),
91  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, creation_timestamp_),
92  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, update_timestamp_),
93  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, catalog_),
94  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, uuid_),
95  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, version_),
96  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, replication_options_),
97  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, access_),
98  };
99  Table_reflection_ =
100  new ::google::protobuf::internal::GeneratedMessageReflection(
101  Table_descriptor_,
102  Table::default_instance_,
103  Table_offsets_,
104  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, _has_bits_[0]),
105  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, _unknown_fields_),
106  -1,
107  ::google::protobuf::DescriptorPool::generated_pool(),
108  ::google::protobuf::MessageFactory::generated_factory(),
109  sizeof(Table));
110  Table_TableOptions_descriptor_ = Table_descriptor_->nested_type(0);
111  static const int Table_TableOptions_offsets_[16] = {
112  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, has_user_set_auto_increment_value_),
113  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, collation_),
114  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, collation_id_),
115  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, data_file_name_),
116  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, index_file_name_),
117  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, max_rows_),
118  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, min_rows_),
119  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, auto_increment_value_),
120  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, avg_row_length_),
121  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, block_size_),
122  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, comment_),
123  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, pack_record_),
124  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, checksum_),
125  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, page_checksum_),
126  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, delay_key_write_),
127  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, unused_),
128  };
129  Table_TableOptions_reflection_ =
130  new ::google::protobuf::internal::GeneratedMessageReflection(
131  Table_TableOptions_descriptor_,
132  Table_TableOptions::default_instance_,
133  Table_TableOptions_offsets_,
134  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, _has_bits_[0]),
135  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, _unknown_fields_),
136  -1,
137  ::google::protobuf::DescriptorPool::generated_pool(),
138  ::google::protobuf::MessageFactory::generated_factory(),
139  sizeof(Table_TableOptions));
140  Table_ForeignKeyConstraint_descriptor_ = Table_descriptor_->nested_type(1);
141  static const int Table_ForeignKeyConstraint_offsets_[7] = {
142  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, name_),
143  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, column_names_),
144  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, references_table_name_),
145  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, references_columns_),
146  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, match_),
147  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, update_option_),
148  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, delete_option_),
149  };
150  Table_ForeignKeyConstraint_reflection_ =
151  new ::google::protobuf::internal::GeneratedMessageReflection(
152  Table_ForeignKeyConstraint_descriptor_,
153  Table_ForeignKeyConstraint::default_instance_,
154  Table_ForeignKeyConstraint_offsets_,
155  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, _has_bits_[0]),
156  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, _unknown_fields_),
157  -1,
158  ::google::protobuf::DescriptorPool::generated_pool(),
159  ::google::protobuf::MessageFactory::generated_factory(),
160  sizeof(Table_ForeignKeyConstraint));
161  Table_ForeignKeyConstraint_ForeignKeyMatchOption_descriptor_ = Table_ForeignKeyConstraint_descriptor_->enum_type(0);
162  Table_ForeignKeyConstraint_ForeignKeyOption_descriptor_ = Table_ForeignKeyConstraint_descriptor_->enum_type(1);
163  Table_Field_descriptor_ = Table_descriptor_->nested_type(2);
164  static const int Table_Field_offsets_[9] = {
165  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, name_),
166  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, type_),
167  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, options_),
168  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, constraints_),
169  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, numeric_options_),
170  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, string_options_),
171  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, time_options_),
172  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, comment_),
173  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, enumeration_values_),
174  };
175  Table_Field_reflection_ =
176  new ::google::protobuf::internal::GeneratedMessageReflection(
177  Table_Field_descriptor_,
178  Table_Field::default_instance_,
179  Table_Field_offsets_,
180  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, _has_bits_[0]),
181  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, _unknown_fields_),
182  -1,
183  ::google::protobuf::DescriptorPool::generated_pool(),
184  ::google::protobuf::MessageFactory::generated_factory(),
185  sizeof(Table_Field));
186  Table_Field_FieldOptions_descriptor_ = Table_Field_descriptor_->nested_type(0);
187  static const int Table_Field_FieldOptions_offsets_[6] = {
188  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, default_value_),
189  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, update_value_),
190  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, default_null_),
191  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, default_bin_value_),
192  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, default_expression_),
193  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, update_expression_),
194  };
195  Table_Field_FieldOptions_reflection_ =
196  new ::google::protobuf::internal::GeneratedMessageReflection(
197  Table_Field_FieldOptions_descriptor_,
198  Table_Field_FieldOptions::default_instance_,
199  Table_Field_FieldOptions_offsets_,
200  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, _has_bits_[0]),
201  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, _unknown_fields_),
202  -1,
203  ::google::protobuf::DescriptorPool::generated_pool(),
204  ::google::protobuf::MessageFactory::generated_factory(),
205  sizeof(Table_Field_FieldOptions));
206  Table_Field_FieldConstraints_descriptor_ = Table_Field_descriptor_->nested_type(1);
207  static const int Table_Field_FieldConstraints_offsets_[5] = {
208  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, is_nullable_),
209  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, is_unsigned_),
210  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, is_notnull_),
211  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, is_unique_),
212  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, expression_),
213  };
214  Table_Field_FieldConstraints_reflection_ =
215  new ::google::protobuf::internal::GeneratedMessageReflection(
216  Table_Field_FieldConstraints_descriptor_,
217  Table_Field_FieldConstraints::default_instance_,
218  Table_Field_FieldConstraints_offsets_,
219  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, _has_bits_[0]),
220  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, _unknown_fields_),
221  -1,
222  ::google::protobuf::DescriptorPool::generated_pool(),
223  ::google::protobuf::MessageFactory::generated_factory(),
224  sizeof(Table_Field_FieldConstraints));
225  Table_Field_NumericFieldOptions_descriptor_ = Table_Field_descriptor_->nested_type(2);
226  static const int Table_Field_NumericFieldOptions_offsets_[3] = {
227  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_NumericFieldOptions, is_autoincrement_),
228  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_NumericFieldOptions, scale_),
229  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_NumericFieldOptions, precision_),
230  };
231  Table_Field_NumericFieldOptions_reflection_ =
232  new ::google::protobuf::internal::GeneratedMessageReflection(
233  Table_Field_NumericFieldOptions_descriptor_,
234  Table_Field_NumericFieldOptions::default_instance_,
235  Table_Field_NumericFieldOptions_offsets_,
236  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_NumericFieldOptions, _has_bits_[0]),
237  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_NumericFieldOptions, _unknown_fields_),
238  -1,
239  ::google::protobuf::DescriptorPool::generated_pool(),
240  ::google::protobuf::MessageFactory::generated_factory(),
241  sizeof(Table_Field_NumericFieldOptions));
242  Table_Field_StringFieldOptions_descriptor_ = Table_Field_descriptor_->nested_type(3);
243  static const int Table_Field_StringFieldOptions_offsets_[4] = {
244  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, is_fixed_width_),
245  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, length_),
246  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, collation_id_),
247  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, collation_),
248  };
249  Table_Field_StringFieldOptions_reflection_ =
250  new ::google::protobuf::internal::GeneratedMessageReflection(
251  Table_Field_StringFieldOptions_descriptor_,
252  Table_Field_StringFieldOptions::default_instance_,
253  Table_Field_StringFieldOptions_offsets_,
254  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, _has_bits_[0]),
255  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, _unknown_fields_),
256  -1,
257  ::google::protobuf::DescriptorPool::generated_pool(),
258  ::google::protobuf::MessageFactory::generated_factory(),
259  sizeof(Table_Field_StringFieldOptions));
260  Table_Field_EnumerationValues_descriptor_ = Table_Field_descriptor_->nested_type(4);
261  static const int Table_Field_EnumerationValues_offsets_[3] = {
262  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_EnumerationValues, collation_id_),
263  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_EnumerationValues, collation_),
264  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_EnumerationValues, field_value_),
265  };
266  Table_Field_EnumerationValues_reflection_ =
267  new ::google::protobuf::internal::GeneratedMessageReflection(
268  Table_Field_EnumerationValues_descriptor_,
269  Table_Field_EnumerationValues::default_instance_,
270  Table_Field_EnumerationValues_offsets_,
271  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_EnumerationValues, _has_bits_[0]),
272  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_EnumerationValues, _unknown_fields_),
273  -1,
274  ::google::protobuf::DescriptorPool::generated_pool(),
275  ::google::protobuf::MessageFactory::generated_factory(),
276  sizeof(Table_Field_EnumerationValues));
277  Table_Field_TimeFieldOptions_descriptor_ = Table_Field_descriptor_->nested_type(5);
278  static const int Table_Field_TimeFieldOptions_offsets_[1] = {
279  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_TimeFieldOptions, microseconds_),
280  };
281  Table_Field_TimeFieldOptions_reflection_ =
282  new ::google::protobuf::internal::GeneratedMessageReflection(
283  Table_Field_TimeFieldOptions_descriptor_,
284  Table_Field_TimeFieldOptions::default_instance_,
285  Table_Field_TimeFieldOptions_offsets_,
286  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_TimeFieldOptions, _has_bits_[0]),
287  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_TimeFieldOptions, _unknown_fields_),
288  -1,
289  ::google::protobuf::DescriptorPool::generated_pool(),
290  ::google::protobuf::MessageFactory::generated_factory(),
291  sizeof(Table_Field_TimeFieldOptions));
292  Table_Field_FieldType_descriptor_ = Table_Field_descriptor_->enum_type(0);
293  Table_Index_descriptor_ = Table_descriptor_->nested_type(3);
294  static const int Table_Index_offsets_[8] = {
295  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, name_),
296  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, is_primary_),
297  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, is_unique_),
298  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, type_),
299  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, key_length_),
300  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, index_part_),
301  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, options_),
302  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, comment_),
303  };
304  Table_Index_reflection_ =
305  new ::google::protobuf::internal::GeneratedMessageReflection(
306  Table_Index_descriptor_,
307  Table_Index::default_instance_,
308  Table_Index_offsets_,
309  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, _has_bits_[0]),
310  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, _unknown_fields_),
311  -1,
312  ::google::protobuf::DescriptorPool::generated_pool(),
313  ::google::protobuf::MessageFactory::generated_factory(),
314  sizeof(Table_Index));
315  Table_Index_IndexPart_descriptor_ = Table_Index_descriptor_->nested_type(0);
316  static const int Table_Index_IndexPart_offsets_[3] = {
317  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_IndexPart, fieldnr_),
318  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_IndexPart, compare_length_),
319  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_IndexPart, in_reverse_order_),
320  };
321  Table_Index_IndexPart_reflection_ =
322  new ::google::protobuf::internal::GeneratedMessageReflection(
323  Table_Index_IndexPart_descriptor_,
324  Table_Index_IndexPart::default_instance_,
325  Table_Index_IndexPart_offsets_,
326  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_IndexPart, _has_bits_[0]),
327  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_IndexPart, _unknown_fields_),
328  -1,
329  ::google::protobuf::DescriptorPool::generated_pool(),
330  ::google::protobuf::MessageFactory::generated_factory(),
331  sizeof(Table_Index_IndexPart));
332  Table_Index_Options_descriptor_ = Table_Index_descriptor_->nested_type(1);
333  static const int Table_Index_Options_offsets_[7] = {
334  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, pack_key_),
335  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, binary_pack_key_),
336  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, var_length_key_),
337  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, null_part_key_),
338  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, key_block_size_),
339  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, has_partial_segments_),
340  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, auto_generated_key_),
341  };
342  Table_Index_Options_reflection_ =
343  new ::google::protobuf::internal::GeneratedMessageReflection(
344  Table_Index_Options_descriptor_,
345  Table_Index_Options::default_instance_,
346  Table_Index_Options_offsets_,
347  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, _has_bits_[0]),
348  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, _unknown_fields_),
349  -1,
350  ::google::protobuf::DescriptorPool::generated_pool(),
351  ::google::protobuf::MessageFactory::generated_factory(),
352  sizeof(Table_Index_Options));
353  Table_Index_IndexType_descriptor_ = Table_Index_descriptor_->enum_type(0);
354  Table_TableType_descriptor_ = Table_descriptor_->enum_type(0);
355  AddedFields_descriptor_ = file->message_type(1);
356  static const int AddedFields_offsets_[1] = {
357  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddedFields, added_field_),
358  };
359  AddedFields_reflection_ =
360  new ::google::protobuf::internal::GeneratedMessageReflection(
361  AddedFields_descriptor_,
362  AddedFields::default_instance_,
363  AddedFields_offsets_,
364  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddedFields, _has_bits_[0]),
365  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddedFields, _unknown_fields_),
366  -1,
367  ::google::protobuf::DescriptorPool::generated_pool(),
368  ::google::protobuf::MessageFactory::generated_factory(),
369  sizeof(AddedFields));
370 }
371 
372 namespace {
373 
374 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
375 inline void protobuf_AssignDescriptorsOnce() {
376  ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
377  &protobuf_AssignDesc_table_2eproto);
378 }
379 
380 void protobuf_RegisterTypes(const ::std::string&) {
381  protobuf_AssignDescriptorsOnce();
382  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
383  Table_descriptor_, &Table::default_instance());
384  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
385  Table_TableOptions_descriptor_, &Table_TableOptions::default_instance());
386  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
387  Table_ForeignKeyConstraint_descriptor_, &Table_ForeignKeyConstraint::default_instance());
388  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
389  Table_Field_descriptor_, &Table_Field::default_instance());
390  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
391  Table_Field_FieldOptions_descriptor_, &Table_Field_FieldOptions::default_instance());
392  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
393  Table_Field_FieldConstraints_descriptor_, &Table_Field_FieldConstraints::default_instance());
394  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
395  Table_Field_NumericFieldOptions_descriptor_, &Table_Field_NumericFieldOptions::default_instance());
396  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
397  Table_Field_StringFieldOptions_descriptor_, &Table_Field_StringFieldOptions::default_instance());
398  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
399  Table_Field_EnumerationValues_descriptor_, &Table_Field_EnumerationValues::default_instance());
400  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
401  Table_Field_TimeFieldOptions_descriptor_, &Table_Field_TimeFieldOptions::default_instance());
402  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
403  Table_Index_descriptor_, &Table_Index::default_instance());
404  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
405  Table_Index_IndexPart_descriptor_, &Table_Index_IndexPart::default_instance());
406  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
407  Table_Index_Options_descriptor_, &Table_Index_Options::default_instance());
408  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
409  AddedFields_descriptor_, &AddedFields::default_instance());
410 }
411 
412 } // namespace
413 
414 void protobuf_ShutdownFile_table_2eproto() {
415  delete Table::default_instance_;
416  delete Table_reflection_;
417  delete Table_TableOptions::default_instance_;
418  delete Table_TableOptions_reflection_;
419  delete Table_ForeignKeyConstraint::default_instance_;
420  delete Table_ForeignKeyConstraint_reflection_;
421  delete Table_Field::default_instance_;
422  delete Table_Field_reflection_;
423  delete Table_Field_FieldOptions::default_instance_;
424  delete Table_Field_FieldOptions_reflection_;
425  delete Table_Field_FieldConstraints::default_instance_;
426  delete Table_Field_FieldConstraints_reflection_;
427  delete Table_Field_NumericFieldOptions::default_instance_;
428  delete Table_Field_NumericFieldOptions_reflection_;
429  delete Table_Field_StringFieldOptions::default_instance_;
430  delete Table_Field_StringFieldOptions_reflection_;
431  delete Table_Field_EnumerationValues::default_instance_;
432  delete Table_Field_EnumerationValues_reflection_;
433  delete Table_Field_TimeFieldOptions::default_instance_;
434  delete Table_Field_TimeFieldOptions_reflection_;
435  delete Table_Index::default_instance_;
436  delete Table_Index_reflection_;
437  delete Table_Index_IndexPart::default_instance_;
438  delete Table_Index_IndexPart_reflection_;
439  delete Table_Index_Options::default_instance_;
440  delete Table_Index_Options_reflection_;
441  delete AddedFields::default_instance_;
442  delete AddedFields_reflection_;
443 }
444 
445 void protobuf_AddDesc_table_2eproto() {
446  static bool already_here = false;
447  if (already_here) return;
448  already_here = true;
449  GOOGLE_PROTOBUF_VERIFY_VERSION;
450 
451  ::drizzled::message::protobuf_AddDesc_engine_2eproto();
452  ::drizzled::message::protobuf_AddDesc_access_2eproto();
453  ::drizzled::message::protobuf_AddDesc_replication_5foptions_2eproto();
454  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
455  "\n\013table.proto\022\020drizzled.message\032\014engine."
456  "proto\032\014access.proto\032\031replication_options"
457  ".proto\"\273\034\n\005Table\022\014\n\004name\030\001 \002(\t\022\016\n\006schema"
458  "\030\006 \002(\t\022/\n\004type\030\005 \002(\0162!.drizzled.message."
459  "Table.TableType\022(\n\006engine\030\002 \002(\0132\030.drizzl"
460  "ed.message.Engine\022,\n\005field\030\003 \003(\0132\035.drizz"
461  "led.message.Table.Field\022.\n\007indexes\030\004 \003(\013"
462  "2\035.drizzled.message.Table.Index\022C\n\rfk_co"
463  "nstraint\030\010 \003(\0132,.drizzled.message.Table."
464  "ForeignKeyConstraint\0225\n\007options\030\t \001(\0132$."
465  "drizzled.message.Table.TableOptions\022\035\n\022c"
466  "reation_timestamp\030\013 \002(\004:\0010\022\033\n\020update_tim"
467  "estamp\030\014 \002(\004:\0010\022\017\n\007catalog\030\r \001(\t\022\014\n\004uuid"
468  "\030\016 \001(\t\022\017\n\007version\030\017 \001(\004\022A\n\023replication_o"
469  "ptions\030\020 \001(\0132$.drizzled.message.Replicat"
470  "ionOptions\022(\n\006access\030\021 \001(\0132\030.drizzled.me"
471  "ssage.Access\032\371\002\n\014TableOptions\022)\n!has_use"
472  "r_set_auto_increment_value\030\001 \001(\010\022\021\n\tcoll"
473  "ation\030\002 \001(\t\022\024\n\014collation_id\030\003 \001(\r\022\026\n\016dat"
474  "a_file_name\030\005 \001(\t\022\027\n\017index_file_name\030\006 \001"
475  "(\t\022\020\n\010max_rows\030\007 \001(\004\022\020\n\010min_rows\030\010 \001(\004\022\034"
476  "\n\024auto_increment_value\030\t \001(\004\022\026\n\016avg_row_"
477  "length\030\013 \001(\r\022\022\n\nblock_size\030\r \001(\r\022\017\n\007comm"
478  "ent\030\016 \001(\t\022\023\n\013pack_record\030\020 \001(\010\022\020\n\010checks"
479  "um\030\021 \001(\010\022\025\n\rpage_checksum\030\022 \001(\010\022\027\n\017delay"
480  "_key_write\030\023 \001(\010\022\016\n\006unused\030\024 \001(\010\032\206\005\n\024For"
481  "eignKeyConstraint\022\014\n\004name\030\001 \001(\t\022\024\n\014colum"
482  "n_names\030\002 \003(\t\022\035\n\025references_table_name\030\003"
483  " \002(\t\022\032\n\022references_columns\030\004 \003(\t\022Q\n\005matc"
484  "h\030\005 \002(\0162B.drizzled.message.Table.Foreign"
485  "KeyConstraint.ForeignKeyMatchOption\022b\n\ru"
486  "pdate_option\030\006 \002(\0162=.drizzled.message.Ta"
487  "ble.ForeignKeyConstraint.ForeignKeyOptio"
488  "n:\014OPTION_UNDEF\022b\n\rdelete_option\030\007 \002(\0162="
489  ".drizzled.message.Table.ForeignKeyConstr"
490  "aint.ForeignKeyOption:\014OPTION_UNDEF\"a\n\025F"
491  "oreignKeyMatchOption\022\023\n\017MATCH_UNDEFINED\020"
492  "\000\022\016\n\nMATCH_FULL\020\001\022\021\n\rMATCH_PARTIAL\020\002\022\020\n\014"
493  "MATCH_SIMPLE\020\003\"\220\001\n\020ForeignKeyOption\022\020\n\014O"
494  "PTION_UNDEF\020\000\022\023\n\017OPTION_RESTRICT\020\001\022\022\n\016OP"
495  "TION_CASCADE\020\002\022\023\n\017OPTION_SET_NULL\020\003\022\024\n\020O"
496  "PTION_NO_ACTION\020\004\022\026\n\022OPTION_SET_DEFAULT\020"
497  "\005\032\276\n\n\005Field\022\014\n\004name\030\001 \002(\t\0225\n\004type\030\002 \002(\0162"
498  "\'.drizzled.message.Table.Field.FieldType"
499  "\022;\n\007options\030\004 \001(\0132*.drizzled.message.Tab"
500  "le.Field.FieldOptions\022C\n\013constraints\030\005 \001"
501  "(\0132..drizzled.message.Table.Field.FieldC"
502  "onstraints\022J\n\017numeric_options\030\006 \001(\01321.dr"
503  "izzled.message.Table.Field.NumericFieldO"
504  "ptions\022H\n\016string_options\030\007 \001(\01320.drizzle"
505  "d.message.Table.Field.StringFieldOptions"
506  "\022D\n\014time_options\030\010 \001(\0132..drizzled.messag"
507  "e.Table.Field.TimeFieldOptions\022\017\n\007commen"
508  "t\030\020 \001(\t\022K\n\022enumeration_values\030\021 \001(\0132/.dr"
509  "izzled.message.Table.Field.EnumerationVa"
510  "lues\032\252\001\n\014FieldOptions\022\025\n\rdefault_value\030\001"
511  " \001(\t\022\024\n\014update_value\030\002 \001(\t\022\033\n\014default_nu"
512  "ll\030\003 \001(\010:\005false\022\031\n\021default_bin_value\030\004 \001"
513  "(\014\022\032\n\022default_expression\030\005 \001(\t\022\031\n\021update"
514  "_expression\030\006 \001(\t\032\222\001\n\020FieldConstraints\022\031"
515  "\n\013is_nullable\030\001 \001(\010:\004true\022\032\n\013is_unsigned"
516  "\030\002 \001(\010:\005false\022\031\n\nis_notnull\030\003 \001(\010:\005false"
517  "\022\030\n\tis_unique\030\004 \001(\010:\005false\022\022\n\nexpression"
518  "\030\020 \003(\t\032X\n\023NumericFieldOptions\022\037\n\020is_auto"
519  "increment\030\001 \001(\010:\005false\022\r\n\005scale\030\002 \001(\r\022\021\n"
520  "\tprecision\030\003 \001(\r\032l\n\022StringFieldOptions\022\035"
521  "\n\016is_fixed_width\030\001 \001(\010:\005false\022\016\n\006length\030"
522  "\002 \001(\r\022\024\n\014collation_id\030\003 \001(\r\022\021\n\tcollation"
523  "\030\004 \001(\t\032Q\n\021EnumerationValues\022\024\n\014collation"
524  "_id\030\002 \001(\r\022\021\n\tcollation\030\003 \001(\t\022\023\n\013field_va"
525  "lue\030\004 \003(\t\032(\n\020TimeFieldOptions\022\024\n\014microse"
526  "conds\030\001 \001(\010\"\254\001\n\tFieldType\022\n\n\006DOUBLE\020\000\022\013\n"
527  "\007VARCHAR\020\001\022\010\n\004BLOB\020\002\022\010\n\004ENUM\020\003\022\013\n\007INTEGE"
528  "R\020\004\022\n\n\006BIGINT\020\005\022\013\n\007DECIMAL\020\006\022\010\n\004DATE\020\007\022\t"
529  "\n\005EPOCH\020\t\022\014\n\010DATETIME\020\n\022\010\n\004UUID\020\013\022\010\n\004TIM"
530  "E\020\014\022\013\n\007BOOLEAN\020\r\022\010\n\004IPV6\020\016\032\371\004\n\005Index\022\014\n\004"
531  "name\030\001 \002(\t\022\022\n\nis_primary\030\002 \002(\010\022\021\n\tis_uni"
532  "que\030\003 \002(\010\022D\n\004type\030\004 \002(\0162\'.drizzled.messa"
533  "ge.Table.Index.IndexType:\rUNKNOWN_INDEX\022"
534  "\022\n\nkey_length\030\005 \002(\r\022;\n\nindex_part\030\006 \003(\0132"
535  "\'.drizzled.message.Table.Index.IndexPart"
536  "\0226\n\007options\030\007 \001(\0132%.drizzled.message.Tab"
537  "le.Index.Options\022\017\n\007comment\030\010 \001(\t\032U\n\tInd"
538  "exPart\022\017\n\007fieldnr\030\001 \002(\r\022\026\n\016compare_lengt"
539  "h\030\002 \001(\r\022\037\n\020in_reverse_order\030\003 \001(\010:\005false"
540  "\032\265\001\n\007Options\022\020\n\010pack_key\030\001 \001(\010\022\027\n\017binary"
541  "_pack_key\030\002 \001(\010\022\026\n\016var_length_key\030\003 \001(\010\022"
542  "\025\n\rnull_part_key\030\004 \001(\010\022\026\n\016key_block_size"
543  "\030\005 \001(\r\022\034\n\024has_partial_segments\030\006 \001(\010\022\032\n\022"
544  "auto_generated_key\030\007 \001(\010\"L\n\tIndexType\022\021\n"
545  "\rUNKNOWN_INDEX\020\000\022\t\n\005BTREE\020\001\022\t\n\005RTREE\020\002\022\010"
546  "\n\004HASH\020\003\022\014\n\010FULLTEXT\020\004\"D\n\tTableType\022\014\n\010S"
547  "TANDARD\020\000\022\r\n\tTEMPORARY\020\001\022\014\n\010INTERNAL\020\002\022\014"
548  "\n\010FUNCTION\020\003\"A\n\013AddedFields\0222\n\013added_fie"
549  "ld\030\001 \003(\0132\035.drizzled.message.Table.FieldB"
550  "&\n\024org.drizzle.messagesB\014TableMessageH\001", 3839);
551  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
552  "table.proto", &protobuf_RegisterTypes);
553  Table::default_instance_ = new Table();
554  Table_TableOptions::default_instance_ = new Table_TableOptions();
555  Table_ForeignKeyConstraint::default_instance_ = new Table_ForeignKeyConstraint();
556  Table_Field::default_instance_ = new Table_Field();
557  Table_Field_FieldOptions::default_instance_ = new Table_Field_FieldOptions();
558  Table_Field_FieldConstraints::default_instance_ = new Table_Field_FieldConstraints();
559  Table_Field_NumericFieldOptions::default_instance_ = new Table_Field_NumericFieldOptions();
560  Table_Field_StringFieldOptions::default_instance_ = new Table_Field_StringFieldOptions();
561  Table_Field_EnumerationValues::default_instance_ = new Table_Field_EnumerationValues();
562  Table_Field_TimeFieldOptions::default_instance_ = new Table_Field_TimeFieldOptions();
563  Table_Index::default_instance_ = new Table_Index();
564  Table_Index_IndexPart::default_instance_ = new Table_Index_IndexPart();
565  Table_Index_Options::default_instance_ = new Table_Index_Options();
566  AddedFields::default_instance_ = new AddedFields();
567  Table::default_instance_->InitAsDefaultInstance();
568  Table_TableOptions::default_instance_->InitAsDefaultInstance();
569  Table_ForeignKeyConstraint::default_instance_->InitAsDefaultInstance();
570  Table_Field::default_instance_->InitAsDefaultInstance();
571  Table_Field_FieldOptions::default_instance_->InitAsDefaultInstance();
572  Table_Field_FieldConstraints::default_instance_->InitAsDefaultInstance();
573  Table_Field_NumericFieldOptions::default_instance_->InitAsDefaultInstance();
574  Table_Field_StringFieldOptions::default_instance_->InitAsDefaultInstance();
575  Table_Field_EnumerationValues::default_instance_->InitAsDefaultInstance();
576  Table_Field_TimeFieldOptions::default_instance_->InitAsDefaultInstance();
577  Table_Index::default_instance_->InitAsDefaultInstance();
578  Table_Index_IndexPart::default_instance_->InitAsDefaultInstance();
579  Table_Index_Options::default_instance_->InitAsDefaultInstance();
580  AddedFields::default_instance_->InitAsDefaultInstance();
581  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_table_2eproto);
582 }
583 
584 // Force AddDescriptors() to be called at static initialization time.
587  protobuf_AddDesc_table_2eproto();
588  }
589 } static_descriptor_initializer_table_2eproto_;
590 
591 // ===================================================================
592 
593 const ::google::protobuf::EnumDescriptor* Table_TableType_descriptor() {
594  protobuf_AssignDescriptorsOnce();
595  return Table_TableType_descriptor_;
596 }
597 bool Table_TableType_IsValid(int value) {
598  switch(value) {
599  case 0:
600  case 1:
601  case 2:
602  case 3:
603  return true;
604  default:
605  return false;
606  }
607 }
608 
609 #ifndef _MSC_VER
610 const Table_TableType Table::STANDARD;
611 const Table_TableType Table::TEMPORARY;
612 const Table_TableType Table::INTERNAL;
613 const Table_TableType Table::FUNCTION;
614 const Table_TableType Table::TableType_MIN;
615 const Table_TableType Table::TableType_MAX;
616 const int Table::TableType_ARRAYSIZE;
617 #endif // _MSC_VER
618 #ifndef _MSC_VER
619 const int Table_TableOptions::kHasUserSetAutoIncrementValueFieldNumber;
620 const int Table_TableOptions::kCollationFieldNumber;
621 const int Table_TableOptions::kCollationIdFieldNumber;
622 const int Table_TableOptions::kDataFileNameFieldNumber;
623 const int Table_TableOptions::kIndexFileNameFieldNumber;
624 const int Table_TableOptions::kMaxRowsFieldNumber;
625 const int Table_TableOptions::kMinRowsFieldNumber;
626 const int Table_TableOptions::kAutoIncrementValueFieldNumber;
627 const int Table_TableOptions::kAvgRowLengthFieldNumber;
628 const int Table_TableOptions::kBlockSizeFieldNumber;
629 const int Table_TableOptions::kCommentFieldNumber;
630 const int Table_TableOptions::kPackRecordFieldNumber;
631 const int Table_TableOptions::kChecksumFieldNumber;
632 const int Table_TableOptions::kPageChecksumFieldNumber;
633 const int Table_TableOptions::kDelayKeyWriteFieldNumber;
634 const int Table_TableOptions::kUnusedFieldNumber;
635 #endif // !_MSC_VER
636 
637 Table_TableOptions::Table_TableOptions()
638  : ::google::protobuf::Message() {
639  SharedCtor();
640  // @@protoc_insertion_point(constructor:drizzled.message.Table.TableOptions)
641 }
642 
643 void Table_TableOptions::InitAsDefaultInstance() {
644 }
645 
646 Table_TableOptions::Table_TableOptions(const Table_TableOptions& from)
647  : ::google::protobuf::Message() {
648  SharedCtor();
649  MergeFrom(from);
650  // @@protoc_insertion_point(copy_constructor:drizzled.message.Table.TableOptions)
651 }
652 
653 void Table_TableOptions::SharedCtor() {
654  ::google::protobuf::internal::GetEmptyString();
655  _cached_size_ = 0;
656  has_user_set_auto_increment_value_ = false;
657  collation_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
658  collation_id_ = 0u;
659  data_file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
660  index_file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
661  max_rows_ = GOOGLE_ULONGLONG(0);
662  min_rows_ = GOOGLE_ULONGLONG(0);
663  auto_increment_value_ = GOOGLE_ULONGLONG(0);
664  avg_row_length_ = 0u;
665  block_size_ = 0u;
666  comment_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
667  pack_record_ = false;
668  checksum_ = false;
669  page_checksum_ = false;
670  delay_key_write_ = false;
671  unused_ = false;
672  ::memset(_has_bits_, 0, sizeof(_has_bits_));
673 }
674 
675 Table_TableOptions::~Table_TableOptions() {
676  // @@protoc_insertion_point(destructor:drizzled.message.Table.TableOptions)
677  SharedDtor();
678 }
679 
680 void Table_TableOptions::SharedDtor() {
681  if (collation_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
682  delete collation_;
683  }
684  if (data_file_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
685  delete data_file_name_;
686  }
687  if (index_file_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
688  delete index_file_name_;
689  }
690  if (comment_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
691  delete comment_;
692  }
693  if (this != default_instance_) {
694  }
695 }
696 
697 void Table_TableOptions::SetCachedSize(int size) const {
698  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
699  _cached_size_ = size;
700  GOOGLE_SAFE_CONCURRENT_WRITES_END();
701 }
702 const ::google::protobuf::Descriptor* Table_TableOptions::descriptor() {
703  protobuf_AssignDescriptorsOnce();
704  return Table_TableOptions_descriptor_;
705 }
706 
707 const Table_TableOptions& Table_TableOptions::default_instance() {
708  if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
709  return *default_instance_;
710 }
711 
712 Table_TableOptions* Table_TableOptions::default_instance_ = NULL;
713 
714 Table_TableOptions* Table_TableOptions::New() const {
715  return new Table_TableOptions;
716 }
717 
718 void Table_TableOptions::Clear() {
719 #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
720  &reinterpret_cast<Table_TableOptions*>(16)->f) - \
721  reinterpret_cast<char*>(16))
722 
723 #define ZR_(first, last) do { \
724  size_t f = OFFSET_OF_FIELD_(first); \
725  size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
726  ::memset(&first, 0, n); \
727  } while (0)
728 
729  if (_has_bits_[0 / 32] & 255) {
730  ZR_(max_rows_, collation_id_);
731  ZR_(min_rows_, auto_increment_value_);
732  has_user_set_auto_increment_value_ = false;
733  if (has_collation()) {
734  if (collation_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
735  collation_->clear();
736  }
737  }
738  if (has_data_file_name()) {
739  if (data_file_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
740  data_file_name_->clear();
741  }
742  }
743  if (has_index_file_name()) {
744  if (index_file_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
745  index_file_name_->clear();
746  }
747  }
748  }
749  if (_has_bits_[8 / 32] & 65280) {
750  ZR_(pack_record_, page_checksum_);
751  ZR_(delay_key_write_, unused_);
752  avg_row_length_ = 0u;
753  block_size_ = 0u;
754  if (has_comment()) {
755  if (comment_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
756  comment_->clear();
757  }
758  }
759  }
760 
761 #undef OFFSET_OF_FIELD_
762 #undef ZR_
763 
764  ::memset(_has_bits_, 0, sizeof(_has_bits_));
765  mutable_unknown_fields()->Clear();
766 }
767 
768 bool Table_TableOptions::MergePartialFromCodedStream(
769  ::google::protobuf::io::CodedInputStream* input) {
770 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
771  ::google::protobuf::uint32 tag;
772  // @@protoc_insertion_point(parse_start:drizzled.message.Table.TableOptions)
773  for (;;) {
774  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
775  tag = p.first;
776  if (!p.second) goto handle_unusual;
777  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
778  // optional bool has_user_set_auto_increment_value = 1;
779  case 1: {
780  if (tag == 8) {
781  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
782  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
783  input, &has_user_set_auto_increment_value_)));
784  set_has_has_user_set_auto_increment_value();
785  } else {
786  goto handle_unusual;
787  }
788  if (input->ExpectTag(18)) goto parse_collation;
789  break;
790  }
791 
792  // optional string collation = 2;
793  case 2: {
794  if (tag == 18) {
795  parse_collation:
796  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
797  input, this->mutable_collation()));
798  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
799  this->collation().data(), this->collation().length(),
800  ::google::protobuf::internal::WireFormat::PARSE,
801  "collation");
802  } else {
803  goto handle_unusual;
804  }
805  if (input->ExpectTag(24)) goto parse_collation_id;
806  break;
807  }
808 
809  // optional uint32 collation_id = 3;
810  case 3: {
811  if (tag == 24) {
812  parse_collation_id:
813  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
814  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
815  input, &collation_id_)));
816  set_has_collation_id();
817  } else {
818  goto handle_unusual;
819  }
820  if (input->ExpectTag(42)) goto parse_data_file_name;
821  break;
822  }
823 
824  // optional string data_file_name = 5;
825  case 5: {
826  if (tag == 42) {
827  parse_data_file_name:
828  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
829  input, this->mutable_data_file_name()));
830  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
831  this->data_file_name().data(), this->data_file_name().length(),
832  ::google::protobuf::internal::WireFormat::PARSE,
833  "data_file_name");
834  } else {
835  goto handle_unusual;
836  }
837  if (input->ExpectTag(50)) goto parse_index_file_name;
838  break;
839  }
840 
841  // optional string index_file_name = 6;
842  case 6: {
843  if (tag == 50) {
844  parse_index_file_name:
845  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
846  input, this->mutable_index_file_name()));
847  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
848  this->index_file_name().data(), this->index_file_name().length(),
849  ::google::protobuf::internal::WireFormat::PARSE,
850  "index_file_name");
851  } else {
852  goto handle_unusual;
853  }
854  if (input->ExpectTag(56)) goto parse_max_rows;
855  break;
856  }
857 
858  // optional uint64 max_rows = 7;
859  case 7: {
860  if (tag == 56) {
861  parse_max_rows:
862  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
863  ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
864  input, &max_rows_)));
865  set_has_max_rows();
866  } else {
867  goto handle_unusual;
868  }
869  if (input->ExpectTag(64)) goto parse_min_rows;
870  break;
871  }
872 
873  // optional uint64 min_rows = 8;
874  case 8: {
875  if (tag == 64) {
876  parse_min_rows:
877  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
878  ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
879  input, &min_rows_)));
880  set_has_min_rows();
881  } else {
882  goto handle_unusual;
883  }
884  if (input->ExpectTag(72)) goto parse_auto_increment_value;
885  break;
886  }
887 
888  // optional uint64 auto_increment_value = 9;
889  case 9: {
890  if (tag == 72) {
891  parse_auto_increment_value:
892  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
893  ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
894  input, &auto_increment_value_)));
895  set_has_auto_increment_value();
896  } else {
897  goto handle_unusual;
898  }
899  if (input->ExpectTag(88)) goto parse_avg_row_length;
900  break;
901  }
902 
903  // optional uint32 avg_row_length = 11;
904  case 11: {
905  if (tag == 88) {
906  parse_avg_row_length:
907  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
908  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
909  input, &avg_row_length_)));
910  set_has_avg_row_length();
911  } else {
912  goto handle_unusual;
913  }
914  if (input->ExpectTag(104)) goto parse_block_size;
915  break;
916  }
917 
918  // optional uint32 block_size = 13;
919  case 13: {
920  if (tag == 104) {
921  parse_block_size:
922  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
923  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
924  input, &block_size_)));
925  set_has_block_size();
926  } else {
927  goto handle_unusual;
928  }
929  if (input->ExpectTag(114)) goto parse_comment;
930  break;
931  }
932 
933  // optional string comment = 14;
934  case 14: {
935  if (tag == 114) {
936  parse_comment:
937  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
938  input, this->mutable_comment()));
939  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
940  this->comment().data(), this->comment().length(),
941  ::google::protobuf::internal::WireFormat::PARSE,
942  "comment");
943  } else {
944  goto handle_unusual;
945  }
946  if (input->ExpectTag(128)) goto parse_pack_record;
947  break;
948  }
949 
950  // optional bool pack_record = 16;
951  case 16: {
952  if (tag == 128) {
953  parse_pack_record:
954  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
955  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
956  input, &pack_record_)));
957  set_has_pack_record();
958  } else {
959  goto handle_unusual;
960  }
961  if (input->ExpectTag(136)) goto parse_checksum;
962  break;
963  }
964 
965  // optional bool checksum = 17;
966  case 17: {
967  if (tag == 136) {
968  parse_checksum:
969  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
970  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
971  input, &checksum_)));
972  set_has_checksum();
973  } else {
974  goto handle_unusual;
975  }
976  if (input->ExpectTag(144)) goto parse_page_checksum;
977  break;
978  }
979 
980  // optional bool page_checksum = 18;
981  case 18: {
982  if (tag == 144) {
983  parse_page_checksum:
984  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
985  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
986  input, &page_checksum_)));
987  set_has_page_checksum();
988  } else {
989  goto handle_unusual;
990  }
991  if (input->ExpectTag(152)) goto parse_delay_key_write;
992  break;
993  }
994 
995  // optional bool delay_key_write = 19;
996  case 19: {
997  if (tag == 152) {
998  parse_delay_key_write:
999  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1000  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1001  input, &delay_key_write_)));
1002  set_has_delay_key_write();
1003  } else {
1004  goto handle_unusual;
1005  }
1006  if (input->ExpectTag(160)) goto parse_unused;
1007  break;
1008  }
1009 
1010  // optional bool unused = 20;
1011  case 20: {
1012  if (tag == 160) {
1013  parse_unused:
1014  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1015  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1016  input, &unused_)));
1017  set_has_unused();
1018  } else {
1019  goto handle_unusual;
1020  }
1021  if (input->ExpectAtEnd()) goto success;
1022  break;
1023  }
1024 
1025  default: {
1026  handle_unusual:
1027  if (tag == 0 ||
1028  ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1029  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1030  goto success;
1031  }
1032  DO_(::google::protobuf::internal::WireFormat::SkipField(
1033  input, tag, mutable_unknown_fields()));
1034  break;
1035  }
1036  }
1037  }
1038 success:
1039  // @@protoc_insertion_point(parse_success:drizzled.message.Table.TableOptions)
1040  return true;
1041 failure:
1042  // @@protoc_insertion_point(parse_failure:drizzled.message.Table.TableOptions)
1043  return false;
1044 #undef DO_
1045 }
1046 
1047 void Table_TableOptions::SerializeWithCachedSizes(
1048  ::google::protobuf::io::CodedOutputStream* output) const {
1049  // @@protoc_insertion_point(serialize_start:drizzled.message.Table.TableOptions)
1050  // optional bool has_user_set_auto_increment_value = 1;
1051  if (has_has_user_set_auto_increment_value()) {
1052  ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->has_user_set_auto_increment_value(), output);
1053  }
1054 
1055  // optional string collation = 2;
1056  if (has_collation()) {
1057  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1058  this->collation().data(), this->collation().length(),
1059  ::google::protobuf::internal::WireFormat::SERIALIZE,
1060  "collation");
1061  ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1062  2, this->collation(), output);
1063  }
1064 
1065  // optional uint32 collation_id = 3;
1066  if (has_collation_id()) {
1067  ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->collation_id(), output);
1068  }
1069 
1070  // optional string data_file_name = 5;
1071  if (has_data_file_name()) {
1072  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1073  this->data_file_name().data(), this->data_file_name().length(),
1074  ::google::protobuf::internal::WireFormat::SERIALIZE,
1075  "data_file_name");
1076  ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1077  5, this->data_file_name(), output);
1078  }
1079 
1080  // optional string index_file_name = 6;
1081  if (has_index_file_name()) {
1082  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1083  this->index_file_name().data(), this->index_file_name().length(),
1084  ::google::protobuf::internal::WireFormat::SERIALIZE,
1085  "index_file_name");
1086  ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1087  6, this->index_file_name(), output);
1088  }
1089 
1090  // optional uint64 max_rows = 7;
1091  if (has_max_rows()) {
1092  ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->max_rows(), output);
1093  }
1094 
1095  // optional uint64 min_rows = 8;
1096  if (has_min_rows()) {
1097  ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->min_rows(), output);
1098  }
1099 
1100  // optional uint64 auto_increment_value = 9;
1101  if (has_auto_increment_value()) {
1102  ::google::protobuf::internal::WireFormatLite::WriteUInt64(9, this->auto_increment_value(), output);
1103  }
1104 
1105  // optional uint32 avg_row_length = 11;
1106  if (has_avg_row_length()) {
1107  ::google::protobuf::internal::WireFormatLite::WriteUInt32(11, this->avg_row_length(), output);
1108  }
1109 
1110  // optional uint32 block_size = 13;
1111  if (has_block_size()) {
1112  ::google::protobuf::internal::WireFormatLite::WriteUInt32(13, this->block_size(), output);
1113  }
1114 
1115  // optional string comment = 14;
1116  if (has_comment()) {
1117  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1118  this->comment().data(), this->comment().length(),
1119  ::google::protobuf::internal::WireFormat::SERIALIZE,
1120  "comment");
1121  ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1122  14, this->comment(), output);
1123  }
1124 
1125  // optional bool pack_record = 16;
1126  if (has_pack_record()) {
1127  ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->pack_record(), output);
1128  }
1129 
1130  // optional bool checksum = 17;
1131  if (has_checksum()) {
1132  ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->checksum(), output);
1133  }
1134 
1135  // optional bool page_checksum = 18;
1136  if (has_page_checksum()) {
1137  ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->page_checksum(), output);
1138  }
1139 
1140  // optional bool delay_key_write = 19;
1141  if (has_delay_key_write()) {
1142  ::google::protobuf::internal::WireFormatLite::WriteBool(19, this->delay_key_write(), output);
1143  }
1144 
1145  // optional bool unused = 20;
1146  if (has_unused()) {
1147  ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->unused(), output);
1148  }
1149 
1150  if (!unknown_fields().empty()) {
1151  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1152  unknown_fields(), output);
1153  }
1154  // @@protoc_insertion_point(serialize_end:drizzled.message.Table.TableOptions)
1155 }
1156 
1157 ::google::protobuf::uint8* Table_TableOptions::SerializeWithCachedSizesToArray(
1158  ::google::protobuf::uint8* target) const {
1159  // @@protoc_insertion_point(serialize_to_array_start:drizzled.message.Table.TableOptions)
1160  // optional bool has_user_set_auto_increment_value = 1;
1161  if (has_has_user_set_auto_increment_value()) {
1162  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->has_user_set_auto_increment_value(), target);
1163  }
1164 
1165  // optional string collation = 2;
1166  if (has_collation()) {
1167  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1168  this->collation().data(), this->collation().length(),
1169  ::google::protobuf::internal::WireFormat::SERIALIZE,
1170  "collation");
1171  target =
1172  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1173  2, this->collation(), target);
1174  }
1175 
1176  // optional uint32 collation_id = 3;
1177  if (has_collation_id()) {
1178  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->collation_id(), target);
1179  }
1180 
1181  // optional string data_file_name = 5;
1182  if (has_data_file_name()) {
1183  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1184  this->data_file_name().data(), this->data_file_name().length(),
1185  ::google::protobuf::internal::WireFormat::SERIALIZE,
1186  "data_file_name");
1187  target =
1188  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1189  5, this->data_file_name(), target);
1190  }
1191 
1192  // optional string index_file_name = 6;
1193  if (has_index_file_name()) {
1194  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1195  this->index_file_name().data(), this->index_file_name().length(),
1196  ::google::protobuf::internal::WireFormat::SERIALIZE,
1197  "index_file_name");
1198  target =
1199  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1200  6, this->index_file_name(), target);
1201  }
1202 
1203  // optional uint64 max_rows = 7;
1204  if (has_max_rows()) {
1205  target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->max_rows(), target);
1206  }
1207 
1208  // optional uint64 min_rows = 8;
1209  if (has_min_rows()) {
1210  target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->min_rows(), target);
1211  }
1212 
1213  // optional uint64 auto_increment_value = 9;
1214  if (has_auto_increment_value()) {
1215  target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(9, this->auto_increment_value(), target);
1216  }
1217 
1218  // optional uint32 avg_row_length = 11;
1219  if (has_avg_row_length()) {
1220  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(11, this->avg_row_length(), target);
1221  }
1222 
1223  // optional uint32 block_size = 13;
1224  if (has_block_size()) {
1225  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(13, this->block_size(), target);
1226  }
1227 
1228  // optional string comment = 14;
1229  if (has_comment()) {
1230  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1231  this->comment().data(), this->comment().length(),
1232  ::google::protobuf::internal::WireFormat::SERIALIZE,
1233  "comment");
1234  target =
1235  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1236  14, this->comment(), target);
1237  }
1238 
1239  // optional bool pack_record = 16;
1240  if (has_pack_record()) {
1241  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->pack_record(), target);
1242  }
1243 
1244  // optional bool checksum = 17;
1245  if (has_checksum()) {
1246  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->checksum(), target);
1247  }
1248 
1249  // optional bool page_checksum = 18;
1250  if (has_page_checksum()) {
1251  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->page_checksum(), target);
1252  }
1253 
1254  // optional bool delay_key_write = 19;
1255  if (has_delay_key_write()) {
1256  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(19, this->delay_key_write(), target);
1257  }
1258 
1259  // optional bool unused = 20;
1260  if (has_unused()) {
1261  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->unused(), target);
1262  }
1263 
1264  if (!unknown_fields().empty()) {
1265  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1266  unknown_fields(), target);
1267  }
1268  // @@protoc_insertion_point(serialize_to_array_end:drizzled.message.Table.TableOptions)
1269  return target;
1270 }
1271 
1272 int Table_TableOptions::ByteSize() const {
1273  int total_size = 0;
1274 
1275  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1276  // optional bool has_user_set_auto_increment_value = 1;
1277  if (has_has_user_set_auto_increment_value()) {
1278  total_size += 1 + 1;
1279  }
1280 
1281  // optional string collation = 2;
1282  if (has_collation()) {
1283  total_size += 1 +
1284  ::google::protobuf::internal::WireFormatLite::StringSize(
1285  this->collation());
1286  }
1287 
1288  // optional uint32 collation_id = 3;
1289  if (has_collation_id()) {
1290  total_size += 1 +
1291  ::google::protobuf::internal::WireFormatLite::UInt32Size(
1292  this->collation_id());
1293  }
1294 
1295  // optional string data_file_name = 5;
1296  if (has_data_file_name()) {
1297  total_size += 1 +
1298  ::google::protobuf::internal::WireFormatLite::StringSize(
1299  this->data_file_name());
1300  }
1301 
1302  // optional string index_file_name = 6;
1303  if (has_index_file_name()) {
1304  total_size += 1 +
1305  ::google::protobuf::internal::WireFormatLite::StringSize(
1306  this->index_file_name());
1307  }
1308 
1309  // optional uint64 max_rows = 7;
1310  if (has_max_rows()) {
1311  total_size += 1 +
1312  ::google::protobuf::internal::WireFormatLite::UInt64Size(
1313  this->max_rows());
1314  }
1315 
1316  // optional uint64 min_rows = 8;
1317  if (has_min_rows()) {
1318  total_size += 1 +
1319  ::google::protobuf::internal::WireFormatLite::UInt64Size(
1320  this->min_rows());
1321  }
1322 
1323  // optional uint64 auto_increment_value = 9;
1324  if (has_auto_increment_value()) {
1325  total_size += 1 +
1326  ::google::protobuf::internal::WireFormatLite::UInt64Size(
1327  this->auto_increment_value());
1328  }
1329 
1330  }
1331  if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
1332  // optional uint32 avg_row_length = 11;
1333  if (has_avg_row_length()) {
1334  total_size += 1 +
1335  ::google::protobuf::internal::WireFormatLite::UInt32Size(
1336  this->avg_row_length());
1337  }
1338 
1339  // optional uint32 block_size = 13;
1340  if (has_block_size()) {
1341  total_size += 1 +
1342  ::google::protobuf::internal::WireFormatLite::UInt32Size(
1343  this->block_size());
1344  }
1345 
1346  // optional string comment = 14;
1347  if (has_comment()) {
1348  total_size += 1 +
1349  ::google::protobuf::internal::WireFormatLite::StringSize(
1350  this->comment());
1351  }
1352 
1353  // optional bool pack_record = 16;
1354  if (has_pack_record()) {
1355  total_size += 2 + 1;
1356  }
1357 
1358  // optional bool checksum = 17;
1359  if (has_checksum()) {
1360  total_size += 2 + 1;
1361  }
1362 
1363  // optional bool page_checksum = 18;
1364  if (has_page_checksum()) {
1365  total_size += 2 + 1;
1366  }
1367 
1368  // optional bool delay_key_write = 19;
1369  if (has_delay_key_write()) {
1370  total_size += 2 + 1;
1371  }
1372 
1373  // optional bool unused = 20;
1374  if (has_unused()) {
1375  total_size += 2 + 1;
1376  }
1377 
1378  }
1379  if (!unknown_fields().empty()) {
1380  total_size +=
1381  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1382  unknown_fields());
1383  }
1384  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1385  _cached_size_ = total_size;
1386  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1387  return total_size;
1388 }
1389 
1390 void Table_TableOptions::MergeFrom(const ::google::protobuf::Message& from) {
1391  GOOGLE_CHECK_NE(&from, this);
1392  const Table_TableOptions* source =
1393  ::google::protobuf::internal::dynamic_cast_if_available<const Table_TableOptions*>(
1394  &from);
1395  if (source == NULL) {
1396  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1397  } else {
1398  MergeFrom(*source);
1399  }
1400 }
1401 
1402 void Table_TableOptions::MergeFrom(const Table_TableOptions& from) {
1403  GOOGLE_CHECK_NE(&from, this);
1404  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1405  if (from.has_has_user_set_auto_increment_value()) {
1406  set_has_user_set_auto_increment_value(from.has_user_set_auto_increment_value());
1407  }
1408  if (from.has_collation()) {
1409  set_collation(from.collation());
1410  }
1411  if (from.has_collation_id()) {
1412  set_collation_id(from.collation_id());
1413  }
1414  if (from.has_data_file_name()) {
1415  set_data_file_name(from.data_file_name());
1416  }
1417  if (from.has_index_file_name()) {
1418  set_index_file_name(from.index_file_name());
1419  }
1420  if (from.has_max_rows()) {
1421  set_max_rows(from.max_rows());
1422  }
1423  if (from.has_min_rows()) {
1424  set_min_rows(from.min_rows());
1425  }
1426  if (from.has_auto_increment_value()) {
1427  set_auto_increment_value(from.auto_increment_value());
1428  }
1429  }
1430  if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
1431  if (from.has_avg_row_length()) {
1432  set_avg_row_length(from.avg_row_length());
1433  }
1434  if (from.has_block_size()) {
1435  set_block_size(from.block_size());
1436  }
1437  if (from.has_comment()) {
1438  set_comment(from.comment());
1439  }
1440  if (from.has_pack_record()) {
1441  set_pack_record(from.pack_record());
1442  }
1443  if (from.has_checksum()) {
1444  set_checksum(from.checksum());
1445  }
1446  if (from.has_page_checksum()) {
1447  set_page_checksum(from.page_checksum());
1448  }
1449  if (from.has_delay_key_write()) {
1450  set_delay_key_write(from.delay_key_write());
1451  }
1452  if (from.has_unused()) {
1453  set_unused(from.unused());
1454  }
1455  }
1456  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1457 }
1458 
1459 void Table_TableOptions::CopyFrom(const ::google::protobuf::Message& from) {
1460  if (&from == this) return;
1461  Clear();
1462  MergeFrom(from);
1463 }
1464 
1465 void Table_TableOptions::CopyFrom(const Table_TableOptions& from) {
1466  if (&from == this) return;
1467  Clear();
1468  MergeFrom(from);
1469 }
1470 
1471 bool Table_TableOptions::IsInitialized() const {
1472 
1473  return true;
1474 }
1475 
1476 void Table_TableOptions::Swap(Table_TableOptions* other) {
1477  if (other != this) {
1478  std::swap(has_user_set_auto_increment_value_, other->has_user_set_auto_increment_value_);
1479  std::swap(collation_, other->collation_);
1480  std::swap(collation_id_, other->collation_id_);
1481  std::swap(data_file_name_, other->data_file_name_);
1482  std::swap(index_file_name_, other->index_file_name_);
1483  std::swap(max_rows_, other->max_rows_);
1484  std::swap(min_rows_, other->min_rows_);
1485  std::swap(auto_increment_value_, other->auto_increment_value_);
1486  std::swap(avg_row_length_, other->avg_row_length_);
1487  std::swap(block_size_, other->block_size_);
1488  std::swap(comment_, other->comment_);
1489  std::swap(pack_record_, other->pack_record_);
1490  std::swap(checksum_, other->checksum_);
1491  std::swap(page_checksum_, other->page_checksum_);
1492  std::swap(delay_key_write_, other->delay_key_write_);
1493  std::swap(unused_, other->unused_);
1494  std::swap(_has_bits_[0], other->_has_bits_[0]);
1495  _unknown_fields_.Swap(&other->_unknown_fields_);
1496  std::swap(_cached_size_, other->_cached_size_);
1497  }
1498 }
1499 
1500 ::google::protobuf::Metadata Table_TableOptions::GetMetadata() const {
1501  protobuf_AssignDescriptorsOnce();
1502  ::google::protobuf::Metadata metadata;
1503  metadata.descriptor = Table_TableOptions_descriptor_;
1504  metadata.reflection = Table_TableOptions_reflection_;
1505  return metadata;
1506 }
1507 
1508 
1509 // -------------------------------------------------------------------
1510 
1511 const ::google::protobuf::EnumDescriptor* Table_ForeignKeyConstraint_ForeignKeyMatchOption_descriptor() {
1512  protobuf_AssignDescriptorsOnce();
1513  return Table_ForeignKeyConstraint_ForeignKeyMatchOption_descriptor_;
1514 }
1515 bool Table_ForeignKeyConstraint_ForeignKeyMatchOption_IsValid(int value) {
1516  switch(value) {
1517  case 0:
1518  case 1:
1519  case 2:
1520  case 3:
1521  return true;
1522  default:
1523  return false;
1524  }
1525 }
1526 
1527 #ifndef _MSC_VER
1528 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::MATCH_UNDEFINED;
1529 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::MATCH_FULL;
1530 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::MATCH_PARTIAL;
1531 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::MATCH_SIMPLE;
1532 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::ForeignKeyMatchOption_MIN;
1533 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::ForeignKeyMatchOption_MAX;
1534 const int Table_ForeignKeyConstraint::ForeignKeyMatchOption_ARRAYSIZE;
1535 #endif // _MSC_VER
1536 const ::google::protobuf::EnumDescriptor* Table_ForeignKeyConstraint_ForeignKeyOption_descriptor() {
1537  protobuf_AssignDescriptorsOnce();
1538  return Table_ForeignKeyConstraint_ForeignKeyOption_descriptor_;
1539 }
1540 bool Table_ForeignKeyConstraint_ForeignKeyOption_IsValid(int value) {
1541  switch(value) {
1542  case 0:
1543  case 1:
1544  case 2:
1545  case 3:
1546  case 4:
1547  case 5:
1548  return true;
1549  default:
1550  return false;
1551  }
1552 }
1553 
1554 #ifndef _MSC_VER
1555 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_UNDEF;
1556 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_RESTRICT;
1557 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_CASCADE;
1558 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_SET_NULL;
1559 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_NO_ACTION;
1560 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_SET_DEFAULT;
1561 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::ForeignKeyOption_MIN;
1562 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::ForeignKeyOption_MAX;
1563 const int Table_ForeignKeyConstraint::ForeignKeyOption_ARRAYSIZE;
1564 #endif // _MSC_VER
1565 #ifndef _MSC_VER
1566 const int Table_ForeignKeyConstraint::kNameFieldNumber;
1567 const int Table_ForeignKeyConstraint::kColumnNamesFieldNumber;
1568 const int Table_ForeignKeyConstraint::kReferencesTableNameFieldNumber;
1569 const int Table_ForeignKeyConstraint::kReferencesColumnsFieldNumber;
1570 const int Table_ForeignKeyConstraint::kMatchFieldNumber;
1571 const int Table_ForeignKeyConstraint::kUpdateOptionFieldNumber;
1572 const int Table_ForeignKeyConstraint::kDeleteOptionFieldNumber;
1573 #endif // !_MSC_VER
1574 
1575 Table_ForeignKeyConstraint::Table_ForeignKeyConstraint()
1576  : ::google::protobuf::Message() {
1577  SharedCtor();
1578  // @@protoc_insertion_point(constructor:drizzled.message.Table.ForeignKeyConstraint)
1579 }
1580 
1581 void Table_ForeignKeyConstraint::InitAsDefaultInstance() {
1582 }
1583 
1584 Table_ForeignKeyConstraint::Table_ForeignKeyConstraint(const Table_ForeignKeyConstraint& from)
1585  : ::google::protobuf::Message() {
1586  SharedCtor();
1587  MergeFrom(from);
1588  // @@protoc_insertion_point(copy_constructor:drizzled.message.Table.ForeignKeyConstraint)
1589 }
1590 
1591 void Table_ForeignKeyConstraint::SharedCtor() {
1592  ::google::protobuf::internal::GetEmptyString();
1593  _cached_size_ = 0;
1594  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1595  references_table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1596  match_ = 0;
1597  update_option_ = 0;
1598  delete_option_ = 0;
1599  ::memset(_has_bits_, 0, sizeof(_has_bits_));
1600 }
1601 
1602 Table_ForeignKeyConstraint::~Table_ForeignKeyConstraint() {
1603  // @@protoc_insertion_point(destructor:drizzled.message.Table.ForeignKeyConstraint)
1604  SharedDtor();
1605 }
1606 
1607 void Table_ForeignKeyConstraint::SharedDtor() {
1608  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1609  delete name_;
1610  }
1611  if (references_table_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1612  delete references_table_name_;
1613  }
1614  if (this != default_instance_) {
1615  }
1616 }
1617 
1618 void Table_ForeignKeyConstraint::SetCachedSize(int size) const {
1619  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1620  _cached_size_ = size;
1621  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1622 }
1623 const ::google::protobuf::Descriptor* Table_ForeignKeyConstraint::descriptor() {
1624  protobuf_AssignDescriptorsOnce();
1625  return Table_ForeignKeyConstraint_descriptor_;
1626 }
1627 
1628 const Table_ForeignKeyConstraint& Table_ForeignKeyConstraint::default_instance() {
1629  if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
1630  return *default_instance_;
1631 }
1632 
1633 Table_ForeignKeyConstraint* Table_ForeignKeyConstraint::default_instance_ = NULL;
1634 
1635 Table_ForeignKeyConstraint* Table_ForeignKeyConstraint::New() const {
1636  return new Table_ForeignKeyConstraint;
1637 }
1638 
1639 void Table_ForeignKeyConstraint::Clear() {
1640 #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
1641  &reinterpret_cast<Table_ForeignKeyConstraint*>(16)->f) - \
1642  reinterpret_cast<char*>(16))
1643 
1644 #define ZR_(first, last) do { \
1645  size_t f = OFFSET_OF_FIELD_(first); \
1646  size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
1647  ::memset(&first, 0, n); \
1648  } while (0)
1649 
1650  if (_has_bits_[0 / 32] & 117) {
1651  ZR_(match_, delete_option_);
1652  if (has_name()) {
1653  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1654  name_->clear();
1655  }
1656  }
1657  if (has_references_table_name()) {
1658  if (references_table_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1659  references_table_name_->clear();
1660  }
1661  }
1662  }
1663 
1664 #undef OFFSET_OF_FIELD_
1665 #undef ZR_
1666 
1667  column_names_.Clear();
1668  references_columns_.Clear();
1669  ::memset(_has_bits_, 0, sizeof(_has_bits_));
1670  mutable_unknown_fields()->Clear();
1671 }
1672 
1673 bool Table_ForeignKeyConstraint::MergePartialFromCodedStream(
1674  ::google::protobuf::io::CodedInputStream* input) {
1675 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1676  ::google::protobuf::uint32 tag;
1677  // @@protoc_insertion_point(parse_start:drizzled.message.Table.ForeignKeyConstraint)
1678  for (;;) {
1679  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1680  tag = p.first;
1681  if (!p.second) goto handle_unusual;
1682  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1683  // optional string name = 1;
1684  case 1: {
1685  if (tag == 10) {
1686  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1687  input, this->mutable_name()));
1688  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1689  this->name().data(), this->name().length(),
1690  ::google::protobuf::internal::WireFormat::PARSE,
1691  "name");
1692  } else {
1693  goto handle_unusual;
1694  }
1695  if (input->ExpectTag(18)) goto parse_column_names;
1696  break;
1697  }
1698 
1699  // repeated string column_names = 2;
1700  case 2: {
1701  if (tag == 18) {
1702  parse_column_names:
1703  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1704  input, this->add_column_names()));
1705  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1706  this->column_names(this->column_names_size() - 1).data(),
1707  this->column_names(this->column_names_size() - 1).length(),
1708  ::google::protobuf::internal::WireFormat::PARSE,
1709  "column_names");
1710  } else {
1711  goto handle_unusual;
1712  }
1713  if (input->ExpectTag(18)) goto parse_column_names;
1714  if (input->ExpectTag(26)) goto parse_references_table_name;
1715  break;
1716  }
1717 
1718  // required string references_table_name = 3;
1719  case 3: {
1720  if (tag == 26) {
1721  parse_references_table_name:
1722  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1723  input, this->mutable_references_table_name()));
1724  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1725  this->references_table_name().data(), this->references_table_name().length(),
1726  ::google::protobuf::internal::WireFormat::PARSE,
1727  "references_table_name");
1728  } else {
1729  goto handle_unusual;
1730  }
1731  if (input->ExpectTag(34)) goto parse_references_columns;
1732  break;
1733  }
1734 
1735  // repeated string references_columns = 4;
1736  case 4: {
1737  if (tag == 34) {
1738  parse_references_columns:
1739  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1740  input, this->add_references_columns()));
1741  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1742  this->references_columns(this->references_columns_size() - 1).data(),
1743  this->references_columns(this->references_columns_size() - 1).length(),
1744  ::google::protobuf::internal::WireFormat::PARSE,
1745  "references_columns");
1746  } else {
1747  goto handle_unusual;
1748  }
1749  if (input->ExpectTag(34)) goto parse_references_columns;
1750  if (input->ExpectTag(40)) goto parse_match;
1751  break;
1752  }
1753 
1754  // required .drizzled.message.Table.ForeignKeyConstraint.ForeignKeyMatchOption match = 5;
1755  case 5: {
1756  if (tag == 40) {
1757  parse_match:
1758  int value;
1759  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1760  int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1761  input, &value)));
1762  if (::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyMatchOption_IsValid(value)) {
1763  set_match(static_cast< ::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyMatchOption >(value));
1764  } else {
1765  mutable_unknown_fields()->AddVarint(5, value);
1766  }
1767  } else {
1768  goto handle_unusual;
1769  }
1770  if (input->ExpectTag(48)) goto parse_update_option;
1771  break;
1772  }
1773 
1774  // required .drizzled.message.Table.ForeignKeyConstraint.ForeignKeyOption update_option = 6 [default = OPTION_UNDEF];
1775  case 6: {
1776  if (tag == 48) {
1777  parse_update_option:
1778  int value;
1779  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1780  int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1781  input, &value)));
1782  if (::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyOption_IsValid(value)) {
1783  set_update_option(static_cast< ::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyOption >(value));
1784  } else {
1785  mutable_unknown_fields()->AddVarint(6, value);
1786  }
1787  } else {
1788  goto handle_unusual;
1789  }
1790  if (input->ExpectTag(56)) goto parse_delete_option;
1791  break;
1792  }
1793 
1794  // required .drizzled.message.Table.ForeignKeyConstraint.ForeignKeyOption delete_option = 7 [default = OPTION_UNDEF];
1795  case 7: {
1796  if (tag == 56) {
1797  parse_delete_option:
1798  int value;
1799  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1800  int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1801  input, &value)));
1802  if (::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyOption_IsValid(value)) {
1803  set_delete_option(static_cast< ::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyOption >(value));
1804  } else {
1805  mutable_unknown_fields()->AddVarint(7, value);
1806  }
1807  } else {
1808  goto handle_unusual;
1809  }
1810  if (input->ExpectAtEnd()) goto success;
1811  break;
1812  }
1813 
1814  default: {
1815  handle_unusual:
1816  if (tag == 0 ||
1817  ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1818  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1819  goto success;
1820  }
1821  DO_(::google::protobuf::internal::WireFormat::SkipField(
1822  input, tag, mutable_unknown_fields()));
1823  break;
1824  }
1825  }
1826  }
1827 success:
1828  // @@protoc_insertion_point(parse_success:drizzled.message.Table.ForeignKeyConstraint)
1829  return true;
1830 failure:
1831  // @@protoc_insertion_point(parse_failure:drizzled.message.Table.ForeignKeyConstraint)
1832  return false;
1833 #undef DO_
1834 }
1835 
1836 void Table_ForeignKeyConstraint::SerializeWithCachedSizes(
1837  ::google::protobuf::io::CodedOutputStream* output) const {
1838  // @@protoc_insertion_point(serialize_start:drizzled.message.Table.ForeignKeyConstraint)
1839  // optional string name = 1;
1840  if (has_name()) {
1841  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1842  this->name().data(), this->name().length(),
1843  ::google::protobuf::internal::WireFormat::SERIALIZE,
1844  "name");
1845  ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1846  1, this->name(), output);
1847  }
1848 
1849  // repeated string column_names = 2;
1850  for (int i = 0; i < this->column_names_size(); i++) {
1851  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1852  this->column_names(i).data(), this->column_names(i).length(),
1853  ::google::protobuf::internal::WireFormat::SERIALIZE,
1854  "column_names");
1855  ::google::protobuf::internal::WireFormatLite::WriteString(
1856  2, this->column_names(i), output);
1857  }
1858 
1859  // required string references_table_name = 3;
1860  if (has_references_table_name()) {
1861  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1862  this->references_table_name().data(), this->references_table_name().length(),
1863  ::google::protobuf::internal::WireFormat::SERIALIZE,
1864  "references_table_name");
1865  ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1866  3, this->references_table_name(), output);
1867  }
1868 
1869  // repeated string references_columns = 4;
1870  for (int i = 0; i < this->references_columns_size(); i++) {
1871  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1872  this->references_columns(i).data(), this->references_columns(i).length(),
1873  ::google::protobuf::internal::WireFormat::SERIALIZE,
1874  "references_columns");
1875  ::google::protobuf::internal::WireFormatLite::WriteString(
1876  4, this->references_columns(i), output);
1877  }
1878 
1879  // required .drizzled.message.Table.ForeignKeyConstraint.ForeignKeyMatchOption match = 5;
1880  if (has_match()) {
1881  ::google::protobuf::internal::WireFormatLite::WriteEnum(
1882  5, this->match(), output);
1883  }
1884 
1885  // required .drizzled.message.Table.ForeignKeyConstraint.ForeignKeyOption update_option = 6 [default = OPTION_UNDEF];
1886  if (has_update_option()) {
1887  ::google::protobuf::internal::WireFormatLite::WriteEnum(
1888  6, this->update_option(), output);
1889  }
1890 
1891  // required .drizzled.message.Table.ForeignKeyConstraint.ForeignKeyOption delete_option = 7 [default = OPTION_UNDEF];
1892  if (has_delete_option()) {
1893  ::google::protobuf::internal::WireFormatLite::WriteEnum(
1894  7, this->delete_option(), output);
1895  }
1896 
1897  if (!unknown_fields().empty()) {
1898  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1899  unknown_fields(), output);
1900  }
1901  // @@protoc_insertion_point(serialize_end:drizzled.message.Table.ForeignKeyConstraint)
1902 }
1903 
1904 ::google::protobuf::uint8* Table_ForeignKeyConstraint::SerializeWithCachedSizesToArray(
1905  ::google::protobuf::uint8* target) const {
1906  // @@protoc_insertion_point(serialize_to_array_start:drizzled.message.Table.ForeignKeyConstraint)
1907  // optional string name = 1;
1908  if (has_name()) {
1909  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1910  this->name().data(), this->name().length(),
1911  ::google::protobuf::internal::WireFormat::SERIALIZE,
1912  "name");
1913  target =
1914  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1915  1, this->name(), target);
1916  }
1917 
1918  // repeated string column_names = 2;
1919  for (int i = 0; i < this->column_names_size(); i++) {
1920  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1921  this->column_names(i).data(), this->column_names(i).length(),
1922  ::google::protobuf::internal::WireFormat::SERIALIZE,
1923  "column_names");
1924  target = ::google::protobuf::internal::WireFormatLite::
1925  WriteStringToArray(2, this->column_names(i), target);
1926  }
1927 
1928  // required string references_table_name = 3;
1929  if (has_references_table_name()) {
1930  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1931  this->references_table_name().data(), this->references_table_name().length(),
1932  ::google::protobuf::internal::WireFormat::SERIALIZE,
1933  "references_table_name");
1934  target =
1935  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1936  3, this->references_table_name(), target);
1937  }
1938 
1939  // repeated string references_columns = 4;
1940  for (int i = 0; i < this->references_columns_size(); i++) {
1941  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1942  this->references_columns(i).data(), this->references_columns(i).length(),
1943  ::google::protobuf::internal::WireFormat::SERIALIZE,
1944  "references_columns");
1945  target = ::google::protobuf::internal::WireFormatLite::
1946  WriteStringToArray(4, this->references_columns(i), target);
1947  }
1948 
1949  // required .drizzled.message.Table.ForeignKeyConstraint.ForeignKeyMatchOption match = 5;
1950  if (has_match()) {
1951  target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1952  5, this->match(), target);
1953  }
1954 
1955  // required .drizzled.message.Table.ForeignKeyConstraint.ForeignKeyOption update_option = 6 [default = OPTION_UNDEF];
1956  if (has_update_option()) {
1957  target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1958  6, this->update_option(), target);
1959  }
1960 
1961  // required .drizzled.message.Table.ForeignKeyConstraint.ForeignKeyOption delete_option = 7 [default = OPTION_UNDEF];
1962  if (has_delete_option()) {
1963  target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1964  7, this->delete_option(), target);
1965  }
1966 
1967  if (!unknown_fields().empty()) {
1968  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1969  unknown_fields(), target);
1970  }
1971  // @@protoc_insertion_point(serialize_to_array_end:drizzled.message.Table.ForeignKeyConstraint)
1972  return target;
1973 }
1974 
1975 int Table_ForeignKeyConstraint::ByteSize() const {
1976  int total_size = 0;
1977 
1978  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1979  // optional string name = 1;
1980  if (has_name()) {
1981  total_size += 1 +
1982  ::google::protobuf::internal::WireFormatLite::StringSize(
1983  this->name());
1984  }
1985 
1986  // required string references_table_name = 3;
1987  if (has_references_table_name()) {
1988  total_size += 1 +
1989  ::google::protobuf::internal::WireFormatLite::StringSize(
1990  this->references_table_name());
1991  }
1992 
1993  // required .drizzled.message.Table.ForeignKeyConstraint.ForeignKeyMatchOption match = 5;
1994  if (has_match()) {
1995  total_size += 1 +
1996  ::google::protobuf::internal::WireFormatLite::EnumSize(this->match());
1997  }
1998 
1999  // required .drizzled.message.Table.ForeignKeyConstraint.ForeignKeyOption update_option = 6 [default = OPTION_UNDEF];
2000  if (has_update_option()) {
2001  total_size += 1 +
2002  ::google::protobuf::internal::WireFormatLite::EnumSize(this->update_option());
2003  }
2004 
2005  // required .drizzled.message.Table.ForeignKeyConstraint.ForeignKeyOption delete_option = 7 [default = OPTION_UNDEF];
2006  if (has_delete_option()) {
2007  total_size += 1 +
2008  ::google::protobuf::internal::WireFormatLite::EnumSize(this->delete_option());
2009  }
2010 
2011  }
2012  // repeated string column_names = 2;
2013  total_size += 1 * this->column_names_size();
2014  for (int i = 0; i < this->column_names_size(); i++) {
2015  total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
2016  this->column_names(i));
2017  }
2018 
2019  // repeated string references_columns = 4;
2020  total_size += 1 * this->references_columns_size();
2021  for (int i = 0; i < this->references_columns_size(); i++) {
2022  total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
2023  this->references_columns(i));
2024  }
2025 
2026  if (!unknown_fields().empty()) {
2027  total_size +=
2028  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2029  unknown_fields());
2030  }
2031  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2032  _cached_size_ = total_size;
2033  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2034  return total_size;
2035 }
2036 
2037 void Table_ForeignKeyConstraint::MergeFrom(const ::google::protobuf::Message& from) {
2038  GOOGLE_CHECK_NE(&from, this);
2039  const Table_ForeignKeyConstraint* source =
2040  ::google::protobuf::internal::dynamic_cast_if_available<const Table_ForeignKeyConstraint*>(
2041  &from);
2042  if (source == NULL) {
2043  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2044  } else {
2045  MergeFrom(*source);
2046  }
2047 }
2048 
2049 void Table_ForeignKeyConstraint::MergeFrom(const Table_ForeignKeyConstraint& from) {
2050  GOOGLE_CHECK_NE(&from, this);
2051  column_names_.MergeFrom(from.column_names_);
2052  references_columns_.MergeFrom(from.references_columns_);
2053  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2054  if (from.has_name()) {
2055  set_name(from.name());
2056  }
2057  if (from.has_references_table_name()) {
2058  set_references_table_name(from.references_table_name());
2059  }
2060  if (from.has_match()) {
2061  set_match(from.match());
2062  }
2063  if (from.has_update_option()) {
2064  set_update_option(from.update_option());
2065  }
2066  if (from.has_delete_option()) {
2067  set_delete_option(from.delete_option());
2068  }
2069  }
2070  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2071 }
2072 
2073 void Table_ForeignKeyConstraint::CopyFrom(const ::google::protobuf::Message& from) {
2074  if (&from == this) return;
2075  Clear();
2076  MergeFrom(from);
2077 }
2078 
2079 void Table_ForeignKeyConstraint::CopyFrom(const Table_ForeignKeyConstraint& from) {
2080  if (&from == this) return;
2081  Clear();
2082  MergeFrom(from);
2083 }
2084 
2085 bool Table_ForeignKeyConstraint::IsInitialized() const {
2086  if ((_has_bits_[0] & 0x00000074) != 0x00000074) return false;
2087 
2088  return true;
2089 }
2090 
2091 void Table_ForeignKeyConstraint::Swap(Table_ForeignKeyConstraint* other) {
2092  if (other != this) {
2093  std::swap(name_, other->name_);
2094  column_names_.Swap(&other->column_names_);
2095  std::swap(references_table_name_, other->references_table_name_);
2096  references_columns_.Swap(&other->references_columns_);
2097  std::swap(match_, other->match_);
2098  std::swap(update_option_, other->update_option_);
2099  std::swap(delete_option_, other->delete_option_);
2100  std::swap(_has_bits_[0], other->_has_bits_[0]);
2101  _unknown_fields_.Swap(&other->_unknown_fields_);
2102  std::swap(_cached_size_, other->_cached_size_);
2103  }
2104 }
2105 
2106 ::google::protobuf::Metadata Table_ForeignKeyConstraint::GetMetadata() const {
2107  protobuf_AssignDescriptorsOnce();
2108  ::google::protobuf::Metadata metadata;
2109  metadata.descriptor = Table_ForeignKeyConstraint_descriptor_;
2110  metadata.reflection = Table_ForeignKeyConstraint_reflection_;
2111  return metadata;
2112 }
2113 
2114 
2115 // -------------------------------------------------------------------
2116 
2117 const ::google::protobuf::EnumDescriptor* Table_Field_FieldType_descriptor() {
2118  protobuf_AssignDescriptorsOnce();
2119  return Table_Field_FieldType_descriptor_;
2120 }
2121 bool Table_Field_FieldType_IsValid(int value) {
2122  switch(value) {
2123  case 0:
2124  case 1:
2125  case 2:
2126  case 3:
2127  case 4:
2128  case 5:
2129  case 6:
2130  case 7:
2131  case 9:
2132  case 10:
2133  case 11:
2134  case 12:
2135  case 13:
2136  case 14:
2137  return true;
2138  default:
2139  return false;
2140  }
2141 }
2142 
2143 #ifndef _MSC_VER
2144 const Table_Field_FieldType Table_Field::DOUBLE;
2145 const Table_Field_FieldType Table_Field::VARCHAR;
2146 const Table_Field_FieldType Table_Field::BLOB;
2147 const Table_Field_FieldType Table_Field::ENUM;
2148 const Table_Field_FieldType Table_Field::INTEGER;
2149 const Table_Field_FieldType Table_Field::BIGINT;
2150 const Table_Field_FieldType Table_Field::DECIMAL;
2151 const Table_Field_FieldType Table_Field::DATE;
2152 const Table_Field_FieldType Table_Field::EPOCH;
2153 const Table_Field_FieldType Table_Field::DATETIME;
2154 const Table_Field_FieldType Table_Field::UUID;
2155 const Table_Field_FieldType Table_Field::TIME;
2156 const Table_Field_FieldType Table_Field::BOOLEAN;
2157 const Table_Field_FieldType Table_Field::IPV6;
2158 const Table_Field_FieldType Table_Field::FieldType_MIN;
2159 const Table_Field_FieldType Table_Field::FieldType_MAX;
2160 const int Table_Field::FieldType_ARRAYSIZE;
2161 #endif // _MSC_VER
2162 #ifndef _MSC_VER
2163 const int Table_Field_FieldOptions::kDefaultValueFieldNumber;
2164 const int Table_Field_FieldOptions::kUpdateValueFieldNumber;
2165 const int Table_Field_FieldOptions::kDefaultNullFieldNumber;
2166 const int Table_Field_FieldOptions::kDefaultBinValueFieldNumber;
2167 const int Table_Field_FieldOptions::kDefaultExpressionFieldNumber;
2168 const int Table_Field_FieldOptions::kUpdateExpressionFieldNumber;
2169 #endif // !_MSC_VER
2170 
2171 Table_Field_FieldOptions::Table_Field_FieldOptions()
2172  : ::google::protobuf::Message() {
2173  SharedCtor();
2174  // @@protoc_insertion_point(constructor:drizzled.message.Table.Field.FieldOptions)
2175 }
2176 
2177 void Table_Field_FieldOptions::InitAsDefaultInstance() {
2178 }
2179 
2180 Table_Field_FieldOptions::Table_Field_FieldOptions(const Table_Field_FieldOptions& from)
2181  : ::google::protobuf::Message() {
2182  SharedCtor();
2183  MergeFrom(from);
2184  // @@protoc_insertion_point(copy_constructor:drizzled.message.Table.Field.FieldOptions)
2185 }
2186 
2187 void Table_Field_FieldOptions::SharedCtor() {
2188  ::google::protobuf::internal::GetEmptyString();
2189  _cached_size_ = 0;
2190  default_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2191  update_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2192  default_null_ = false;
2193  default_bin_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2194  default_expression_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2195  update_expression_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2196  ::memset(_has_bits_, 0, sizeof(_has_bits_));
2197 }
2198 
2199 Table_Field_FieldOptions::~Table_Field_FieldOptions() {
2200  // @@protoc_insertion_point(destructor:drizzled.message.Table.Field.FieldOptions)
2201  SharedDtor();
2202 }
2203 
2204 void Table_Field_FieldOptions::SharedDtor() {
2205  if (default_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2206  delete default_value_;
2207  }
2208  if (update_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2209  delete update_value_;
2210  }
2211  if (default_bin_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2212  delete default_bin_value_;
2213  }
2214  if (default_expression_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2215  delete default_expression_;
2216  }
2217  if (update_expression_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2218  delete update_expression_;
2219  }
2220  if (this != default_instance_) {
2221  }
2222 }
2223 
2224 void Table_Field_FieldOptions::SetCachedSize(int size) const {
2225  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2226  _cached_size_ = size;
2227  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2228 }
2229 const ::google::protobuf::Descriptor* Table_Field_FieldOptions::descriptor() {
2230  protobuf_AssignDescriptorsOnce();
2231  return Table_Field_FieldOptions_descriptor_;
2232 }
2233 
2234 const Table_Field_FieldOptions& Table_Field_FieldOptions::default_instance() {
2235  if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
2236  return *default_instance_;
2237 }
2238 
2239 Table_Field_FieldOptions* Table_Field_FieldOptions::default_instance_ = NULL;
2240 
2241 Table_Field_FieldOptions* Table_Field_FieldOptions::New() const {
2242  return new Table_Field_FieldOptions;
2243 }
2244 
2245 void Table_Field_FieldOptions::Clear() {
2246  if (_has_bits_[0 / 32] & 63) {
2247  if (has_default_value()) {
2248  if (default_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2249  default_value_->clear();
2250  }
2251  }
2252  if (has_update_value()) {
2253  if (update_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2254  update_value_->clear();
2255  }
2256  }
2257  default_null_ = false;
2258  if (has_default_bin_value()) {
2259  if (default_bin_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2260  default_bin_value_->clear();
2261  }
2262  }
2263  if (has_default_expression()) {
2264  if (default_expression_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2265  default_expression_->clear();
2266  }
2267  }
2268  if (has_update_expression()) {
2269  if (update_expression_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2270  update_expression_->clear();
2271  }
2272  }
2273  }
2274  ::memset(_has_bits_, 0, sizeof(_has_bits_));
2275  mutable_unknown_fields()->Clear();
2276 }
2277 
2278 bool Table_Field_FieldOptions::MergePartialFromCodedStream(
2279  ::google::protobuf::io::CodedInputStream* input) {
2280 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
2281  ::google::protobuf::uint32 tag;
2282  // @@protoc_insertion_point(parse_start:drizzled.message.Table.Field.FieldOptions)
2283  for (;;) {
2284  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2285  tag = p.first;
2286  if (!p.second) goto handle_unusual;
2287  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2288  // optional string default_value = 1;
2289  case 1: {
2290  if (tag == 10) {
2291  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2292  input, this->mutable_default_value()));
2293  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2294  this->default_value().data(), this->default_value().length(),
2295  ::google::protobuf::internal::WireFormat::PARSE,
2296  "default_value");
2297  } else {
2298  goto handle_unusual;
2299  }
2300  if (input->ExpectTag(18)) goto parse_update_value;
2301  break;
2302  }
2303 
2304  // optional string update_value = 2;
2305  case 2: {
2306  if (tag == 18) {
2307  parse_update_value:
2308  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2309  input, this->mutable_update_value()));
2310  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2311  this->update_value().data(), this->update_value().length(),
2312  ::google::protobuf::internal::WireFormat::PARSE,
2313  "update_value");
2314  } else {
2315  goto handle_unusual;
2316  }
2317  if (input->ExpectTag(24)) goto parse_default_null;
2318  break;
2319  }
2320 
2321  // optional bool default_null = 3 [default = false];
2322  case 3: {
2323  if (tag == 24) {
2324  parse_default_null:
2325  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2326  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2327  input, &default_null_)));
2328  set_has_default_null();
2329  } else {
2330  goto handle_unusual;
2331  }
2332  if (input->ExpectTag(34)) goto parse_default_bin_value;
2333  break;
2334  }
2335 
2336  // optional bytes default_bin_value = 4;
2337  case 4: {
2338  if (tag == 34) {
2339  parse_default_bin_value:
2340  DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2341  input, this->mutable_default_bin_value()));
2342  } else {
2343  goto handle_unusual;
2344  }
2345  if (input->ExpectTag(42)) goto parse_default_expression;
2346  break;
2347  }
2348 
2349  // optional string default_expression = 5;
2350  case 5: {
2351  if (tag == 42) {
2352  parse_default_expression:
2353  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2354  input, this->mutable_default_expression()));
2355  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2356  this->default_expression().data(), this->default_expression().length(),
2357  ::google::protobuf::internal::WireFormat::PARSE,
2358  "default_expression");
2359  } else {
2360  goto handle_unusual;
2361  }
2362  if (input->ExpectTag(50)) goto parse_update_expression;
2363  break;
2364  }
2365 
2366  // optional string update_expression = 6;
2367  case 6: {
2368  if (tag == 50) {
2369  parse_update_expression:
2370  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2371  input, this->mutable_update_expression()));
2372  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2373  this->update_expression().data(), this->update_expression().length(),
2374  ::google::protobuf::internal::WireFormat::PARSE,
2375  "update_expression");
2376  } else {
2377  goto handle_unusual;
2378  }
2379  if (input->ExpectAtEnd()) goto success;
2380  break;
2381  }
2382 
2383  default: {
2384  handle_unusual:
2385  if (tag == 0 ||
2386  ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2387  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2388  goto success;
2389  }
2390  DO_(::google::protobuf::internal::WireFormat::SkipField(
2391  input, tag, mutable_unknown_fields()));
2392  break;
2393  }
2394  }
2395  }
2396 success:
2397  // @@protoc_insertion_point(parse_success:drizzled.message.Table.Field.FieldOptions)
2398  return true;
2399 failure:
2400  // @@protoc_insertion_point(parse_failure:drizzled.message.Table.Field.FieldOptions)
2401  return false;
2402 #undef DO_
2403 }
2404 
2405 void Table_Field_FieldOptions::SerializeWithCachedSizes(
2406  ::google::protobuf::io::CodedOutputStream* output) const {
2407  // @@protoc_insertion_point(serialize_start:drizzled.message.Table.Field.FieldOptions)
2408  // optional string default_value = 1;
2409  if (has_default_value()) {
2410  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2411  this->default_value().data(), this->default_value().length(),
2412  ::google::protobuf::internal::WireFormat::SERIALIZE,
2413  "default_value");
2414  ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2415  1, this->default_value(), output);
2416  }
2417 
2418  // optional string update_value = 2;
2419  if (has_update_value()) {
2420  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2421  this->update_value().data(), this->update_value().length(),
2422  ::google::protobuf::internal::WireFormat::SERIALIZE,
2423  "update_value");
2424  ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2425  2, this->update_value(), output);
2426  }
2427 
2428  // optional bool default_null = 3 [default = false];
2429  if (has_default_null()) {
2430  ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->default_null(), output);
2431  }
2432 
2433  // optional bytes default_bin_value = 4;
2434  if (has_default_bin_value()) {
2435  ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2436  4, this->default_bin_value(), output);
2437  }
2438 
2439  // optional string default_expression = 5;
2440  if (has_default_expression()) {
2441  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2442  this->default_expression().data(), this->default_expression().length(),
2443  ::google::protobuf::internal::WireFormat::SERIALIZE,
2444  "default_expression");
2445  ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2446  5, this->default_expression(), output);
2447  }
2448 
2449  // optional string update_expression = 6;
2450  if (has_update_expression()) {
2451  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2452  this->update_expression().data(), this->update_expression().length(),
2453  ::google::protobuf::internal::WireFormat::SERIALIZE,
2454  "update_expression");
2455  ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2456  6, this->update_expression(), output);
2457  }
2458 
2459  if (!unknown_fields().empty()) {
2460  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2461  unknown_fields(), output);
2462  }
2463  // @@protoc_insertion_point(serialize_end:drizzled.message.Table.Field.FieldOptions)
2464 }
2465 
2466 ::google::protobuf::uint8* Table_Field_FieldOptions::SerializeWithCachedSizesToArray(
2467  ::google::protobuf::uint8* target) const {
2468  // @@protoc_insertion_point(serialize_to_array_start:drizzled.message.Table.Field.FieldOptions)
2469  // optional string default_value = 1;
2470  if (has_default_value()) {
2471  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2472  this->default_value().data(), this->default_value().length(),
2473  ::google::protobuf::internal::WireFormat::SERIALIZE,
2474  "default_value");
2475  target =
2476  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2477  1, this->default_value(), target);
2478  }
2479 
2480  // optional string update_value = 2;
2481  if (has_update_value()) {
2482  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2483  this->update_value().data(), this->update_value().length(),
2484  ::google::protobuf::internal::WireFormat::SERIALIZE,
2485  "update_value");
2486  target =
2487  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2488  2, this->update_value(), target);
2489  }
2490 
2491  // optional bool default_null = 3 [default = false];
2492  if (has_default_null()) {
2493  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->default_null(), target);
2494  }
2495 
2496  // optional bytes default_bin_value = 4;
2497  if (has_default_bin_value()) {
2498  target =
2499  ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2500  4, this->default_bin_value(), target);
2501  }
2502 
2503  // optional string default_expression = 5;
2504  if (has_default_expression()) {
2505  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2506  this->default_expression().data(), this->default_expression().length(),
2507  ::google::protobuf::internal::WireFormat::SERIALIZE,
2508  "default_expression");
2509  target =
2510  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2511  5, this->default_expression(), target);
2512  }
2513 
2514  // optional string update_expression = 6;
2515  if (has_update_expression()) {
2516  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2517  this->update_expression().data(), this->update_expression().length(),
2518  ::google::protobuf::internal::WireFormat::SERIALIZE,
2519  "update_expression");
2520  target =
2521  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2522  6, this->update_expression(), target);
2523  }
2524 
2525  if (!unknown_fields().empty()) {
2526  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2527  unknown_fields(), target);
2528  }
2529  // @@protoc_insertion_point(serialize_to_array_end:drizzled.message.Table.Field.FieldOptions)
2530  return target;
2531 }
2532 
2533 int Table_Field_FieldOptions::ByteSize() const {
2534  int total_size = 0;
2535 
2536  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2537  // optional string default_value = 1;
2538  if (has_default_value()) {
2539  total_size += 1 +
2540  ::google::protobuf::internal::WireFormatLite::StringSize(
2541  this->default_value());
2542  }
2543 
2544  // optional string update_value = 2;
2545  if (has_update_value()) {
2546  total_size += 1 +
2547  ::google::protobuf::internal::WireFormatLite::StringSize(
2548  this->update_value());
2549  }
2550 
2551  // optional bool default_null = 3 [default = false];
2552  if (has_default_null()) {
2553  total_size += 1 + 1;
2554  }
2555 
2556  // optional bytes default_bin_value = 4;
2557  if (has_default_bin_value()) {
2558  total_size += 1 +
2559  ::google::protobuf::internal::WireFormatLite::BytesSize(
2560  this->default_bin_value());
2561  }
2562 
2563  // optional string default_expression = 5;
2564  if (has_default_expression()) {
2565  total_size += 1 +
2566  ::google::protobuf::internal::WireFormatLite::StringSize(
2567  this->default_expression());
2568  }
2569 
2570  // optional string update_expression = 6;
2571  if (has_update_expression()) {
2572  total_size += 1 +
2573  ::google::protobuf::internal::WireFormatLite::StringSize(
2574  this->update_expression());
2575  }
2576 
2577  }
2578  if (!unknown_fields().empty()) {
2579  total_size +=
2580  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2581  unknown_fields());
2582  }
2583  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2584  _cached_size_ = total_size;
2585  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2586  return total_size;
2587 }
2588 
2589 void Table_Field_FieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
2590  GOOGLE_CHECK_NE(&from, this);
2591  const Table_Field_FieldOptions* source =
2592  ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_FieldOptions*>(
2593  &from);
2594  if (source == NULL) {
2595  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2596  } else {
2597  MergeFrom(*source);
2598  }
2599 }
2600 
2601 void Table_Field_FieldOptions::MergeFrom(const Table_Field_FieldOptions& from) {
2602  GOOGLE_CHECK_NE(&from, this);
2603  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2604  if (from.has_default_value()) {
2605  set_default_value(from.default_value());
2606  }
2607  if (from.has_update_value()) {
2608  set_update_value(from.update_value());
2609  }
2610  if (from.has_default_null()) {
2611  set_default_null(from.default_null());
2612  }
2613  if (from.has_default_bin_value()) {
2614  set_default_bin_value(from.default_bin_value());
2615  }
2616  if (from.has_default_expression()) {
2617  set_default_expression(from.default_expression());
2618  }
2619  if (from.has_update_expression()) {
2620  set_update_expression(from.update_expression());
2621  }
2622  }
2623  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2624 }
2625 
2626 void Table_Field_FieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
2627  if (&from == this) return;
2628  Clear();
2629  MergeFrom(from);
2630 }
2631 
2632 void Table_Field_FieldOptions::CopyFrom(const Table_Field_FieldOptions& from) {
2633  if (&from == this) return;
2634  Clear();
2635  MergeFrom(from);
2636 }
2637 
2638 bool Table_Field_FieldOptions::IsInitialized() const {
2639 
2640  return true;
2641 }
2642 
2643 void Table_Field_FieldOptions::Swap(Table_Field_FieldOptions* other) {
2644  if (other != this) {
2645  std::swap(default_value_, other->default_value_);
2646  std::swap(update_value_, other->update_value_);
2647  std::swap(default_null_, other->default_null_);
2648  std::swap(default_bin_value_, other->default_bin_value_);
2649  std::swap(default_expression_, other->default_expression_);
2650  std::swap(update_expression_, other->update_expression_);
2651  std::swap(_has_bits_[0], other->_has_bits_[0]);
2652  _unknown_fields_.Swap(&other->_unknown_fields_);
2653  std::swap(_cached_size_, other->_cached_size_);
2654  }
2655 }
2656 
2657 ::google::protobuf::Metadata Table_Field_FieldOptions::GetMetadata() const {
2658  protobuf_AssignDescriptorsOnce();
2659  ::google::protobuf::Metadata metadata;
2660  metadata.descriptor = Table_Field_FieldOptions_descriptor_;
2661  metadata.reflection = Table_Field_FieldOptions_reflection_;
2662  return metadata;
2663 }
2664 
2665 
2666 // -------------------------------------------------------------------
2667 
2668 #ifndef _MSC_VER
2669 const int Table_Field_FieldConstraints::kIsNullableFieldNumber;
2670 const int Table_Field_FieldConstraints::kIsUnsignedFieldNumber;
2671 const int Table_Field_FieldConstraints::kIsNotnullFieldNumber;
2672 const int Table_Field_FieldConstraints::kIsUniqueFieldNumber;
2673 const int Table_Field_FieldConstraints::kExpressionFieldNumber;
2674 #endif // !_MSC_VER
2675 
2676 Table_Field_FieldConstraints::Table_Field_FieldConstraints()
2677  : ::google::protobuf::Message() {
2678  SharedCtor();
2679  // @@protoc_insertion_point(constructor:drizzled.message.Table.Field.FieldConstraints)
2680 }
2681 
2682 void Table_Field_FieldConstraints::InitAsDefaultInstance() {
2683 }
2684 
2685 Table_Field_FieldConstraints::Table_Field_FieldConstraints(const Table_Field_FieldConstraints& from)
2686  : ::google::protobuf::Message() {
2687  SharedCtor();
2688  MergeFrom(from);
2689  // @@protoc_insertion_point(copy_constructor:drizzled.message.Table.Field.FieldConstraints)
2690 }
2691 
2692 void Table_Field_FieldConstraints::SharedCtor() {
2693  ::google::protobuf::internal::GetEmptyString();
2694  _cached_size_ = 0;
2695  is_nullable_ = true;
2696  is_unsigned_ = false;
2697  is_notnull_ = false;
2698  is_unique_ = false;
2699  ::memset(_has_bits_, 0, sizeof(_has_bits_));
2700 }
2701 
2702 Table_Field_FieldConstraints::~Table_Field_FieldConstraints() {
2703  // @@protoc_insertion_point(destructor:drizzled.message.Table.Field.FieldConstraints)
2704  SharedDtor();
2705 }
2706 
2707 void Table_Field_FieldConstraints::SharedDtor() {
2708  if (this != default_instance_) {
2709  }
2710 }
2711 
2712 void Table_Field_FieldConstraints::SetCachedSize(int size) const {
2713  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2714  _cached_size_ = size;
2715  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2716 }
2717 const ::google::protobuf::Descriptor* Table_Field_FieldConstraints::descriptor() {
2718  protobuf_AssignDescriptorsOnce();
2719  return Table_Field_FieldConstraints_descriptor_;
2720 }
2721 
2722 const Table_Field_FieldConstraints& Table_Field_FieldConstraints::default_instance() {
2723  if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
2724  return *default_instance_;
2725 }
2726 
2727 Table_Field_FieldConstraints* Table_Field_FieldConstraints::default_instance_ = NULL;
2728 
2729 Table_Field_FieldConstraints* Table_Field_FieldConstraints::New() const {
2730  return new Table_Field_FieldConstraints;
2731 }
2732 
2733 void Table_Field_FieldConstraints::Clear() {
2734 #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
2735  &reinterpret_cast<Table_Field_FieldConstraints*>(16)->f) - \
2736  reinterpret_cast<char*>(16))
2737 
2738 #define ZR_(first, last) do { \
2739  size_t f = OFFSET_OF_FIELD_(first); \
2740  size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
2741  ::memset(&first, 0, n); \
2742  } while (0)
2743 
2744  if (_has_bits_[0 / 32] & 15) {
2745  ZR_(is_unsigned_, is_unique_);
2746  is_nullable_ = true;
2747  }
2748 
2749 #undef OFFSET_OF_FIELD_
2750 #undef ZR_
2751 
2752  expression_.Clear();
2753  ::memset(_has_bits_, 0, sizeof(_has_bits_));
2754  mutable_unknown_fields()->Clear();
2755 }
2756 
2757 bool Table_Field_FieldConstraints::MergePartialFromCodedStream(
2758  ::google::protobuf::io::CodedInputStream* input) {
2759 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
2760  ::google::protobuf::uint32 tag;
2761  // @@protoc_insertion_point(parse_start:drizzled.message.Table.Field.FieldConstraints)
2762  for (;;) {
2763  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
2764  tag = p.first;
2765  if (!p.second) goto handle_unusual;
2766  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2767  // optional bool is_nullable = 1 [default = true];
2768  case 1: {
2769  if (tag == 8) {
2770  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2771  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2772  input, &is_nullable_)));
2773  set_has_is_nullable();
2774  } else {
2775  goto handle_unusual;
2776  }
2777  if (input->ExpectTag(16)) goto parse_is_unsigned;
2778  break;
2779  }
2780 
2781  // optional bool is_unsigned = 2 [default = false];
2782  case 2: {
2783  if (tag == 16) {
2784  parse_is_unsigned:
2785  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2786  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2787  input, &is_unsigned_)));
2788  set_has_is_unsigned();
2789  } else {
2790  goto handle_unusual;
2791  }
2792  if (input->ExpectTag(24)) goto parse_is_notnull;
2793  break;
2794  }
2795 
2796  // optional bool is_notnull = 3 [default = false];
2797  case 3: {
2798  if (tag == 24) {
2799  parse_is_notnull:
2800  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2801  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2802  input, &is_notnull_)));
2803  set_has_is_notnull();
2804  } else {
2805  goto handle_unusual;
2806  }
2807  if (input->ExpectTag(32)) goto parse_is_unique;
2808  break;
2809  }
2810 
2811  // optional bool is_unique = 4 [default = false];
2812  case 4: {
2813  if (tag == 32) {
2814  parse_is_unique:
2815  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2816  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2817  input, &is_unique_)));
2818  set_has_is_unique();
2819  } else {
2820  goto handle_unusual;
2821  }
2822  if (input->ExpectTag(130)) goto parse_expression;
2823  break;
2824  }
2825 
2826  // repeated string expression = 16;
2827  case 16: {
2828  if (tag == 130) {
2829  parse_expression:
2830  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2831  input, this->add_expression()));
2832  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2833  this->expression(this->expression_size() - 1).data(),
2834  this->expression(this->expression_size() - 1).length(),
2835  ::google::protobuf::internal::WireFormat::PARSE,
2836  "expression");
2837  } else {
2838  goto handle_unusual;
2839  }
2840  if (input->ExpectTag(130)) goto parse_expression;
2841  if (input->ExpectAtEnd()) goto success;
2842  break;
2843  }
2844 
2845  default: {
2846  handle_unusual:
2847  if (tag == 0 ||
2848  ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2849  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2850  goto success;
2851  }
2852  DO_(::google::protobuf::internal::WireFormat::SkipField(
2853  input, tag, mutable_unknown_fields()));
2854  break;
2855  }
2856  }
2857  }
2858 success:
2859  // @@protoc_insertion_point(parse_success:drizzled.message.Table.Field.FieldConstraints)
2860  return true;
2861 failure:
2862  // @@protoc_insertion_point(parse_failure:drizzled.message.Table.Field.FieldConstraints)
2863  return false;
2864 #undef DO_
2865 }
2866 
2867 void Table_Field_FieldConstraints::SerializeWithCachedSizes(
2868  ::google::protobuf::io::CodedOutputStream* output) const {
2869  // @@protoc_insertion_point(serialize_start:drizzled.message.Table.Field.FieldConstraints)
2870  // optional bool is_nullable = 1 [default = true];
2871  if (has_is_nullable()) {
2872  ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is_nullable(), output);
2873  }
2874 
2875  // optional bool is_unsigned = 2 [default = false];
2876  if (has_is_unsigned()) {
2877  ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_unsigned(), output);
2878  }
2879 
2880  // optional bool is_notnull = 3 [default = false];
2881  if (has_is_notnull()) {
2882  ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->is_notnull(), output);
2883  }
2884 
2885  // optional bool is_unique = 4 [default = false];
2886  if (has_is_unique()) {
2887  ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->is_unique(), output);
2888  }
2889 
2890  // repeated string expression = 16;
2891  for (int i = 0; i < this->expression_size(); i++) {
2892  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2893  this->expression(i).data(), this->expression(i).length(),
2894  ::google::protobuf::internal::WireFormat::SERIALIZE,
2895  "expression");
2896  ::google::protobuf::internal::WireFormatLite::WriteString(
2897  16, this->expression(i), output);
2898  }
2899 
2900  if (!unknown_fields().empty()) {
2901  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2902  unknown_fields(), output);
2903  }
2904  // @@protoc_insertion_point(serialize_end:drizzled.message.Table.Field.FieldConstraints)
2905 }
2906 
2907 ::google::protobuf::uint8* Table_Field_FieldConstraints::SerializeWithCachedSizesToArray(
2908  ::google::protobuf::uint8* target) const {
2909  // @@protoc_insertion_point(serialize_to_array_start:drizzled.message.Table.Field.FieldConstraints)
2910  // optional bool is_nullable = 1 [default = true];
2911  if (has_is_nullable()) {
2912  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->is_nullable(), target);
2913  }
2914 
2915  // optional bool is_unsigned = 2 [default = false];
2916  if (has_is_unsigned()) {
2917  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_unsigned(), target);
2918  }
2919 
2920  // optional bool is_notnull = 3 [default = false];
2921  if (has_is_notnull()) {
2922  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->is_notnull(), target);
2923  }
2924 
2925  // optional bool is_unique = 4 [default = false];
2926  if (has_is_unique()) {
2927  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->is_unique(), target);
2928  }
2929 
2930  // repeated string expression = 16;
2931  for (int i = 0; i < this->expression_size(); i++) {
2932  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2933  this->expression(i).data(), this->expression(i).length(),
2934  ::google::protobuf::internal::WireFormat::SERIALIZE,
2935  "expression");
2936  target = ::google::protobuf::internal::WireFormatLite::
2937  WriteStringToArray(16, this->expression(i), target);
2938  }
2939 
2940  if (!unknown_fields().empty()) {
2941  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2942  unknown_fields(), target);
2943  }
2944  // @@protoc_insertion_point(serialize_to_array_end:drizzled.message.Table.Field.FieldConstraints)
2945  return target;
2946 }
2947 
2948 int Table_Field_FieldConstraints::ByteSize() const {
2949  int total_size = 0;
2950 
2951  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2952  // optional bool is_nullable = 1 [default = true];
2953  if (has_is_nullable()) {
2954  total_size += 1 + 1;
2955  }
2956 
2957  // optional bool is_unsigned = 2 [default = false];
2958  if (has_is_unsigned()) {
2959  total_size += 1 + 1;
2960  }
2961 
2962  // optional bool is_notnull = 3 [default = false];
2963  if (has_is_notnull()) {
2964  total_size += 1 + 1;
2965  }
2966 
2967  // optional bool is_unique = 4 [default = false];
2968  if (has_is_unique()) {
2969  total_size += 1 + 1;
2970  }
2971 
2972  }
2973  // repeated string expression = 16;
2974  total_size += 2 * this->expression_size();
2975  for (int i = 0; i < this->expression_size(); i++) {
2976  total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
2977  this->expression(i));
2978  }
2979 
2980  if (!unknown_fields().empty()) {
2981  total_size +=
2982  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2983  unknown_fields());
2984  }
2985  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2986  _cached_size_ = total_size;
2987  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2988  return total_size;
2989 }
2990 
2991 void Table_Field_FieldConstraints::MergeFrom(const ::google::protobuf::Message& from) {
2992  GOOGLE_CHECK_NE(&from, this);
2993  const Table_Field_FieldConstraints* source =
2994  ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_FieldConstraints*>(
2995  &from);
2996  if (source == NULL) {
2997  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2998  } else {
2999  MergeFrom(*source);
3000  }
3001 }
3002 
3003 void Table_Field_FieldConstraints::MergeFrom(const Table_Field_FieldConstraints& from) {
3004  GOOGLE_CHECK_NE(&from, this);
3005  expression_.MergeFrom(from.expression_);
3006  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3007  if (from.has_is_nullable()) {
3008  set_is_nullable(from.is_nullable());
3009  }
3010  if (from.has_is_unsigned()) {
3011  set_is_unsigned(from.is_unsigned());
3012  }
3013  if (from.has_is_notnull()) {
3014  set_is_notnull(from.is_notnull());
3015  }
3016  if (from.has_is_unique()) {
3017  set_is_unique(from.is_unique());
3018  }
3019  }
3020  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3021 }
3022 
3023 void Table_Field_FieldConstraints::CopyFrom(const ::google::protobuf::Message& from) {
3024  if (&from == this) return;
3025  Clear();
3026  MergeFrom(from);
3027 }
3028 
3029 void Table_Field_FieldConstraints::CopyFrom(const Table_Field_FieldConstraints& from) {
3030  if (&from == this) return;
3031  Clear();
3032  MergeFrom(from);
3033 }
3034 
3035 bool Table_Field_FieldConstraints::IsInitialized() const {
3036 
3037  return true;
3038 }
3039 
3040 void Table_Field_FieldConstraints::Swap(Table_Field_FieldConstraints* other) {
3041  if (other != this) {
3042  std::swap(is_nullable_, other->is_nullable_);
3043  std::swap(is_unsigned_, other->is_unsigned_);
3044  std::swap(is_notnull_, other->is_notnull_);
3045  std::swap(is_unique_, other->is_unique_);
3046  expression_.Swap(&other->expression_);
3047  std::swap(_has_bits_[0], other->_has_bits_[0]);
3048  _unknown_fields_.Swap(&other->_unknown_fields_);
3049  std::swap(_cached_size_, other->_cached_size_);
3050  }
3051 }
3052 
3053 ::google::protobuf::Metadata Table_Field_FieldConstraints::GetMetadata() const {
3054  protobuf_AssignDescriptorsOnce();
3055  ::google::protobuf::Metadata metadata;
3056  metadata.descriptor = Table_Field_FieldConstraints_descriptor_;
3057  metadata.reflection = Table_Field_FieldConstraints_reflection_;
3058  return metadata;
3059 }
3060 
3061 
3062 // -------------------------------------------------------------------
3063 
3064 #ifndef _MSC_VER
3065 const int Table_Field_NumericFieldOptions::kIsAutoincrementFieldNumber;
3066 const int Table_Field_NumericFieldOptions::kScaleFieldNumber;
3067 const int Table_Field_NumericFieldOptions::kPrecisionFieldNumber;
3068 #endif // !_MSC_VER
3069 
3070 Table_Field_NumericFieldOptions::Table_Field_NumericFieldOptions()
3071  : ::google::protobuf::Message() {
3072  SharedCtor();
3073  // @@protoc_insertion_point(constructor:drizzled.message.Table.Field.NumericFieldOptions)
3074 }
3075 
3076 void Table_Field_NumericFieldOptions::InitAsDefaultInstance() {
3077 }
3078 
3079 Table_Field_NumericFieldOptions::Table_Field_NumericFieldOptions(const Table_Field_NumericFieldOptions& from)
3080  : ::google::protobuf::Message() {
3081  SharedCtor();
3082  MergeFrom(from);
3083  // @@protoc_insertion_point(copy_constructor:drizzled.message.Table.Field.NumericFieldOptions)
3084 }
3085 
3086 void Table_Field_NumericFieldOptions::SharedCtor() {
3087  _cached_size_ = 0;
3088  is_autoincrement_ = false;
3089  scale_ = 0u;
3090  precision_ = 0u;
3091  ::memset(_has_bits_, 0, sizeof(_has_bits_));
3092 }
3093 
3094 Table_Field_NumericFieldOptions::~Table_Field_NumericFieldOptions() {
3095  // @@protoc_insertion_point(destructor:drizzled.message.Table.Field.NumericFieldOptions)
3096  SharedDtor();
3097 }
3098 
3099 void Table_Field_NumericFieldOptions::SharedDtor() {
3100  if (this != default_instance_) {
3101  }
3102 }
3103 
3104 void Table_Field_NumericFieldOptions::SetCachedSize(int size) const {
3105  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3106  _cached_size_ = size;
3107  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3108 }
3109 const ::google::protobuf::Descriptor* Table_Field_NumericFieldOptions::descriptor() {
3110  protobuf_AssignDescriptorsOnce();
3111  return Table_Field_NumericFieldOptions_descriptor_;
3112 }
3113 
3114 const Table_Field_NumericFieldOptions& Table_Field_NumericFieldOptions::default_instance() {
3115  if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
3116  return *default_instance_;
3117 }
3118 
3119 Table_Field_NumericFieldOptions* Table_Field_NumericFieldOptions::default_instance_ = NULL;
3120 
3121 Table_Field_NumericFieldOptions* Table_Field_NumericFieldOptions::New() const {
3122  return new Table_Field_NumericFieldOptions;
3123 }
3124 
3125 void Table_Field_NumericFieldOptions::Clear() {
3126 #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
3127  &reinterpret_cast<Table_Field_NumericFieldOptions*>(16)->f) - \
3128  reinterpret_cast<char*>(16))
3129 
3130 #define ZR_(first, last) do { \
3131  size_t f = OFFSET_OF_FIELD_(first); \
3132  size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
3133  ::memset(&first, 0, n); \
3134  } while (0)
3135 
3136  ZR_(is_autoincrement_, precision_);
3137 
3138 #undef OFFSET_OF_FIELD_
3139 #undef ZR_
3140 
3141  ::memset(_has_bits_, 0, sizeof(_has_bits_));
3142  mutable_unknown_fields()->Clear();
3143 }
3144 
3145 bool Table_Field_NumericFieldOptions::MergePartialFromCodedStream(
3146  ::google::protobuf::io::CodedInputStream* input) {
3147 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
3148  ::google::protobuf::uint32 tag;
3149  // @@protoc_insertion_point(parse_start:drizzled.message.Table.Field.NumericFieldOptions)
3150  for (;;) {
3151  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
3152  tag = p.first;
3153  if (!p.second) goto handle_unusual;
3154  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3155  // optional bool is_autoincrement = 1 [default = false];
3156  case 1: {
3157  if (tag == 8) {
3158  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3159  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3160  input, &is_autoincrement_)));
3161  set_has_is_autoincrement();
3162  } else {
3163  goto handle_unusual;
3164  }
3165  if (input->ExpectTag(16)) goto parse_scale;
3166  break;
3167  }
3168 
3169  // optional uint32 scale = 2;
3170  case 2: {
3171  if (tag == 16) {
3172  parse_scale:
3173  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3174  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3175  input, &scale_)));
3176  set_has_scale();
3177  } else {
3178  goto handle_unusual;
3179  }
3180  if (input->ExpectTag(24)) goto parse_precision;
3181  break;
3182  }
3183 
3184  // optional uint32 precision = 3;
3185  case 3: {
3186  if (tag == 24) {
3187  parse_precision:
3188  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3189  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3190  input, &precision_)));
3191  set_has_precision();
3192  } else {
3193  goto handle_unusual;
3194  }
3195  if (input->ExpectAtEnd()) goto success;
3196  break;
3197  }
3198 
3199  default: {
3200  handle_unusual:
3201  if (tag == 0 ||
3202  ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3203  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3204  goto success;
3205  }
3206  DO_(::google::protobuf::internal::WireFormat::SkipField(
3207  input, tag, mutable_unknown_fields()));
3208  break;
3209  }
3210  }
3211  }
3212 success:
3213  // @@protoc_insertion_point(parse_success:drizzled.message.Table.Field.NumericFieldOptions)
3214  return true;
3215 failure:
3216  // @@protoc_insertion_point(parse_failure:drizzled.message.Table.Field.NumericFieldOptions)
3217  return false;
3218 #undef DO_
3219 }
3220 
3221 void Table_Field_NumericFieldOptions::SerializeWithCachedSizes(
3222  ::google::protobuf::io::CodedOutputStream* output) const {
3223  // @@protoc_insertion_point(serialize_start:drizzled.message.Table.Field.NumericFieldOptions)
3224  // optional bool is_autoincrement = 1 [default = false];
3225  if (has_is_autoincrement()) {
3226  ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is_autoincrement(), output);
3227  }
3228 
3229  // optional uint32 scale = 2;
3230  if (has_scale()) {
3231  ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->scale(), output);
3232  }
3233 
3234  // optional uint32 precision = 3;
3235  if (has_precision()) {
3236  ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->precision(), output);
3237  }
3238 
3239  if (!unknown_fields().empty()) {
3240  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3241  unknown_fields(), output);
3242  }
3243  // @@protoc_insertion_point(serialize_end:drizzled.message.Table.Field.NumericFieldOptions)
3244 }
3245 
3246 ::google::protobuf::uint8* Table_Field_NumericFieldOptions::SerializeWithCachedSizesToArray(
3247  ::google::protobuf::uint8* target) const {
3248  // @@protoc_insertion_point(serialize_to_array_start:drizzled.message.Table.Field.NumericFieldOptions)
3249  // optional bool is_autoincrement = 1 [default = false];
3250  if (has_is_autoincrement()) {
3251  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->is_autoincrement(), target);
3252  }
3253 
3254  // optional uint32 scale = 2;
3255  if (has_scale()) {
3256  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->scale(), target);
3257  }
3258 
3259  // optional uint32 precision = 3;
3260  if (has_precision()) {
3261  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->precision(), target);
3262  }
3263 
3264  if (!unknown_fields().empty()) {
3265  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3266  unknown_fields(), target);
3267  }
3268  // @@protoc_insertion_point(serialize_to_array_end:drizzled.message.Table.Field.NumericFieldOptions)
3269  return target;
3270 }
3271 
3272 int Table_Field_NumericFieldOptions::ByteSize() const {
3273  int total_size = 0;
3274 
3275  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3276  // optional bool is_autoincrement = 1 [default = false];
3277  if (has_is_autoincrement()) {
3278  total_size += 1 + 1;
3279  }
3280 
3281  // optional uint32 scale = 2;
3282  if (has_scale()) {
3283  total_size += 1 +
3284  ::google::protobuf::internal::WireFormatLite::UInt32Size(
3285  this->scale());
3286  }
3287 
3288  // optional uint32 precision = 3;
3289  if (has_precision()) {
3290  total_size += 1 +
3291  ::google::protobuf::internal::WireFormatLite::UInt32Size(
3292  this->precision());
3293  }
3294 
3295  }
3296  if (!unknown_fields().empty()) {
3297  total_size +=
3298  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3299  unknown_fields());
3300  }
3301  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3302  _cached_size_ = total_size;
3303  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3304  return total_size;
3305 }
3306 
3307 void Table_Field_NumericFieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
3308  GOOGLE_CHECK_NE(&from, this);
3309  const Table_Field_NumericFieldOptions* source =
3310  ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_NumericFieldOptions*>(
3311  &from);
3312  if (source == NULL) {
3313  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3314  } else {
3315  MergeFrom(*source);
3316  }
3317 }
3318 
3319 void Table_Field_NumericFieldOptions::MergeFrom(const Table_Field_NumericFieldOptions& from) {
3320  GOOGLE_CHECK_NE(&from, this);
3321  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3322  if (from.has_is_autoincrement()) {
3323  set_is_autoincrement(from.is_autoincrement());
3324  }
3325  if (from.has_scale()) {
3326  set_scale(from.scale());
3327  }
3328  if (from.has_precision()) {
3329  set_precision(from.precision());
3330  }
3331  }
3332  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3333 }
3334 
3335 void Table_Field_NumericFieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
3336  if (&from == this) return;
3337  Clear();
3338  MergeFrom(from);
3339 }
3340 
3341 void Table_Field_NumericFieldOptions::CopyFrom(const Table_Field_NumericFieldOptions& from) {
3342  if (&from == this) return;
3343  Clear();
3344  MergeFrom(from);
3345 }
3346 
3347 bool Table_Field_NumericFieldOptions::IsInitialized() const {
3348 
3349  return true;
3350 }
3351 
3352 void Table_Field_NumericFieldOptions::Swap(Table_Field_NumericFieldOptions* other) {
3353  if (other != this) {
3354  std::swap(is_autoincrement_, other->is_autoincrement_);
3355  std::swap(scale_, other->scale_);
3356  std::swap(precision_, other->precision_);
3357  std::swap(_has_bits_[0], other->_has_bits_[0]);
3358  _unknown_fields_.Swap(&other->_unknown_fields_);
3359  std::swap(_cached_size_, other->_cached_size_);
3360  }
3361 }
3362 
3363 ::google::protobuf::Metadata Table_Field_NumericFieldOptions::GetMetadata() const {
3364  protobuf_AssignDescriptorsOnce();
3365  ::google::protobuf::Metadata metadata;
3366  metadata.descriptor = Table_Field_NumericFieldOptions_descriptor_;
3367  metadata.reflection = Table_Field_NumericFieldOptions_reflection_;
3368  return metadata;
3369 }
3370 
3371 
3372 // -------------------------------------------------------------------
3373 
3374 #ifndef _MSC_VER
3375 const int Table_Field_StringFieldOptions::kIsFixedWidthFieldNumber;
3376 const int Table_Field_StringFieldOptions::kLengthFieldNumber;
3377 const int Table_Field_StringFieldOptions::kCollationIdFieldNumber;
3378 const int Table_Field_StringFieldOptions::kCollationFieldNumber;
3379 #endif // !_MSC_VER
3380 
3381 Table_Field_StringFieldOptions::Table_Field_StringFieldOptions()
3382  : ::google::protobuf::Message() {
3383  SharedCtor();
3384  // @@protoc_insertion_point(constructor:drizzled.message.Table.Field.StringFieldOptions)
3385 }
3386 
3387 void Table_Field_StringFieldOptions::InitAsDefaultInstance() {
3388 }
3389 
3390 Table_Field_StringFieldOptions::Table_Field_StringFieldOptions(const Table_Field_StringFieldOptions& from)
3391  : ::google::protobuf::Message() {
3392  SharedCtor();
3393  MergeFrom(from);
3394  // @@protoc_insertion_point(copy_constructor:drizzled.message.Table.Field.StringFieldOptions)
3395 }
3396 
3397 void Table_Field_StringFieldOptions::SharedCtor() {
3398  ::google::protobuf::internal::GetEmptyString();
3399  _cached_size_ = 0;
3400  is_fixed_width_ = false;
3401  length_ = 0u;
3402  collation_id_ = 0u;
3403  collation_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3404  ::memset(_has_bits_, 0, sizeof(_has_bits_));
3405 }
3406 
3407 Table_Field_StringFieldOptions::~Table_Field_StringFieldOptions() {
3408  // @@protoc_insertion_point(destructor:drizzled.message.Table.Field.StringFieldOptions)
3409  SharedDtor();
3410 }
3411 
3412 void Table_Field_StringFieldOptions::SharedDtor() {
3413  if (collation_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3414  delete collation_;
3415  }
3416  if (this != default_instance_) {
3417  }
3418 }
3419 
3420 void Table_Field_StringFieldOptions::SetCachedSize(int size) const {
3421  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3422  _cached_size_ = size;
3423  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3424 }
3425 const ::google::protobuf::Descriptor* Table_Field_StringFieldOptions::descriptor() {
3426  protobuf_AssignDescriptorsOnce();
3427  return Table_Field_StringFieldOptions_descriptor_;
3428 }
3429 
3430 const Table_Field_StringFieldOptions& Table_Field_StringFieldOptions::default_instance() {
3431  if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
3432  return *default_instance_;
3433 }
3434 
3435 Table_Field_StringFieldOptions* Table_Field_StringFieldOptions::default_instance_ = NULL;
3436 
3437 Table_Field_StringFieldOptions* Table_Field_StringFieldOptions::New() const {
3438  return new Table_Field_StringFieldOptions;
3439 }
3440 
3441 void Table_Field_StringFieldOptions::Clear() {
3442 #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
3443  &reinterpret_cast<Table_Field_StringFieldOptions*>(16)->f) - \
3444  reinterpret_cast<char*>(16))
3445 
3446 #define ZR_(first, last) do { \
3447  size_t f = OFFSET_OF_FIELD_(first); \
3448  size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
3449  ::memset(&first, 0, n); \
3450  } while (0)
3451 
3452  if (_has_bits_[0 / 32] & 15) {
3453  ZR_(is_fixed_width_, length_);
3454  collation_id_ = 0u;
3455  if (has_collation()) {
3456  if (collation_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3457  collation_->clear();
3458  }
3459  }
3460  }
3461 
3462 #undef OFFSET_OF_FIELD_
3463 #undef ZR_
3464 
3465  ::memset(_has_bits_, 0, sizeof(_has_bits_));
3466  mutable_unknown_fields()->Clear();
3467 }
3468 
3469 bool Table_Field_StringFieldOptions::MergePartialFromCodedStream(
3470  ::google::protobuf::io::CodedInputStream* input) {
3471 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
3472  ::google::protobuf::uint32 tag;
3473  // @@protoc_insertion_point(parse_start:drizzled.message.Table.Field.StringFieldOptions)
3474  for (;;) {
3475  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
3476  tag = p.first;
3477  if (!p.second) goto handle_unusual;
3478  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3479  // optional bool is_fixed_width = 1 [default = false];
3480  case 1: {
3481  if (tag == 8) {
3482  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3483  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3484  input, &is_fixed_width_)));
3485  set_has_is_fixed_width();
3486  } else {
3487  goto handle_unusual;
3488  }
3489  if (input->ExpectTag(16)) goto parse_length;
3490  break;
3491  }
3492 
3493  // optional uint32 length = 2;
3494  case 2: {
3495  if (tag == 16) {
3496  parse_length:
3497  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3498  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3499  input, &length_)));
3500  set_has_length();
3501  } else {
3502  goto handle_unusual;
3503  }
3504  if (input->ExpectTag(24)) goto parse_collation_id;
3505  break;
3506  }
3507 
3508  // optional uint32 collation_id = 3;
3509  case 3: {
3510  if (tag == 24) {
3511  parse_collation_id:
3512  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3513  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3514  input, &collation_id_)));
3515  set_has_collation_id();
3516  } else {
3517  goto handle_unusual;
3518  }
3519  if (input->ExpectTag(34)) goto parse_collation;
3520  break;
3521  }
3522 
3523  // optional string collation = 4;
3524  case 4: {
3525  if (tag == 34) {
3526  parse_collation:
3527  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3528  input, this->mutable_collation()));
3529  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3530  this->collation().data(), this->collation().length(),
3531  ::google::protobuf::internal::WireFormat::PARSE,
3532  "collation");
3533  } else {
3534  goto handle_unusual;
3535  }
3536  if (input->ExpectAtEnd()) goto success;
3537  break;
3538  }
3539 
3540  default: {
3541  handle_unusual:
3542  if (tag == 0 ||
3543  ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3544  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3545  goto success;
3546  }
3547  DO_(::google::protobuf::internal::WireFormat::SkipField(
3548  input, tag, mutable_unknown_fields()));
3549  break;
3550  }
3551  }
3552  }
3553 success:
3554  // @@protoc_insertion_point(parse_success:drizzled.message.Table.Field.StringFieldOptions)
3555  return true;
3556 failure:
3557  // @@protoc_insertion_point(parse_failure:drizzled.message.Table.Field.StringFieldOptions)
3558  return false;
3559 #undef DO_
3560 }
3561 
3562 void Table_Field_StringFieldOptions::SerializeWithCachedSizes(
3563  ::google::protobuf::io::CodedOutputStream* output) const {
3564  // @@protoc_insertion_point(serialize_start:drizzled.message.Table.Field.StringFieldOptions)
3565  // optional bool is_fixed_width = 1 [default = false];
3566  if (has_is_fixed_width()) {
3567  ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is_fixed_width(), output);
3568  }
3569 
3570  // optional uint32 length = 2;
3571  if (has_length()) {
3572  ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->length(), output);
3573  }
3574 
3575  // optional uint32 collation_id = 3;
3576  if (has_collation_id()) {
3577  ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->collation_id(), output);
3578  }
3579 
3580  // optional string collation = 4;
3581  if (has_collation()) {
3582  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3583  this->collation().data(), this->collation().length(),
3584  ::google::protobuf::internal::WireFormat::SERIALIZE,
3585  "collation");
3586  ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3587  4, this->collation(), output);
3588  }
3589 
3590  if (!unknown_fields().empty()) {
3591  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3592  unknown_fields(), output);
3593  }
3594  // @@protoc_insertion_point(serialize_end:drizzled.message.Table.Field.StringFieldOptions)
3595 }
3596 
3597 ::google::protobuf::uint8* Table_Field_StringFieldOptions::SerializeWithCachedSizesToArray(
3598  ::google::protobuf::uint8* target) const {
3599  // @@protoc_insertion_point(serialize_to_array_start:drizzled.message.Table.Field.StringFieldOptions)
3600  // optional bool is_fixed_width = 1 [default = false];
3601  if (has_is_fixed_width()) {
3602  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->is_fixed_width(), target);
3603  }
3604 
3605  // optional uint32 length = 2;
3606  if (has_length()) {
3607  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->length(), target);
3608  }
3609 
3610  // optional uint32 collation_id = 3;
3611  if (has_collation_id()) {
3612  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->collation_id(), target);
3613  }
3614 
3615  // optional string collation = 4;
3616  if (has_collation()) {
3617  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3618  this->collation().data(), this->collation().length(),
3619  ::google::protobuf::internal::WireFormat::SERIALIZE,
3620  "collation");
3621  target =
3622  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3623  4, this->collation(), target);
3624  }
3625 
3626  if (!unknown_fields().empty()) {
3627  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3628  unknown_fields(), target);
3629  }
3630  // @@protoc_insertion_point(serialize_to_array_end:drizzled.message.Table.Field.StringFieldOptions)
3631  return target;
3632 }
3633 
3634 int Table_Field_StringFieldOptions::ByteSize() const {
3635  int total_size = 0;
3636 
3637  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3638  // optional bool is_fixed_width = 1 [default = false];
3639  if (has_is_fixed_width()) {
3640  total_size += 1 + 1;
3641  }
3642 
3643  // optional uint32 length = 2;
3644  if (has_length()) {
3645  total_size += 1 +
3646  ::google::protobuf::internal::WireFormatLite::UInt32Size(
3647  this->length());
3648  }
3649 
3650  // optional uint32 collation_id = 3;
3651  if (has_collation_id()) {
3652  total_size += 1 +
3653  ::google::protobuf::internal::WireFormatLite::UInt32Size(
3654  this->collation_id());
3655  }
3656 
3657  // optional string collation = 4;
3658  if (has_collation()) {
3659  total_size += 1 +
3660  ::google::protobuf::internal::WireFormatLite::StringSize(
3661  this->collation());
3662  }
3663 
3664  }
3665  if (!unknown_fields().empty()) {
3666  total_size +=
3667  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3668  unknown_fields());
3669  }
3670  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3671  _cached_size_ = total_size;
3672  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3673  return total_size;
3674 }
3675 
3676 void Table_Field_StringFieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
3677  GOOGLE_CHECK_NE(&from, this);
3678  const Table_Field_StringFieldOptions* source =
3679  ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_StringFieldOptions*>(
3680  &from);
3681  if (source == NULL) {
3682  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3683  } else {
3684  MergeFrom(*source);
3685  }
3686 }
3687 
3688 void Table_Field_StringFieldOptions::MergeFrom(const Table_Field_StringFieldOptions& from) {
3689  GOOGLE_CHECK_NE(&from, this);
3690  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3691  if (from.has_is_fixed_width()) {
3692  set_is_fixed_width(from.is_fixed_width());
3693  }
3694  if (from.has_length()) {
3695  set_length(from.length());
3696  }
3697  if (from.has_collation_id()) {
3698  set_collation_id(from.collation_id());
3699  }
3700  if (from.has_collation()) {
3701  set_collation(from.collation());
3702  }
3703  }
3704  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3705 }
3706 
3707 void Table_Field_StringFieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
3708  if (&from == this) return;
3709  Clear();
3710  MergeFrom(from);
3711 }
3712 
3713 void Table_Field_StringFieldOptions::CopyFrom(const Table_Field_StringFieldOptions& from) {
3714  if (&from == this) return;
3715  Clear();
3716  MergeFrom(from);
3717 }
3718 
3719 bool Table_Field_StringFieldOptions::IsInitialized() const {
3720 
3721  return true;
3722 }
3723 
3724 void Table_Field_StringFieldOptions::Swap(Table_Field_StringFieldOptions* other) {
3725  if (other != this) {
3726  std::swap(is_fixed_width_, other->is_fixed_width_);
3727  std::swap(length_, other->length_);
3728  std::swap(collation_id_, other->collation_id_);
3729  std::swap(collation_, other->collation_);
3730  std::swap(_has_bits_[0], other->_has_bits_[0]);
3731  _unknown_fields_.Swap(&other->_unknown_fields_);
3732  std::swap(_cached_size_, other->_cached_size_);
3733  }
3734 }
3735 
3736 ::google::protobuf::Metadata Table_Field_StringFieldOptions::GetMetadata() const {
3737  protobuf_AssignDescriptorsOnce();
3738  ::google::protobuf::Metadata metadata;
3739  metadata.descriptor = Table_Field_StringFieldOptions_descriptor_;
3740  metadata.reflection = Table_Field_StringFieldOptions_reflection_;
3741  return metadata;
3742 }
3743 
3744 
3745 // -------------------------------------------------------------------
3746 
3747 #ifndef _MSC_VER
3748 const int Table_Field_EnumerationValues::kCollationIdFieldNumber;
3749 const int Table_Field_EnumerationValues::kCollationFieldNumber;
3750 const int Table_Field_EnumerationValues::kFieldValueFieldNumber;
3751 #endif // !_MSC_VER
3752 
3753 Table_Field_EnumerationValues::Table_Field_EnumerationValues()
3754  : ::google::protobuf::Message() {
3755  SharedCtor();
3756  // @@protoc_insertion_point(constructor:drizzled.message.Table.Field.EnumerationValues)
3757 }
3758 
3759 void Table_Field_EnumerationValues::InitAsDefaultInstance() {
3760 }
3761 
3762 Table_Field_EnumerationValues::Table_Field_EnumerationValues(const Table_Field_EnumerationValues& from)
3763  : ::google::protobuf::Message() {
3764  SharedCtor();
3765  MergeFrom(from);
3766  // @@protoc_insertion_point(copy_constructor:drizzled.message.Table.Field.EnumerationValues)
3767 }
3768 
3769 void Table_Field_EnumerationValues::SharedCtor() {
3770  ::google::protobuf::internal::GetEmptyString();
3771  _cached_size_ = 0;
3772  collation_id_ = 0u;
3773  collation_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3774  ::memset(_has_bits_, 0, sizeof(_has_bits_));
3775 }
3776 
3777 Table_Field_EnumerationValues::~Table_Field_EnumerationValues() {
3778  // @@protoc_insertion_point(destructor:drizzled.message.Table.Field.EnumerationValues)
3779  SharedDtor();
3780 }
3781 
3782 void Table_Field_EnumerationValues::SharedDtor() {
3783  if (collation_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3784  delete collation_;
3785  }
3786  if (this != default_instance_) {
3787  }
3788 }
3789 
3790 void Table_Field_EnumerationValues::SetCachedSize(int size) const {
3791  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3792  _cached_size_ = size;
3793  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3794 }
3795 const ::google::protobuf::Descriptor* Table_Field_EnumerationValues::descriptor() {
3796  protobuf_AssignDescriptorsOnce();
3797  return Table_Field_EnumerationValues_descriptor_;
3798 }
3799 
3800 const Table_Field_EnumerationValues& Table_Field_EnumerationValues::default_instance() {
3801  if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
3802  return *default_instance_;
3803 }
3804 
3805 Table_Field_EnumerationValues* Table_Field_EnumerationValues::default_instance_ = NULL;
3806 
3807 Table_Field_EnumerationValues* Table_Field_EnumerationValues::New() const {
3808  return new Table_Field_EnumerationValues;
3809 }
3810 
3811 void Table_Field_EnumerationValues::Clear() {
3812  if (_has_bits_[0 / 32] & 3) {
3813  collation_id_ = 0u;
3814  if (has_collation()) {
3815  if (collation_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3816  collation_->clear();
3817  }
3818  }
3819  }
3820  field_value_.Clear();
3821  ::memset(_has_bits_, 0, sizeof(_has_bits_));
3822  mutable_unknown_fields()->Clear();
3823 }
3824 
3825 bool Table_Field_EnumerationValues::MergePartialFromCodedStream(
3826  ::google::protobuf::io::CodedInputStream* input) {
3827 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
3828  ::google::protobuf::uint32 tag;
3829  // @@protoc_insertion_point(parse_start:drizzled.message.Table.Field.EnumerationValues)
3830  for (;;) {
3831  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
3832  tag = p.first;
3833  if (!p.second) goto handle_unusual;
3834  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3835  // optional uint32 collation_id = 2;
3836  case 2: {
3837  if (tag == 16) {
3838  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3839  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3840  input, &collation_id_)));
3841  set_has_collation_id();
3842  } else {
3843  goto handle_unusual;
3844  }
3845  if (input->ExpectTag(26)) goto parse_collation;
3846  break;
3847  }
3848 
3849  // optional string collation = 3;
3850  case 3: {
3851  if (tag == 26) {
3852  parse_collation:
3853  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3854  input, this->mutable_collation()));
3855  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3856  this->collation().data(), this->collation().length(),
3857  ::google::protobuf::internal::WireFormat::PARSE,
3858  "collation");
3859  } else {
3860  goto handle_unusual;
3861  }
3862  if (input->ExpectTag(34)) goto parse_field_value;
3863  break;
3864  }
3865 
3866  // repeated string field_value = 4;
3867  case 4: {
3868  if (tag == 34) {
3869  parse_field_value:
3870  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3871  input, this->add_field_value()));
3872  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3873  this->field_value(this->field_value_size() - 1).data(),
3874  this->field_value(this->field_value_size() - 1).length(),
3875  ::google::protobuf::internal::WireFormat::PARSE,
3876  "field_value");
3877  } else {
3878  goto handle_unusual;
3879  }
3880  if (input->ExpectTag(34)) goto parse_field_value;
3881  if (input->ExpectAtEnd()) goto success;
3882  break;
3883  }
3884 
3885  default: {
3886  handle_unusual:
3887  if (tag == 0 ||
3888  ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3889  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3890  goto success;
3891  }
3892  DO_(::google::protobuf::internal::WireFormat::SkipField(
3893  input, tag, mutable_unknown_fields()));
3894  break;
3895  }
3896  }
3897  }
3898 success:
3899  // @@protoc_insertion_point(parse_success:drizzled.message.Table.Field.EnumerationValues)
3900  return true;
3901 failure:
3902  // @@protoc_insertion_point(parse_failure:drizzled.message.Table.Field.EnumerationValues)
3903  return false;
3904 #undef DO_
3905 }
3906 
3907 void Table_Field_EnumerationValues::SerializeWithCachedSizes(
3908  ::google::protobuf::io::CodedOutputStream* output) const {
3909  // @@protoc_insertion_point(serialize_start:drizzled.message.Table.Field.EnumerationValues)
3910  // optional uint32 collation_id = 2;
3911  if (has_collation_id()) {
3912  ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->collation_id(), output);
3913  }
3914 
3915  // optional string collation = 3;
3916  if (has_collation()) {
3917  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3918  this->collation().data(), this->collation().length(),
3919  ::google::protobuf::internal::WireFormat::SERIALIZE,
3920  "collation");
3921  ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3922  3, this->collation(), output);
3923  }
3924 
3925  // repeated string field_value = 4;
3926  for (int i = 0; i < this->field_value_size(); i++) {
3927  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3928  this->field_value(i).data(), this->field_value(i).length(),
3929  ::google::protobuf::internal::WireFormat::SERIALIZE,
3930  "field_value");
3931  ::google::protobuf::internal::WireFormatLite::WriteString(
3932  4, this->field_value(i), output);
3933  }
3934 
3935  if (!unknown_fields().empty()) {
3936  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3937  unknown_fields(), output);
3938  }
3939  // @@protoc_insertion_point(serialize_end:drizzled.message.Table.Field.EnumerationValues)
3940 }
3941 
3942 ::google::protobuf::uint8* Table_Field_EnumerationValues::SerializeWithCachedSizesToArray(
3943  ::google::protobuf::uint8* target) const {
3944  // @@protoc_insertion_point(serialize_to_array_start:drizzled.message.Table.Field.EnumerationValues)
3945  // optional uint32 collation_id = 2;
3946  if (has_collation_id()) {
3947  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->collation_id(), target);
3948  }
3949 
3950  // optional string collation = 3;
3951  if (has_collation()) {
3952  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3953  this->collation().data(), this->collation().length(),
3954  ::google::protobuf::internal::WireFormat::SERIALIZE,
3955  "collation");
3956  target =
3957  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3958  3, this->collation(), target);
3959  }
3960 
3961  // repeated string field_value = 4;
3962  for (int i = 0; i < this->field_value_size(); i++) {
3963  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3964  this->field_value(i).data(), this->field_value(i).length(),
3965  ::google::protobuf::internal::WireFormat::SERIALIZE,
3966  "field_value");
3967  target = ::google::protobuf::internal::WireFormatLite::
3968  WriteStringToArray(4, this->field_value(i), target);
3969  }
3970 
3971  if (!unknown_fields().empty()) {
3972  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3973  unknown_fields(), target);
3974  }
3975  // @@protoc_insertion_point(serialize_to_array_end:drizzled.message.Table.Field.EnumerationValues)
3976  return target;
3977 }
3978 
3979 int Table_Field_EnumerationValues::ByteSize() const {
3980  int total_size = 0;
3981 
3982  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3983  // optional uint32 collation_id = 2;
3984  if (has_collation_id()) {
3985  total_size += 1 +
3986  ::google::protobuf::internal::WireFormatLite::UInt32Size(
3987  this->collation_id());
3988  }
3989 
3990  // optional string collation = 3;
3991  if (has_collation()) {
3992  total_size += 1 +
3993  ::google::protobuf::internal::WireFormatLite::StringSize(
3994  this->collation());
3995  }
3996 
3997  }
3998  // repeated string field_value = 4;
3999  total_size += 1 * this->field_value_size();
4000  for (int i = 0; i < this->field_value_size(); i++) {
4001  total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
4002  this->field_value(i));
4003  }
4004 
4005  if (!unknown_fields().empty()) {
4006  total_size +=
4007  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4008  unknown_fields());
4009  }
4010  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4011  _cached_size_ = total_size;
4012  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4013  return total_size;
4014 }
4015 
4016 void Table_Field_EnumerationValues::MergeFrom(const ::google::protobuf::Message& from) {
4017  GOOGLE_CHECK_NE(&from, this);
4018  const Table_Field_EnumerationValues* source =
4019  ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_EnumerationValues*>(
4020  &from);
4021  if (source == NULL) {
4022  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4023  } else {
4024  MergeFrom(*source);
4025  }
4026 }
4027 
4028 void Table_Field_EnumerationValues::MergeFrom(const Table_Field_EnumerationValues& from) {
4029  GOOGLE_CHECK_NE(&from, this);
4030  field_value_.MergeFrom(from.field_value_);
4031  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4032  if (from.has_collation_id()) {
4033  set_collation_id(from.collation_id());
4034  }
4035  if (from.has_collation()) {
4036  set_collation(from.collation());
4037  }
4038  }
4039  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4040 }
4041 
4042 void Table_Field_EnumerationValues::CopyFrom(const ::google::protobuf::Message& from) {
4043  if (&from == this) return;
4044  Clear();
4045  MergeFrom(from);
4046 }
4047 
4048 void Table_Field_EnumerationValues::CopyFrom(const Table_Field_EnumerationValues& from) {
4049  if (&from == this) return;
4050  Clear();
4051  MergeFrom(from);
4052 }
4053 
4054 bool Table_Field_EnumerationValues::IsInitialized() const {
4055 
4056  return true;
4057 }
4058 
4059 void Table_Field_EnumerationValues::Swap(Table_Field_EnumerationValues* other) {
4060  if (other != this) {
4061  std::swap(collation_id_, other->collation_id_);
4062  std::swap(collation_, other->collation_);
4063  field_value_.Swap(&other->field_value_);
4064  std::swap(_has_bits_[0], other->_has_bits_[0]);
4065  _unknown_fields_.Swap(&other->_unknown_fields_);
4066  std::swap(_cached_size_, other->_cached_size_);
4067  }
4068 }
4069 
4070 ::google::protobuf::Metadata Table_Field_EnumerationValues::GetMetadata() const {
4071  protobuf_AssignDescriptorsOnce();
4072  ::google::protobuf::Metadata metadata;
4073  metadata.descriptor = Table_Field_EnumerationValues_descriptor_;
4074  metadata.reflection = Table_Field_EnumerationValues_reflection_;
4075  return metadata;
4076 }
4077 
4078 
4079 // -------------------------------------------------------------------
4080 
4081 #ifndef _MSC_VER
4082 const int Table_Field_TimeFieldOptions::kMicrosecondsFieldNumber;
4083 #endif // !_MSC_VER
4084 
4085 Table_Field_TimeFieldOptions::Table_Field_TimeFieldOptions()
4086  : ::google::protobuf::Message() {
4087  SharedCtor();
4088  // @@protoc_insertion_point(constructor:drizzled.message.Table.Field.TimeFieldOptions)
4089 }
4090 
4091 void Table_Field_TimeFieldOptions::InitAsDefaultInstance() {
4092 }
4093 
4094 Table_Field_TimeFieldOptions::Table_Field_TimeFieldOptions(const Table_Field_TimeFieldOptions& from)
4095  : ::google::protobuf::Message() {
4096  SharedCtor();
4097  MergeFrom(from);
4098  // @@protoc_insertion_point(copy_constructor:drizzled.message.Table.Field.TimeFieldOptions)
4099 }
4100 
4101 void Table_Field_TimeFieldOptions::SharedCtor() {
4102  _cached_size_ = 0;
4103  microseconds_ = false;
4104  ::memset(_has_bits_, 0, sizeof(_has_bits_));
4105 }
4106 
4107 Table_Field_TimeFieldOptions::~Table_Field_TimeFieldOptions() {
4108  // @@protoc_insertion_point(destructor:drizzled.message.Table.Field.TimeFieldOptions)
4109  SharedDtor();
4110 }
4111 
4112 void Table_Field_TimeFieldOptions::SharedDtor() {
4113  if (this != default_instance_) {
4114  }
4115 }
4116 
4117 void Table_Field_TimeFieldOptions::SetCachedSize(int size) const {
4118  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4119  _cached_size_ = size;
4120  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4121 }
4122 const ::google::protobuf::Descriptor* Table_Field_TimeFieldOptions::descriptor() {
4123  protobuf_AssignDescriptorsOnce();
4124  return Table_Field_TimeFieldOptions_descriptor_;
4125 }
4126 
4127 const Table_Field_TimeFieldOptions& Table_Field_TimeFieldOptions::default_instance() {
4128  if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
4129  return *default_instance_;
4130 }
4131 
4132 Table_Field_TimeFieldOptions* Table_Field_TimeFieldOptions::default_instance_ = NULL;
4133 
4134 Table_Field_TimeFieldOptions* Table_Field_TimeFieldOptions::New() const {
4135  return new Table_Field_TimeFieldOptions;
4136 }
4137 
4138 void Table_Field_TimeFieldOptions::Clear() {
4139  microseconds_ = false;
4140  ::memset(_has_bits_, 0, sizeof(_has_bits_));
4141  mutable_unknown_fields()->Clear();
4142 }
4143 
4144 bool Table_Field_TimeFieldOptions::MergePartialFromCodedStream(
4145  ::google::protobuf::io::CodedInputStream* input) {
4146 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
4147  ::google::protobuf::uint32 tag;
4148  // @@protoc_insertion_point(parse_start:drizzled.message.Table.Field.TimeFieldOptions)
4149  for (;;) {
4150  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
4151  tag = p.first;
4152  if (!p.second) goto handle_unusual;
4153  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4154  // optional bool microseconds = 1;
4155  case 1: {
4156  if (tag == 8) {
4157  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4158  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4159  input, &microseconds_)));
4160  set_has_microseconds();
4161  } else {
4162  goto handle_unusual;
4163  }
4164  if (input->ExpectAtEnd()) goto success;
4165  break;
4166  }
4167 
4168  default: {
4169  handle_unusual:
4170  if (tag == 0 ||
4171  ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4172  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4173  goto success;
4174  }
4175  DO_(::google::protobuf::internal::WireFormat::SkipField(
4176  input, tag, mutable_unknown_fields()));
4177  break;
4178  }
4179  }
4180  }
4181 success:
4182  // @@protoc_insertion_point(parse_success:drizzled.message.Table.Field.TimeFieldOptions)
4183  return true;
4184 failure:
4185  // @@protoc_insertion_point(parse_failure:drizzled.message.Table.Field.TimeFieldOptions)
4186  return false;
4187 #undef DO_
4188 }
4189 
4190 void Table_Field_TimeFieldOptions::SerializeWithCachedSizes(
4191  ::google::protobuf::io::CodedOutputStream* output) const {
4192  // @@protoc_insertion_point(serialize_start:drizzled.message.Table.Field.TimeFieldOptions)
4193  // optional bool microseconds = 1;
4194  if (has_microseconds()) {
4195  ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->microseconds(), output);
4196  }
4197 
4198  if (!unknown_fields().empty()) {
4199  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4200  unknown_fields(), output);
4201  }
4202  // @@protoc_insertion_point(serialize_end:drizzled.message.Table.Field.TimeFieldOptions)
4203 }
4204 
4205 ::google::protobuf::uint8* Table_Field_TimeFieldOptions::SerializeWithCachedSizesToArray(
4206  ::google::protobuf::uint8* target) const {
4207  // @@protoc_insertion_point(serialize_to_array_start:drizzled.message.Table.Field.TimeFieldOptions)
4208  // optional bool microseconds = 1;
4209  if (has_microseconds()) {
4210  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->microseconds(), target);
4211  }
4212 
4213  if (!unknown_fields().empty()) {
4214  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4215  unknown_fields(), target);
4216  }
4217  // @@protoc_insertion_point(serialize_to_array_end:drizzled.message.Table.Field.TimeFieldOptions)
4218  return target;
4219 }
4220 
4221 int Table_Field_TimeFieldOptions::ByteSize() const {
4222  int total_size = 0;
4223 
4224  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4225  // optional bool microseconds = 1;
4226  if (has_microseconds()) {
4227  total_size += 1 + 1;
4228  }
4229 
4230  }
4231  if (!unknown_fields().empty()) {
4232  total_size +=
4233  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4234  unknown_fields());
4235  }
4236  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4237  _cached_size_ = total_size;
4238  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4239  return total_size;
4240 }
4241 
4242 void Table_Field_TimeFieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
4243  GOOGLE_CHECK_NE(&from, this);
4244  const Table_Field_TimeFieldOptions* source =
4245  ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_TimeFieldOptions*>(
4246  &from);
4247  if (source == NULL) {
4248  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4249  } else {
4250  MergeFrom(*source);
4251  }
4252 }
4253 
4254 void Table_Field_TimeFieldOptions::MergeFrom(const Table_Field_TimeFieldOptions& from) {
4255  GOOGLE_CHECK_NE(&from, this);
4256  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4257  if (from.has_microseconds()) {
4258  set_microseconds(from.microseconds());
4259  }
4260  }
4261  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4262 }
4263 
4264 void Table_Field_TimeFieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
4265  if (&from == this) return;
4266  Clear();
4267  MergeFrom(from);
4268 }
4269 
4270 void Table_Field_TimeFieldOptions::CopyFrom(const Table_Field_TimeFieldOptions& from) {
4271  if (&from == this) return;
4272  Clear();
4273  MergeFrom(from);
4274 }
4275 
4276 bool Table_Field_TimeFieldOptions::IsInitialized() const {
4277 
4278  return true;
4279 }
4280 
4281 void Table_Field_TimeFieldOptions::Swap(Table_Field_TimeFieldOptions* other) {
4282  if (other != this) {
4283  std::swap(microseconds_, other->microseconds_);
4284  std::swap(_has_bits_[0], other->_has_bits_[0]);
4285  _unknown_fields_.Swap(&other->_unknown_fields_);
4286  std::swap(_cached_size_, other->_cached_size_);
4287  }
4288 }
4289 
4290 ::google::protobuf::Metadata Table_Field_TimeFieldOptions::GetMetadata() const {
4291  protobuf_AssignDescriptorsOnce();
4292  ::google::protobuf::Metadata metadata;
4293  metadata.descriptor = Table_Field_TimeFieldOptions_descriptor_;
4294  metadata.reflection = Table_Field_TimeFieldOptions_reflection_;
4295  return metadata;
4296 }
4297 
4298 
4299 // -------------------------------------------------------------------
4300 
4301 #ifndef _MSC_VER
4302 const int Table_Field::kNameFieldNumber;
4303 const int Table_Field::kTypeFieldNumber;
4304 const int Table_Field::kOptionsFieldNumber;
4305 const int Table_Field::kConstraintsFieldNumber;
4306 const int Table_Field::kNumericOptionsFieldNumber;
4307 const int Table_Field::kStringOptionsFieldNumber;
4308 const int Table_Field::kTimeOptionsFieldNumber;
4309 const int Table_Field::kCommentFieldNumber;
4310 const int Table_Field::kEnumerationValuesFieldNumber;
4311 #endif // !_MSC_VER
4312 
4313 Table_Field::Table_Field()
4314  : ::google::protobuf::Message() {
4315  SharedCtor();
4316  // @@protoc_insertion_point(constructor:drizzled.message.Table.Field)
4317 }
4318 
4319 void Table_Field::InitAsDefaultInstance() {
4320  options_ = const_cast< ::drizzled::message::Table_Field_FieldOptions*>(&::drizzled::message::Table_Field_FieldOptions::default_instance());
4321  constraints_ = const_cast< ::drizzled::message::Table_Field_FieldConstraints*>(&::drizzled::message::Table_Field_FieldConstraints::default_instance());
4322  numeric_options_ = const_cast< ::drizzled::message::Table_Field_NumericFieldOptions*>(&::drizzled::message::Table_Field_NumericFieldOptions::default_instance());
4323  string_options_ = const_cast< ::drizzled::message::Table_Field_StringFieldOptions*>(&::drizzled::message::Table_Field_StringFieldOptions::default_instance());
4324  time_options_ = const_cast< ::drizzled::message::Table_Field_TimeFieldOptions*>(&::drizzled::message::Table_Field_TimeFieldOptions::default_instance());
4325  enumeration_values_ = const_cast< ::drizzled::message::Table_Field_EnumerationValues*>(&::drizzled::message::Table_Field_EnumerationValues::default_instance());
4326 }
4327 
4328 Table_Field::Table_Field(const Table_Field& from)
4329  : ::google::protobuf::Message() {
4330  SharedCtor();
4331  MergeFrom(from);
4332  // @@protoc_insertion_point(copy_constructor:drizzled.message.Table.Field)
4333 }
4334 
4335 void Table_Field::SharedCtor() {
4336  ::google::protobuf::internal::GetEmptyString();
4337  _cached_size_ = 0;
4338  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4339  type_ = 0;
4340  options_ = NULL;
4341  constraints_ = NULL;
4342  numeric_options_ = NULL;
4343  string_options_ = NULL;
4344  time_options_ = NULL;
4345  comment_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4346  enumeration_values_ = NULL;
4347  ::memset(_has_bits_, 0, sizeof(_has_bits_));
4348 }
4349 
4350 Table_Field::~Table_Field() {
4351  // @@protoc_insertion_point(destructor:drizzled.message.Table.Field)
4352  SharedDtor();
4353 }
4354 
4355 void Table_Field::SharedDtor() {
4356  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4357  delete name_;
4358  }
4359  if (comment_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4360  delete comment_;
4361  }
4362  if (this != default_instance_) {
4363  delete options_;
4364  delete constraints_;
4365  delete numeric_options_;
4366  delete string_options_;
4367  delete time_options_;
4368  delete enumeration_values_;
4369  }
4370 }
4371 
4372 void Table_Field::SetCachedSize(int size) const {
4373  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4374  _cached_size_ = size;
4375  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4376 }
4377 const ::google::protobuf::Descriptor* Table_Field::descriptor() {
4378  protobuf_AssignDescriptorsOnce();
4379  return Table_Field_descriptor_;
4380 }
4381 
4382 const Table_Field& Table_Field::default_instance() {
4383  if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
4384  return *default_instance_;
4385 }
4386 
4387 Table_Field* Table_Field::default_instance_ = NULL;
4388 
4389 Table_Field* Table_Field::New() const {
4390  return new Table_Field;
4391 }
4392 
4393 void Table_Field::Clear() {
4394  if (_has_bits_[0 / 32] & 255) {
4395  if (has_name()) {
4396  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4397  name_->clear();
4398  }
4399  }
4400  type_ = 0;
4401  if (has_options()) {
4402  if (options_ != NULL) options_->::drizzled::message::Table_Field_FieldOptions::Clear();
4403  }
4404  if (has_constraints()) {
4405  if (constraints_ != NULL) constraints_->::drizzled::message::Table_Field_FieldConstraints::Clear();
4406  }
4407  if (has_numeric_options()) {
4408  if (numeric_options_ != NULL) numeric_options_->::drizzled::message::Table_Field_NumericFieldOptions::Clear();
4409  }
4410  if (has_string_options()) {
4411  if (string_options_ != NULL) string_options_->::drizzled::message::Table_Field_StringFieldOptions::Clear();
4412  }
4413  if (has_time_options()) {
4414  if (time_options_ != NULL) time_options_->::drizzled::message::Table_Field_TimeFieldOptions::Clear();
4415  }
4416  if (has_comment()) {
4417  if (comment_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4418  comment_->clear();
4419  }
4420  }
4421  }
4422  if (has_enumeration_values()) {
4423  if (enumeration_values_ != NULL) enumeration_values_->::drizzled::message::Table_Field_EnumerationValues::Clear();
4424  }
4425  ::memset(_has_bits_, 0, sizeof(_has_bits_));
4426  mutable_unknown_fields()->Clear();
4427 }
4428 
4429 bool Table_Field::MergePartialFromCodedStream(
4430  ::google::protobuf::io::CodedInputStream* input) {
4431 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
4432  ::google::protobuf::uint32 tag;
4433  // @@protoc_insertion_point(parse_start:drizzled.message.Table.Field)
4434  for (;;) {
4435  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
4436  tag = p.first;
4437  if (!p.second) goto handle_unusual;
4438  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4439  // required string name = 1;
4440  case 1: {
4441  if (tag == 10) {
4442  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4443  input, this->mutable_name()));
4444  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4445  this->name().data(), this->name().length(),
4446  ::google::protobuf::internal::WireFormat::PARSE,
4447  "name");
4448  } else {
4449  goto handle_unusual;
4450  }
4451  if (input->ExpectTag(16)) goto parse_type;
4452  break;
4453  }
4454 
4455  // required .drizzled.message.Table.Field.FieldType type = 2;
4456  case 2: {
4457  if (tag == 16) {
4458  parse_type:
4459  int value;
4460  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4461  int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4462  input, &value)));
4463  if (::drizzled::message::Table_Field_FieldType_IsValid(value)) {
4464  set_type(static_cast< ::drizzled::message::Table_Field_FieldType >(value));
4465  } else {
4466  mutable_unknown_fields()->AddVarint(2, value);
4467  }
4468  } else {
4469  goto handle_unusual;
4470  }
4471  if (input->ExpectTag(34)) goto parse_options;
4472  break;
4473  }
4474 
4475  // optional .drizzled.message.Table.Field.FieldOptions options = 4;
4476  case 4: {
4477  if (tag == 34) {
4478  parse_options:
4479  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4480  input, mutable_options()));
4481  } else {
4482  goto handle_unusual;
4483  }
4484  if (input->ExpectTag(42)) goto parse_constraints;
4485  break;
4486  }
4487 
4488  // optional .drizzled.message.Table.Field.FieldConstraints constraints = 5;
4489  case 5: {
4490  if (tag == 42) {
4491  parse_constraints:
4492  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4493  input, mutable_constraints()));
4494  } else {
4495  goto handle_unusual;
4496  }
4497  if (input->ExpectTag(50)) goto parse_numeric_options;
4498  break;
4499  }
4500 
4501  // optional .drizzled.message.Table.Field.NumericFieldOptions numeric_options = 6;
4502  case 6: {
4503  if (tag == 50) {
4504  parse_numeric_options:
4505  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4506  input, mutable_numeric_options()));
4507  } else {
4508  goto handle_unusual;
4509  }
4510  if (input->ExpectTag(58)) goto parse_string_options;
4511  break;
4512  }
4513 
4514  // optional .drizzled.message.Table.Field.StringFieldOptions string_options = 7;
4515  case 7: {
4516  if (tag == 58) {
4517  parse_string_options:
4518  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4519  input, mutable_string_options()));
4520  } else {
4521  goto handle_unusual;
4522  }
4523  if (input->ExpectTag(66)) goto parse_time_options;
4524  break;
4525  }
4526 
4527  // optional .drizzled.message.Table.Field.TimeFieldOptions time_options = 8;
4528  case 8: {
4529  if (tag == 66) {
4530  parse_time_options:
4531  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4532  input, mutable_time_options()));
4533  } else {
4534  goto handle_unusual;
4535  }
4536  if (input->ExpectTag(130)) goto parse_comment;
4537  break;
4538  }
4539 
4540  // optional string comment = 16;
4541  case 16: {
4542  if (tag == 130) {
4543  parse_comment:
4544  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4545  input, this->mutable_comment()));
4546  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4547  this->comment().data(), this->comment().length(),
4548  ::google::protobuf::internal::WireFormat::PARSE,
4549  "comment");
4550  } else {
4551  goto handle_unusual;
4552  }
4553  if (input->ExpectTag(138)) goto parse_enumeration_values;
4554  break;
4555  }
4556 
4557  // optional .drizzled.message.Table.Field.EnumerationValues enumeration_values = 17;
4558  case 17: {
4559  if (tag == 138) {
4560  parse_enumeration_values:
4561  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4562  input, mutable_enumeration_values()));
4563  } else {
4564  goto handle_unusual;
4565  }
4566  if (input->ExpectAtEnd()) goto success;
4567  break;
4568  }
4569 
4570  default: {
4571  handle_unusual:
4572  if (tag == 0 ||
4573  ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4574  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4575  goto success;
4576  }
4577  DO_(::google::protobuf::internal::WireFormat::SkipField(
4578  input, tag, mutable_unknown_fields()));
4579  break;
4580  }
4581  }
4582  }
4583 success:
4584  // @@protoc_insertion_point(parse_success:drizzled.message.Table.Field)
4585  return true;
4586 failure:
4587  // @@protoc_insertion_point(parse_failure:drizzled.message.Table.Field)
4588  return false;
4589 #undef DO_
4590 }
4591 
4592 void Table_Field::SerializeWithCachedSizes(
4593  ::google::protobuf::io::CodedOutputStream* output) const {
4594  // @@protoc_insertion_point(serialize_start:drizzled.message.Table.Field)
4595  // required string name = 1;
4596  if (has_name()) {
4597  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4598  this->name().data(), this->name().length(),
4599  ::google::protobuf::internal::WireFormat::SERIALIZE,
4600  "name");
4601  ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4602  1, this->name(), output);
4603  }
4604 
4605  // required .drizzled.message.Table.Field.FieldType type = 2;
4606  if (has_type()) {
4607  ::google::protobuf::internal::WireFormatLite::WriteEnum(
4608  2, this->type(), output);
4609  }
4610 
4611  // optional .drizzled.message.Table.Field.FieldOptions options = 4;
4612  if (has_options()) {
4613  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4614  4, this->options(), output);
4615  }
4616 
4617  // optional .drizzled.message.Table.Field.FieldConstraints constraints = 5;
4618  if (has_constraints()) {
4619  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4620  5, this->constraints(), output);
4621  }
4622 
4623  // optional .drizzled.message.Table.Field.NumericFieldOptions numeric_options = 6;
4624  if (has_numeric_options()) {
4625  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4626  6, this->numeric_options(), output);
4627  }
4628 
4629  // optional .drizzled.message.Table.Field.StringFieldOptions string_options = 7;
4630  if (has_string_options()) {
4631  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4632  7, this->string_options(), output);
4633  }
4634 
4635  // optional .drizzled.message.Table.Field.TimeFieldOptions time_options = 8;
4636  if (has_time_options()) {
4637  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4638  8, this->time_options(), output);
4639  }
4640 
4641  // optional string comment = 16;
4642  if (has_comment()) {
4643  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4644  this->comment().data(), this->comment().length(),
4645  ::google::protobuf::internal::WireFormat::SERIALIZE,
4646  "comment");
4647  ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4648  16, this->comment(), output);
4649  }
4650 
4651  // optional .drizzled.message.Table.Field.EnumerationValues enumeration_values = 17;
4652  if (has_enumeration_values()) {
4653  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4654  17, this->enumeration_values(), output);
4655  }
4656 
4657  if (!unknown_fields().empty()) {
4658  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4659  unknown_fields(), output);
4660  }
4661  // @@protoc_insertion_point(serialize_end:drizzled.message.Table.Field)
4662 }
4663 
4664 ::google::protobuf::uint8* Table_Field::SerializeWithCachedSizesToArray(
4665  ::google::protobuf::uint8* target) const {
4666  // @@protoc_insertion_point(serialize_to_array_start:drizzled.message.Table.Field)
4667  // required string name = 1;
4668  if (has_name()) {
4669  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4670  this->name().data(), this->name().length(),
4671  ::google::protobuf::internal::WireFormat::SERIALIZE,
4672  "name");
4673  target =
4674  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4675  1, this->name(), target);
4676  }
4677 
4678  // required .drizzled.message.Table.Field.FieldType type = 2;
4679  if (has_type()) {
4680  target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4681  2, this->type(), target);
4682  }
4683 
4684  // optional .drizzled.message.Table.Field.FieldOptions options = 4;
4685  if (has_options()) {
4686  target = ::google::protobuf::internal::WireFormatLite::
4687  WriteMessageNoVirtualToArray(
4688  4, this->options(), target);
4689  }
4690 
4691  // optional .drizzled.message.Table.Field.FieldConstraints constraints = 5;
4692  if (has_constraints()) {
4693  target = ::google::protobuf::internal::WireFormatLite::
4694  WriteMessageNoVirtualToArray(
4695  5, this->constraints(), target);
4696  }
4697 
4698  // optional .drizzled.message.Table.Field.NumericFieldOptions numeric_options = 6;
4699  if (has_numeric_options()) {
4700  target = ::google::protobuf::internal::WireFormatLite::
4701  WriteMessageNoVirtualToArray(
4702  6, this->numeric_options(), target);
4703  }
4704 
4705  // optional .drizzled.message.Table.Field.StringFieldOptions string_options = 7;
4706  if (has_string_options()) {
4707  target = ::google::protobuf::internal::WireFormatLite::
4708  WriteMessageNoVirtualToArray(
4709  7, this->string_options(), target);
4710  }
4711 
4712  // optional .drizzled.message.Table.Field.TimeFieldOptions time_options = 8;
4713  if (has_time_options()) {
4714  target = ::google::protobuf::internal::WireFormatLite::
4715  WriteMessageNoVirtualToArray(
4716  8, this->time_options(), target);
4717  }
4718 
4719  // optional string comment = 16;
4720  if (has_comment()) {
4721  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4722  this->comment().data(), this->comment().length(),
4723  ::google::protobuf::internal::WireFormat::SERIALIZE,
4724  "comment");
4725  target =
4726  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4727  16, this->comment(), target);
4728  }
4729 
4730  // optional .drizzled.message.Table.Field.EnumerationValues enumeration_values = 17;
4731  if (has_enumeration_values()) {
4732  target = ::google::protobuf::internal::WireFormatLite::
4733  WriteMessageNoVirtualToArray(
4734  17, this->enumeration_values(), target);
4735  }
4736 
4737  if (!unknown_fields().empty()) {
4738  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4739  unknown_fields(), target);
4740  }
4741  // @@protoc_insertion_point(serialize_to_array_end:drizzled.message.Table.Field)
4742  return target;
4743 }
4744 
4745 int Table_Field::ByteSize() const {
4746  int total_size = 0;
4747 
4748  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4749  // required string name = 1;
4750  if (has_name()) {
4751  total_size += 1 +
4752  ::google::protobuf::internal::WireFormatLite::StringSize(
4753  this->name());
4754  }
4755 
4756  // required .drizzled.message.Table.Field.FieldType type = 2;
4757  if (has_type()) {
4758  total_size += 1 +
4759  ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
4760  }
4761 
4762  // optional .drizzled.message.Table.Field.FieldOptions options = 4;
4763  if (has_options()) {
4764  total_size += 1 +
4765  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4766  this->options());
4767  }
4768 
4769  // optional .drizzled.message.Table.Field.FieldConstraints constraints = 5;
4770  if (has_constraints()) {
4771  total_size += 1 +
4772  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4773  this->constraints());
4774  }
4775 
4776  // optional .drizzled.message.Table.Field.NumericFieldOptions numeric_options = 6;
4777  if (has_numeric_options()) {
4778  total_size += 1 +
4779  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4780  this->numeric_options());
4781  }
4782 
4783  // optional .drizzled.message.Table.Field.StringFieldOptions string_options = 7;
4784  if (has_string_options()) {
4785  total_size += 1 +
4786  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4787  this->string_options());
4788  }
4789 
4790  // optional .drizzled.message.Table.Field.TimeFieldOptions time_options = 8;
4791  if (has_time_options()) {
4792  total_size += 1 +
4793  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4794  this->time_options());
4795  }
4796 
4797  // optional string comment = 16;
4798  if (has_comment()) {
4799  total_size += 2 +
4800  ::google::protobuf::internal::WireFormatLite::StringSize(
4801  this->comment());
4802  }
4803 
4804  }
4805  if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
4806  // optional .drizzled.message.Table.Field.EnumerationValues enumeration_values = 17;
4807  if (has_enumeration_values()) {
4808  total_size += 2 +
4809  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4810  this->enumeration_values());
4811  }
4812 
4813  }
4814  if (!unknown_fields().empty()) {
4815  total_size +=
4816  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4817  unknown_fields());
4818  }
4819  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4820  _cached_size_ = total_size;
4821  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4822  return total_size;
4823 }
4824 
4825 void Table_Field::MergeFrom(const ::google::protobuf::Message& from) {
4826  GOOGLE_CHECK_NE(&from, this);
4827  const Table_Field* source =
4828  ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field*>(
4829  &from);
4830  if (source == NULL) {
4831  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4832  } else {
4833  MergeFrom(*source);
4834  }
4835 }
4836 
4837 void Table_Field::MergeFrom(const Table_Field& from) {
4838  GOOGLE_CHECK_NE(&from, this);
4839  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4840  if (from.has_name()) {
4841  set_name(from.name());
4842  }
4843  if (from.has_type()) {
4844  set_type(from.type());
4845  }
4846  if (from.has_options()) {
4847  mutable_options()->::drizzled::message::Table_Field_FieldOptions::MergeFrom(from.options());
4848  }
4849  if (from.has_constraints()) {
4850  mutable_constraints()->::drizzled::message::Table_Field_FieldConstraints::MergeFrom(from.constraints());
4851  }
4852  if (from.has_numeric_options()) {
4853  mutable_numeric_options()->::drizzled::message::Table_Field_NumericFieldOptions::MergeFrom(from.numeric_options());
4854  }
4855  if (from.has_string_options()) {
4856  mutable_string_options()->::drizzled::message::Table_Field_StringFieldOptions::MergeFrom(from.string_options());
4857  }
4858  if (from.has_time_options()) {
4859  mutable_time_options()->::drizzled::message::Table_Field_TimeFieldOptions::MergeFrom(from.time_options());
4860  }
4861  if (from.has_comment()) {
4862  set_comment(from.comment());
4863  }
4864  }
4865  if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
4866  if (from.has_enumeration_values()) {
4867  mutable_enumeration_values()->::drizzled::message::Table_Field_EnumerationValues::MergeFrom(from.enumeration_values());
4868  }
4869  }
4870  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4871 }
4872 
4873 void Table_Field::CopyFrom(const ::google::protobuf::Message& from) {
4874  if (&from == this) return;
4875  Clear();
4876  MergeFrom(from);
4877 }
4878 
4879 void Table_Field::CopyFrom(const Table_Field& from) {
4880  if (&from == this) return;
4881  Clear();
4882  MergeFrom(from);
4883 }
4884 
4885 bool Table_Field::IsInitialized() const {
4886  if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
4887 
4888  return true;
4889 }
4890 
4891 void Table_Field::Swap(Table_Field* other) {
4892  if (other != this) {
4893  std::swap(name_, other->name_);
4894  std::swap(type_, other->type_);
4895  std::swap(options_, other->options_);
4896  std::swap(constraints_, other->constraints_);
4897  std::swap(numeric_options_, other->numeric_options_);
4898  std::swap(string_options_, other->string_options_);
4899  std::swap(time_options_, other->time_options_);
4900  std::swap(comment_, other->comment_);
4901  std::swap(enumeration_values_, other->enumeration_values_);
4902  std::swap(_has_bits_[0], other->_has_bits_[0]);
4903  _unknown_fields_.Swap(&other->_unknown_fields_);
4904  std::swap(_cached_size_, other->_cached_size_);
4905  }
4906 }
4907 
4908 ::google::protobuf::Metadata Table_Field::GetMetadata() const {
4909  protobuf_AssignDescriptorsOnce();
4910  ::google::protobuf::Metadata metadata;
4911  metadata.descriptor = Table_Field_descriptor_;
4912  metadata.reflection = Table_Field_reflection_;
4913  return metadata;
4914 }
4915 
4916 
4917 // -------------------------------------------------------------------
4918 
4919 const ::google::protobuf::EnumDescriptor* Table_Index_IndexType_descriptor() {
4920  protobuf_AssignDescriptorsOnce();
4921  return Table_Index_IndexType_descriptor_;
4922 }
4923 bool Table_Index_IndexType_IsValid(int value) {
4924  switch(value) {
4925  case 0:
4926  case 1:
4927  case 2:
4928  case 3:
4929  case 4:
4930  return true;
4931  default:
4932  return false;
4933  }
4934 }
4935 
4936 #ifndef _MSC_VER
4937 const Table_Index_IndexType Table_Index::UNKNOWN_INDEX;
4938 const Table_Index_IndexType Table_Index::BTREE;
4939 const Table_Index_IndexType Table_Index::RTREE;
4940 const Table_Index_IndexType Table_Index::HASH;
4941 const Table_Index_IndexType Table_Index::FULLTEXT;
4942 const Table_Index_IndexType Table_Index::IndexType_MIN;
4943 const Table_Index_IndexType Table_Index::IndexType_MAX;
4944 const int Table_Index::IndexType_ARRAYSIZE;
4945 #endif // _MSC_VER
4946 #ifndef _MSC_VER
4947 const int Table_Index_IndexPart::kFieldnrFieldNumber;
4948 const int Table_Index_IndexPart::kCompareLengthFieldNumber;
4949 const int Table_Index_IndexPart::kInReverseOrderFieldNumber;
4950 #endif // !_MSC_VER
4951 
4952 Table_Index_IndexPart::Table_Index_IndexPart()
4953  : ::google::protobuf::Message() {
4954  SharedCtor();
4955  // @@protoc_insertion_point(constructor:drizzled.message.Table.Index.IndexPart)
4956 }
4957 
4958 void Table_Index_IndexPart::InitAsDefaultInstance() {
4959 }
4960 
4961 Table_Index_IndexPart::Table_Index_IndexPart(const Table_Index_IndexPart& from)
4962  : ::google::protobuf::Message() {
4963  SharedCtor();
4964  MergeFrom(from);
4965  // @@protoc_insertion_point(copy_constructor:drizzled.message.Table.Index.IndexPart)
4966 }
4967 
4968 void Table_Index_IndexPart::SharedCtor() {
4969  _cached_size_ = 0;
4970  fieldnr_ = 0u;
4971  compare_length_ = 0u;
4972  in_reverse_order_ = false;
4973  ::memset(_has_bits_, 0, sizeof(_has_bits_));
4974 }
4975 
4976 Table_Index_IndexPart::~Table_Index_IndexPart() {
4977  // @@protoc_insertion_point(destructor:drizzled.message.Table.Index.IndexPart)
4978  SharedDtor();
4979 }
4980 
4981 void Table_Index_IndexPart::SharedDtor() {
4982  if (this != default_instance_) {
4983  }
4984 }
4985 
4986 void Table_Index_IndexPart::SetCachedSize(int size) const {
4987  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4988  _cached_size_ = size;
4989  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4990 }
4991 const ::google::protobuf::Descriptor* Table_Index_IndexPart::descriptor() {
4992  protobuf_AssignDescriptorsOnce();
4993  return Table_Index_IndexPart_descriptor_;
4994 }
4995 
4996 const Table_Index_IndexPart& Table_Index_IndexPart::default_instance() {
4997  if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
4998  return *default_instance_;
4999 }
5000 
5001 Table_Index_IndexPart* Table_Index_IndexPart::default_instance_ = NULL;
5002 
5003 Table_Index_IndexPart* Table_Index_IndexPart::New() const {
5004  return new Table_Index_IndexPart;
5005 }
5006 
5007 void Table_Index_IndexPart::Clear() {
5008 #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
5009  &reinterpret_cast<Table_Index_IndexPart*>(16)->f) - \
5010  reinterpret_cast<char*>(16))
5011 
5012 #define ZR_(first, last) do { \
5013  size_t f = OFFSET_OF_FIELD_(first); \
5014  size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
5015  ::memset(&first, 0, n); \
5016  } while (0)
5017 
5018  ZR_(fieldnr_, in_reverse_order_);
5019 
5020 #undef OFFSET_OF_FIELD_
5021 #undef ZR_
5022 
5023  ::memset(_has_bits_, 0, sizeof(_has_bits_));
5024  mutable_unknown_fields()->Clear();
5025 }
5026 
5027 bool Table_Index_IndexPart::MergePartialFromCodedStream(
5028  ::google::protobuf::io::CodedInputStream* input) {
5029 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
5030  ::google::protobuf::uint32 tag;
5031  // @@protoc_insertion_point(parse_start:drizzled.message.Table.Index.IndexPart)
5032  for (;;) {
5033  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
5034  tag = p.first;
5035  if (!p.second) goto handle_unusual;
5036  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5037  // required uint32 fieldnr = 1;
5038  case 1: {
5039  if (tag == 8) {
5040  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5041  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5042  input, &fieldnr_)));
5043  set_has_fieldnr();
5044  } else {
5045  goto handle_unusual;
5046  }
5047  if (input->ExpectTag(16)) goto parse_compare_length;
5048  break;
5049  }
5050 
5051  // optional uint32 compare_length = 2;
5052  case 2: {
5053  if (tag == 16) {
5054  parse_compare_length:
5055  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5056  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5057  input, &compare_length_)));
5058  set_has_compare_length();
5059  } else {
5060  goto handle_unusual;
5061  }
5062  if (input->ExpectTag(24)) goto parse_in_reverse_order;
5063  break;
5064  }
5065 
5066  // optional bool in_reverse_order = 3 [default = false];
5067  case 3: {
5068  if (tag == 24) {
5069  parse_in_reverse_order:
5070  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5071  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5072  input, &in_reverse_order_)));
5073  set_has_in_reverse_order();
5074  } else {
5075  goto handle_unusual;
5076  }
5077  if (input->ExpectAtEnd()) goto success;
5078  break;
5079  }
5080 
5081  default: {
5082  handle_unusual:
5083  if (tag == 0 ||
5084  ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5085  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5086  goto success;
5087  }
5088  DO_(::google::protobuf::internal::WireFormat::SkipField(
5089  input, tag, mutable_unknown_fields()));
5090  break;
5091  }
5092  }
5093  }
5094 success:
5095  // @@protoc_insertion_point(parse_success:drizzled.message.Table.Index.IndexPart)
5096  return true;
5097 failure:
5098  // @@protoc_insertion_point(parse_failure:drizzled.message.Table.Index.IndexPart)
5099  return false;
5100 #undef DO_
5101 }
5102 
5103 void Table_Index_IndexPart::SerializeWithCachedSizes(
5104  ::google::protobuf::io::CodedOutputStream* output) const {
5105  // @@protoc_insertion_point(serialize_start:drizzled.message.Table.Index.IndexPart)
5106  // required uint32 fieldnr = 1;
5107  if (has_fieldnr()) {
5108  ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->fieldnr(), output);
5109  }
5110 
5111  // optional uint32 compare_length = 2;
5112  if (has_compare_length()) {
5113  ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->compare_length(), output);
5114  }
5115 
5116  // optional bool in_reverse_order = 3 [default = false];
5117  if (has_in_reverse_order()) {
5118  ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->in_reverse_order(), output);
5119  }
5120 
5121  if (!unknown_fields().empty()) {
5122  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5123  unknown_fields(), output);
5124  }
5125  // @@protoc_insertion_point(serialize_end:drizzled.message.Table.Index.IndexPart)
5126 }
5127 
5128 ::google::protobuf::uint8* Table_Index_IndexPart::SerializeWithCachedSizesToArray(
5129  ::google::protobuf::uint8* target) const {
5130  // @@protoc_insertion_point(serialize_to_array_start:drizzled.message.Table.Index.IndexPart)
5131  // required uint32 fieldnr = 1;
5132  if (has_fieldnr()) {
5133  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->fieldnr(), target);
5134  }
5135 
5136  // optional uint32 compare_length = 2;
5137  if (has_compare_length()) {
5138  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->compare_length(), target);
5139  }
5140 
5141  // optional bool in_reverse_order = 3 [default = false];
5142  if (has_in_reverse_order()) {
5143  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->in_reverse_order(), target);
5144  }
5145 
5146  if (!unknown_fields().empty()) {
5147  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5148  unknown_fields(), target);
5149  }
5150  // @@protoc_insertion_point(serialize_to_array_end:drizzled.message.Table.Index.IndexPart)
5151  return target;
5152 }
5153 
5154 int Table_Index_IndexPart::ByteSize() const {
5155  int total_size = 0;
5156 
5157  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5158  // required uint32 fieldnr = 1;
5159  if (has_fieldnr()) {
5160  total_size += 1 +
5161  ::google::protobuf::internal::WireFormatLite::UInt32Size(
5162  this->fieldnr());
5163  }
5164 
5165  // optional uint32 compare_length = 2;
5166  if (has_compare_length()) {
5167  total_size += 1 +
5168  ::google::protobuf::internal::WireFormatLite::UInt32Size(
5169  this->compare_length());
5170  }
5171 
5172  // optional bool in_reverse_order = 3 [default = false];
5173  if (has_in_reverse_order()) {
5174  total_size += 1 + 1;
5175  }
5176 
5177  }
5178  if (!unknown_fields().empty()) {
5179  total_size +=
5180  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5181  unknown_fields());
5182  }
5183  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5184  _cached_size_ = total_size;
5185  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5186  return total_size;
5187 }
5188 
5189 void Table_Index_IndexPart::MergeFrom(const ::google::protobuf::Message& from) {
5190  GOOGLE_CHECK_NE(&from, this);
5191  const Table_Index_IndexPart* source =
5192  ::google::protobuf::internal::dynamic_cast_if_available<const Table_Index_IndexPart*>(
5193  &from);
5194  if (source == NULL) {
5195  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5196  } else {
5197  MergeFrom(*source);
5198  }
5199 }
5200 
5201 void Table_Index_IndexPart::MergeFrom(const Table_Index_IndexPart& from) {
5202  GOOGLE_CHECK_NE(&from, this);
5203  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5204  if (from.has_fieldnr()) {
5205  set_fieldnr(from.fieldnr());
5206  }
5207  if (from.has_compare_length()) {
5208  set_compare_length(from.compare_length());
5209  }
5210  if (from.has_in_reverse_order()) {
5211  set_in_reverse_order(from.in_reverse_order());
5212  }
5213  }
5214  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5215 }
5216 
5217 void Table_Index_IndexPart::CopyFrom(const ::google::protobuf::Message& from) {
5218  if (&from == this) return;
5219  Clear();
5220  MergeFrom(from);
5221 }
5222 
5223 void Table_Index_IndexPart::CopyFrom(const Table_Index_IndexPart& from) {
5224  if (&from == this) return;
5225  Clear();
5226  MergeFrom(from);
5227 }
5228 
5229 bool Table_Index_IndexPart::IsInitialized() const {
5230  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
5231 
5232  return true;
5233 }
5234 
5235 void Table_Index_IndexPart::Swap(Table_Index_IndexPart* other) {
5236  if (other != this) {
5237  std::swap(fieldnr_, other->fieldnr_);
5238  std::swap(compare_length_, other->compare_length_);
5239  std::swap(in_reverse_order_, other->in_reverse_order_);
5240  std::swap(_has_bits_[0], other->_has_bits_[0]);
5241  _unknown_fields_.Swap(&other->_unknown_fields_);
5242  std::swap(_cached_size_, other->_cached_size_);
5243  }
5244 }
5245 
5246 ::google::protobuf::Metadata Table_Index_IndexPart::GetMetadata() const {
5247  protobuf_AssignDescriptorsOnce();
5248  ::google::protobuf::Metadata metadata;
5249  metadata.descriptor = Table_Index_IndexPart_descriptor_;
5250  metadata.reflection = Table_Index_IndexPart_reflection_;
5251  return metadata;
5252 }
5253 
5254 
5255 // -------------------------------------------------------------------
5256 
5257 #ifndef _MSC_VER
5258 const int Table_Index_Options::kPackKeyFieldNumber;
5259 const int Table_Index_Options::kBinaryPackKeyFieldNumber;
5260 const int Table_Index_Options::kVarLengthKeyFieldNumber;
5261 const int Table_Index_Options::kNullPartKeyFieldNumber;
5262 const int Table_Index_Options::kKeyBlockSizeFieldNumber;
5263 const int Table_Index_Options::kHasPartialSegmentsFieldNumber;
5264 const int Table_Index_Options::kAutoGeneratedKeyFieldNumber;
5265 #endif // !_MSC_VER
5266 
5267 Table_Index_Options::Table_Index_Options()
5268  : ::google::protobuf::Message() {
5269  SharedCtor();
5270  // @@protoc_insertion_point(constructor:drizzled.message.Table.Index.Options)
5271 }
5272 
5273 void Table_Index_Options::InitAsDefaultInstance() {
5274 }
5275 
5276 Table_Index_Options::Table_Index_Options(const Table_Index_Options& from)
5277  : ::google::protobuf::Message() {
5278  SharedCtor();
5279  MergeFrom(from);
5280  // @@protoc_insertion_point(copy_constructor:drizzled.message.Table.Index.Options)
5281 }
5282 
5283 void Table_Index_Options::SharedCtor() {
5284  _cached_size_ = 0;
5285  pack_key_ = false;
5286  binary_pack_key_ = false;
5287  var_length_key_ = false;
5288  null_part_key_ = false;
5289  key_block_size_ = 0u;
5290  has_partial_segments_ = false;
5291  auto_generated_key_ = false;
5292  ::memset(_has_bits_, 0, sizeof(_has_bits_));
5293 }
5294 
5295 Table_Index_Options::~Table_Index_Options() {
5296  // @@protoc_insertion_point(destructor:drizzled.message.Table.Index.Options)
5297  SharedDtor();
5298 }
5299 
5300 void Table_Index_Options::SharedDtor() {
5301  if (this != default_instance_) {
5302  }
5303 }
5304 
5305 void Table_Index_Options::SetCachedSize(int size) const {
5306  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5307  _cached_size_ = size;
5308  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5309 }
5310 const ::google::protobuf::Descriptor* Table_Index_Options::descriptor() {
5311  protobuf_AssignDescriptorsOnce();
5312  return Table_Index_Options_descriptor_;
5313 }
5314 
5315 const Table_Index_Options& Table_Index_Options::default_instance() {
5316  if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
5317  return *default_instance_;
5318 }
5319 
5320 Table_Index_Options* Table_Index_Options::default_instance_ = NULL;
5321 
5322 Table_Index_Options* Table_Index_Options::New() const {
5323  return new Table_Index_Options;
5324 }
5325 
5326 void Table_Index_Options::Clear() {
5327 #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
5328  &reinterpret_cast<Table_Index_Options*>(16)->f) - \
5329  reinterpret_cast<char*>(16))
5330 
5331 #define ZR_(first, last) do { \
5332  size_t f = OFFSET_OF_FIELD_(first); \
5333  size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
5334  ::memset(&first, 0, n); \
5335  } while (0)
5336 
5337  if (_has_bits_[0 / 32] & 127) {
5338  ZR_(pack_key_, auto_generated_key_);
5339  }
5340 
5341 #undef OFFSET_OF_FIELD_
5342 #undef ZR_
5343 
5344  ::memset(_has_bits_, 0, sizeof(_has_bits_));
5345  mutable_unknown_fields()->Clear();
5346 }
5347 
5348 bool Table_Index_Options::MergePartialFromCodedStream(
5349  ::google::protobuf::io::CodedInputStream* input) {
5350 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
5351  ::google::protobuf::uint32 tag;
5352  // @@protoc_insertion_point(parse_start:drizzled.message.Table.Index.Options)
5353  for (;;) {
5354  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
5355  tag = p.first;
5356  if (!p.second) goto handle_unusual;
5357  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5358  // optional bool pack_key = 1;
5359  case 1: {
5360  if (tag == 8) {
5361  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5362  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5363  input, &pack_key_)));
5364  set_has_pack_key();
5365  } else {
5366  goto handle_unusual;
5367  }
5368  if (input->ExpectTag(16)) goto parse_binary_pack_key;
5369  break;
5370  }
5371 
5372  // optional bool binary_pack_key = 2;
5373  case 2: {
5374  if (tag == 16) {
5375  parse_binary_pack_key:
5376  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5377  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5378  input, &binary_pack_key_)));
5379  set_has_binary_pack_key();
5380  } else {
5381  goto handle_unusual;
5382  }
5383  if (input->ExpectTag(24)) goto parse_var_length_key;
5384  break;
5385  }
5386 
5387  // optional bool var_length_key = 3;
5388  case 3: {
5389  if (tag == 24) {
5390  parse_var_length_key:
5391  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5392  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5393  input, &var_length_key_)));
5394  set_has_var_length_key();
5395  } else {
5396  goto handle_unusual;
5397  }
5398  if (input->ExpectTag(32)) goto parse_null_part_key;
5399  break;
5400  }
5401 
5402  // optional bool null_part_key = 4;
5403  case 4: {
5404  if (tag == 32) {
5405  parse_null_part_key:
5406  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5407  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5408  input, &null_part_key_)));
5409  set_has_null_part_key();
5410  } else {
5411  goto handle_unusual;
5412  }
5413  if (input->ExpectTag(40)) goto parse_key_block_size;
5414  break;
5415  }
5416 
5417  // optional uint32 key_block_size = 5;
5418  case 5: {
5419  if (tag == 40) {
5420  parse_key_block_size:
5421  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5422  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5423  input, &key_block_size_)));
5424  set_has_key_block_size();
5425  } else {
5426  goto handle_unusual;
5427  }
5428  if (input->ExpectTag(48)) goto parse_has_partial_segments;
5429  break;
5430  }
5431 
5432  // optional bool has_partial_segments = 6;
5433  case 6: {
5434  if (tag == 48) {
5435  parse_has_partial_segments:
5436  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5437  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5438  input, &has_partial_segments_)));
5439  set_has_has_partial_segments();
5440  } else {
5441  goto handle_unusual;
5442  }
5443  if (input->ExpectTag(56)) goto parse_auto_generated_key;
5444  break;
5445  }
5446 
5447  // optional bool auto_generated_key = 7;
5448  case 7: {
5449  if (tag == 56) {
5450  parse_auto_generated_key:
5451  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5452  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5453  input, &auto_generated_key_)));
5454  set_has_auto_generated_key();
5455  } else {
5456  goto handle_unusual;
5457  }
5458  if (input->ExpectAtEnd()) goto success;
5459  break;
5460  }
5461 
5462  default: {
5463  handle_unusual:
5464  if (tag == 0 ||
5465  ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5466  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5467  goto success;
5468  }
5469  DO_(::google::protobuf::internal::WireFormat::SkipField(
5470  input, tag, mutable_unknown_fields()));
5471  break;
5472  }
5473  }
5474  }
5475 success:
5476  // @@protoc_insertion_point(parse_success:drizzled.message.Table.Index.Options)
5477  return true;
5478 failure:
5479  // @@protoc_insertion_point(parse_failure:drizzled.message.Table.Index.Options)
5480  return false;
5481 #undef DO_
5482 }
5483 
5484 void Table_Index_Options::SerializeWithCachedSizes(
5485  ::google::protobuf::io::CodedOutputStream* output) const {
5486  // @@protoc_insertion_point(serialize_start:drizzled.message.Table.Index.Options)
5487  // optional bool pack_key = 1;
5488  if (has_pack_key()) {
5489  ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->pack_key(), output);
5490  }
5491 
5492  // optional bool binary_pack_key = 2;
5493  if (has_binary_pack_key()) {
5494  ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->binary_pack_key(), output);
5495  }
5496 
5497  // optional bool var_length_key = 3;
5498  if (has_var_length_key()) {
5499  ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->var_length_key(), output);
5500  }
5501 
5502  // optional bool null_part_key = 4;
5503  if (has_null_part_key()) {
5504  ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->null_part_key(), output);
5505  }
5506 
5507  // optional uint32 key_block_size = 5;
5508  if (has_key_block_size()) {
5509  ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->key_block_size(), output);
5510  }
5511 
5512  // optional bool has_partial_segments = 6;
5513  if (has_has_partial_segments()) {
5514  ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->has_partial_segments(), output);
5515  }
5516 
5517  // optional bool auto_generated_key = 7;
5518  if (has_auto_generated_key()) {
5519  ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->auto_generated_key(), output);
5520  }
5521 
5522  if (!unknown_fields().empty()) {
5523  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5524  unknown_fields(), output);
5525  }
5526  // @@protoc_insertion_point(serialize_end:drizzled.message.Table.Index.Options)
5527 }
5528 
5529 ::google::protobuf::uint8* Table_Index_Options::SerializeWithCachedSizesToArray(
5530  ::google::protobuf::uint8* target) const {
5531  // @@protoc_insertion_point(serialize_to_array_start:drizzled.message.Table.Index.Options)
5532  // optional bool pack_key = 1;
5533  if (has_pack_key()) {
5534  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->pack_key(), target);
5535  }
5536 
5537  // optional bool binary_pack_key = 2;
5538  if (has_binary_pack_key()) {
5539  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->binary_pack_key(), target);
5540  }
5541 
5542  // optional bool var_length_key = 3;
5543  if (has_var_length_key()) {
5544  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->var_length_key(), target);
5545  }
5546 
5547  // optional bool null_part_key = 4;
5548  if (has_null_part_key()) {
5549  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->null_part_key(), target);
5550  }
5551 
5552  // optional uint32 key_block_size = 5;
5553  if (has_key_block_size()) {
5554  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->key_block_size(), target);
5555  }
5556 
5557  // optional bool has_partial_segments = 6;
5558  if (has_has_partial_segments()) {
5559  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->has_partial_segments(), target);
5560  }
5561 
5562  // optional bool auto_generated_key = 7;
5563  if (has_auto_generated_key()) {
5564  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->auto_generated_key(), target);
5565  }
5566 
5567  if (!unknown_fields().empty()) {
5568  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5569  unknown_fields(), target);
5570  }
5571  // @@protoc_insertion_point(serialize_to_array_end:drizzled.message.Table.Index.Options)
5572  return target;
5573 }
5574 
5575 int Table_Index_Options::ByteSize() const {
5576  int total_size = 0;
5577 
5578  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5579  // optional bool pack_key = 1;
5580  if (has_pack_key()) {
5581  total_size += 1 + 1;
5582  }
5583 
5584  // optional bool binary_pack_key = 2;
5585  if (has_binary_pack_key()) {
5586  total_size += 1 + 1;
5587  }
5588 
5589  // optional bool var_length_key = 3;
5590  if (has_var_length_key()) {
5591  total_size += 1 + 1;
5592  }
5593 
5594  // optional bool null_part_key = 4;
5595  if (has_null_part_key()) {
5596  total_size += 1 + 1;
5597  }
5598 
5599  // optional uint32 key_block_size = 5;
5600  if (has_key_block_size()) {
5601  total_size += 1 +
5602  ::google::protobuf::internal::WireFormatLite::UInt32Size(
5603  this->key_block_size());
5604  }
5605 
5606  // optional bool has_partial_segments = 6;
5607  if (has_has_partial_segments()) {
5608  total_size += 1 + 1;
5609  }
5610 
5611  // optional bool auto_generated_key = 7;
5612  if (has_auto_generated_key()) {
5613  total_size += 1 + 1;
5614  }
5615 
5616  }
5617  if (!unknown_fields().empty()) {
5618  total_size +=
5619  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5620  unknown_fields());
5621  }
5622  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5623  _cached_size_ = total_size;
5624  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5625  return total_size;
5626 }
5627 
5628 void Table_Index_Options::MergeFrom(const ::google::protobuf::Message& from) {
5629  GOOGLE_CHECK_NE(&from, this);
5630  const Table_Index_Options* source =
5631  ::google::protobuf::internal::dynamic_cast_if_available<const Table_Index_Options*>(
5632  &from);
5633  if (source == NULL) {
5634  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5635  } else {
5636  MergeFrom(*source);
5637  }
5638 }
5639 
5640 void Table_Index_Options::MergeFrom(const Table_Index_Options& from) {
5641  GOOGLE_CHECK_NE(&from, this);
5642  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5643  if (from.has_pack_key()) {
5644  set_pack_key(from.pack_key());
5645  }
5646  if (from.has_binary_pack_key()) {
5647  set_binary_pack_key(from.binary_pack_key());
5648  }
5649  if (from.has_var_length_key()) {
5650  set_var_length_key(from.var_length_key());
5651  }
5652  if (from.has_null_part_key()) {
5653  set_null_part_key(from.null_part_key());
5654  }
5655  if (from.has_key_block_size()) {
5656  set_key_block_size(from.key_block_size());
5657  }
5658  if (from.has_has_partial_segments()) {
5659  set_has_partial_segments(from.has_partial_segments());
5660  }
5661  if (from.has_auto_generated_key()) {
5662  set_auto_generated_key(from.auto_generated_key());
5663  }
5664  }
5665  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5666 }
5667 
5668 void Table_Index_Options::CopyFrom(const ::google::protobuf::Message& from) {
5669  if (&from == this) return;
5670  Clear();
5671  MergeFrom(from);
5672 }
5673 
5674 void Table_Index_Options::CopyFrom(const Table_Index_Options& from) {
5675  if (&from == this) return;
5676  Clear();
5677  MergeFrom(from);
5678 }
5679 
5680 bool Table_Index_Options::IsInitialized() const {
5681 
5682  return true;
5683 }
5684 
5685 void Table_Index_Options::Swap(Table_Index_Options* other) {
5686  if (other != this) {
5687  std::swap(pack_key_, other->pack_key_);
5688  std::swap(binary_pack_key_, other->binary_pack_key_);
5689  std::swap(var_length_key_, other->var_length_key_);
5690  std::swap(null_part_key_, other->null_part_key_);
5691  std::swap(key_block_size_, other->key_block_size_);
5692  std::swap(has_partial_segments_, other->has_partial_segments_);
5693  std::swap(auto_generated_key_, other->auto_generated_key_);
5694  std::swap(_has_bits_[0], other->_has_bits_[0]);
5695  _unknown_fields_.Swap(&other->_unknown_fields_);
5696  std::swap(_cached_size_, other->_cached_size_);
5697  }
5698 }
5699 
5700 ::google::protobuf::Metadata Table_Index_Options::GetMetadata() const {
5701  protobuf_AssignDescriptorsOnce();
5702  ::google::protobuf::Metadata metadata;
5703  metadata.descriptor = Table_Index_Options_descriptor_;
5704  metadata.reflection = Table_Index_Options_reflection_;
5705  return metadata;
5706 }
5707 
5708 
5709 // -------------------------------------------------------------------
5710 
5711 #ifndef _MSC_VER
5712 const int Table_Index::kNameFieldNumber;
5713 const int Table_Index::kIsPrimaryFieldNumber;
5714 const int Table_Index::kIsUniqueFieldNumber;
5715 const int Table_Index::kTypeFieldNumber;
5716 const int Table_Index::kKeyLengthFieldNumber;
5717 const int Table_Index::kIndexPartFieldNumber;
5718 const int Table_Index::kOptionsFieldNumber;
5719 const int Table_Index::kCommentFieldNumber;
5720 #endif // !_MSC_VER
5721 
5722 Table_Index::Table_Index()
5723  : ::google::protobuf::Message() {
5724  SharedCtor();
5725  // @@protoc_insertion_point(constructor:drizzled.message.Table.Index)
5726 }
5727 
5728 void Table_Index::InitAsDefaultInstance() {
5729  options_ = const_cast< ::drizzled::message::Table_Index_Options*>(&::drizzled::message::Table_Index_Options::default_instance());
5730 }
5731 
5732 Table_Index::Table_Index(const Table_Index& from)
5733  : ::google::protobuf::Message() {
5734  SharedCtor();
5735  MergeFrom(from);
5736  // @@protoc_insertion_point(copy_constructor:drizzled.message.Table.Index)
5737 }
5738 
5739 void Table_Index::SharedCtor() {
5740  ::google::protobuf::internal::GetEmptyString();
5741  _cached_size_ = 0;
5742  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5743  is_primary_ = false;
5744  is_unique_ = false;
5745  type_ = 0;
5746  key_length_ = 0u;
5747  options_ = NULL;
5748  comment_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5749  ::memset(_has_bits_, 0, sizeof(_has_bits_));
5750 }
5751 
5752 Table_Index::~Table_Index() {
5753  // @@protoc_insertion_point(destructor:drizzled.message.Table.Index)
5754  SharedDtor();
5755 }
5756 
5757 void Table_Index::SharedDtor() {
5758  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
5759  delete name_;
5760  }
5761  if (comment_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
5762  delete comment_;
5763  }
5764  if (this != default_instance_) {
5765  delete options_;
5766  }
5767 }
5768 
5769 void Table_Index::SetCachedSize(int size) const {
5770  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5771  _cached_size_ = size;
5772  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5773 }
5774 const ::google::protobuf::Descriptor* Table_Index::descriptor() {
5775  protobuf_AssignDescriptorsOnce();
5776  return Table_Index_descriptor_;
5777 }
5778 
5779 const Table_Index& Table_Index::default_instance() {
5780  if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
5781  return *default_instance_;
5782 }
5783 
5784 Table_Index* Table_Index::default_instance_ = NULL;
5785 
5786 Table_Index* Table_Index::New() const {
5787  return new Table_Index;
5788 }
5789 
5790 void Table_Index::Clear() {
5791 #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
5792  &reinterpret_cast<Table_Index*>(16)->f) - \
5793  reinterpret_cast<char*>(16))
5794 
5795 #define ZR_(first, last) do { \
5796  size_t f = OFFSET_OF_FIELD_(first); \
5797  size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
5798  ::memset(&first, 0, n); \
5799  } while (0)
5800 
5801  if (_has_bits_[0 / 32] & 223) {
5802  ZR_(is_primary_, type_);
5803  if (has_name()) {
5804  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
5805  name_->clear();
5806  }
5807  }
5808  key_length_ = 0u;
5809  if (has_options()) {
5810  if (options_ != NULL) options_->::drizzled::message::Table_Index_Options::Clear();
5811  }
5812  if (has_comment()) {
5813  if (comment_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
5814  comment_->clear();
5815  }
5816  }
5817  }
5818 
5819 #undef OFFSET_OF_FIELD_
5820 #undef ZR_
5821 
5822  index_part_.Clear();
5823  ::memset(_has_bits_, 0, sizeof(_has_bits_));
5824  mutable_unknown_fields()->Clear();
5825 }
5826 
5827 bool Table_Index::MergePartialFromCodedStream(
5828  ::google::protobuf::io::CodedInputStream* input) {
5829 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
5830  ::google::protobuf::uint32 tag;
5831  // @@protoc_insertion_point(parse_start:drizzled.message.Table.Index)
5832  for (;;) {
5833  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
5834  tag = p.first;
5835  if (!p.second) goto handle_unusual;
5836  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5837  // required string name = 1;
5838  case 1: {
5839  if (tag == 10) {
5840  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5841  input, this->mutable_name()));
5842  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5843  this->name().data(), this->name().length(),
5844  ::google::protobuf::internal::WireFormat::PARSE,
5845  "name");
5846  } else {
5847  goto handle_unusual;
5848  }
5849  if (input->ExpectTag(16)) goto parse_is_primary;
5850  break;
5851  }
5852 
5853  // required bool is_primary = 2;
5854  case 2: {
5855  if (tag == 16) {
5856  parse_is_primary:
5857  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5858  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5859  input, &is_primary_)));
5860  set_has_is_primary();
5861  } else {
5862  goto handle_unusual;
5863  }
5864  if (input->ExpectTag(24)) goto parse_is_unique;
5865  break;
5866  }
5867 
5868  // required bool is_unique = 3;
5869  case 3: {
5870  if (tag == 24) {
5871  parse_is_unique:
5872  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5873  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5874  input, &is_unique_)));
5875  set_has_is_unique();
5876  } else {
5877  goto handle_unusual;
5878  }
5879  if (input->ExpectTag(32)) goto parse_type;
5880  break;
5881  }
5882 
5883  // required .drizzled.message.Table.Index.IndexType type = 4 [default = UNKNOWN_INDEX];
5884  case 4: {
5885  if (tag == 32) {
5886  parse_type:
5887  int value;
5888  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5889  int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5890  input, &value)));
5891  if (::drizzled::message::Table_Index_IndexType_IsValid(value)) {
5892  set_type(static_cast< ::drizzled::message::Table_Index_IndexType >(value));
5893  } else {
5894  mutable_unknown_fields()->AddVarint(4, value);
5895  }
5896  } else {
5897  goto handle_unusual;
5898  }
5899  if (input->ExpectTag(40)) goto parse_key_length;
5900  break;
5901  }
5902 
5903  // required uint32 key_length = 5;
5904  case 5: {
5905  if (tag == 40) {
5906  parse_key_length:
5907  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5908  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5909  input, &key_length_)));
5910  set_has_key_length();
5911  } else {
5912  goto handle_unusual;
5913  }
5914  if (input->ExpectTag(50)) goto parse_index_part;
5915  break;
5916  }
5917 
5918  // repeated .drizzled.message.Table.Index.IndexPart index_part = 6;
5919  case 6: {
5920  if (tag == 50) {
5921  parse_index_part:
5922  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5923  input, add_index_part()));
5924  } else {
5925  goto handle_unusual;
5926  }
5927  if (input->ExpectTag(50)) goto parse_index_part;
5928  if (input->ExpectTag(58)) goto parse_options;
5929  break;
5930  }
5931 
5932  // optional .drizzled.message.Table.Index.Options options = 7;
5933  case 7: {
5934  if (tag == 58) {
5935  parse_options:
5936  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5937  input, mutable_options()));
5938  } else {
5939  goto handle_unusual;
5940  }
5941  if (input->ExpectTag(66)) goto parse_comment;
5942  break;
5943  }
5944 
5945  // optional string comment = 8;
5946  case 8: {
5947  if (tag == 66) {
5948  parse_comment:
5949  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5950  input, this->mutable_comment()));
5951  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5952  this->comment().data(), this->comment().length(),
5953  ::google::protobuf::internal::WireFormat::PARSE,
5954  "comment");
5955  } else {
5956  goto handle_unusual;
5957  }
5958  if (input->ExpectAtEnd()) goto success;
5959  break;
5960  }
5961 
5962  default: {
5963  handle_unusual:
5964  if (tag == 0 ||
5965  ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5966  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5967  goto success;
5968  }
5969  DO_(::google::protobuf::internal::WireFormat::SkipField(
5970  input, tag, mutable_unknown_fields()));
5971  break;
5972  }
5973  }
5974  }
5975 success:
5976  // @@protoc_insertion_point(parse_success:drizzled.message.Table.Index)
5977  return true;
5978 failure:
5979  // @@protoc_insertion_point(parse_failure:drizzled.message.Table.Index)
5980  return false;
5981 #undef DO_
5982 }
5983 
5984 void Table_Index::SerializeWithCachedSizes(
5985  ::google::protobuf::io::CodedOutputStream* output) const {
5986  // @@protoc_insertion_point(serialize_start:drizzled.message.Table.Index)
5987  // required string name = 1;
5988  if (has_name()) {
5989  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5990  this->name().data(), this->name().length(),
5991  ::google::protobuf::internal::WireFormat::SERIALIZE,
5992  "name");
5993  ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5994  1, this->name(), output);
5995  }
5996 
5997  // required bool is_primary = 2;
5998  if (has_is_primary()) {
5999  ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_primary(), output);
6000  }
6001 
6002  // required bool is_unique = 3;
6003  if (has_is_unique()) {
6004  ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->is_unique(), output);
6005  }
6006 
6007  // required .drizzled.message.Table.Index.IndexType type = 4 [default = UNKNOWN_INDEX];
6008  if (has_type()) {
6009  ::google::protobuf::internal::WireFormatLite::WriteEnum(
6010  4, this->type(), output);
6011  }
6012 
6013  // required uint32 key_length = 5;
6014  if (has_key_length()) {
6015  ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->key_length(), output);
6016  }
6017 
6018  // repeated .drizzled.message.Table.Index.IndexPart index_part = 6;
6019  for (int i = 0; i < this->index_part_size(); i++) {
6020  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6021  6, this->index_part(i), output);
6022  }
6023 
6024  // optional .drizzled.message.Table.Index.Options options = 7;
6025  if (has_options()) {
6026  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6027  7, this->options(), output);
6028  }
6029 
6030  // optional string comment = 8;
6031  if (has_comment()) {
6032  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6033  this->comment().data(), this->comment().length(),
6034  ::google::protobuf::internal::WireFormat::SERIALIZE,
6035  "comment");
6036  ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6037  8, this->comment(), output);
6038  }
6039 
6040  if (!unknown_fields().empty()) {
6041  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6042  unknown_fields(), output);
6043  }
6044  // @@protoc_insertion_point(serialize_end:drizzled.message.Table.Index)
6045 }
6046 
6047 ::google::protobuf::uint8* Table_Index::SerializeWithCachedSizesToArray(
6048  ::google::protobuf::uint8* target) const {
6049  // @@protoc_insertion_point(serialize_to_array_start:drizzled.message.Table.Index)
6050  // required string name = 1;
6051  if (has_name()) {
6052  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6053  this->name().data(), this->name().length(),
6054  ::google::protobuf::internal::WireFormat::SERIALIZE,
6055  "name");
6056  target =
6057  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6058  1, this->name(), target);
6059  }
6060 
6061  // required bool is_primary = 2;
6062  if (has_is_primary()) {
6063  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_primary(), target);
6064  }
6065 
6066  // required bool is_unique = 3;
6067  if (has_is_unique()) {
6068  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->is_unique(), target);
6069  }
6070 
6071  // required .drizzled.message.Table.Index.IndexType type = 4 [default = UNKNOWN_INDEX];
6072  if (has_type()) {
6073  target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6074  4, this->type(), target);
6075  }
6076 
6077  // required uint32 key_length = 5;
6078  if (has_key_length()) {
6079  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->key_length(), target);
6080  }
6081 
6082  // repeated .drizzled.message.Table.Index.IndexPart index_part = 6;
6083  for (int i = 0; i < this->index_part_size(); i++) {
6084  target = ::google::protobuf::internal::WireFormatLite::
6085  WriteMessageNoVirtualToArray(
6086  6, this->index_part(i), target);
6087  }
6088 
6089  // optional .drizzled.message.Table.Index.Options options = 7;
6090  if (has_options()) {
6091  target = ::google::protobuf::internal::WireFormatLite::
6092  WriteMessageNoVirtualToArray(
6093  7, this->options(), target);
6094  }
6095 
6096  // optional string comment = 8;
6097  if (has_comment()) {
6098  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6099  this->comment().data(), this->comment().length(),
6100  ::google::protobuf::internal::WireFormat::SERIALIZE,
6101  "comment");
6102  target =
6103  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6104  8, this->comment(), target);
6105  }
6106 
6107  if (!unknown_fields().empty()) {
6108  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6109  unknown_fields(), target);
6110  }
6111  // @@protoc_insertion_point(serialize_to_array_end:drizzled.message.Table.Index)
6112  return target;
6113 }
6114 
6115 int Table_Index::ByteSize() const {
6116  int total_size = 0;
6117 
6118  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6119  // required string name = 1;
6120  if (has_name()) {
6121  total_size += 1 +
6122  ::google::protobuf::internal::WireFormatLite::StringSize(
6123  this->name());
6124  }
6125 
6126  // required bool is_primary = 2;
6127  if (has_is_primary()) {
6128  total_size += 1 + 1;
6129  }
6130 
6131  // required bool is_unique = 3;
6132  if (has_is_unique()) {
6133  total_size += 1 + 1;
6134  }
6135 
6136  // required .drizzled.message.Table.Index.IndexType type = 4 [default = UNKNOWN_INDEX];
6137  if (has_type()) {
6138  total_size += 1 +
6139  ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
6140  }
6141 
6142  // required uint32 key_length = 5;
6143  if (has_key_length()) {
6144  total_size += 1 +
6145  ::google::protobuf::internal::WireFormatLite::UInt32Size(
6146  this->key_length());
6147  }
6148 
6149  // optional .drizzled.message.Table.Index.Options options = 7;
6150  if (has_options()) {
6151  total_size += 1 +
6152  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6153  this->options());
6154  }
6155 
6156  // optional string comment = 8;
6157  if (has_comment()) {
6158  total_size += 1 +
6159  ::google::protobuf::internal::WireFormatLite::StringSize(
6160  this->comment());
6161  }
6162 
6163  }
6164  // repeated .drizzled.message.Table.Index.IndexPart index_part = 6;
6165  total_size += 1 * this->index_part_size();
6166  for (int i = 0; i < this->index_part_size(); i++) {
6167  total_size +=
6168  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6169  this->index_part(i));
6170  }
6171 
6172  if (!unknown_fields().empty()) {
6173  total_size +=
6174  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6175  unknown_fields());
6176  }
6177  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6178  _cached_size_ = total_size;
6179  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6180  return total_size;
6181 }
6182 
6183 void Table_Index::MergeFrom(const ::google::protobuf::Message& from) {
6184  GOOGLE_CHECK_NE(&from, this);
6185  const Table_Index* source =
6186  ::google::protobuf::internal::dynamic_cast_if_available<const Table_Index*>(
6187  &from);
6188  if (source == NULL) {
6189  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6190  } else {
6191  MergeFrom(*source);
6192  }
6193 }
6194 
6195 void Table_Index::MergeFrom(const Table_Index& from) {
6196  GOOGLE_CHECK_NE(&from, this);
6197  index_part_.MergeFrom(from.index_part_);
6198  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6199  if (from.has_name()) {
6200  set_name(from.name());
6201  }
6202  if (from.has_is_primary()) {
6203  set_is_primary(from.is_primary());
6204  }
6205  if (from.has_is_unique()) {
6206  set_is_unique(from.is_unique());
6207  }
6208  if (from.has_type()) {
6209  set_type(from.type());
6210  }
6211  if (from.has_key_length()) {
6212  set_key_length(from.key_length());
6213  }
6214  if (from.has_options()) {
6215  mutable_options()->::drizzled::message::Table_Index_Options::MergeFrom(from.options());
6216  }
6217  if (from.has_comment()) {
6218  set_comment(from.comment());
6219  }
6220  }
6221  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6222 }
6223 
6224 void Table_Index::CopyFrom(const ::google::protobuf::Message& from) {
6225  if (&from == this) return;
6226  Clear();
6227  MergeFrom(from);
6228 }
6229 
6230 void Table_Index::CopyFrom(const Table_Index& from) {
6231  if (&from == this) return;
6232  Clear();
6233  MergeFrom(from);
6234 }
6235 
6236 bool Table_Index::IsInitialized() const {
6237  if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false;
6238 
6239  if (!::google::protobuf::internal::AllAreInitialized(this->index_part())) return false;
6240  return true;
6241 }
6242 
6243 void Table_Index::Swap(Table_Index* other) {
6244  if (other != this) {
6245  std::swap(name_, other->name_);
6246  std::swap(is_primary_, other->is_primary_);
6247  std::swap(is_unique_, other->is_unique_);
6248  std::swap(type_, other->type_);
6249  std::swap(key_length_, other->key_length_);
6250  index_part_.Swap(&other->index_part_);
6251  std::swap(options_, other->options_);
6252  std::swap(comment_, other->comment_);
6253  std::swap(_has_bits_[0], other->_has_bits_[0]);
6254  _unknown_fields_.Swap(&other->_unknown_fields_);
6255  std::swap(_cached_size_, other->_cached_size_);
6256  }
6257 }
6258 
6259 ::google::protobuf::Metadata Table_Index::GetMetadata() const {
6260  protobuf_AssignDescriptorsOnce();
6261  ::google::protobuf::Metadata metadata;
6262  metadata.descriptor = Table_Index_descriptor_;
6263  metadata.reflection = Table_Index_reflection_;
6264  return metadata;
6265 }
6266 
6267 
6268 // -------------------------------------------------------------------
6269 
6270 #ifndef _MSC_VER
6271 const int Table::kNameFieldNumber;
6272 const int Table::kSchemaFieldNumber;
6273 const int Table::kTypeFieldNumber;
6274 const int Table::kEngineFieldNumber;
6275 const int Table::kFieldFieldNumber;
6276 const int Table::kIndexesFieldNumber;
6277 const int Table::kFkConstraintFieldNumber;
6278 const int Table::kOptionsFieldNumber;
6279 const int Table::kCreationTimestampFieldNumber;
6280 const int Table::kUpdateTimestampFieldNumber;
6281 const int Table::kCatalogFieldNumber;
6282 const int Table::kUuidFieldNumber;
6283 const int Table::kVersionFieldNumber;
6284 const int Table::kReplicationOptionsFieldNumber;
6285 const int Table::kAccessFieldNumber;
6286 #endif // !_MSC_VER
6287 
6288 Table::Table()
6289  : ::google::protobuf::Message() {
6290  SharedCtor();
6291  // @@protoc_insertion_point(constructor:drizzled.message.Table)
6292 }
6293 
6294 void Table::InitAsDefaultInstance() {
6295  engine_ = const_cast< ::drizzled::message::Engine*>(&::drizzled::message::Engine::default_instance());
6296  options_ = const_cast< ::drizzled::message::Table_TableOptions*>(&::drizzled::message::Table_TableOptions::default_instance());
6297  replication_options_ = const_cast< ::drizzled::message::ReplicationOptions*>(&::drizzled::message::ReplicationOptions::default_instance());
6298  access_ = const_cast< ::drizzled::message::Access*>(&::drizzled::message::Access::default_instance());
6299 }
6300 
6301 Table::Table(const Table& from)
6302  : ::google::protobuf::Message() {
6303  SharedCtor();
6304  MergeFrom(from);
6305  // @@protoc_insertion_point(copy_constructor:drizzled.message.Table)
6306 }
6307 
6308 void Table::SharedCtor() {
6309  ::google::protobuf::internal::GetEmptyString();
6310  _cached_size_ = 0;
6311  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6312  schema_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6313  type_ = 0;
6314  engine_ = NULL;
6315  options_ = NULL;
6316  creation_timestamp_ = GOOGLE_ULONGLONG(0);
6317  update_timestamp_ = GOOGLE_ULONGLONG(0);
6318  catalog_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6319  uuid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6320  version_ = GOOGLE_ULONGLONG(0);
6321  replication_options_ = NULL;
6322  access_ = NULL;
6323  ::memset(_has_bits_, 0, sizeof(_has_bits_));
6324 }
6325 
6326 Table::~Table() {
6327  // @@protoc_insertion_point(destructor:drizzled.message.Table)
6328  SharedDtor();
6329 }
6330 
6331 void Table::SharedDtor() {
6332  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6333  delete name_;
6334  }
6335  if (schema_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6336  delete schema_;
6337  }
6338  if (catalog_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6339  delete catalog_;
6340  }
6341  if (uuid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6342  delete uuid_;
6343  }
6344  if (this != default_instance_) {
6345  delete engine_;
6346  delete options_;
6347  delete replication_options_;
6348  delete access_;
6349  }
6350 }
6351 
6352 void Table::SetCachedSize(int size) const {
6353  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6354  _cached_size_ = size;
6355  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6356 }
6357 const ::google::protobuf::Descriptor* Table::descriptor() {
6358  protobuf_AssignDescriptorsOnce();
6359  return Table_descriptor_;
6360 }
6361 
6362 const Table& Table::default_instance() {
6363  if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
6364  return *default_instance_;
6365 }
6366 
6367 Table* Table::default_instance_ = NULL;
6368 
6369 Table* Table::New() const {
6370  return new Table;
6371 }
6372 
6373 void Table::Clear() {
6374 #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
6375  &reinterpret_cast<Table*>(16)->f) - \
6376  reinterpret_cast<char*>(16))
6377 
6378 #define ZR_(first, last) do { \
6379  size_t f = OFFSET_OF_FIELD_(first); \
6380  size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
6381  ::memset(&first, 0, n); \
6382  } while (0)
6383 
6384  if (_has_bits_[0 / 32] & 143) {
6385  if (has_name()) {
6386  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6387  name_->clear();
6388  }
6389  }
6390  if (has_schema()) {
6391  if (schema_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6392  schema_->clear();
6393  }
6394  }
6395  type_ = 0;
6396  if (has_engine()) {
6397  if (engine_ != NULL) engine_->::drizzled::message::Engine::Clear();
6398  }
6399  if (has_options()) {
6400  if (options_ != NULL) options_->::drizzled::message::Table_TableOptions::Clear();
6401  }
6402  }
6403  if (_has_bits_[8 / 32] & 32512) {
6404  ZR_(creation_timestamp_, update_timestamp_);
6405  if (has_catalog()) {
6406  if (catalog_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6407  catalog_->clear();
6408  }
6409  }
6410  if (has_uuid()) {
6411  if (uuid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6412  uuid_->clear();
6413  }
6414  }
6415  version_ = GOOGLE_ULONGLONG(0);
6416  if (has_replication_options()) {
6417  if (replication_options_ != NULL) replication_options_->::drizzled::message::ReplicationOptions::Clear();
6418  }
6419  if (has_access()) {
6420  if (access_ != NULL) access_->::drizzled::message::Access::Clear();
6421  }
6422  }
6423 
6424 #undef OFFSET_OF_FIELD_
6425 #undef ZR_
6426 
6427  field_.Clear();
6428  indexes_.Clear();
6429  fk_constraint_.Clear();
6430  ::memset(_has_bits_, 0, sizeof(_has_bits_));
6431  mutable_unknown_fields()->Clear();
6432 }
6433 
6434 bool Table::MergePartialFromCodedStream(
6435  ::google::protobuf::io::CodedInputStream* input) {
6436 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
6437  ::google::protobuf::uint32 tag;
6438  // @@protoc_insertion_point(parse_start:drizzled.message.Table)
6439  for (;;) {
6440  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
6441  tag = p.first;
6442  if (!p.second) goto handle_unusual;
6443  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6444  // required string name = 1;
6445  case 1: {
6446  if (tag == 10) {
6447  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6448  input, this->mutable_name()));
6449  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6450  this->name().data(), this->name().length(),
6451  ::google::protobuf::internal::WireFormat::PARSE,
6452  "name");
6453  } else {
6454  goto handle_unusual;
6455  }
6456  if (input->ExpectTag(18)) goto parse_engine;
6457  break;
6458  }
6459 
6460  // required .drizzled.message.Engine engine = 2;
6461  case 2: {
6462  if (tag == 18) {
6463  parse_engine:
6464  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6465  input, mutable_engine()));
6466  } else {
6467  goto handle_unusual;
6468  }
6469  if (input->ExpectTag(26)) goto parse_field;
6470  break;
6471  }
6472 
6473  // repeated .drizzled.message.Table.Field field = 3;
6474  case 3: {
6475  if (tag == 26) {
6476  parse_field:
6477  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6478  input, add_field()));
6479  } else {
6480  goto handle_unusual;
6481  }
6482  if (input->ExpectTag(26)) goto parse_field;
6483  if (input->ExpectTag(34)) goto parse_indexes;
6484  break;
6485  }
6486 
6487  // repeated .drizzled.message.Table.Index indexes = 4;
6488  case 4: {
6489  if (tag == 34) {
6490  parse_indexes:
6491  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6492  input, add_indexes()));
6493  } else {
6494  goto handle_unusual;
6495  }
6496  if (input->ExpectTag(34)) goto parse_indexes;
6497  if (input->ExpectTag(40)) goto parse_type;
6498  break;
6499  }
6500 
6501  // required .drizzled.message.Table.TableType type = 5;
6502  case 5: {
6503  if (tag == 40) {
6504  parse_type:
6505  int value;
6506  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6507  int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6508  input, &value)));
6509  if (::drizzled::message::Table_TableType_IsValid(value)) {
6510  set_type(static_cast< ::drizzled::message::Table_TableType >(value));
6511  } else {
6512  mutable_unknown_fields()->AddVarint(5, value);
6513  }
6514  } else {
6515  goto handle_unusual;
6516  }
6517  if (input->ExpectTag(50)) goto parse_schema;
6518  break;
6519  }
6520 
6521  // required string schema = 6;
6522  case 6: {
6523  if (tag == 50) {
6524  parse_schema:
6525  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6526  input, this->mutable_schema()));
6527  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6528  this->schema().data(), this->schema().length(),
6529  ::google::protobuf::internal::WireFormat::PARSE,
6530  "schema");
6531  } else {
6532  goto handle_unusual;
6533  }
6534  if (input->ExpectTag(66)) goto parse_fk_constraint;
6535  break;
6536  }
6537 
6538  // repeated .drizzled.message.Table.ForeignKeyConstraint fk_constraint = 8;
6539  case 8: {
6540  if (tag == 66) {
6541  parse_fk_constraint:
6542  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6543  input, add_fk_constraint()));
6544  } else {
6545  goto handle_unusual;
6546  }
6547  if (input->ExpectTag(66)) goto parse_fk_constraint;
6548  if (input->ExpectTag(74)) goto parse_options;
6549  break;
6550  }
6551 
6552  // optional .drizzled.message.Table.TableOptions options = 9;
6553  case 9: {
6554  if (tag == 74) {
6555  parse_options:
6556  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6557  input, mutable_options()));
6558  } else {
6559  goto handle_unusual;
6560  }
6561  if (input->ExpectTag(88)) goto parse_creation_timestamp;
6562  break;
6563  }
6564 
6565  // required uint64 creation_timestamp = 11 [default = 0];
6566  case 11: {
6567  if (tag == 88) {
6568  parse_creation_timestamp:
6569  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6570  ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
6571  input, &creation_timestamp_)));
6572  set_has_creation_timestamp();
6573  } else {
6574  goto handle_unusual;
6575  }
6576  if (input->ExpectTag(96)) goto parse_update_timestamp;
6577  break;
6578  }
6579 
6580  // required uint64 update_timestamp = 12 [default = 0];
6581  case 12: {
6582  if (tag == 96) {
6583  parse_update_timestamp:
6584  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6585  ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
6586  input, &update_timestamp_)));
6587  set_has_update_timestamp();
6588  } else {
6589  goto handle_unusual;
6590  }
6591  if (input->ExpectTag(106)) goto parse_catalog;
6592  break;
6593  }
6594 
6595  // optional string catalog = 13;
6596  case 13: {
6597  if (tag == 106) {
6598  parse_catalog:
6599  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6600  input, this->mutable_catalog()));
6601  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6602  this->catalog().data(), this->catalog().length(),
6603  ::google::protobuf::internal::WireFormat::PARSE,
6604  "catalog");
6605  } else {
6606  goto handle_unusual;
6607  }
6608  if (input->ExpectTag(114)) goto parse_uuid;
6609  break;
6610  }
6611 
6612  // optional string uuid = 14;
6613  case 14: {
6614  if (tag == 114) {
6615  parse_uuid:
6616  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6617  input, this->mutable_uuid()));
6618  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6619  this->uuid().data(), this->uuid().length(),
6620  ::google::protobuf::internal::WireFormat::PARSE,
6621  "uuid");
6622  } else {
6623  goto handle_unusual;
6624  }
6625  if (input->ExpectTag(120)) goto parse_version;
6626  break;
6627  }
6628 
6629  // optional uint64 version = 15;
6630  case 15: {
6631  if (tag == 120) {
6632  parse_version:
6633  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6634  ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
6635  input, &version_)));
6636  set_has_version();
6637  } else {
6638  goto handle_unusual;
6639  }
6640  if (input->ExpectTag(130)) goto parse_replication_options;
6641  break;
6642  }
6643 
6644  // optional .drizzled.message.ReplicationOptions replication_options = 16;
6645  case 16: {
6646  if (tag == 130) {
6647  parse_replication_options:
6648  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6649  input, mutable_replication_options()));
6650  } else {
6651  goto handle_unusual;
6652  }
6653  if (input->ExpectTag(138)) goto parse_access;
6654  break;
6655  }
6656 
6657  // optional .drizzled.message.Access access = 17;
6658  case 17: {
6659  if (tag == 138) {
6660  parse_access:
6661  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6662  input, mutable_access()));
6663  } else {
6664  goto handle_unusual;
6665  }
6666  if (input->ExpectAtEnd()) goto success;
6667  break;
6668  }
6669 
6670  default: {
6671  handle_unusual:
6672  if (tag == 0 ||
6673  ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6674  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6675  goto success;
6676  }
6677  DO_(::google::protobuf::internal::WireFormat::SkipField(
6678  input, tag, mutable_unknown_fields()));
6679  break;
6680  }
6681  }
6682  }
6683 success:
6684  // @@protoc_insertion_point(parse_success:drizzled.message.Table)
6685  return true;
6686 failure:
6687  // @@protoc_insertion_point(parse_failure:drizzled.message.Table)
6688  return false;
6689 #undef DO_
6690 }
6691 
6692 void Table::SerializeWithCachedSizes(
6693  ::google::protobuf::io::CodedOutputStream* output) const {
6694  // @@protoc_insertion_point(serialize_start:drizzled.message.Table)
6695  // required string name = 1;
6696  if (has_name()) {
6697  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6698  this->name().data(), this->name().length(),
6699  ::google::protobuf::internal::WireFormat::SERIALIZE,
6700  "name");
6701  ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6702  1, this->name(), output);
6703  }
6704 
6705  // required .drizzled.message.Engine engine = 2;
6706  if (has_engine()) {
6707  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6708  2, this->engine(), output);
6709  }
6710 
6711  // repeated .drizzled.message.Table.Field field = 3;
6712  for (int i = 0; i < this->field_size(); i++) {
6713  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6714  3, this->field(i), output);
6715  }
6716 
6717  // repeated .drizzled.message.Table.Index indexes = 4;
6718  for (int i = 0; i < this->indexes_size(); i++) {
6719  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6720  4, this->indexes(i), output);
6721  }
6722 
6723  // required .drizzled.message.Table.TableType type = 5;
6724  if (has_type()) {
6725  ::google::protobuf::internal::WireFormatLite::WriteEnum(
6726  5, this->type(), output);
6727  }
6728 
6729  // required string schema = 6;
6730  if (has_schema()) {
6731  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6732  this->schema().data(), this->schema().length(),
6733  ::google::protobuf::internal::WireFormat::SERIALIZE,
6734  "schema");
6735  ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6736  6, this->schema(), output);
6737  }
6738 
6739  // repeated .drizzled.message.Table.ForeignKeyConstraint fk_constraint = 8;
6740  for (int i = 0; i < this->fk_constraint_size(); i++) {
6741  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6742  8, this->fk_constraint(i), output);
6743  }
6744 
6745  // optional .drizzled.message.Table.TableOptions options = 9;
6746  if (has_options()) {
6747  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6748  9, this->options(), output);
6749  }
6750 
6751  // required uint64 creation_timestamp = 11 [default = 0];
6752  if (has_creation_timestamp()) {
6753  ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->creation_timestamp(), output);
6754  }
6755 
6756  // required uint64 update_timestamp = 12 [default = 0];
6757  if (has_update_timestamp()) {
6758  ::google::protobuf::internal::WireFormatLite::WriteUInt64(12, this->update_timestamp(), output);
6759  }
6760 
6761  // optional string catalog = 13;
6762  if (has_catalog()) {
6763  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6764  this->catalog().data(), this->catalog().length(),
6765  ::google::protobuf::internal::WireFormat::SERIALIZE,
6766  "catalog");
6767  ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6768  13, this->catalog(), output);
6769  }
6770 
6771  // optional string uuid = 14;
6772  if (has_uuid()) {
6773  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6774  this->uuid().data(), this->uuid().length(),
6775  ::google::protobuf::internal::WireFormat::SERIALIZE,
6776  "uuid");
6777  ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6778  14, this->uuid(), output);
6779  }
6780 
6781  // optional uint64 version = 15;
6782  if (has_version()) {
6783  ::google::protobuf::internal::WireFormatLite::WriteUInt64(15, this->version(), output);
6784  }
6785 
6786  // optional .drizzled.message.ReplicationOptions replication_options = 16;
6787  if (has_replication_options()) {
6788  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6789  16, this->replication_options(), output);
6790  }
6791 
6792  // optional .drizzled.message.Access access = 17;
6793  if (has_access()) {
6794  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6795  17, this->access(), output);
6796  }
6797 
6798  if (!unknown_fields().empty()) {
6799  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6800  unknown_fields(), output);
6801  }
6802  // @@protoc_insertion_point(serialize_end:drizzled.message.Table)
6803 }
6804 
6805 ::google::protobuf::uint8* Table::SerializeWithCachedSizesToArray(
6806  ::google::protobuf::uint8* target) const {
6807  // @@protoc_insertion_point(serialize_to_array_start:drizzled.message.Table)
6808  // required string name = 1;
6809  if (has_name()) {
6810  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6811  this->name().data(), this->name().length(),
6812  ::google::protobuf::internal::WireFormat::SERIALIZE,
6813  "name");
6814  target =
6815  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6816  1, this->name(), target);
6817  }
6818 
6819  // required .drizzled.message.Engine engine = 2;
6820  if (has_engine()) {
6821  target = ::google::protobuf::internal::WireFormatLite::
6822  WriteMessageNoVirtualToArray(
6823  2, this->engine(), target);
6824  }
6825 
6826  // repeated .drizzled.message.Table.Field field = 3;
6827  for (int i = 0; i < this->field_size(); i++) {
6828  target = ::google::protobuf::internal::WireFormatLite::
6829  WriteMessageNoVirtualToArray(
6830  3, this->field(i), target);
6831  }
6832 
6833  // repeated .drizzled.message.Table.Index indexes = 4;
6834  for (int i = 0; i < this->indexes_size(); i++) {
6835  target = ::google::protobuf::internal::WireFormatLite::
6836  WriteMessageNoVirtualToArray(
6837  4, this->indexes(i), target);
6838  }
6839 
6840  // required .drizzled.message.Table.TableType type = 5;
6841  if (has_type()) {
6842  target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6843  5, this->type(), target);
6844  }
6845 
6846  // required string schema = 6;
6847  if (has_schema()) {
6848  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6849  this->schema().data(), this->schema().length(),
6850  ::google::protobuf::internal::WireFormat::SERIALIZE,
6851  "schema");
6852  target =
6853  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6854  6, this->schema(), target);
6855  }
6856 
6857  // repeated .drizzled.message.Table.ForeignKeyConstraint fk_constraint = 8;
6858  for (int i = 0; i < this->fk_constraint_size(); i++) {
6859  target = ::google::protobuf::internal::WireFormatLite::
6860  WriteMessageNoVirtualToArray(
6861  8, this->fk_constraint(i), target);
6862  }
6863 
6864  // optional .drizzled.message.Table.TableOptions options = 9;
6865  if (has_options()) {
6866  target = ::google::protobuf::internal::WireFormatLite::
6867  WriteMessageNoVirtualToArray(
6868  9, this->options(), target);
6869  }
6870 
6871  // required uint64 creation_timestamp = 11 [default = 0];
6872  if (has_creation_timestamp()) {
6873  target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->creation_timestamp(), target);
6874  }
6875 
6876  // required uint64 update_timestamp = 12 [default = 0];
6877  if (has_update_timestamp()) {
6878  target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(12, this->update_timestamp(), target);
6879  }
6880 
6881  // optional string catalog = 13;
6882  if (has_catalog()) {
6883  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6884  this->catalog().data(), this->catalog().length(),
6885  ::google::protobuf::internal::WireFormat::SERIALIZE,
6886  "catalog");
6887  target =
6888  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6889  13, this->catalog(), target);
6890  }
6891 
6892  // optional string uuid = 14;
6893  if (has_uuid()) {
6894  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6895  this->uuid().data(), this->uuid().length(),
6896  ::google::protobuf::internal::WireFormat::SERIALIZE,
6897  "uuid");
6898  target =
6899  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6900  14, this->uuid(), target);
6901  }
6902 
6903  // optional uint64 version = 15;
6904  if (has_version()) {
6905  target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(15, this->version(), target);
6906  }
6907 
6908  // optional .drizzled.message.ReplicationOptions replication_options = 16;
6909  if (has_replication_options()) {
6910  target = ::google::protobuf::internal::WireFormatLite::
6911  WriteMessageNoVirtualToArray(
6912  16, this->replication_options(), target);
6913  }
6914 
6915  // optional .drizzled.message.Access access = 17;
6916  if (has_access()) {
6917  target = ::google::protobuf::internal::WireFormatLite::
6918  WriteMessageNoVirtualToArray(
6919  17, this->access(), target);
6920  }
6921 
6922  if (!unknown_fields().empty()) {
6923  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6924  unknown_fields(), target);
6925  }
6926  // @@protoc_insertion_point(serialize_to_array_end:drizzled.message.Table)
6927  return target;
6928 }
6929 
6930 int Table::ByteSize() const {
6931  int total_size = 0;
6932 
6933  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6934  // required string name = 1;
6935  if (has_name()) {
6936  total_size += 1 +
6937  ::google::protobuf::internal::WireFormatLite::StringSize(
6938  this->name());
6939  }
6940 
6941  // required string schema = 6;
6942  if (has_schema()) {
6943  total_size += 1 +
6944  ::google::protobuf::internal::WireFormatLite::StringSize(
6945  this->schema());
6946  }
6947 
6948  // required .drizzled.message.Table.TableType type = 5;
6949  if (has_type()) {
6950  total_size += 1 +
6951  ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
6952  }
6953 
6954  // required .drizzled.message.Engine engine = 2;
6955  if (has_engine()) {
6956  total_size += 1 +
6957  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6958  this->engine());
6959  }
6960 
6961  // optional .drizzled.message.Table.TableOptions options = 9;
6962  if (has_options()) {
6963  total_size += 1 +
6964  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6965  this->options());
6966  }
6967 
6968  }
6969  if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
6970  // required uint64 creation_timestamp = 11 [default = 0];
6971  if (has_creation_timestamp()) {
6972  total_size += 1 +
6973  ::google::protobuf::internal::WireFormatLite::UInt64Size(
6974  this->creation_timestamp());
6975  }
6976 
6977  // required uint64 update_timestamp = 12 [default = 0];
6978  if (has_update_timestamp()) {
6979  total_size += 1 +
6980  ::google::protobuf::internal::WireFormatLite::UInt64Size(
6981  this->update_timestamp());
6982  }
6983 
6984  // optional string catalog = 13;
6985  if (has_catalog()) {
6986  total_size += 1 +
6987  ::google::protobuf::internal::WireFormatLite::StringSize(
6988  this->catalog());
6989  }
6990 
6991  // optional string uuid = 14;
6992  if (has_uuid()) {
6993  total_size += 1 +
6994  ::google::protobuf::internal::WireFormatLite::StringSize(
6995  this->uuid());
6996  }
6997 
6998  // optional uint64 version = 15;
6999  if (has_version()) {
7000  total_size += 1 +
7001  ::google::protobuf::internal::WireFormatLite::UInt64Size(
7002  this->version());
7003  }
7004 
7005  // optional .drizzled.message.ReplicationOptions replication_options = 16;
7006  if (has_replication_options()) {
7007  total_size += 2 +
7008  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7009  this->replication_options());
7010  }
7011 
7012  // optional .drizzled.message.Access access = 17;
7013  if (has_access()) {
7014  total_size += 2 +
7015  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7016  this->access());
7017  }
7018 
7019  }
7020  // repeated .drizzled.message.Table.Field field = 3;
7021  total_size += 1 * this->field_size();
7022  for (int i = 0; i < this->field_size(); i++) {
7023  total_size +=
7024  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7025  this->field(i));
7026  }
7027 
7028  // repeated .drizzled.message.Table.Index indexes = 4;
7029  total_size += 1 * this->indexes_size();
7030  for (int i = 0; i < this->indexes_size(); i++) {
7031  total_size +=
7032  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7033  this->indexes(i));
7034  }
7035 
7036  // repeated .drizzled.message.Table.ForeignKeyConstraint fk_constraint = 8;
7037  total_size += 1 * this->fk_constraint_size();
7038  for (int i = 0; i < this->fk_constraint_size(); i++) {
7039  total_size +=
7040  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7041  this->fk_constraint(i));
7042  }
7043 
7044  if (!unknown_fields().empty()) {
7045  total_size +=
7046  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7047  unknown_fields());
7048  }
7049  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7050  _cached_size_ = total_size;
7051  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7052  return total_size;
7053 }
7054 
7055 void Table::MergeFrom(const ::google::protobuf::Message& from) {
7056  GOOGLE_CHECK_NE(&from, this);
7057  const Table* source =
7058  ::google::protobuf::internal::dynamic_cast_if_available<const Table*>(
7059  &from);
7060  if (source == NULL) {
7061  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7062  } else {
7063  MergeFrom(*source);
7064  }
7065 }
7066 
7067 void Table::MergeFrom(const Table& from) {
7068  GOOGLE_CHECK_NE(&from, this);
7069  field_.MergeFrom(from.field_);
7070  indexes_.MergeFrom(from.indexes_);
7071  fk_constraint_.MergeFrom(from.fk_constraint_);
7072  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
7073  if (from.has_name()) {
7074  set_name(from.name());
7075  }
7076  if (from.has_schema()) {
7077  set_schema(from.schema());
7078  }
7079  if (from.has_type()) {
7080  set_type(from.type());
7081  }
7082  if (from.has_engine()) {
7083  mutable_engine()->::drizzled::message::Engine::MergeFrom(from.engine());
7084  }
7085  if (from.has_options()) {
7086  mutable_options()->::drizzled::message::Table_TableOptions::MergeFrom(from.options());
7087  }
7088  }
7089  if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
7090  if (from.has_creation_timestamp()) {
7091  set_creation_timestamp(from.creation_timestamp());
7092  }
7093  if (from.has_update_timestamp()) {
7094  set_update_timestamp(from.update_timestamp());
7095  }
7096  if (from.has_catalog()) {
7097  set_catalog(from.catalog());
7098  }
7099  if (from.has_uuid()) {
7100  set_uuid(from.uuid());
7101  }
7102  if (from.has_version()) {
7103  set_version(from.version());
7104  }
7105  if (from.has_replication_options()) {
7106  mutable_replication_options()->::drizzled::message::ReplicationOptions::MergeFrom(from.replication_options());
7107  }
7108  if (from.has_access()) {
7109  mutable_access()->::drizzled::message::Access::MergeFrom(from.access());
7110  }
7111  }
7112  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
7113 }
7114 
7115 void Table::CopyFrom(const ::google::protobuf::Message& from) {
7116  if (&from == this) return;
7117  Clear();
7118  MergeFrom(from);
7119 }
7120 
7121 void Table::CopyFrom(const Table& from) {
7122  if (&from == this) return;
7123  Clear();
7124  MergeFrom(from);
7125 }
7126 
7127 bool Table::IsInitialized() const {
7128  if ((_has_bits_[0] & 0x0000030f) != 0x0000030f) return false;
7129 
7130  if (has_engine()) {
7131  if (!this->engine().IsInitialized()) return false;
7132  }
7133  if (!::google::protobuf::internal::AllAreInitialized(this->field())) return false;
7134  if (!::google::protobuf::internal::AllAreInitialized(this->indexes())) return false;
7135  if (!::google::protobuf::internal::AllAreInitialized(this->fk_constraint())) return false;
7136  return true;
7137 }
7138 
7139 void Table::Swap(Table* other) {
7140  if (other != this) {
7141  std::swap(name_, other->name_);
7142  std::swap(schema_, other->schema_);
7143  std::swap(type_, other->type_);
7144  std::swap(engine_, other->engine_);
7145  field_.Swap(&other->field_);
7146  indexes_.Swap(&other->indexes_);
7147  fk_constraint_.Swap(&other->fk_constraint_);
7148  std::swap(options_, other->options_);
7149  std::swap(creation_timestamp_, other->creation_timestamp_);
7150  std::swap(update_timestamp_, other->update_timestamp_);
7151  std::swap(catalog_, other->catalog_);
7152  std::swap(uuid_, other->uuid_);
7153  std::swap(version_, other->version_);
7154  std::swap(replication_options_, other->replication_options_);
7155  std::swap(access_, other->access_);
7156  std::swap(_has_bits_[0], other->_has_bits_[0]);
7157  _unknown_fields_.Swap(&other->_unknown_fields_);
7158  std::swap(_cached_size_, other->_cached_size_);
7159  }
7160 }
7161 
7162 ::google::protobuf::Metadata Table::GetMetadata() const {
7163  protobuf_AssignDescriptorsOnce();
7164  ::google::protobuf::Metadata metadata;
7165  metadata.descriptor = Table_descriptor_;
7166  metadata.reflection = Table_reflection_;
7167  return metadata;
7168 }
7169 
7170 
7171 // ===================================================================
7172 
7173 #ifndef _MSC_VER
7174 const int AddedFields::kAddedFieldFieldNumber;
7175 #endif // !_MSC_VER
7176 
7177 AddedFields::AddedFields()
7178  : ::google::protobuf::Message() {
7179  SharedCtor();
7180  // @@protoc_insertion_point(constructor:drizzled.message.AddedFields)
7181 }
7182 
7183 void AddedFields::InitAsDefaultInstance() {
7184 }
7185 
7186 AddedFields::AddedFields(const AddedFields& from)
7187  : ::google::protobuf::Message() {
7188  SharedCtor();
7189  MergeFrom(from);
7190  // @@protoc_insertion_point(copy_constructor:drizzled.message.AddedFields)
7191 }
7192 
7193 void AddedFields::SharedCtor() {
7194  _cached_size_ = 0;
7195  ::memset(_has_bits_, 0, sizeof(_has_bits_));
7196 }
7197 
7198 AddedFields::~AddedFields() {
7199  // @@protoc_insertion_point(destructor:drizzled.message.AddedFields)
7200  SharedDtor();
7201 }
7202 
7203 void AddedFields::SharedDtor() {
7204  if (this != default_instance_) {
7205  }
7206 }
7207 
7208 void AddedFields::SetCachedSize(int size) const {
7209  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7210  _cached_size_ = size;
7211  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7212 }
7213 const ::google::protobuf::Descriptor* AddedFields::descriptor() {
7214  protobuf_AssignDescriptorsOnce();
7215  return AddedFields_descriptor_;
7216 }
7217 
7218 const AddedFields& AddedFields::default_instance() {
7219  if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
7220  return *default_instance_;
7221 }
7222 
7223 AddedFields* AddedFields::default_instance_ = NULL;
7224 
7225 AddedFields* AddedFields::New() const {
7226  return new AddedFields;
7227 }
7228 
7229 void AddedFields::Clear() {
7230  added_field_.Clear();
7231  ::memset(_has_bits_, 0, sizeof(_has_bits_));
7232  mutable_unknown_fields()->Clear();
7233 }
7234 
7235 bool AddedFields::MergePartialFromCodedStream(
7236  ::google::protobuf::io::CodedInputStream* input) {
7237 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
7238  ::google::protobuf::uint32 tag;
7239  // @@protoc_insertion_point(parse_start:drizzled.message.AddedFields)
7240  for (;;) {
7241  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
7242  tag = p.first;
7243  if (!p.second) goto handle_unusual;
7244  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7245  // repeated .drizzled.message.Table.Field added_field = 1;
7246  case 1: {
7247  if (tag == 10) {
7248  parse_added_field:
7249  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7250  input, add_added_field()));
7251  } else {
7252  goto handle_unusual;
7253  }
7254  if (input->ExpectTag(10)) goto parse_added_field;
7255  if (input->ExpectAtEnd()) goto success;
7256  break;
7257  }
7258 
7259  default: {
7260  handle_unusual:
7261  if (tag == 0 ||
7262  ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7263  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
7264  goto success;
7265  }
7266  DO_(::google::protobuf::internal::WireFormat::SkipField(
7267  input, tag, mutable_unknown_fields()));
7268  break;
7269  }
7270  }
7271  }
7272 success:
7273  // @@protoc_insertion_point(parse_success:drizzled.message.AddedFields)
7274  return true;
7275 failure:
7276  // @@protoc_insertion_point(parse_failure:drizzled.message.AddedFields)
7277  return false;
7278 #undef DO_
7279 }
7280 
7281 void AddedFields::SerializeWithCachedSizes(
7282  ::google::protobuf::io::CodedOutputStream* output) const {
7283  // @@protoc_insertion_point(serialize_start:drizzled.message.AddedFields)
7284  // repeated .drizzled.message.Table.Field added_field = 1;
7285  for (int i = 0; i < this->added_field_size(); i++) {
7286  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7287  1, this->added_field(i), output);
7288  }
7289 
7290  if (!unknown_fields().empty()) {
7291  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7292  unknown_fields(), output);
7293  }
7294  // @@protoc_insertion_point(serialize_end:drizzled.message.AddedFields)
7295 }
7296 
7297 ::google::protobuf::uint8* AddedFields::SerializeWithCachedSizesToArray(
7298  ::google::protobuf::uint8* target) const {
7299  // @@protoc_insertion_point(serialize_to_array_start:drizzled.message.AddedFields)
7300  // repeated .drizzled.message.Table.Field added_field = 1;
7301  for (int i = 0; i < this->added_field_size(); i++) {
7302  target = ::google::protobuf::internal::WireFormatLite::
7303  WriteMessageNoVirtualToArray(
7304  1, this->added_field(i), target);
7305  }
7306 
7307  if (!unknown_fields().empty()) {
7308  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7309  unknown_fields(), target);
7310  }
7311  // @@protoc_insertion_point(serialize_to_array_end:drizzled.message.AddedFields)
7312  return target;
7313 }
7314 
7315 int AddedFields::ByteSize() const {
7316  int total_size = 0;
7317 
7318  // repeated .drizzled.message.Table.Field added_field = 1;
7319  total_size += 1 * this->added_field_size();
7320  for (int i = 0; i < this->added_field_size(); i++) {
7321  total_size +=
7322  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7323  this->added_field(i));
7324  }
7325 
7326  if (!unknown_fields().empty()) {
7327  total_size +=
7328  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7329  unknown_fields());
7330  }
7331  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7332  _cached_size_ = total_size;
7333  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7334  return total_size;
7335 }
7336 
7337 void AddedFields::MergeFrom(const ::google::protobuf::Message& from) {
7338  GOOGLE_CHECK_NE(&from, this);
7339  const AddedFields* source =
7340  ::google::protobuf::internal::dynamic_cast_if_available<const AddedFields*>(
7341  &from);
7342  if (source == NULL) {
7343  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7344  } else {
7345  MergeFrom(*source);
7346  }
7347 }
7348 
7349 void AddedFields::MergeFrom(const AddedFields& from) {
7350  GOOGLE_CHECK_NE(&from, this);
7351  added_field_.MergeFrom(from.added_field_);
7352  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
7353 }
7354 
7355 void AddedFields::CopyFrom(const ::google::protobuf::Message& from) {
7356  if (&from == this) return;
7357  Clear();
7358  MergeFrom(from);
7359 }
7360 
7361 void AddedFields::CopyFrom(const AddedFields& from) {
7362  if (&from == this) return;
7363  Clear();
7364  MergeFrom(from);
7365 }
7366 
7367 bool AddedFields::IsInitialized() const {
7368 
7369  if (!::google::protobuf::internal::AllAreInitialized(this->added_field())) return false;
7370  return true;
7371 }
7372 
7373 void AddedFields::Swap(AddedFields* other) {
7374  if (other != this) {
7375  added_field_.Swap(&other->added_field_);
7376  std::swap(_has_bits_[0], other->_has_bits_[0]);
7377  _unknown_fields_.Swap(&other->_unknown_fields_);
7378  std::swap(_cached_size_, other->_cached_size_);
7379  }
7380 }
7381 
7382 ::google::protobuf::Metadata AddedFields::GetMetadata() const {
7383  protobuf_AssignDescriptorsOnce();
7384  ::google::protobuf::Metadata metadata;
7385  metadata.descriptor = AddedFields_descriptor_;
7386  metadata.reflection = AddedFields_reflection_;
7387  return metadata;
7388 }
7389 
7390 
7391 // @@protoc_insertion_point(namespace_scope)
7392 
7393 } // namespace message
7394 } // namespace drizzled
7395 
7396 // @@protoc_insertion_point(global_scope)
TODO: Rename this file - func.h is stupid.