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