Drizzled Public API Documentation

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