4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
9 #include <google/protobuf/stubs/common.h>
10 #include <google/protobuf/stubs/once.h>
11 #include <google/protobuf/io/coded_stream.h>
12 #include <google/protobuf/wire_format_lite_inl.h>
13 #include <google/protobuf/descriptor.h>
14 #include <google/protobuf/generated_message_reflection.h>
15 #include <google/protobuf/reflection_ops.h>
16 #include <google/protobuf/wire_format.h>
24 const ::google::protobuf::Descriptor* Table_descriptor_ = NULL;
25 const ::google::protobuf::internal::GeneratedMessageReflection*
26 Table_reflection_ = NULL;
27 const ::google::protobuf::Descriptor* Table_TableOptions_descriptor_ = NULL;
28 const ::google::protobuf::internal::GeneratedMessageReflection*
29 Table_TableOptions_reflection_ = NULL;
30 const ::google::protobuf::Descriptor* Table_ForeignKeyConstraint_descriptor_ = NULL;
31 const ::google::protobuf::internal::GeneratedMessageReflection*
32 Table_ForeignKeyConstraint_reflection_ = NULL;
33 const ::google::protobuf::EnumDescriptor* Table_ForeignKeyConstraint_ForeignKeyMatchOption_descriptor_ = NULL;
34 const ::google::protobuf::EnumDescriptor* Table_ForeignKeyConstraint_ForeignKeyOption_descriptor_ = NULL;
35 const ::google::protobuf::Descriptor* Table_Field_descriptor_ = NULL;
36 const ::google::protobuf::internal::GeneratedMessageReflection*
37 Table_Field_reflection_ = NULL;
38 const ::google::protobuf::Descriptor* Table_Field_FieldOptions_descriptor_ = NULL;
39 const ::google::protobuf::internal::GeneratedMessageReflection*
40 Table_Field_FieldOptions_reflection_ = NULL;
41 const ::google::protobuf::Descriptor* Table_Field_FieldConstraints_descriptor_ = NULL;
42 const ::google::protobuf::internal::GeneratedMessageReflection*
43 Table_Field_FieldConstraints_reflection_ = NULL;
44 const ::google::protobuf::Descriptor* Table_Field_NumericFieldOptions_descriptor_ = NULL;
45 const ::google::protobuf::internal::GeneratedMessageReflection*
46 Table_Field_NumericFieldOptions_reflection_ = NULL;
47 const ::google::protobuf::Descriptor* Table_Field_StringFieldOptions_descriptor_ = NULL;
48 const ::google::protobuf::internal::GeneratedMessageReflection*
49 Table_Field_StringFieldOptions_reflection_ = NULL;
50 const ::google::protobuf::Descriptor* Table_Field_EnumerationValues_descriptor_ = NULL;
51 const ::google::protobuf::internal::GeneratedMessageReflection*
52 Table_Field_EnumerationValues_reflection_ = NULL;
53 const ::google::protobuf::Descriptor* Table_Field_TimeFieldOptions_descriptor_ = NULL;
54 const ::google::protobuf::internal::GeneratedMessageReflection*
55 Table_Field_TimeFieldOptions_reflection_ = NULL;
56 const ::google::protobuf::EnumDescriptor* Table_Field_FieldType_descriptor_ = NULL;
57 const ::google::protobuf::Descriptor* Table_Index_descriptor_ = NULL;
58 const ::google::protobuf::internal::GeneratedMessageReflection*
59 Table_Index_reflection_ = NULL;
60 const ::google::protobuf::Descriptor* Table_Index_IndexPart_descriptor_ = NULL;
61 const ::google::protobuf::internal::GeneratedMessageReflection*
62 Table_Index_IndexPart_reflection_ = NULL;
63 const ::google::protobuf::Descriptor* Table_Index_Options_descriptor_ = NULL;
64 const ::google::protobuf::internal::GeneratedMessageReflection*
65 Table_Index_Options_reflection_ = NULL;
66 const ::google::protobuf::EnumDescriptor* Table_Index_IndexType_descriptor_ = NULL;
67 const ::google::protobuf::EnumDescriptor* Table_TableType_descriptor_ = NULL;
68 const ::google::protobuf::Descriptor* AddedFields_descriptor_ = NULL;
69 const ::google::protobuf::internal::GeneratedMessageReflection*
70 AddedFields_reflection_ = NULL;
75 void protobuf_AssignDesc_table_2eproto() {
76 protobuf_AddDesc_table_2eproto();
77 const ::google::protobuf::FileDescriptor* file =
78 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
80 GOOGLE_CHECK(file != NULL);
81 Table_descriptor_ = file->message_type(0);
82 static const int Table_offsets_[15] = {
83 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, name_),
84 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, schema_),
85 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, type_),
86 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, engine_),
87 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, field_),
88 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, indexes_),
89 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, fk_constraint_),
90 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, options_),
91 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, creation_timestamp_),
92 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, update_timestamp_),
93 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, catalog_),
94 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, uuid_),
95 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, version_),
96 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, replication_options_),
97 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, access_),
100 new ::google::protobuf::internal::GeneratedMessageReflection(
102 Table::default_instance_,
104 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, _has_bits_[0]),
105 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, _unknown_fields_),
107 ::google::protobuf::DescriptorPool::generated_pool(),
108 ::google::protobuf::MessageFactory::generated_factory(),
110 Table_TableOptions_descriptor_ = Table_descriptor_->nested_type(0);
111 static const int Table_TableOptions_offsets_[16] = {
112 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, has_user_set_auto_increment_value_),
113 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, collation_),
114 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, collation_id_),
115 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, data_file_name_),
116 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, index_file_name_),
117 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, max_rows_),
118 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, min_rows_),
119 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, auto_increment_value_),
120 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, avg_row_length_),
121 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, block_size_),
122 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, comment_),
123 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, pack_record_),
124 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, checksum_),
125 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, page_checksum_),
126 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, delay_key_write_),
127 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, unused_),
129 Table_TableOptions_reflection_ =
130 new ::google::protobuf::internal::GeneratedMessageReflection(
131 Table_TableOptions_descriptor_,
132 Table_TableOptions::default_instance_,
133 Table_TableOptions_offsets_,
134 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, _has_bits_[0]),
135 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, _unknown_fields_),
137 ::google::protobuf::DescriptorPool::generated_pool(),
138 ::google::protobuf::MessageFactory::generated_factory(),
139 sizeof(Table_TableOptions));
140 Table_ForeignKeyConstraint_descriptor_ = Table_descriptor_->nested_type(1);
141 static const int Table_ForeignKeyConstraint_offsets_[7] = {
142 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, name_),
143 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, column_names_),
144 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, references_table_name_),
145 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, references_columns_),
146 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, match_),
147 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, update_option_),
148 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, delete_option_),
150 Table_ForeignKeyConstraint_reflection_ =
151 new ::google::protobuf::internal::GeneratedMessageReflection(
152 Table_ForeignKeyConstraint_descriptor_,
153 Table_ForeignKeyConstraint::default_instance_,
154 Table_ForeignKeyConstraint_offsets_,
155 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, _has_bits_[0]),
156 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, _unknown_fields_),
158 ::google::protobuf::DescriptorPool::generated_pool(),
159 ::google::protobuf::MessageFactory::generated_factory(),
160 sizeof(Table_ForeignKeyConstraint));
161 Table_ForeignKeyConstraint_ForeignKeyMatchOption_descriptor_ = Table_ForeignKeyConstraint_descriptor_->enum_type(0);
162 Table_ForeignKeyConstraint_ForeignKeyOption_descriptor_ = Table_ForeignKeyConstraint_descriptor_->enum_type(1);
163 Table_Field_descriptor_ = Table_descriptor_->nested_type(2);
164 static const int Table_Field_offsets_[9] = {
165 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, name_),
166 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, type_),
167 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, options_),
168 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, constraints_),
169 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, numeric_options_),
170 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, string_options_),
171 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, time_options_),
172 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, comment_),
173 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, enumeration_values_),
175 Table_Field_reflection_ =
176 new ::google::protobuf::internal::GeneratedMessageReflection(
177 Table_Field_descriptor_,
178 Table_Field::default_instance_,
179 Table_Field_offsets_,
180 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, _has_bits_[0]),
181 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, _unknown_fields_),
183 ::google::protobuf::DescriptorPool::generated_pool(),
184 ::google::protobuf::MessageFactory::generated_factory(),
185 sizeof(Table_Field));
186 Table_Field_FieldOptions_descriptor_ = Table_Field_descriptor_->nested_type(0);
187 static const int Table_Field_FieldOptions_offsets_[6] = {
188 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, default_value_),
189 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, update_value_),
190 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, default_null_),
191 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, default_bin_value_),
192 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, default_expression_),
193 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, update_expression_),
195 Table_Field_FieldOptions_reflection_ =
196 new ::google::protobuf::internal::GeneratedMessageReflection(
197 Table_Field_FieldOptions_descriptor_,
198 Table_Field_FieldOptions::default_instance_,
199 Table_Field_FieldOptions_offsets_,
200 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, _has_bits_[0]),
201 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, _unknown_fields_),
203 ::google::protobuf::DescriptorPool::generated_pool(),
204 ::google::protobuf::MessageFactory::generated_factory(),
205 sizeof(Table_Field_FieldOptions));
206 Table_Field_FieldConstraints_descriptor_ = Table_Field_descriptor_->nested_type(1);
207 static const int Table_Field_FieldConstraints_offsets_[5] = {
208 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, is_nullable_),
209 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, is_unsigned_),
210 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, is_notnull_),
211 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, is_unique_),
212 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, expression_),
214 Table_Field_FieldConstraints_reflection_ =
215 new ::google::protobuf::internal::GeneratedMessageReflection(
216 Table_Field_FieldConstraints_descriptor_,
217 Table_Field_FieldConstraints::default_instance_,
218 Table_Field_FieldConstraints_offsets_,
219 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, _has_bits_[0]),
220 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, _unknown_fields_),
222 ::google::protobuf::DescriptorPool::generated_pool(),
223 ::google::protobuf::MessageFactory::generated_factory(),
224 sizeof(Table_Field_FieldConstraints));
225 Table_Field_NumericFieldOptions_descriptor_ = Table_Field_descriptor_->nested_type(2);
226 static const int Table_Field_NumericFieldOptions_offsets_[3] = {
227 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_NumericFieldOptions, is_autoincrement_),
228 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_NumericFieldOptions, scale_),
229 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_NumericFieldOptions, precision_),
231 Table_Field_NumericFieldOptions_reflection_ =
232 new ::google::protobuf::internal::GeneratedMessageReflection(
233 Table_Field_NumericFieldOptions_descriptor_,
234 Table_Field_NumericFieldOptions::default_instance_,
235 Table_Field_NumericFieldOptions_offsets_,
236 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_NumericFieldOptions, _has_bits_[0]),
237 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_NumericFieldOptions, _unknown_fields_),
239 ::google::protobuf::DescriptorPool::generated_pool(),
240 ::google::protobuf::MessageFactory::generated_factory(),
241 sizeof(Table_Field_NumericFieldOptions));
242 Table_Field_StringFieldOptions_descriptor_ = Table_Field_descriptor_->nested_type(3);
243 static const int Table_Field_StringFieldOptions_offsets_[4] = {
244 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, is_fixed_width_),
245 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, length_),
246 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, collation_id_),
247 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, collation_),
249 Table_Field_StringFieldOptions_reflection_ =
250 new ::google::protobuf::internal::GeneratedMessageReflection(
251 Table_Field_StringFieldOptions_descriptor_,
252 Table_Field_StringFieldOptions::default_instance_,
253 Table_Field_StringFieldOptions_offsets_,
254 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, _has_bits_[0]),
255 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, _unknown_fields_),
257 ::google::protobuf::DescriptorPool::generated_pool(),
258 ::google::protobuf::MessageFactory::generated_factory(),
259 sizeof(Table_Field_StringFieldOptions));
260 Table_Field_EnumerationValues_descriptor_ = Table_Field_descriptor_->nested_type(4);
261 static const int Table_Field_EnumerationValues_offsets_[3] = {
262 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_EnumerationValues, collation_id_),
263 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_EnumerationValues, collation_),
264 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_EnumerationValues, field_value_),
266 Table_Field_EnumerationValues_reflection_ =
267 new ::google::protobuf::internal::GeneratedMessageReflection(
268 Table_Field_EnumerationValues_descriptor_,
269 Table_Field_EnumerationValues::default_instance_,
270 Table_Field_EnumerationValues_offsets_,
271 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_EnumerationValues, _has_bits_[0]),
272 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_EnumerationValues, _unknown_fields_),
274 ::google::protobuf::DescriptorPool::generated_pool(),
275 ::google::protobuf::MessageFactory::generated_factory(),
276 sizeof(Table_Field_EnumerationValues));
277 Table_Field_TimeFieldOptions_descriptor_ = Table_Field_descriptor_->nested_type(5);
278 static const int Table_Field_TimeFieldOptions_offsets_[1] = {
279 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_TimeFieldOptions, microseconds_),
281 Table_Field_TimeFieldOptions_reflection_ =
282 new ::google::protobuf::internal::GeneratedMessageReflection(
283 Table_Field_TimeFieldOptions_descriptor_,
284 Table_Field_TimeFieldOptions::default_instance_,
285 Table_Field_TimeFieldOptions_offsets_,
286 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_TimeFieldOptions, _has_bits_[0]),
287 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_TimeFieldOptions, _unknown_fields_),
289 ::google::protobuf::DescriptorPool::generated_pool(),
290 ::google::protobuf::MessageFactory::generated_factory(),
291 sizeof(Table_Field_TimeFieldOptions));
292 Table_Field_FieldType_descriptor_ = Table_Field_descriptor_->enum_type(0);
293 Table_Index_descriptor_ = Table_descriptor_->nested_type(3);
294 static const int Table_Index_offsets_[8] = {
295 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, name_),
296 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, is_primary_),
297 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, is_unique_),
298 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, type_),
299 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, key_length_),
300 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, index_part_),
301 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, options_),
302 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, comment_),
304 Table_Index_reflection_ =
305 new ::google::protobuf::internal::GeneratedMessageReflection(
306 Table_Index_descriptor_,
307 Table_Index::default_instance_,
308 Table_Index_offsets_,
309 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, _has_bits_[0]),
310 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, _unknown_fields_),
312 ::google::protobuf::DescriptorPool::generated_pool(),
313 ::google::protobuf::MessageFactory::generated_factory(),
314 sizeof(Table_Index));
315 Table_Index_IndexPart_descriptor_ = Table_Index_descriptor_->nested_type(0);
316 static const int Table_Index_IndexPart_offsets_[3] = {
317 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_IndexPart, fieldnr_),
318 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_IndexPart, compare_length_),
319 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_IndexPart, in_reverse_order_),
321 Table_Index_IndexPart_reflection_ =
322 new ::google::protobuf::internal::GeneratedMessageReflection(
323 Table_Index_IndexPart_descriptor_,
324 Table_Index_IndexPart::default_instance_,
325 Table_Index_IndexPart_offsets_,
326 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_IndexPart, _has_bits_[0]),
327 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_IndexPart, _unknown_fields_),
329 ::google::protobuf::DescriptorPool::generated_pool(),
330 ::google::protobuf::MessageFactory::generated_factory(),
331 sizeof(Table_Index_IndexPart));
332 Table_Index_Options_descriptor_ = Table_Index_descriptor_->nested_type(1);
333 static const int Table_Index_Options_offsets_[7] = {
334 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, pack_key_),
335 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, binary_pack_key_),
336 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, var_length_key_),
337 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, null_part_key_),
338 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, key_block_size_),
339 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, has_partial_segments_),
340 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, auto_generated_key_),
342 Table_Index_Options_reflection_ =
343 new ::google::protobuf::internal::GeneratedMessageReflection(
344 Table_Index_Options_descriptor_,
345 Table_Index_Options::default_instance_,
346 Table_Index_Options_offsets_,
347 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, _has_bits_[0]),
348 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, _unknown_fields_),
350 ::google::protobuf::DescriptorPool::generated_pool(),
351 ::google::protobuf::MessageFactory::generated_factory(),
352 sizeof(Table_Index_Options));
353 Table_Index_IndexType_descriptor_ = Table_Index_descriptor_->enum_type(0);
354 Table_TableType_descriptor_ = Table_descriptor_->enum_type(0);
355 AddedFields_descriptor_ = file->message_type(1);
356 static const int AddedFields_offsets_[1] = {
357 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddedFields, added_field_),
359 AddedFields_reflection_ =
360 new ::google::protobuf::internal::GeneratedMessageReflection(
361 AddedFields_descriptor_,
362 AddedFields::default_instance_,
363 AddedFields_offsets_,
364 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddedFields, _has_bits_[0]),
365 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddedFields, _unknown_fields_),
367 ::google::protobuf::DescriptorPool::generated_pool(),
368 ::google::protobuf::MessageFactory::generated_factory(),
369 sizeof(AddedFields));
374 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
375 inline void protobuf_AssignDescriptorsOnce() {
376 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
377 &protobuf_AssignDesc_table_2eproto);
380 void protobuf_RegisterTypes(const ::std::string&) {
381 protobuf_AssignDescriptorsOnce();
382 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
383 Table_descriptor_, &Table::default_instance());
384 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
385 Table_TableOptions_descriptor_, &Table_TableOptions::default_instance());
386 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
387 Table_ForeignKeyConstraint_descriptor_, &Table_ForeignKeyConstraint::default_instance());
388 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
389 Table_Field_descriptor_, &Table_Field::default_instance());
390 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
391 Table_Field_FieldOptions_descriptor_, &Table_Field_FieldOptions::default_instance());
392 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
393 Table_Field_FieldConstraints_descriptor_, &Table_Field_FieldConstraints::default_instance());
394 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
395 Table_Field_NumericFieldOptions_descriptor_, &Table_Field_NumericFieldOptions::default_instance());
396 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
397 Table_Field_StringFieldOptions_descriptor_, &Table_Field_StringFieldOptions::default_instance());
398 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
399 Table_Field_EnumerationValues_descriptor_, &Table_Field_EnumerationValues::default_instance());
400 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
401 Table_Field_TimeFieldOptions_descriptor_, &Table_Field_TimeFieldOptions::default_instance());
402 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
403 Table_Index_descriptor_, &Table_Index::default_instance());
404 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
405 Table_Index_IndexPart_descriptor_, &Table_Index_IndexPart::default_instance());
406 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
407 Table_Index_Options_descriptor_, &Table_Index_Options::default_instance());
408 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
409 AddedFields_descriptor_, &AddedFields::default_instance());
414 void protobuf_ShutdownFile_table_2eproto() {
415 delete Table::default_instance_;
416 delete Table_reflection_;
417 delete Table_TableOptions::default_instance_;
418 delete Table_TableOptions_reflection_;
419 delete Table_ForeignKeyConstraint::default_instance_;
420 delete Table_ForeignKeyConstraint_reflection_;
421 delete Table_Field::default_instance_;
422 delete Table_Field_reflection_;
423 delete Table_Field_FieldOptions::default_instance_;
424 delete Table_Field_FieldOptions_reflection_;
425 delete Table_Field_FieldConstraints::default_instance_;
426 delete Table_Field_FieldConstraints_reflection_;
427 delete Table_Field_NumericFieldOptions::default_instance_;
428 delete Table_Field_NumericFieldOptions_reflection_;
429 delete Table_Field_StringFieldOptions::default_instance_;
430 delete Table_Field_StringFieldOptions_reflection_;
431 delete Table_Field_EnumerationValues::default_instance_;
432 delete Table_Field_EnumerationValues_reflection_;
433 delete Table_Field_TimeFieldOptions::default_instance_;
434 delete Table_Field_TimeFieldOptions_reflection_;
435 delete Table_Index::default_instance_;
436 delete Table_Index_reflection_;
437 delete Table_Index_IndexPart::default_instance_;
438 delete Table_Index_IndexPart_reflection_;
439 delete Table_Index_Options::default_instance_;
440 delete Table_Index_Options_reflection_;
441 delete AddedFields::default_instance_;
442 delete AddedFields_reflection_;
445 void protobuf_AddDesc_table_2eproto() {
446 static bool already_here =
false;
447 if (already_here)
return;
449 GOOGLE_PROTOBUF_VERIFY_VERSION;
451 ::drizzled::message::protobuf_AddDesc_engine_2eproto();
452 ::drizzled::message::protobuf_AddDesc_access_2eproto();
453 ::drizzled::message::protobuf_AddDesc_replication_5foptions_2eproto();
454 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
455 "\n\013table.proto\022\020drizzled.message\032\014engine."
456 "proto\032\014access.proto\032\031replication_options"
457 ".proto\"\273\034\n\005Table\022\014\n\004name\030\001 \002(\t\022\016\n\006schema"
458 "\030\006 \002(\t\022/\n\004type\030\005 \002(\0162!.drizzled.message."
459 "Table.TableType\022(\n\006engine\030\002 \002(\0132\030.drizzl"
460 "ed.message.Engine\022,\n\005field\030\003 \003(\0132\035.drizz"
461 "led.message.Table.Field\022.\n\007indexes\030\004 \003(\013"
462 "2\035.drizzled.message.Table.Index\022C\n\rfk_co"
463 "nstraint\030\010 \003(\0132,.drizzled.message.Table."
464 "ForeignKeyConstraint\0225\n\007options\030\t \001(\0132$."
465 "drizzled.message.Table.TableOptions\022\035\n\022c"
466 "reation_timestamp\030\013 \002(\004:\0010\022\033\n\020update_tim"
467 "estamp\030\014 \002(\004:\0010\022\017\n\007catalog\030\r \001(\t\022\014\n\004uuid"
468 "\030\016 \001(\t\022\017\n\007version\030\017 \001(\004\022A\n\023replication_o"
469 "ptions\030\020 \001(\0132$.drizzled.message.Replicat"
470 "ionOptions\022(\n\006access\030\021 \001(\0132\030.drizzled.me"
471 "ssage.Access\032\371\002\n\014TableOptions\022)\n!has_use"
472 "r_set_auto_increment_value\030\001 \001(\010\022\021\n\tcoll"
473 "ation\030\002 \001(\t\022\024\n\014collation_id\030\003 \001(\r\022\026\n\016dat"
474 "a_file_name\030\005 \001(\t\022\027\n\017index_file_name\030\006 \001"
475 "(\t\022\020\n\010max_rows\030\007 \001(\004\022\020\n\010min_rows\030\010 \001(\004\022\034"
476 "\n\024auto_increment_value\030\t \001(\004\022\026\n\016avg_row_"
477 "length\030\013 \001(\r\022\022\n\nblock_size\030\r \001(\r\022\017\n\007comm"
478 "ent\030\016 \001(\t\022\023\n\013pack_record\030\020 \001(\010\022\020\n\010checks"
479 "um\030\021 \001(\010\022\025\n\rpage_checksum\030\022 \001(\010\022\027\n\017delay"
480 "_key_write\030\023 \001(\010\022\016\n\006unused\030\024 \001(\010\032\206\005\n\024For"
481 "eignKeyConstraint\022\014\n\004name\030\001 \001(\t\022\024\n\014colum"
482 "n_names\030\002 \003(\t\022\035\n\025references_table_name\030\003"
483 " \002(\t\022\032\n\022references_columns\030\004 \003(\t\022Q\n\005matc"
484 "h\030\005 \002(\0162B.drizzled.message.Table.Foreign"
485 "KeyConstraint.ForeignKeyMatchOption\022b\n\ru"
486 "pdate_option\030\006 \002(\0162=.drizzled.message.Ta"
487 "ble.ForeignKeyConstraint.ForeignKeyOptio"
488 "n:\014OPTION_UNDEF\022b\n\rdelete_option\030\007 \002(\0162="
489 ".drizzled.message.Table.ForeignKeyConstr"
490 "aint.ForeignKeyOption:\014OPTION_UNDEF\"a\n\025F"
491 "oreignKeyMatchOption\022\023\n\017MATCH_UNDEFINED\020"
492 "\000\022\016\n\nMATCH_FULL\020\001\022\021\n\rMATCH_PARTIAL\020\002\022\020\n\014"
493 "MATCH_SIMPLE\020\003\"\220\001\n\020ForeignKeyOption\022\020\n\014O"
494 "PTION_UNDEF\020\000\022\023\n\017OPTION_RESTRICT\020\001\022\022\n\016OP"
495 "TION_CASCADE\020\002\022\023\n\017OPTION_SET_NULL\020\003\022\024\n\020O"
496 "PTION_NO_ACTION\020\004\022\026\n\022OPTION_SET_DEFAULT\020"
497 "\005\032\276\n\n\005Field\022\014\n\004name\030\001 \002(\t\0225\n\004type\030\002 \002(\0162"
498 "\'.drizzled.message.Table.Field.FieldType"
499 "\022;\n\007options\030\004 \001(\0132*.drizzled.message.Tab"
500 "le.Field.FieldOptions\022C\n\013constraints\030\005 \001"
501 "(\0132..drizzled.message.Table.Field.FieldC"
502 "onstraints\022J\n\017numeric_options\030\006 \001(\01321.dr"
503 "izzled.message.Table.Field.NumericFieldO"
504 "ptions\022H\n\016string_options\030\007 \001(\01320.drizzle"
505 "d.message.Table.Field.StringFieldOptions"
506 "\022D\n\014time_options\030\010 \001(\0132..drizzled.messag"
507 "e.Table.Field.TimeFieldOptions\022\017\n\007commen"
508 "t\030\020 \001(\t\022K\n\022enumeration_values\030\021 \001(\0132/.dr"
509 "izzled.message.Table.Field.EnumerationVa"
510 "lues\032\252\001\n\014FieldOptions\022\025\n\rdefault_value\030\001"
511 " \001(\t\022\024\n\014update_value\030\002 \001(\t\022\033\n\014default_nu"
512 "ll\030\003 \001(\010:\005false\022\031\n\021default_bin_value\030\004 \001"
513 "(\014\022\032\n\022default_expression\030\005 \001(\t\022\031\n\021update"
514 "_expression\030\006 \001(\t\032\222\001\n\020FieldConstraints\022\031"
515 "\n\013is_nullable\030\001 \001(\010:\004true\022\032\n\013is_unsigned"
516 "\030\002 \001(\010:\005false\022\031\n\nis_notnull\030\003 \001(\010:\005false"
517 "\022\030\n\tis_unique\030\004 \001(\010:\005false\022\022\n\nexpression"
518 "\030\020 \003(\t\032X\n\023NumericFieldOptions\022\037\n\020is_auto"
519 "increment\030\001 \001(\010:\005false\022\r\n\005scale\030\002 \001(\r\022\021\n"
520 "\tprecision\030\003 \001(\r\032l\n\022StringFieldOptions\022\035"
521 "\n\016is_fixed_width\030\001 \001(\010:\005false\022\016\n\006length\030"
522 "\002 \001(\r\022\024\n\014collation_id\030\003 \001(\r\022\021\n\tcollation"
523 "\030\004 \001(\t\032Q\n\021EnumerationValues\022\024\n\014collation"
524 "_id\030\002 \001(\r\022\021\n\tcollation\030\003 \001(\t\022\023\n\013field_va"
525 "lue\030\004 \003(\t\032(\n\020TimeFieldOptions\022\024\n\014microse"
526 "conds\030\001 \001(\010\"\254\001\n\tFieldType\022\n\n\006DOUBLE\020\000\022\013\n"
527 "\007VARCHAR\020\001\022\010\n\004BLOB\020\002\022\010\n\004ENUM\020\003\022\013\n\007INTEGE"
528 "R\020\004\022\n\n\006BIGINT\020\005\022\013\n\007DECIMAL\020\006\022\010\n\004DATE\020\007\022\t"
529 "\n\005EPOCH\020\t\022\014\n\010DATETIME\020\n\022\010\n\004UUID\020\013\022\010\n\004TIM"
530 "E\020\014\022\013\n\007BOOLEAN\020\r\022\010\n\004IPV6\020\016\032\371\004\n\005Index\022\014\n\004"
531 "name\030\001 \002(\t\022\022\n\nis_primary\030\002 \002(\010\022\021\n\tis_uni"
532 "que\030\003 \002(\010\022D\n\004type\030\004 \002(\0162\'.drizzled.messa"
533 "ge.Table.Index.IndexType:\rUNKNOWN_INDEX\022"
534 "\022\n\nkey_length\030\005 \002(\r\022;\n\nindex_part\030\006 \003(\0132"
535 "\'.drizzled.message.Table.Index.IndexPart"
536 "\0226\n\007options\030\007 \001(\0132%.drizzled.message.Tab"
537 "le.Index.Options\022\017\n\007comment\030\010 \001(\t\032U\n\tInd"
538 "exPart\022\017\n\007fieldnr\030\001 \002(\r\022\026\n\016compare_lengt"
539 "h\030\002 \001(\r\022\037\n\020in_reverse_order\030\003 \001(\010:\005false"
540 "\032\265\001\n\007Options\022\020\n\010pack_key\030\001 \001(\010\022\027\n\017binary"
541 "_pack_key\030\002 \001(\010\022\026\n\016var_length_key\030\003 \001(\010\022"
542 "\025\n\rnull_part_key\030\004 \001(\010\022\026\n\016key_block_size"
543 "\030\005 \001(\r\022\034\n\024has_partial_segments\030\006 \001(\010\022\032\n\022"
544 "auto_generated_key\030\007 \001(\010\"L\n\tIndexType\022\021\n"
545 "\rUNKNOWN_INDEX\020\000\022\t\n\005BTREE\020\001\022\t\n\005RTREE\020\002\022\010"
546 "\n\004HASH\020\003\022\014\n\010FULLTEXT\020\004\"D\n\tTableType\022\014\n\010S"
547 "TANDARD\020\000\022\r\n\tTEMPORARY\020\001\022\014\n\010INTERNAL\020\002\022\014"
548 "\n\010FUNCTION\020\003\"A\n\013AddedFields\0222\n\013added_fie"
549 "ld\030\001 \003(\0132\035.drizzled.message.Table.FieldB"
550 "&\n\024org.drizzle.messagesB\014TableMessageH\001", 3839);
551 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
552 "table.proto", &protobuf_RegisterTypes);
553 Table::default_instance_ =
new Table();
554 Table_TableOptions::default_instance_ =
new Table_TableOptions();
555 Table_ForeignKeyConstraint::default_instance_ =
new Table_ForeignKeyConstraint();
556 Table_Field::default_instance_ =
new Table_Field();
557 Table_Field_FieldOptions::default_instance_ =
new Table_Field_FieldOptions();
558 Table_Field_FieldConstraints::default_instance_ =
new Table_Field_FieldConstraints();
559 Table_Field_NumericFieldOptions::default_instance_ =
new Table_Field_NumericFieldOptions();
560 Table_Field_StringFieldOptions::default_instance_ =
new Table_Field_StringFieldOptions();
561 Table_Field_EnumerationValues::default_instance_ =
new Table_Field_EnumerationValues();
562 Table_Field_TimeFieldOptions::default_instance_ =
new Table_Field_TimeFieldOptions();
563 Table_Index::default_instance_ =
new Table_Index();
564 Table_Index_IndexPart::default_instance_ =
new Table_Index_IndexPart();
565 Table_Index_Options::default_instance_ =
new Table_Index_Options();
566 AddedFields::default_instance_ =
new AddedFields();
567 Table::default_instance_->InitAsDefaultInstance();
568 Table_TableOptions::default_instance_->InitAsDefaultInstance();
569 Table_ForeignKeyConstraint::default_instance_->InitAsDefaultInstance();
570 Table_Field::default_instance_->InitAsDefaultInstance();
571 Table_Field_FieldOptions::default_instance_->InitAsDefaultInstance();
572 Table_Field_FieldConstraints::default_instance_->InitAsDefaultInstance();
573 Table_Field_NumericFieldOptions::default_instance_->InitAsDefaultInstance();
574 Table_Field_StringFieldOptions::default_instance_->InitAsDefaultInstance();
575 Table_Field_EnumerationValues::default_instance_->InitAsDefaultInstance();
576 Table_Field_TimeFieldOptions::default_instance_->InitAsDefaultInstance();
577 Table_Index::default_instance_->InitAsDefaultInstance();
578 Table_Index_IndexPart::default_instance_->InitAsDefaultInstance();
579 Table_Index_Options::default_instance_->InitAsDefaultInstance();
580 AddedFields::default_instance_->InitAsDefaultInstance();
581 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_table_2eproto);
587 protobuf_AddDesc_table_2eproto();
589 } static_descriptor_initializer_table_2eproto_;
593 const ::google::protobuf::EnumDescriptor* Table_TableType_descriptor() {
594 protobuf_AssignDescriptorsOnce();
595 return Table_TableType_descriptor_;
597 bool Table_TableType_IsValid(
int value) {
610 const Table_TableType Table::STANDARD;
611 const Table_TableType Table::TEMPORARY;
612 const Table_TableType Table::INTERNAL;
613 const Table_TableType Table::FUNCTION;
614 const Table_TableType Table::TableType_MIN;
615 const Table_TableType Table::TableType_MAX;
616 const int Table::TableType_ARRAYSIZE;
619 const int Table_TableOptions::kHasUserSetAutoIncrementValueFieldNumber;
620 const int Table_TableOptions::kCollationFieldNumber;
621 const int Table_TableOptions::kCollationIdFieldNumber;
622 const int Table_TableOptions::kDataFileNameFieldNumber;
623 const int Table_TableOptions::kIndexFileNameFieldNumber;
624 const int Table_TableOptions::kMaxRowsFieldNumber;
625 const int Table_TableOptions::kMinRowsFieldNumber;
626 const int Table_TableOptions::kAutoIncrementValueFieldNumber;
627 const int Table_TableOptions::kAvgRowLengthFieldNumber;
628 const int Table_TableOptions::kBlockSizeFieldNumber;
629 const int Table_TableOptions::kCommentFieldNumber;
630 const int Table_TableOptions::kPackRecordFieldNumber;
631 const int Table_TableOptions::kChecksumFieldNumber;
632 const int Table_TableOptions::kPageChecksumFieldNumber;
633 const int Table_TableOptions::kDelayKeyWriteFieldNumber;
634 const int Table_TableOptions::kUnusedFieldNumber;
637 Table_TableOptions::Table_TableOptions()
638 : ::
google::protobuf::Message() {
643 void Table_TableOptions::InitAsDefaultInstance() {
646 Table_TableOptions::Table_TableOptions(
const Table_TableOptions& from)
647 : ::
google::protobuf::Message() {
653 void Table_TableOptions::SharedCtor() {
654 ::google::protobuf::internal::GetEmptyString();
656 has_user_set_auto_increment_value_ =
false;
657 collation_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
659 data_file_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
660 index_file_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
661 max_rows_ = GOOGLE_ULONGLONG(0);
662 min_rows_ = GOOGLE_ULONGLONG(0);
663 auto_increment_value_ = GOOGLE_ULONGLONG(0);
664 avg_row_length_ = 0u;
666 comment_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
667 pack_record_ =
false;
669 page_checksum_ =
false;
670 delay_key_write_ =
false;
672 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
675 Table_TableOptions::~Table_TableOptions() {
680 void Table_TableOptions::SharedDtor() {
681 if (collation_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
684 if (data_file_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
685 delete data_file_name_;
687 if (index_file_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
688 delete index_file_name_;
690 if (comment_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
693 if (
this != default_instance_) {
697 void Table_TableOptions::SetCachedSize(
int size)
const {
698 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
699 _cached_size_ = size;
700 GOOGLE_SAFE_CONCURRENT_WRITES_END();
702 const ::google::protobuf::Descriptor* Table_TableOptions::descriptor() {
703 protobuf_AssignDescriptorsOnce();
704 return Table_TableOptions_descriptor_;
707 const Table_TableOptions& Table_TableOptions::default_instance() {
708 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
709 return *default_instance_;
712 Table_TableOptions* Table_TableOptions::default_instance_ = NULL;
714 Table_TableOptions* Table_TableOptions::New()
const {
715 return new Table_TableOptions;
718 void Table_TableOptions::Clear() {
719 #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
720 &reinterpret_cast<Table_TableOptions*>(16)->f) - \
721 reinterpret_cast<char*>(16))
723 #define ZR_(first, last) do { \
724 size_t f = OFFSET_OF_FIELD_(first); \
725 size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
726 ::memset(&first, 0, n); \
729 if (_has_bits_[0 / 32] & 255) {
730 ZR_(max_rows_, collation_id_);
731 ZR_(min_rows_, auto_increment_value_);
732 has_user_set_auto_increment_value_ =
false;
733 if (has_collation()) {
734 if (collation_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
738 if (has_data_file_name()) {
739 if (data_file_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
740 data_file_name_->clear();
743 if (has_index_file_name()) {
744 if (index_file_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
745 index_file_name_->clear();
749 if (_has_bits_[8 / 32] & 65280) {
750 ZR_(pack_record_, page_checksum_);
751 ZR_(delay_key_write_, unused_);
752 avg_row_length_ = 0u;
755 if (comment_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
761 #undef OFFSET_OF_FIELD_
764 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
765 mutable_unknown_fields()->Clear();
768 bool Table_TableOptions::MergePartialFromCodedStream(
769 ::google::protobuf::io::CodedInputStream* input) {
770 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
771 ::google::protobuf::uint32 tag;
774 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
776 if (!p.second)
goto handle_unusual;
777 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
781 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
782 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
783 input, &has_user_set_auto_increment_value_)));
784 set_has_has_user_set_auto_increment_value();
788 if (input->ExpectTag(18))
goto parse_collation;
796 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
797 input, this->mutable_collation()));
798 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
799 this->collation().data(), this->collation().length(),
800 ::google::protobuf::internal::WireFormat::PARSE,
805 if (input->ExpectTag(24))
goto parse_collation_id;
813 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
814 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
815 input, &collation_id_)));
816 set_has_collation_id();
820 if (input->ExpectTag(42))
goto parse_data_file_name;
827 parse_data_file_name:
828 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
829 input, this->mutable_data_file_name()));
830 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
831 this->data_file_name().data(), this->data_file_name().length(),
832 ::google::protobuf::internal::WireFormat::PARSE,
837 if (input->ExpectTag(50))
goto parse_index_file_name;
844 parse_index_file_name:
845 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
846 input, this->mutable_index_file_name()));
847 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
848 this->index_file_name().data(), this->index_file_name().length(),
849 ::google::protobuf::internal::WireFormat::PARSE,
854 if (input->ExpectTag(56))
goto parse_max_rows;
862 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
863 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
864 input, &max_rows_)));
869 if (input->ExpectTag(64))
goto parse_min_rows;
877 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
878 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
879 input, &min_rows_)));
884 if (input->ExpectTag(72))
goto parse_auto_increment_value;
891 parse_auto_increment_value:
892 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
893 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
894 input, &auto_increment_value_)));
895 set_has_auto_increment_value();
899 if (input->ExpectTag(88))
goto parse_avg_row_length;
906 parse_avg_row_length:
907 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
908 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
909 input, &avg_row_length_)));
910 set_has_avg_row_length();
914 if (input->ExpectTag(104))
goto parse_block_size;
922 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
923 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
924 input, &block_size_)));
925 set_has_block_size();
929 if (input->ExpectTag(114))
goto parse_comment;
937 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
938 input, this->mutable_comment()));
939 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
940 this->comment().data(), this->comment().length(),
941 ::google::protobuf::internal::WireFormat::PARSE,
946 if (input->ExpectTag(128))
goto parse_pack_record;
954 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
955 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
956 input, &pack_record_)));
957 set_has_pack_record();
961 if (input->ExpectTag(136))
goto parse_checksum;
969 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
970 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
971 input, &checksum_)));
976 if (input->ExpectTag(144))
goto parse_page_checksum;
984 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
985 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
986 input, &page_checksum_)));
987 set_has_page_checksum();
991 if (input->ExpectTag(152))
goto parse_delay_key_write;
998 parse_delay_key_write:
999 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1000 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1001 input, &delay_key_write_)));
1002 set_has_delay_key_write();
1004 goto handle_unusual;
1006 if (input->ExpectTag(160))
goto parse_unused;
1014 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1015 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1019 goto handle_unusual;
1021 if (input->ExpectAtEnd())
goto success;
1028 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1029 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1032 DO_(::google::protobuf::internal::WireFormat::SkipField(
1033 input, tag, mutable_unknown_fields()));
1047 void Table_TableOptions::SerializeWithCachedSizes(
1048 ::google::protobuf::io::CodedOutputStream* output)
const {
1051 if (has_has_user_set_auto_increment_value()) {
1052 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->has_user_set_auto_increment_value(), output);
1056 if (has_collation()) {
1057 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1058 this->collation().data(), this->collation().length(),
1059 ::google::protobuf::internal::WireFormat::SERIALIZE,
1061 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1062 2, this->collation(), output);
1066 if (has_collation_id()) {
1067 ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->collation_id(), output);
1071 if (has_data_file_name()) {
1072 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1073 this->data_file_name().data(), this->data_file_name().length(),
1074 ::google::protobuf::internal::WireFormat::SERIALIZE,
1076 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1077 5, this->data_file_name(), output);
1081 if (has_index_file_name()) {
1082 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1083 this->index_file_name().data(), this->index_file_name().length(),
1084 ::google::protobuf::internal::WireFormat::SERIALIZE,
1086 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1087 6, this->index_file_name(), output);
1091 if (has_max_rows()) {
1092 ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->max_rows(), output);
1096 if (has_min_rows()) {
1097 ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->min_rows(), output);
1101 if (has_auto_increment_value()) {
1102 ::google::protobuf::internal::WireFormatLite::WriteUInt64(9, this->auto_increment_value(), output);
1106 if (has_avg_row_length()) {
1107 ::google::protobuf::internal::WireFormatLite::WriteUInt32(11, this->avg_row_length(), output);
1111 if (has_block_size()) {
1112 ::google::protobuf::internal::WireFormatLite::WriteUInt32(13, this->block_size(), output);
1116 if (has_comment()) {
1117 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1118 this->comment().data(), this->comment().length(),
1119 ::google::protobuf::internal::WireFormat::SERIALIZE,
1121 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1122 14, this->comment(), output);
1126 if (has_pack_record()) {
1127 ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->pack_record(), output);
1131 if (has_checksum()) {
1132 ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->checksum(), output);
1136 if (has_page_checksum()) {
1137 ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->page_checksum(), output);
1141 if (has_delay_key_write()) {
1142 ::google::protobuf::internal::WireFormatLite::WriteBool(19, this->delay_key_write(), output);
1147 ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->unused(), output);
1150 if (!unknown_fields().empty()) {
1151 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1152 unknown_fields(), output);
1157 ::google::protobuf::uint8* Table_TableOptions::SerializeWithCachedSizesToArray(
1158 ::google::protobuf::uint8* target)
const {
1161 if (has_has_user_set_auto_increment_value()) {
1162 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->has_user_set_auto_increment_value(), target);
1166 if (has_collation()) {
1167 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1168 this->collation().data(), this->collation().length(),
1169 ::google::protobuf::internal::WireFormat::SERIALIZE,
1172 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1173 2, this->collation(), target);
1177 if (has_collation_id()) {
1178 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->collation_id(), target);
1182 if (has_data_file_name()) {
1183 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1184 this->data_file_name().data(), this->data_file_name().length(),
1185 ::google::protobuf::internal::WireFormat::SERIALIZE,
1188 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1189 5, this->data_file_name(), target);
1193 if (has_index_file_name()) {
1194 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1195 this->index_file_name().data(), this->index_file_name().length(),
1196 ::google::protobuf::internal::WireFormat::SERIALIZE,
1199 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1200 6, this->index_file_name(), target);
1204 if (has_max_rows()) {
1205 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->max_rows(), target);
1209 if (has_min_rows()) {
1210 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->min_rows(), target);
1214 if (has_auto_increment_value()) {
1215 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(9, this->auto_increment_value(), target);
1219 if (has_avg_row_length()) {
1220 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(11, this->avg_row_length(), target);
1224 if (has_block_size()) {
1225 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(13, this->block_size(), target);
1229 if (has_comment()) {
1230 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1231 this->comment().data(), this->comment().length(),
1232 ::google::protobuf::internal::WireFormat::SERIALIZE,
1235 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1236 14, this->comment(), target);
1240 if (has_pack_record()) {
1241 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->pack_record(), target);
1245 if (has_checksum()) {
1246 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->checksum(), target);
1250 if (has_page_checksum()) {
1251 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->page_checksum(), target);
1255 if (has_delay_key_write()) {
1256 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(19, this->delay_key_write(), target);
1261 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->unused(), target);
1264 if (!unknown_fields().empty()) {
1265 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1266 unknown_fields(), target);
1272 int Table_TableOptions::ByteSize()
const {
1275 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1277 if (has_has_user_set_auto_increment_value()) {
1278 total_size += 1 + 1;
1282 if (has_collation()) {
1284 ::google::protobuf::internal::WireFormatLite::StringSize(
1289 if (has_collation_id()) {
1291 ::google::protobuf::internal::WireFormatLite::UInt32Size(
1292 this->collation_id());
1296 if (has_data_file_name()) {
1298 ::google::protobuf::internal::WireFormatLite::StringSize(
1299 this->data_file_name());
1303 if (has_index_file_name()) {
1305 ::google::protobuf::internal::WireFormatLite::StringSize(
1306 this->index_file_name());
1310 if (has_max_rows()) {
1312 ::google::protobuf::internal::WireFormatLite::UInt64Size(
1317 if (has_min_rows()) {
1319 ::google::protobuf::internal::WireFormatLite::UInt64Size(
1324 if (has_auto_increment_value()) {
1326 ::google::protobuf::internal::WireFormatLite::UInt64Size(
1327 this->auto_increment_value());
1331 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
1333 if (has_avg_row_length()) {
1335 ::google::protobuf::internal::WireFormatLite::UInt32Size(
1336 this->avg_row_length());
1340 if (has_block_size()) {
1342 ::google::protobuf::internal::WireFormatLite::UInt32Size(
1343 this->block_size());
1347 if (has_comment()) {
1349 ::google::protobuf::internal::WireFormatLite::StringSize(
1354 if (has_pack_record()) {
1355 total_size += 2 + 1;
1359 if (has_checksum()) {
1360 total_size += 2 + 1;
1364 if (has_page_checksum()) {
1365 total_size += 2 + 1;
1369 if (has_delay_key_write()) {
1370 total_size += 2 + 1;
1375 total_size += 2 + 1;
1379 if (!unknown_fields().empty()) {
1381 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1384 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1385 _cached_size_ = total_size;
1386 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1390 void Table_TableOptions::MergeFrom(const ::google::protobuf::Message& from) {
1391 GOOGLE_CHECK_NE(&from,
this);
1392 const Table_TableOptions* source =
1393 ::google::protobuf::internal::dynamic_cast_if_available<const Table_TableOptions*>(
1395 if (source == NULL) {
1396 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
1402 void Table_TableOptions::MergeFrom(
const Table_TableOptions& from) {
1403 GOOGLE_CHECK_NE(&from,
this);
1404 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1405 if (from.has_has_user_set_auto_increment_value()) {
1406 set_has_user_set_auto_increment_value(from.has_user_set_auto_increment_value());
1408 if (from.has_collation()) {
1409 set_collation(from.collation());
1411 if (from.has_collation_id()) {
1412 set_collation_id(from.collation_id());
1414 if (from.has_data_file_name()) {
1415 set_data_file_name(from.data_file_name());
1417 if (from.has_index_file_name()) {
1418 set_index_file_name(from.index_file_name());
1420 if (from.has_max_rows()) {
1421 set_max_rows(from.max_rows());
1423 if (from.has_min_rows()) {
1424 set_min_rows(from.min_rows());
1426 if (from.has_auto_increment_value()) {
1427 set_auto_increment_value(from.auto_increment_value());
1430 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
1431 if (from.has_avg_row_length()) {
1432 set_avg_row_length(from.avg_row_length());
1434 if (from.has_block_size()) {
1435 set_block_size(from.block_size());
1437 if (from.has_comment()) {
1438 set_comment(from.comment());
1440 if (from.has_pack_record()) {
1441 set_pack_record(from.pack_record());
1443 if (from.has_checksum()) {
1444 set_checksum(from.checksum());
1446 if (from.has_page_checksum()) {
1447 set_page_checksum(from.page_checksum());
1449 if (from.has_delay_key_write()) {
1450 set_delay_key_write(from.delay_key_write());
1452 if (from.has_unused()) {
1453 set_unused(from.unused());
1456 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1459 void Table_TableOptions::CopyFrom(const ::google::protobuf::Message& from) {
1460 if (&from ==
this)
return;
1465 void Table_TableOptions::CopyFrom(
const Table_TableOptions& from) {
1466 if (&from ==
this)
return;
1471 bool Table_TableOptions::IsInitialized()
const {
1476 void Table_TableOptions::Swap(Table_TableOptions* other) {
1477 if (other !=
this) {
1478 std::swap(has_user_set_auto_increment_value_, other->has_user_set_auto_increment_value_);
1479 std::swap(collation_, other->collation_);
1480 std::swap(collation_id_, other->collation_id_);
1481 std::swap(data_file_name_, other->data_file_name_);
1482 std::swap(index_file_name_, other->index_file_name_);
1483 std::swap(max_rows_, other->max_rows_);
1484 std::swap(min_rows_, other->min_rows_);
1485 std::swap(auto_increment_value_, other->auto_increment_value_);
1486 std::swap(avg_row_length_, other->avg_row_length_);
1487 std::swap(block_size_, other->block_size_);
1488 std::swap(comment_, other->comment_);
1489 std::swap(pack_record_, other->pack_record_);
1490 std::swap(checksum_, other->checksum_);
1491 std::swap(page_checksum_, other->page_checksum_);
1492 std::swap(delay_key_write_, other->delay_key_write_);
1493 std::swap(unused_, other->unused_);
1494 std::swap(_has_bits_[0], other->_has_bits_[0]);
1495 _unknown_fields_.Swap(&other->_unknown_fields_);
1496 std::swap(_cached_size_, other->_cached_size_);
1500 ::google::protobuf::Metadata Table_TableOptions::GetMetadata()
const {
1501 protobuf_AssignDescriptorsOnce();
1502 ::google::protobuf::Metadata metadata;
1503 metadata.descriptor = Table_TableOptions_descriptor_;
1504 metadata.reflection = Table_TableOptions_reflection_;
1511 const ::google::protobuf::EnumDescriptor* Table_ForeignKeyConstraint_ForeignKeyMatchOption_descriptor() {
1512 protobuf_AssignDescriptorsOnce();
1513 return Table_ForeignKeyConstraint_ForeignKeyMatchOption_descriptor_;
1515 bool Table_ForeignKeyConstraint_ForeignKeyMatchOption_IsValid(
int value) {
1528 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::MATCH_UNDEFINED;
1529 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::MATCH_FULL;
1530 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::MATCH_PARTIAL;
1531 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::MATCH_SIMPLE;
1532 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::ForeignKeyMatchOption_MIN;
1533 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::ForeignKeyMatchOption_MAX;
1534 const int Table_ForeignKeyConstraint::ForeignKeyMatchOption_ARRAYSIZE;
1536 const ::google::protobuf::EnumDescriptor* Table_ForeignKeyConstraint_ForeignKeyOption_descriptor() {
1537 protobuf_AssignDescriptorsOnce();
1538 return Table_ForeignKeyConstraint_ForeignKeyOption_descriptor_;
1540 bool Table_ForeignKeyConstraint_ForeignKeyOption_IsValid(
int value) {
1555 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_UNDEF;
1556 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_RESTRICT;
1557 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_CASCADE;
1558 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_SET_NULL;
1559 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_NO_ACTION;
1560 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_SET_DEFAULT;
1561 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::ForeignKeyOption_MIN;
1562 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::ForeignKeyOption_MAX;
1563 const int Table_ForeignKeyConstraint::ForeignKeyOption_ARRAYSIZE;
1566 const int Table_ForeignKeyConstraint::kNameFieldNumber;
1567 const int Table_ForeignKeyConstraint::kColumnNamesFieldNumber;
1568 const int Table_ForeignKeyConstraint::kReferencesTableNameFieldNumber;
1569 const int Table_ForeignKeyConstraint::kReferencesColumnsFieldNumber;
1570 const int Table_ForeignKeyConstraint::kMatchFieldNumber;
1571 const int Table_ForeignKeyConstraint::kUpdateOptionFieldNumber;
1572 const int Table_ForeignKeyConstraint::kDeleteOptionFieldNumber;
1575 Table_ForeignKeyConstraint::Table_ForeignKeyConstraint()
1576 : ::
google::protobuf::Message() {
1581 void Table_ForeignKeyConstraint::InitAsDefaultInstance() {
1584 Table_ForeignKeyConstraint::Table_ForeignKeyConstraint(
const Table_ForeignKeyConstraint& from)
1585 : ::
google::protobuf::Message() {
1591 void Table_ForeignKeyConstraint::SharedCtor() {
1592 ::google::protobuf::internal::GetEmptyString();
1594 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1595 references_table_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1599 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1602 Table_ForeignKeyConstraint::~Table_ForeignKeyConstraint() {
1607 void Table_ForeignKeyConstraint::SharedDtor() {
1608 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1611 if (references_table_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1612 delete references_table_name_;
1614 if (
this != default_instance_) {
1618 void Table_ForeignKeyConstraint::SetCachedSize(
int size)
const {
1619 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1620 _cached_size_ = size;
1621 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1623 const ::google::protobuf::Descriptor* Table_ForeignKeyConstraint::descriptor() {
1624 protobuf_AssignDescriptorsOnce();
1625 return Table_ForeignKeyConstraint_descriptor_;
1628 const Table_ForeignKeyConstraint& Table_ForeignKeyConstraint::default_instance() {
1629 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
1630 return *default_instance_;
1633 Table_ForeignKeyConstraint* Table_ForeignKeyConstraint::default_instance_ = NULL;
1635 Table_ForeignKeyConstraint* Table_ForeignKeyConstraint::New()
const {
1636 return new Table_ForeignKeyConstraint;
1639 void Table_ForeignKeyConstraint::Clear() {
1640 #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
1641 &reinterpret_cast<Table_ForeignKeyConstraint*>(16)->f) - \
1642 reinterpret_cast<char*>(16))
1644 #define ZR_(first, last) do { \
1645 size_t f = OFFSET_OF_FIELD_(first); \
1646 size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
1647 ::memset(&first, 0, n); \
1650 if (_has_bits_[0 / 32] & 117) {
1651 ZR_(match_, delete_option_);
1653 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1657 if (has_references_table_name()) {
1658 if (references_table_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1659 references_table_name_->clear();
1664 #undef OFFSET_OF_FIELD_
1667 column_names_.Clear();
1668 references_columns_.Clear();
1669 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1670 mutable_unknown_fields()->Clear();
1673 bool Table_ForeignKeyConstraint::MergePartialFromCodedStream(
1674 ::google::protobuf::io::CodedInputStream* input) {
1675 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1676 ::google::protobuf::uint32 tag;
1679 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1681 if (!p.second)
goto handle_unusual;
1682 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1686 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1687 input, this->mutable_name()));
1688 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1689 this->name().data(), this->name().length(),
1690 ::google::protobuf::internal::WireFormat::PARSE,
1693 goto handle_unusual;
1695 if (input->ExpectTag(18))
goto parse_column_names;
1703 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1704 input, this->add_column_names()));
1705 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1706 this->column_names(this->column_names_size() - 1).data(),
1707 this->column_names(this->column_names_size() - 1).length(),
1708 ::google::protobuf::internal::WireFormat::PARSE,
1711 goto handle_unusual;
1713 if (input->ExpectTag(18))
goto parse_column_names;
1714 if (input->ExpectTag(26))
goto parse_references_table_name;
1721 parse_references_table_name:
1722 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1723 input, this->mutable_references_table_name()));
1724 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1725 this->references_table_name().data(), this->references_table_name().length(),
1726 ::google::protobuf::internal::WireFormat::PARSE,
1727 "references_table_name");
1729 goto handle_unusual;
1731 if (input->ExpectTag(34))
goto parse_references_columns;
1738 parse_references_columns:
1739 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1740 input, this->add_references_columns()));
1741 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1742 this->references_columns(this->references_columns_size() - 1).data(),
1743 this->references_columns(this->references_columns_size() - 1).length(),
1744 ::google::protobuf::internal::WireFormat::PARSE,
1745 "references_columns");
1747 goto handle_unusual;
1749 if (input->ExpectTag(34))
goto parse_references_columns;
1750 if (input->ExpectTag(40))
goto parse_match;
1759 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1760 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1762 if (::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyMatchOption_IsValid(value)) {
1763 set_match(static_cast< ::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyMatchOption >(value));
1765 mutable_unknown_fields()->AddVarint(5, value);
1768 goto handle_unusual;
1770 if (input->ExpectTag(48))
goto parse_update_option;
1777 parse_update_option:
1779 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1780 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1782 if (::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyOption_IsValid(value)) {
1783 set_update_option(static_cast< ::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyOption >(value));
1785 mutable_unknown_fields()->AddVarint(6, value);
1788 goto handle_unusual;
1790 if (input->ExpectTag(56))
goto parse_delete_option;
1797 parse_delete_option:
1799 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1800 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1802 if (::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyOption_IsValid(value)) {
1803 set_delete_option(static_cast< ::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyOption >(value));
1805 mutable_unknown_fields()->AddVarint(7, value);
1808 goto handle_unusual;
1810 if (input->ExpectAtEnd())
goto success;
1817 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1818 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1821 DO_(::google::protobuf::internal::WireFormat::SkipField(
1822 input, tag, mutable_unknown_fields()));
1836 void Table_ForeignKeyConstraint::SerializeWithCachedSizes(
1837 ::google::protobuf::io::CodedOutputStream* output)
const {
1841 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1842 this->name().data(), this->name().length(),
1843 ::google::protobuf::internal::WireFormat::SERIALIZE,
1845 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1846 1, this->name(), output);
1850 for (
int i = 0; i < this->column_names_size(); i++) {
1851 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1852 this->column_names(i).data(), this->column_names(i).length(),
1853 ::google::protobuf::internal::WireFormat::SERIALIZE,
1855 ::google::protobuf::internal::WireFormatLite::WriteString(
1856 2, this->column_names(i), output);
1860 if (has_references_table_name()) {
1861 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1862 this->references_table_name().data(), this->references_table_name().length(),
1863 ::google::protobuf::internal::WireFormat::SERIALIZE,
1864 "references_table_name");
1865 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1866 3, this->references_table_name(), output);
1870 for (
int i = 0; i < this->references_columns_size(); i++) {
1871 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1872 this->references_columns(i).data(), this->references_columns(i).length(),
1873 ::google::protobuf::internal::WireFormat::SERIALIZE,
1874 "references_columns");
1875 ::google::protobuf::internal::WireFormatLite::WriteString(
1876 4, this->references_columns(i), output);
1881 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1882 5, this->match(), output);
1886 if (has_update_option()) {
1887 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1888 6, this->update_option(), output);
1892 if (has_delete_option()) {
1893 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1894 7, this->delete_option(), output);
1897 if (!unknown_fields().empty()) {
1898 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1899 unknown_fields(), output);
1904 ::google::protobuf::uint8* Table_ForeignKeyConstraint::SerializeWithCachedSizesToArray(
1905 ::google::protobuf::uint8* target)
const {
1909 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1910 this->name().data(), this->name().length(),
1911 ::google::protobuf::internal::WireFormat::SERIALIZE,
1914 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1915 1, this->name(), target);
1919 for (
int i = 0; i < this->column_names_size(); i++) {
1920 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1921 this->column_names(i).data(), this->column_names(i).length(),
1922 ::google::protobuf::internal::WireFormat::SERIALIZE,
1924 target = ::google::protobuf::internal::WireFormatLite::
1925 WriteStringToArray(2, this->column_names(i), target);
1929 if (has_references_table_name()) {
1930 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1931 this->references_table_name().data(), this->references_table_name().length(),
1932 ::google::protobuf::internal::WireFormat::SERIALIZE,
1933 "references_table_name");
1935 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1936 3, this->references_table_name(), target);
1940 for (
int i = 0; i < this->references_columns_size(); i++) {
1941 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1942 this->references_columns(i).data(), this->references_columns(i).length(),
1943 ::google::protobuf::internal::WireFormat::SERIALIZE,
1944 "references_columns");
1945 target = ::google::protobuf::internal::WireFormatLite::
1946 WriteStringToArray(4, this->references_columns(i), target);
1951 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1952 5, this->match(), target);
1956 if (has_update_option()) {
1957 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1958 6, this->update_option(), target);
1962 if (has_delete_option()) {
1963 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1964 7, this->delete_option(), target);
1967 if (!unknown_fields().empty()) {
1968 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1969 unknown_fields(), target);
1975 int Table_ForeignKeyConstraint::ByteSize()
const {
1978 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1982 ::google::protobuf::internal::WireFormatLite::StringSize(
1987 if (has_references_table_name()) {
1989 ::google::protobuf::internal::WireFormatLite::StringSize(
1990 this->references_table_name());
1996 ::google::protobuf::internal::WireFormatLite::EnumSize(this->match());
2000 if (has_update_option()) {
2002 ::google::protobuf::internal::WireFormatLite::EnumSize(this->update_option());
2006 if (has_delete_option()) {
2008 ::google::protobuf::internal::WireFormatLite::EnumSize(this->delete_option());
2013 total_size += 1 * this->column_names_size();
2014 for (
int i = 0; i < this->column_names_size(); i++) {
2015 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
2016 this->column_names(i));
2020 total_size += 1 * this->references_columns_size();
2021 for (
int i = 0; i < this->references_columns_size(); i++) {
2022 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
2023 this->references_columns(i));
2026 if (!unknown_fields().empty()) {
2028 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2031 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2032 _cached_size_ = total_size;
2033 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2037 void Table_ForeignKeyConstraint::MergeFrom(const ::google::protobuf::Message& from) {
2038 GOOGLE_CHECK_NE(&from,
this);
2039 const Table_ForeignKeyConstraint* source =
2040 ::google::protobuf::internal::dynamic_cast_if_available<const Table_ForeignKeyConstraint*>(
2042 if (source == NULL) {
2043 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
2049 void Table_ForeignKeyConstraint::MergeFrom(
const Table_ForeignKeyConstraint& from) {
2050 GOOGLE_CHECK_NE(&from,
this);
2051 column_names_.MergeFrom(from.column_names_);
2052 references_columns_.MergeFrom(from.references_columns_);
2053 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2054 if (from.has_name()) {
2055 set_name(from.name());
2057 if (from.has_references_table_name()) {
2058 set_references_table_name(from.references_table_name());
2060 if (from.has_match()) {
2061 set_match(from.match());
2063 if (from.has_update_option()) {
2064 set_update_option(from.update_option());
2066 if (from.has_delete_option()) {
2067 set_delete_option(from.delete_option());
2070 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2073 void Table_ForeignKeyConstraint::CopyFrom(const ::google::protobuf::Message& from) {
2074 if (&from ==
this)
return;
2079 void Table_ForeignKeyConstraint::CopyFrom(
const Table_ForeignKeyConstraint& from) {
2080 if (&from ==
this)
return;
2085 bool Table_ForeignKeyConstraint::IsInitialized()
const {
2086 if ((_has_bits_[0] & 0x00000074) != 0x00000074)
return false;
2091 void Table_ForeignKeyConstraint::Swap(Table_ForeignKeyConstraint* other) {
2092 if (other !=
this) {
2093 std::swap(name_, other->name_);
2094 column_names_.Swap(&other->column_names_);
2095 std::swap(references_table_name_, other->references_table_name_);
2096 references_columns_.Swap(&other->references_columns_);
2097 std::swap(match_, other->match_);
2098 std::swap(update_option_, other->update_option_);
2099 std::swap(delete_option_, other->delete_option_);
2100 std::swap(_has_bits_[0], other->_has_bits_[0]);
2101 _unknown_fields_.Swap(&other->_unknown_fields_);
2102 std::swap(_cached_size_, other->_cached_size_);
2106 ::google::protobuf::Metadata Table_ForeignKeyConstraint::GetMetadata()
const {
2107 protobuf_AssignDescriptorsOnce();
2108 ::google::protobuf::Metadata metadata;
2109 metadata.descriptor = Table_ForeignKeyConstraint_descriptor_;
2110 metadata.reflection = Table_ForeignKeyConstraint_reflection_;
2117 const ::google::protobuf::EnumDescriptor* Table_Field_FieldType_descriptor() {
2118 protobuf_AssignDescriptorsOnce();
2119 return Table_Field_FieldType_descriptor_;
2121 bool Table_Field_FieldType_IsValid(
int value) {
2144 const Table_Field_FieldType Table_Field::DOUBLE;
2145 const Table_Field_FieldType Table_Field::VARCHAR;
2146 const Table_Field_FieldType Table_Field::BLOB;
2147 const Table_Field_FieldType Table_Field::ENUM;
2148 const Table_Field_FieldType Table_Field::INTEGER;
2149 const Table_Field_FieldType Table_Field::BIGINT;
2150 const Table_Field_FieldType Table_Field::DECIMAL;
2151 const Table_Field_FieldType Table_Field::DATE;
2152 const Table_Field_FieldType Table_Field::EPOCH;
2153 const Table_Field_FieldType Table_Field::DATETIME;
2154 const Table_Field_FieldType Table_Field::UUID;
2155 const Table_Field_FieldType Table_Field::TIME;
2156 const Table_Field_FieldType Table_Field::BOOLEAN;
2157 const Table_Field_FieldType Table_Field::IPV6;
2158 const Table_Field_FieldType Table_Field::FieldType_MIN;
2159 const Table_Field_FieldType Table_Field::FieldType_MAX;
2160 const int Table_Field::FieldType_ARRAYSIZE;
2163 const int Table_Field_FieldOptions::kDefaultValueFieldNumber;
2164 const int Table_Field_FieldOptions::kUpdateValueFieldNumber;
2165 const int Table_Field_FieldOptions::kDefaultNullFieldNumber;
2166 const int Table_Field_FieldOptions::kDefaultBinValueFieldNumber;
2167 const int Table_Field_FieldOptions::kDefaultExpressionFieldNumber;
2168 const int Table_Field_FieldOptions::kUpdateExpressionFieldNumber;
2171 Table_Field_FieldOptions::Table_Field_FieldOptions()
2172 : ::
google::protobuf::Message() {
2177 void Table_Field_FieldOptions::InitAsDefaultInstance() {
2180 Table_Field_FieldOptions::Table_Field_FieldOptions(
const Table_Field_FieldOptions& from)
2181 : ::
google::protobuf::Message() {
2187 void Table_Field_FieldOptions::SharedCtor() {
2188 ::google::protobuf::internal::GetEmptyString();
2190 default_value_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2191 update_value_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2192 default_null_ =
false;
2193 default_bin_value_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2194 default_expression_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2195 update_expression_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2196 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
2199 Table_Field_FieldOptions::~Table_Field_FieldOptions() {
2204 void Table_Field_FieldOptions::SharedDtor() {
2205 if (default_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2206 delete default_value_;
2208 if (update_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2209 delete update_value_;
2211 if (default_bin_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2212 delete default_bin_value_;
2214 if (default_expression_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2215 delete default_expression_;
2217 if (update_expression_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2218 delete update_expression_;
2220 if (
this != default_instance_) {
2224 void Table_Field_FieldOptions::SetCachedSize(
int size)
const {
2225 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2226 _cached_size_ = size;
2227 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2229 const ::google::protobuf::Descriptor* Table_Field_FieldOptions::descriptor() {
2230 protobuf_AssignDescriptorsOnce();
2231 return Table_Field_FieldOptions_descriptor_;
2234 const Table_Field_FieldOptions& Table_Field_FieldOptions::default_instance() {
2235 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
2236 return *default_instance_;
2239 Table_Field_FieldOptions* Table_Field_FieldOptions::default_instance_ = NULL;
2241 Table_Field_FieldOptions* Table_Field_FieldOptions::New()
const {
2242 return new Table_Field_FieldOptions;
2245 void Table_Field_FieldOptions::Clear() {
2246 if (_has_bits_[0 / 32] & 63) {
2247 if (has_default_value()) {
2248 if (default_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2249 default_value_->clear();
2252 if (has_update_value()) {
2253 if (update_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2254 update_value_->clear();
2257 default_null_ =
false;
2258 if (has_default_bin_value()) {
2259 if (default_bin_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2260 default_bin_value_->clear();
2263 if (has_default_expression()) {
2264 if (default_expression_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2265 default_expression_->clear();
2268 if (has_update_expression()) {
2269 if (update_expression_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2270 update_expression_->clear();
2274 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
2275 mutable_unknown_fields()->Clear();
2278 bool Table_Field_FieldOptions::MergePartialFromCodedStream(
2279 ::google::protobuf::io::CodedInputStream* input) {
2280 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
2281 ::google::protobuf::uint32 tag;
2284 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2286 if (!p.second)
goto handle_unusual;
2287 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2291 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2292 input, this->mutable_default_value()));
2293 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2294 this->default_value().data(), this->default_value().length(),
2295 ::google::protobuf::internal::WireFormat::PARSE,
2298 goto handle_unusual;
2300 if (input->ExpectTag(18))
goto parse_update_value;
2308 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2309 input, this->mutable_update_value()));
2310 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2311 this->update_value().data(), this->update_value().length(),
2312 ::google::protobuf::internal::WireFormat::PARSE,
2315 goto handle_unusual;
2317 if (input->ExpectTag(24))
goto parse_default_null;
2325 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2326 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2327 input, &default_null_)));
2328 set_has_default_null();
2330 goto handle_unusual;
2332 if (input->ExpectTag(34))
goto parse_default_bin_value;
2339 parse_default_bin_value:
2340 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2341 input, this->mutable_default_bin_value()));
2343 goto handle_unusual;
2345 if (input->ExpectTag(42))
goto parse_default_expression;
2352 parse_default_expression:
2353 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2354 input, this->mutable_default_expression()));
2355 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2356 this->default_expression().data(), this->default_expression().length(),
2357 ::google::protobuf::internal::WireFormat::PARSE,
2358 "default_expression");
2360 goto handle_unusual;
2362 if (input->ExpectTag(50))
goto parse_update_expression;
2369 parse_update_expression:
2370 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2371 input, this->mutable_update_expression()));
2372 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2373 this->update_expression().data(), this->update_expression().length(),
2374 ::google::protobuf::internal::WireFormat::PARSE,
2375 "update_expression");
2377 goto handle_unusual;
2379 if (input->ExpectAtEnd())
goto success;
2386 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2387 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2390 DO_(::google::protobuf::internal::WireFormat::SkipField(
2391 input, tag, mutable_unknown_fields()));
2405 void Table_Field_FieldOptions::SerializeWithCachedSizes(
2406 ::google::protobuf::io::CodedOutputStream* output)
const {
2409 if (has_default_value()) {
2410 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2411 this->default_value().data(), this->default_value().length(),
2412 ::google::protobuf::internal::WireFormat::SERIALIZE,
2414 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2415 1, this->default_value(), output);
2419 if (has_update_value()) {
2420 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2421 this->update_value().data(), this->update_value().length(),
2422 ::google::protobuf::internal::WireFormat::SERIALIZE,
2424 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2425 2, this->update_value(), output);
2429 if (has_default_null()) {
2430 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->default_null(), output);
2434 if (has_default_bin_value()) {
2435 ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2436 4, this->default_bin_value(), output);
2440 if (has_default_expression()) {
2441 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2442 this->default_expression().data(), this->default_expression().length(),
2443 ::google::protobuf::internal::WireFormat::SERIALIZE,
2444 "default_expression");
2445 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2446 5, this->default_expression(), output);
2450 if (has_update_expression()) {
2451 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2452 this->update_expression().data(), this->update_expression().length(),
2453 ::google::protobuf::internal::WireFormat::SERIALIZE,
2454 "update_expression");
2455 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2456 6, this->update_expression(), output);
2459 if (!unknown_fields().empty()) {
2460 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2461 unknown_fields(), output);
2466 ::google::protobuf::uint8* Table_Field_FieldOptions::SerializeWithCachedSizesToArray(
2467 ::google::protobuf::uint8* target)
const {
2470 if (has_default_value()) {
2471 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2472 this->default_value().data(), this->default_value().length(),
2473 ::google::protobuf::internal::WireFormat::SERIALIZE,
2476 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2477 1, this->default_value(), target);
2481 if (has_update_value()) {
2482 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2483 this->update_value().data(), this->update_value().length(),
2484 ::google::protobuf::internal::WireFormat::SERIALIZE,
2487 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2488 2, this->update_value(), target);
2492 if (has_default_null()) {
2493 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->default_null(), target);
2497 if (has_default_bin_value()) {
2499 ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2500 4, this->default_bin_value(), target);
2504 if (has_default_expression()) {
2505 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2506 this->default_expression().data(), this->default_expression().length(),
2507 ::google::protobuf::internal::WireFormat::SERIALIZE,
2508 "default_expression");
2510 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2511 5, this->default_expression(), target);
2515 if (has_update_expression()) {
2516 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2517 this->update_expression().data(), this->update_expression().length(),
2518 ::google::protobuf::internal::WireFormat::SERIALIZE,
2519 "update_expression");
2521 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2522 6, this->update_expression(), target);
2525 if (!unknown_fields().empty()) {
2526 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2527 unknown_fields(), target);
2533 int Table_Field_FieldOptions::ByteSize()
const {
2536 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2538 if (has_default_value()) {
2540 ::google::protobuf::internal::WireFormatLite::StringSize(
2541 this->default_value());
2545 if (has_update_value()) {
2547 ::google::protobuf::internal::WireFormatLite::StringSize(
2548 this->update_value());
2552 if (has_default_null()) {
2553 total_size += 1 + 1;
2557 if (has_default_bin_value()) {
2559 ::google::protobuf::internal::WireFormatLite::BytesSize(
2560 this->default_bin_value());
2564 if (has_default_expression()) {
2566 ::google::protobuf::internal::WireFormatLite::StringSize(
2567 this->default_expression());
2571 if (has_update_expression()) {
2573 ::google::protobuf::internal::WireFormatLite::StringSize(
2574 this->update_expression());
2578 if (!unknown_fields().empty()) {
2580 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2583 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2584 _cached_size_ = total_size;
2585 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2589 void Table_Field_FieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
2590 GOOGLE_CHECK_NE(&from,
this);
2591 const Table_Field_FieldOptions* source =
2592 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_FieldOptions*>(
2594 if (source == NULL) {
2595 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
2601 void Table_Field_FieldOptions::MergeFrom(
const Table_Field_FieldOptions& from) {
2602 GOOGLE_CHECK_NE(&from,
this);
2603 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2604 if (from.has_default_value()) {
2605 set_default_value(from.default_value());
2607 if (from.has_update_value()) {
2608 set_update_value(from.update_value());
2610 if (from.has_default_null()) {
2611 set_default_null(from.default_null());
2613 if (from.has_default_bin_value()) {
2614 set_default_bin_value(from.default_bin_value());
2616 if (from.has_default_expression()) {
2617 set_default_expression(from.default_expression());
2619 if (from.has_update_expression()) {
2620 set_update_expression(from.update_expression());
2623 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2626 void Table_Field_FieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
2627 if (&from ==
this)
return;
2632 void Table_Field_FieldOptions::CopyFrom(
const Table_Field_FieldOptions& from) {
2633 if (&from ==
this)
return;
2638 bool Table_Field_FieldOptions::IsInitialized()
const {
2643 void Table_Field_FieldOptions::Swap(Table_Field_FieldOptions* other) {
2644 if (other !=
this) {
2645 std::swap(default_value_, other->default_value_);
2646 std::swap(update_value_, other->update_value_);
2647 std::swap(default_null_, other->default_null_);
2648 std::swap(default_bin_value_, other->default_bin_value_);
2649 std::swap(default_expression_, other->default_expression_);
2650 std::swap(update_expression_, other->update_expression_);
2651 std::swap(_has_bits_[0], other->_has_bits_[0]);
2652 _unknown_fields_.Swap(&other->_unknown_fields_);
2653 std::swap(_cached_size_, other->_cached_size_);
2657 ::google::protobuf::Metadata Table_Field_FieldOptions::GetMetadata()
const {
2658 protobuf_AssignDescriptorsOnce();
2659 ::google::protobuf::Metadata metadata;
2660 metadata.descriptor = Table_Field_FieldOptions_descriptor_;
2661 metadata.reflection = Table_Field_FieldOptions_reflection_;
2669 const int Table_Field_FieldConstraints::kIsNullableFieldNumber;
2670 const int Table_Field_FieldConstraints::kIsUnsignedFieldNumber;
2671 const int Table_Field_FieldConstraints::kIsNotnullFieldNumber;
2672 const int Table_Field_FieldConstraints::kIsUniqueFieldNumber;
2673 const int Table_Field_FieldConstraints::kExpressionFieldNumber;
2676 Table_Field_FieldConstraints::Table_Field_FieldConstraints()
2677 : ::
google::protobuf::Message() {
2682 void Table_Field_FieldConstraints::InitAsDefaultInstance() {
2685 Table_Field_FieldConstraints::Table_Field_FieldConstraints(
const Table_Field_FieldConstraints& from)
2686 : ::
google::protobuf::Message() {
2692 void Table_Field_FieldConstraints::SharedCtor() {
2693 ::google::protobuf::internal::GetEmptyString();
2695 is_nullable_ =
true;
2696 is_unsigned_ =
false;
2697 is_notnull_ =
false;
2699 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
2702 Table_Field_FieldConstraints::~Table_Field_FieldConstraints() {
2707 void Table_Field_FieldConstraints::SharedDtor() {
2708 if (
this != default_instance_) {
2712 void Table_Field_FieldConstraints::SetCachedSize(
int size)
const {
2713 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2714 _cached_size_ = size;
2715 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2717 const ::google::protobuf::Descriptor* Table_Field_FieldConstraints::descriptor() {
2718 protobuf_AssignDescriptorsOnce();
2719 return Table_Field_FieldConstraints_descriptor_;
2722 const Table_Field_FieldConstraints& Table_Field_FieldConstraints::default_instance() {
2723 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
2724 return *default_instance_;
2727 Table_Field_FieldConstraints* Table_Field_FieldConstraints::default_instance_ = NULL;
2729 Table_Field_FieldConstraints* Table_Field_FieldConstraints::New()
const {
2730 return new Table_Field_FieldConstraints;
2733 void Table_Field_FieldConstraints::Clear() {
2734 #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
2735 &reinterpret_cast<Table_Field_FieldConstraints*>(16)->f) - \
2736 reinterpret_cast<char*>(16))
2738 #define ZR_(first, last) do { \
2739 size_t f = OFFSET_OF_FIELD_(first); \
2740 size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
2741 ::memset(&first, 0, n); \
2744 if (_has_bits_[0 / 32] & 15) {
2745 ZR_(is_unsigned_, is_unique_);
2746 is_nullable_ =
true;
2749 #undef OFFSET_OF_FIELD_
2752 expression_.Clear();
2753 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
2754 mutable_unknown_fields()->Clear();
2757 bool Table_Field_FieldConstraints::MergePartialFromCodedStream(
2758 ::google::protobuf::io::CodedInputStream* input) {
2759 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
2760 ::google::protobuf::uint32 tag;
2763 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
2765 if (!p.second)
goto handle_unusual;
2766 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2770 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2771 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2772 input, &is_nullable_)));
2773 set_has_is_nullable();
2775 goto handle_unusual;
2777 if (input->ExpectTag(16))
goto parse_is_unsigned;
2785 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2786 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2787 input, &is_unsigned_)));
2788 set_has_is_unsigned();
2790 goto handle_unusual;
2792 if (input->ExpectTag(24))
goto parse_is_notnull;
2800 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2801 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2802 input, &is_notnull_)));
2803 set_has_is_notnull();
2805 goto handle_unusual;
2807 if (input->ExpectTag(32))
goto parse_is_unique;
2815 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2816 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2817 input, &is_unique_)));
2818 set_has_is_unique();
2820 goto handle_unusual;
2822 if (input->ExpectTag(130))
goto parse_expression;
2830 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2831 input, this->add_expression()));
2832 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2833 this->expression(this->expression_size() - 1).data(),
2834 this->expression(this->expression_size() - 1).length(),
2835 ::google::protobuf::internal::WireFormat::PARSE,
2838 goto handle_unusual;
2840 if (input->ExpectTag(130))
goto parse_expression;
2841 if (input->ExpectAtEnd())
goto success;
2848 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2849 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2852 DO_(::google::protobuf::internal::WireFormat::SkipField(
2853 input, tag, mutable_unknown_fields()));
2867 void Table_Field_FieldConstraints::SerializeWithCachedSizes(
2868 ::google::protobuf::io::CodedOutputStream* output)
const {
2871 if (has_is_nullable()) {
2872 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is_nullable(), output);
2876 if (has_is_unsigned()) {
2877 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_unsigned(), output);
2881 if (has_is_notnull()) {
2882 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->is_notnull(), output);
2886 if (has_is_unique()) {
2887 ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->is_unique(), output);
2891 for (
int i = 0; i < this->expression_size(); i++) {
2892 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2893 this->expression(i).data(), this->expression(i).length(),
2894 ::google::protobuf::internal::WireFormat::SERIALIZE,
2896 ::google::protobuf::internal::WireFormatLite::WriteString(
2897 16, this->expression(i), output);
2900 if (!unknown_fields().empty()) {
2901 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2902 unknown_fields(), output);
2907 ::google::protobuf::uint8* Table_Field_FieldConstraints::SerializeWithCachedSizesToArray(
2908 ::google::protobuf::uint8* target)
const {
2911 if (has_is_nullable()) {
2912 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->is_nullable(), target);
2916 if (has_is_unsigned()) {
2917 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_unsigned(), target);
2921 if (has_is_notnull()) {
2922 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->is_notnull(), target);
2926 if (has_is_unique()) {
2927 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->is_unique(), target);
2931 for (
int i = 0; i < this->expression_size(); i++) {
2932 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2933 this->expression(i).data(), this->expression(i).length(),
2934 ::google::protobuf::internal::WireFormat::SERIALIZE,
2936 target = ::google::protobuf::internal::WireFormatLite::
2937 WriteStringToArray(16, this->expression(i), target);
2940 if (!unknown_fields().empty()) {
2941 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2942 unknown_fields(), target);
2948 int Table_Field_FieldConstraints::ByteSize()
const {
2951 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2953 if (has_is_nullable()) {
2954 total_size += 1 + 1;
2958 if (has_is_unsigned()) {
2959 total_size += 1 + 1;
2963 if (has_is_notnull()) {
2964 total_size += 1 + 1;
2968 if (has_is_unique()) {
2969 total_size += 1 + 1;
2974 total_size += 2 * this->expression_size();
2975 for (
int i = 0; i < this->expression_size(); i++) {
2976 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
2977 this->expression(i));
2980 if (!unknown_fields().empty()) {
2982 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2985 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2986 _cached_size_ = total_size;
2987 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2991 void Table_Field_FieldConstraints::MergeFrom(const ::google::protobuf::Message& from) {
2992 GOOGLE_CHECK_NE(&from,
this);
2993 const Table_Field_FieldConstraints* source =
2994 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_FieldConstraints*>(
2996 if (source == NULL) {
2997 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
3003 void Table_Field_FieldConstraints::MergeFrom(
const Table_Field_FieldConstraints& from) {
3004 GOOGLE_CHECK_NE(&from,
this);
3005 expression_.MergeFrom(from.expression_);
3006 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3007 if (from.has_is_nullable()) {
3008 set_is_nullable(from.is_nullable());
3010 if (from.has_is_unsigned()) {
3011 set_is_unsigned(from.is_unsigned());
3013 if (from.has_is_notnull()) {
3014 set_is_notnull(from.is_notnull());
3016 if (from.has_is_unique()) {
3017 set_is_unique(from.is_unique());
3020 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3023 void Table_Field_FieldConstraints::CopyFrom(const ::google::protobuf::Message& from) {
3024 if (&from ==
this)
return;
3029 void Table_Field_FieldConstraints::CopyFrom(
const Table_Field_FieldConstraints& from) {
3030 if (&from ==
this)
return;
3035 bool Table_Field_FieldConstraints::IsInitialized()
const {
3040 void Table_Field_FieldConstraints::Swap(Table_Field_FieldConstraints* other) {
3041 if (other !=
this) {
3042 std::swap(is_nullable_, other->is_nullable_);
3043 std::swap(is_unsigned_, other->is_unsigned_);
3044 std::swap(is_notnull_, other->is_notnull_);
3045 std::swap(is_unique_, other->is_unique_);
3046 expression_.Swap(&other->expression_);
3047 std::swap(_has_bits_[0], other->_has_bits_[0]);
3048 _unknown_fields_.Swap(&other->_unknown_fields_);
3049 std::swap(_cached_size_, other->_cached_size_);
3053 ::google::protobuf::Metadata Table_Field_FieldConstraints::GetMetadata()
const {
3054 protobuf_AssignDescriptorsOnce();
3055 ::google::protobuf::Metadata metadata;
3056 metadata.descriptor = Table_Field_FieldConstraints_descriptor_;
3057 metadata.reflection = Table_Field_FieldConstraints_reflection_;
3065 const int Table_Field_NumericFieldOptions::kIsAutoincrementFieldNumber;
3066 const int Table_Field_NumericFieldOptions::kScaleFieldNumber;
3067 const int Table_Field_NumericFieldOptions::kPrecisionFieldNumber;
3070 Table_Field_NumericFieldOptions::Table_Field_NumericFieldOptions()
3071 : ::
google::protobuf::Message() {
3076 void Table_Field_NumericFieldOptions::InitAsDefaultInstance() {
3079 Table_Field_NumericFieldOptions::Table_Field_NumericFieldOptions(
const Table_Field_NumericFieldOptions& from)
3080 : ::
google::protobuf::Message() {
3086 void Table_Field_NumericFieldOptions::SharedCtor() {
3088 is_autoincrement_ =
false;
3091 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3094 Table_Field_NumericFieldOptions::~Table_Field_NumericFieldOptions() {
3099 void Table_Field_NumericFieldOptions::SharedDtor() {
3100 if (
this != default_instance_) {
3104 void Table_Field_NumericFieldOptions::SetCachedSize(
int size)
const {
3105 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3106 _cached_size_ = size;
3107 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3109 const ::google::protobuf::Descriptor* Table_Field_NumericFieldOptions::descriptor() {
3110 protobuf_AssignDescriptorsOnce();
3111 return Table_Field_NumericFieldOptions_descriptor_;
3114 const Table_Field_NumericFieldOptions& Table_Field_NumericFieldOptions::default_instance() {
3115 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
3116 return *default_instance_;
3119 Table_Field_NumericFieldOptions* Table_Field_NumericFieldOptions::default_instance_ = NULL;
3121 Table_Field_NumericFieldOptions* Table_Field_NumericFieldOptions::New()
const {
3122 return new Table_Field_NumericFieldOptions;
3125 void Table_Field_NumericFieldOptions::Clear() {
3126 #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
3127 &reinterpret_cast<Table_Field_NumericFieldOptions*>(16)->f) - \
3128 reinterpret_cast<char*>(16))
3130 #define ZR_(first, last) do { \
3131 size_t f = OFFSET_OF_FIELD_(first); \
3132 size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
3133 ::memset(&first, 0, n); \
3136 ZR_(is_autoincrement_, precision_);
3138 #undef OFFSET_OF_FIELD_
3141 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3142 mutable_unknown_fields()->Clear();
3145 bool Table_Field_NumericFieldOptions::MergePartialFromCodedStream(
3146 ::google::protobuf::io::CodedInputStream* input) {
3147 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
3148 ::google::protobuf::uint32 tag;
3151 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
3153 if (!p.second)
goto handle_unusual;
3154 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3158 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3159 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3160 input, &is_autoincrement_)));
3161 set_has_is_autoincrement();
3163 goto handle_unusual;
3165 if (input->ExpectTag(16))
goto parse_scale;
3173 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3174 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3178 goto handle_unusual;
3180 if (input->ExpectTag(24))
goto parse_precision;
3188 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3189 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3190 input, &precision_)));
3191 set_has_precision();
3193 goto handle_unusual;
3195 if (input->ExpectAtEnd())
goto success;
3202 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3203 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3206 DO_(::google::protobuf::internal::WireFormat::SkipField(
3207 input, tag, mutable_unknown_fields()));
3221 void Table_Field_NumericFieldOptions::SerializeWithCachedSizes(
3222 ::google::protobuf::io::CodedOutputStream* output)
const {
3225 if (has_is_autoincrement()) {
3226 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is_autoincrement(), output);
3231 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->scale(), output);
3235 if (has_precision()) {
3236 ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->precision(), output);
3239 if (!unknown_fields().empty()) {
3240 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3241 unknown_fields(), output);
3246 ::google::protobuf::uint8* Table_Field_NumericFieldOptions::SerializeWithCachedSizesToArray(
3247 ::google::protobuf::uint8* target)
const {
3250 if (has_is_autoincrement()) {
3251 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->is_autoincrement(), target);
3256 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->scale(), target);
3260 if (has_precision()) {
3261 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->precision(), target);
3264 if (!unknown_fields().empty()) {
3265 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3266 unknown_fields(), target);
3272 int Table_Field_NumericFieldOptions::ByteSize()
const {
3275 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3277 if (has_is_autoincrement()) {
3278 total_size += 1 + 1;
3284 ::google::protobuf::internal::WireFormatLite::UInt32Size(
3289 if (has_precision()) {
3291 ::google::protobuf::internal::WireFormatLite::UInt32Size(
3296 if (!unknown_fields().empty()) {
3298 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3301 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3302 _cached_size_ = total_size;
3303 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3307 void Table_Field_NumericFieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
3308 GOOGLE_CHECK_NE(&from,
this);
3309 const Table_Field_NumericFieldOptions* source =
3310 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_NumericFieldOptions*>(
3312 if (source == NULL) {
3313 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
3319 void Table_Field_NumericFieldOptions::MergeFrom(
const Table_Field_NumericFieldOptions& from) {
3320 GOOGLE_CHECK_NE(&from,
this);
3321 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3322 if (from.has_is_autoincrement()) {
3323 set_is_autoincrement(from.is_autoincrement());
3325 if (from.has_scale()) {
3326 set_scale(from.scale());
3328 if (from.has_precision()) {
3329 set_precision(from.precision());
3332 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3335 void Table_Field_NumericFieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
3336 if (&from ==
this)
return;
3341 void Table_Field_NumericFieldOptions::CopyFrom(
const Table_Field_NumericFieldOptions& from) {
3342 if (&from ==
this)
return;
3347 bool Table_Field_NumericFieldOptions::IsInitialized()
const {
3352 void Table_Field_NumericFieldOptions::Swap(Table_Field_NumericFieldOptions* other) {
3353 if (other !=
this) {
3354 std::swap(is_autoincrement_, other->is_autoincrement_);
3355 std::swap(scale_, other->scale_);
3356 std::swap(precision_, other->precision_);
3357 std::swap(_has_bits_[0], other->_has_bits_[0]);
3358 _unknown_fields_.Swap(&other->_unknown_fields_);
3359 std::swap(_cached_size_, other->_cached_size_);
3363 ::google::protobuf::Metadata Table_Field_NumericFieldOptions::GetMetadata()
const {
3364 protobuf_AssignDescriptorsOnce();
3365 ::google::protobuf::Metadata metadata;
3366 metadata.descriptor = Table_Field_NumericFieldOptions_descriptor_;
3367 metadata.reflection = Table_Field_NumericFieldOptions_reflection_;
3375 const int Table_Field_StringFieldOptions::kIsFixedWidthFieldNumber;
3376 const int Table_Field_StringFieldOptions::kLengthFieldNumber;
3377 const int Table_Field_StringFieldOptions::kCollationIdFieldNumber;
3378 const int Table_Field_StringFieldOptions::kCollationFieldNumber;
3381 Table_Field_StringFieldOptions::Table_Field_StringFieldOptions()
3382 : ::
google::protobuf::Message() {
3387 void Table_Field_StringFieldOptions::InitAsDefaultInstance() {
3390 Table_Field_StringFieldOptions::Table_Field_StringFieldOptions(
const Table_Field_StringFieldOptions& from)
3391 : ::
google::protobuf::Message() {
3397 void Table_Field_StringFieldOptions::SharedCtor() {
3398 ::google::protobuf::internal::GetEmptyString();
3400 is_fixed_width_ =
false;
3403 collation_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3404 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3407 Table_Field_StringFieldOptions::~Table_Field_StringFieldOptions() {
3412 void Table_Field_StringFieldOptions::SharedDtor() {
3413 if (collation_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3416 if (
this != default_instance_) {
3420 void Table_Field_StringFieldOptions::SetCachedSize(
int size)
const {
3421 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3422 _cached_size_ = size;
3423 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3425 const ::google::protobuf::Descriptor* Table_Field_StringFieldOptions::descriptor() {
3426 protobuf_AssignDescriptorsOnce();
3427 return Table_Field_StringFieldOptions_descriptor_;
3430 const Table_Field_StringFieldOptions& Table_Field_StringFieldOptions::default_instance() {
3431 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
3432 return *default_instance_;
3435 Table_Field_StringFieldOptions* Table_Field_StringFieldOptions::default_instance_ = NULL;
3437 Table_Field_StringFieldOptions* Table_Field_StringFieldOptions::New()
const {
3438 return new Table_Field_StringFieldOptions;
3441 void Table_Field_StringFieldOptions::Clear() {
3442 #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
3443 &reinterpret_cast<Table_Field_StringFieldOptions*>(16)->f) - \
3444 reinterpret_cast<char*>(16))
3446 #define ZR_(first, last) do { \
3447 size_t f = OFFSET_OF_FIELD_(first); \
3448 size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
3449 ::memset(&first, 0, n); \
3452 if (_has_bits_[0 / 32] & 15) {
3453 ZR_(is_fixed_width_, length_);
3455 if (has_collation()) {
3456 if (collation_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3457 collation_->clear();
3462 #undef OFFSET_OF_FIELD_
3465 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3466 mutable_unknown_fields()->Clear();
3469 bool Table_Field_StringFieldOptions::MergePartialFromCodedStream(
3470 ::google::protobuf::io::CodedInputStream* input) {
3471 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
3472 ::google::protobuf::uint32 tag;
3475 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
3477 if (!p.second)
goto handle_unusual;
3478 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3482 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3483 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3484 input, &is_fixed_width_)));
3485 set_has_is_fixed_width();
3487 goto handle_unusual;
3489 if (input->ExpectTag(16))
goto parse_length;
3497 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3498 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3502 goto handle_unusual;
3504 if (input->ExpectTag(24))
goto parse_collation_id;
3512 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3513 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3514 input, &collation_id_)));
3515 set_has_collation_id();
3517 goto handle_unusual;
3519 if (input->ExpectTag(34))
goto parse_collation;
3527 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3528 input, this->mutable_collation()));
3529 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3530 this->collation().data(), this->collation().length(),
3531 ::google::protobuf::internal::WireFormat::PARSE,
3534 goto handle_unusual;
3536 if (input->ExpectAtEnd())
goto success;
3543 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3544 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3547 DO_(::google::protobuf::internal::WireFormat::SkipField(
3548 input, tag, mutable_unknown_fields()));
3562 void Table_Field_StringFieldOptions::SerializeWithCachedSizes(
3563 ::google::protobuf::io::CodedOutputStream* output)
const {
3566 if (has_is_fixed_width()) {
3567 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is_fixed_width(), output);
3572 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->length(), output);
3576 if (has_collation_id()) {
3577 ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->collation_id(), output);
3581 if (has_collation()) {
3582 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3583 this->collation().data(), this->collation().length(),
3584 ::google::protobuf::internal::WireFormat::SERIALIZE,
3586 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3587 4, this->collation(), output);
3590 if (!unknown_fields().empty()) {
3591 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3592 unknown_fields(), output);
3597 ::google::protobuf::uint8* Table_Field_StringFieldOptions::SerializeWithCachedSizesToArray(
3598 ::google::protobuf::uint8* target)
const {
3601 if (has_is_fixed_width()) {
3602 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->is_fixed_width(), target);
3607 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->length(), target);
3611 if (has_collation_id()) {
3612 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->collation_id(), target);
3616 if (has_collation()) {
3617 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3618 this->collation().data(), this->collation().length(),
3619 ::google::protobuf::internal::WireFormat::SERIALIZE,
3622 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3623 4, this->collation(), target);
3626 if (!unknown_fields().empty()) {
3627 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3628 unknown_fields(), target);
3634 int Table_Field_StringFieldOptions::ByteSize()
const {
3637 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3639 if (has_is_fixed_width()) {
3640 total_size += 1 + 1;
3646 ::google::protobuf::internal::WireFormatLite::UInt32Size(
3651 if (has_collation_id()) {
3653 ::google::protobuf::internal::WireFormatLite::UInt32Size(
3654 this->collation_id());
3658 if (has_collation()) {
3660 ::google::protobuf::internal::WireFormatLite::StringSize(
3665 if (!unknown_fields().empty()) {
3667 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3670 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3671 _cached_size_ = total_size;
3672 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3676 void Table_Field_StringFieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
3677 GOOGLE_CHECK_NE(&from,
this);
3678 const Table_Field_StringFieldOptions* source =
3679 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_StringFieldOptions*>(
3681 if (source == NULL) {
3682 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
3688 void Table_Field_StringFieldOptions::MergeFrom(
const Table_Field_StringFieldOptions& from) {
3689 GOOGLE_CHECK_NE(&from,
this);
3690 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3691 if (from.has_is_fixed_width()) {
3692 set_is_fixed_width(from.is_fixed_width());
3694 if (from.has_length()) {
3695 set_length(from.length());
3697 if (from.has_collation_id()) {
3698 set_collation_id(from.collation_id());
3700 if (from.has_collation()) {
3701 set_collation(from.collation());
3704 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3707 void Table_Field_StringFieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
3708 if (&from ==
this)
return;
3713 void Table_Field_StringFieldOptions::CopyFrom(
const Table_Field_StringFieldOptions& from) {
3714 if (&from ==
this)
return;
3719 bool Table_Field_StringFieldOptions::IsInitialized()
const {
3724 void Table_Field_StringFieldOptions::Swap(Table_Field_StringFieldOptions* other) {
3725 if (other !=
this) {
3726 std::swap(is_fixed_width_, other->is_fixed_width_);
3727 std::swap(length_, other->length_);
3728 std::swap(collation_id_, other->collation_id_);
3729 std::swap(collation_, other->collation_);
3730 std::swap(_has_bits_[0], other->_has_bits_[0]);
3731 _unknown_fields_.Swap(&other->_unknown_fields_);
3732 std::swap(_cached_size_, other->_cached_size_);
3736 ::google::protobuf::Metadata Table_Field_StringFieldOptions::GetMetadata()
const {
3737 protobuf_AssignDescriptorsOnce();
3738 ::google::protobuf::Metadata metadata;
3739 metadata.descriptor = Table_Field_StringFieldOptions_descriptor_;
3740 metadata.reflection = Table_Field_StringFieldOptions_reflection_;
3748 const int Table_Field_EnumerationValues::kCollationIdFieldNumber;
3749 const int Table_Field_EnumerationValues::kCollationFieldNumber;
3750 const int Table_Field_EnumerationValues::kFieldValueFieldNumber;
3753 Table_Field_EnumerationValues::Table_Field_EnumerationValues()
3754 : ::
google::protobuf::Message() {
3759 void Table_Field_EnumerationValues::InitAsDefaultInstance() {
3762 Table_Field_EnumerationValues::Table_Field_EnumerationValues(
const Table_Field_EnumerationValues& from)
3763 : ::
google::protobuf::Message() {
3769 void Table_Field_EnumerationValues::SharedCtor() {
3770 ::google::protobuf::internal::GetEmptyString();
3773 collation_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3774 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3777 Table_Field_EnumerationValues::~Table_Field_EnumerationValues() {
3782 void Table_Field_EnumerationValues::SharedDtor() {
3783 if (collation_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3786 if (
this != default_instance_) {
3790 void Table_Field_EnumerationValues::SetCachedSize(
int size)
const {
3791 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3792 _cached_size_ = size;
3793 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3795 const ::google::protobuf::Descriptor* Table_Field_EnumerationValues::descriptor() {
3796 protobuf_AssignDescriptorsOnce();
3797 return Table_Field_EnumerationValues_descriptor_;
3800 const Table_Field_EnumerationValues& Table_Field_EnumerationValues::default_instance() {
3801 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
3802 return *default_instance_;
3805 Table_Field_EnumerationValues* Table_Field_EnumerationValues::default_instance_ = NULL;
3807 Table_Field_EnumerationValues* Table_Field_EnumerationValues::New()
const {
3808 return new Table_Field_EnumerationValues;
3811 void Table_Field_EnumerationValues::Clear() {
3812 if (_has_bits_[0 / 32] & 3) {
3814 if (has_collation()) {
3815 if (collation_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
3816 collation_->clear();
3820 field_value_.Clear();
3821 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3822 mutable_unknown_fields()->Clear();
3825 bool Table_Field_EnumerationValues::MergePartialFromCodedStream(
3826 ::google::protobuf::io::CodedInputStream* input) {
3827 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
3828 ::google::protobuf::uint32 tag;
3831 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
3833 if (!p.second)
goto handle_unusual;
3834 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3838 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3839 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3840 input, &collation_id_)));
3841 set_has_collation_id();
3843 goto handle_unusual;
3845 if (input->ExpectTag(26))
goto parse_collation;
3853 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3854 input, this->mutable_collation()));
3855 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3856 this->collation().data(), this->collation().length(),
3857 ::google::protobuf::internal::WireFormat::PARSE,
3860 goto handle_unusual;
3862 if (input->ExpectTag(34))
goto parse_field_value;
3870 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3871 input, this->add_field_value()));
3872 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3873 this->field_value(this->field_value_size() - 1).data(),
3874 this->field_value(this->field_value_size() - 1).length(),
3875 ::google::protobuf::internal::WireFormat::PARSE,
3878 goto handle_unusual;
3880 if (input->ExpectTag(34))
goto parse_field_value;
3881 if (input->ExpectAtEnd())
goto success;
3888 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3889 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3892 DO_(::google::protobuf::internal::WireFormat::SkipField(
3893 input, tag, mutable_unknown_fields()));
3907 void Table_Field_EnumerationValues::SerializeWithCachedSizes(
3908 ::google::protobuf::io::CodedOutputStream* output)
const {
3911 if (has_collation_id()) {
3912 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->collation_id(), output);
3916 if (has_collation()) {
3917 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3918 this->collation().data(), this->collation().length(),
3919 ::google::protobuf::internal::WireFormat::SERIALIZE,
3921 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3922 3, this->collation(), output);
3926 for (
int i = 0; i < this->field_value_size(); i++) {
3927 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3928 this->field_value(i).data(), this->field_value(i).length(),
3929 ::google::protobuf::internal::WireFormat::SERIALIZE,
3931 ::google::protobuf::internal::WireFormatLite::WriteString(
3932 4, this->field_value(i), output);
3935 if (!unknown_fields().empty()) {
3936 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3937 unknown_fields(), output);
3942 ::google::protobuf::uint8* Table_Field_EnumerationValues::SerializeWithCachedSizesToArray(
3943 ::google::protobuf::uint8* target)
const {
3946 if (has_collation_id()) {
3947 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->collation_id(), target);
3951 if (has_collation()) {
3952 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3953 this->collation().data(), this->collation().length(),
3954 ::google::protobuf::internal::WireFormat::SERIALIZE,
3957 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3958 3, this->collation(), target);
3962 for (
int i = 0; i < this->field_value_size(); i++) {
3963 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3964 this->field_value(i).data(), this->field_value(i).length(),
3965 ::google::protobuf::internal::WireFormat::SERIALIZE,
3967 target = ::google::protobuf::internal::WireFormatLite::
3968 WriteStringToArray(4, this->field_value(i), target);
3971 if (!unknown_fields().empty()) {
3972 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3973 unknown_fields(), target);
3979 int Table_Field_EnumerationValues::ByteSize()
const {
3982 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3984 if (has_collation_id()) {
3986 ::google::protobuf::internal::WireFormatLite::UInt32Size(
3987 this->collation_id());
3991 if (has_collation()) {
3993 ::google::protobuf::internal::WireFormatLite::StringSize(
3999 total_size += 1 * this->field_value_size();
4000 for (
int i = 0; i < this->field_value_size(); i++) {
4001 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
4002 this->field_value(i));
4005 if (!unknown_fields().empty()) {
4007 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4010 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4011 _cached_size_ = total_size;
4012 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4016 void Table_Field_EnumerationValues::MergeFrom(const ::google::protobuf::Message& from) {
4017 GOOGLE_CHECK_NE(&from,
this);
4018 const Table_Field_EnumerationValues* source =
4019 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_EnumerationValues*>(
4021 if (source == NULL) {
4022 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
4028 void Table_Field_EnumerationValues::MergeFrom(
const Table_Field_EnumerationValues& from) {
4029 GOOGLE_CHECK_NE(&from,
this);
4030 field_value_.MergeFrom(from.field_value_);
4031 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4032 if (from.has_collation_id()) {
4033 set_collation_id(from.collation_id());
4035 if (from.has_collation()) {
4036 set_collation(from.collation());
4039 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4042 void Table_Field_EnumerationValues::CopyFrom(const ::google::protobuf::Message& from) {
4043 if (&from ==
this)
return;
4048 void Table_Field_EnumerationValues::CopyFrom(
const Table_Field_EnumerationValues& from) {
4049 if (&from ==
this)
return;
4054 bool Table_Field_EnumerationValues::IsInitialized()
const {
4059 void Table_Field_EnumerationValues::Swap(Table_Field_EnumerationValues* other) {
4060 if (other !=
this) {
4061 std::swap(collation_id_, other->collation_id_);
4062 std::swap(collation_, other->collation_);
4063 field_value_.Swap(&other->field_value_);
4064 std::swap(_has_bits_[0], other->_has_bits_[0]);
4065 _unknown_fields_.Swap(&other->_unknown_fields_);
4066 std::swap(_cached_size_, other->_cached_size_);
4070 ::google::protobuf::Metadata Table_Field_EnumerationValues::GetMetadata()
const {
4071 protobuf_AssignDescriptorsOnce();
4072 ::google::protobuf::Metadata metadata;
4073 metadata.descriptor = Table_Field_EnumerationValues_descriptor_;
4074 metadata.reflection = Table_Field_EnumerationValues_reflection_;
4082 const int Table_Field_TimeFieldOptions::kMicrosecondsFieldNumber;
4085 Table_Field_TimeFieldOptions::Table_Field_TimeFieldOptions()
4086 : ::
google::protobuf::Message() {
4091 void Table_Field_TimeFieldOptions::InitAsDefaultInstance() {
4094 Table_Field_TimeFieldOptions::Table_Field_TimeFieldOptions(
const Table_Field_TimeFieldOptions& from)
4095 : ::
google::protobuf::Message() {
4101 void Table_Field_TimeFieldOptions::SharedCtor() {
4103 microseconds_ =
false;
4104 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
4107 Table_Field_TimeFieldOptions::~Table_Field_TimeFieldOptions() {
4112 void Table_Field_TimeFieldOptions::SharedDtor() {
4113 if (
this != default_instance_) {
4117 void Table_Field_TimeFieldOptions::SetCachedSize(
int size)
const {
4118 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4119 _cached_size_ = size;
4120 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4122 const ::google::protobuf::Descriptor* Table_Field_TimeFieldOptions::descriptor() {
4123 protobuf_AssignDescriptorsOnce();
4124 return Table_Field_TimeFieldOptions_descriptor_;
4127 const Table_Field_TimeFieldOptions& Table_Field_TimeFieldOptions::default_instance() {
4128 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
4129 return *default_instance_;
4132 Table_Field_TimeFieldOptions* Table_Field_TimeFieldOptions::default_instance_ = NULL;
4134 Table_Field_TimeFieldOptions* Table_Field_TimeFieldOptions::New()
const {
4135 return new Table_Field_TimeFieldOptions;
4138 void Table_Field_TimeFieldOptions::Clear() {
4139 microseconds_ =
false;
4140 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
4141 mutable_unknown_fields()->Clear();
4144 bool Table_Field_TimeFieldOptions::MergePartialFromCodedStream(
4145 ::google::protobuf::io::CodedInputStream* input) {
4146 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
4147 ::google::protobuf::uint32 tag;
4150 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
4152 if (!p.second)
goto handle_unusual;
4153 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4157 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4158 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4159 input, µseconds_)));
4160 set_has_microseconds();
4162 goto handle_unusual;
4164 if (input->ExpectAtEnd())
goto success;
4171 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4172 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4175 DO_(::google::protobuf::internal::WireFormat::SkipField(
4176 input, tag, mutable_unknown_fields()));
4190 void Table_Field_TimeFieldOptions::SerializeWithCachedSizes(
4191 ::google::protobuf::io::CodedOutputStream* output)
const {
4194 if (has_microseconds()) {
4195 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->microseconds(), output);
4198 if (!unknown_fields().empty()) {
4199 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4200 unknown_fields(), output);
4205 ::google::protobuf::uint8* Table_Field_TimeFieldOptions::SerializeWithCachedSizesToArray(
4206 ::google::protobuf::uint8* target)
const {
4209 if (has_microseconds()) {
4210 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->microseconds(), target);
4213 if (!unknown_fields().empty()) {
4214 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4215 unknown_fields(), target);
4221 int Table_Field_TimeFieldOptions::ByteSize()
const {
4224 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4226 if (has_microseconds()) {
4227 total_size += 1 + 1;
4231 if (!unknown_fields().empty()) {
4233 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4236 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4237 _cached_size_ = total_size;
4238 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4242 void Table_Field_TimeFieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
4243 GOOGLE_CHECK_NE(&from,
this);
4244 const Table_Field_TimeFieldOptions* source =
4245 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_TimeFieldOptions*>(
4247 if (source == NULL) {
4248 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
4254 void Table_Field_TimeFieldOptions::MergeFrom(
const Table_Field_TimeFieldOptions& from) {
4255 GOOGLE_CHECK_NE(&from,
this);
4256 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4257 if (from.has_microseconds()) {
4258 set_microseconds(from.microseconds());
4261 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4264 void Table_Field_TimeFieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
4265 if (&from ==
this)
return;
4270 void Table_Field_TimeFieldOptions::CopyFrom(
const Table_Field_TimeFieldOptions& from) {
4271 if (&from ==
this)
return;
4276 bool Table_Field_TimeFieldOptions::IsInitialized()
const {
4281 void Table_Field_TimeFieldOptions::Swap(Table_Field_TimeFieldOptions* other) {
4282 if (other !=
this) {
4283 std::swap(microseconds_, other->microseconds_);
4284 std::swap(_has_bits_[0], other->_has_bits_[0]);
4285 _unknown_fields_.Swap(&other->_unknown_fields_);
4286 std::swap(_cached_size_, other->_cached_size_);
4290 ::google::protobuf::Metadata Table_Field_TimeFieldOptions::GetMetadata()
const {
4291 protobuf_AssignDescriptorsOnce();
4292 ::google::protobuf::Metadata metadata;
4293 metadata.descriptor = Table_Field_TimeFieldOptions_descriptor_;
4294 metadata.reflection = Table_Field_TimeFieldOptions_reflection_;
4302 const int Table_Field::kNameFieldNumber;
4303 const int Table_Field::kTypeFieldNumber;
4304 const int Table_Field::kOptionsFieldNumber;
4305 const int Table_Field::kConstraintsFieldNumber;
4306 const int Table_Field::kNumericOptionsFieldNumber;
4307 const int Table_Field::kStringOptionsFieldNumber;
4308 const int Table_Field::kTimeOptionsFieldNumber;
4309 const int Table_Field::kCommentFieldNumber;
4310 const int Table_Field::kEnumerationValuesFieldNumber;
4313 Table_Field::Table_Field()
4314 : ::
google::protobuf::Message() {
4319 void Table_Field::InitAsDefaultInstance() {
4328 Table_Field::Table_Field(
const Table_Field& from)
4329 : ::
google::protobuf::Message() {
4335 void Table_Field::SharedCtor() {
4336 ::google::protobuf::internal::GetEmptyString();
4338 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4341 constraints_ = NULL;
4342 numeric_options_ = NULL;
4343 string_options_ = NULL;
4344 time_options_ = NULL;
4345 comment_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4346 enumeration_values_ = NULL;
4347 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
4350 Table_Field::~Table_Field() {
4355 void Table_Field::SharedDtor() {
4356 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4359 if (comment_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4362 if (
this != default_instance_) {
4364 delete constraints_;
4365 delete numeric_options_;
4366 delete string_options_;
4367 delete time_options_;
4368 delete enumeration_values_;
4372 void Table_Field::SetCachedSize(
int size)
const {
4373 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4374 _cached_size_ = size;
4375 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4377 const ::google::protobuf::Descriptor* Table_Field::descriptor() {
4378 protobuf_AssignDescriptorsOnce();
4379 return Table_Field_descriptor_;
4382 const Table_Field& Table_Field::default_instance() {
4383 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
4384 return *default_instance_;
4387 Table_Field* Table_Field::default_instance_ = NULL;
4389 Table_Field* Table_Field::New()
const {
4390 return new Table_Field;
4393 void Table_Field::Clear() {
4394 if (_has_bits_[0 / 32] & 255) {
4396 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4401 if (has_options()) {
4402 if (options_ != NULL) options_->::drizzled::message::Table_Field_FieldOptions::Clear();
4404 if (has_constraints()) {
4405 if (constraints_ != NULL) constraints_->::drizzled::message::Table_Field_FieldConstraints::Clear();
4407 if (has_numeric_options()) {
4408 if (numeric_options_ != NULL) numeric_options_->::drizzled::message::Table_Field_NumericFieldOptions::Clear();
4410 if (has_string_options()) {
4411 if (string_options_ != NULL) string_options_->::drizzled::message::Table_Field_StringFieldOptions::Clear();
4413 if (has_time_options()) {
4414 if (time_options_ != NULL) time_options_->::drizzled::message::Table_Field_TimeFieldOptions::Clear();
4416 if (has_comment()) {
4417 if (comment_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
4422 if (has_enumeration_values()) {
4423 if (enumeration_values_ != NULL) enumeration_values_->::drizzled::message::Table_Field_EnumerationValues::Clear();
4425 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
4426 mutable_unknown_fields()->Clear();
4429 bool Table_Field::MergePartialFromCodedStream(
4430 ::google::protobuf::io::CodedInputStream* input) {
4431 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
4432 ::google::protobuf::uint32 tag;
4435 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
4437 if (!p.second)
goto handle_unusual;
4438 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4442 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4443 input, this->mutable_name()));
4444 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4445 this->name().data(), this->name().length(),
4446 ::google::protobuf::internal::WireFormat::PARSE,
4449 goto handle_unusual;
4451 if (input->ExpectTag(16))
goto parse_type;
4460 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4461 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4463 if (::drizzled::message::Table_Field_FieldType_IsValid(value)) {
4464 set_type(static_cast< ::drizzled::message::Table_Field_FieldType >(value));
4466 mutable_unknown_fields()->AddVarint(2, value);
4469 goto handle_unusual;
4471 if (input->ExpectTag(34))
goto parse_options;
4479 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4480 input, mutable_options()));
4482 goto handle_unusual;
4484 if (input->ExpectTag(42))
goto parse_constraints;
4492 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4493 input, mutable_constraints()));
4495 goto handle_unusual;
4497 if (input->ExpectTag(50))
goto parse_numeric_options;
4504 parse_numeric_options:
4505 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4506 input, mutable_numeric_options()));
4508 goto handle_unusual;
4510 if (input->ExpectTag(58))
goto parse_string_options;
4517 parse_string_options:
4518 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4519 input, mutable_string_options()));
4521 goto handle_unusual;
4523 if (input->ExpectTag(66))
goto parse_time_options;
4531 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4532 input, mutable_time_options()));
4534 goto handle_unusual;
4536 if (input->ExpectTag(130))
goto parse_comment;
4544 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4545 input, this->mutable_comment()));
4546 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4547 this->comment().data(), this->comment().length(),
4548 ::google::protobuf::internal::WireFormat::PARSE,
4551 goto handle_unusual;
4553 if (input->ExpectTag(138))
goto parse_enumeration_values;
4560 parse_enumeration_values:
4561 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4562 input, mutable_enumeration_values()));
4564 goto handle_unusual;
4566 if (input->ExpectAtEnd())
goto success;
4573 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4574 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4577 DO_(::google::protobuf::internal::WireFormat::SkipField(
4578 input, tag, mutable_unknown_fields()));
4592 void Table_Field::SerializeWithCachedSizes(
4593 ::google::protobuf::io::CodedOutputStream* output)
const {
4597 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4598 this->name().data(), this->name().length(),
4599 ::google::protobuf::internal::WireFormat::SERIALIZE,
4601 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4602 1, this->name(), output);
4607 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4608 2, this->type(), output);
4612 if (has_options()) {
4613 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4614 4, this->options(), output);
4618 if (has_constraints()) {
4619 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4620 5, this->constraints(), output);
4624 if (has_numeric_options()) {
4625 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4626 6, this->numeric_options(), output);
4630 if (has_string_options()) {
4631 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4632 7, this->string_options(), output);
4636 if (has_time_options()) {
4637 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4638 8, this->time_options(), output);
4642 if (has_comment()) {
4643 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4644 this->comment().data(), this->comment().length(),
4645 ::google::protobuf::internal::WireFormat::SERIALIZE,
4647 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4648 16, this->comment(), output);
4652 if (has_enumeration_values()) {
4653 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4654 17, this->enumeration_values(), output);
4657 if (!unknown_fields().empty()) {
4658 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4659 unknown_fields(), output);
4664 ::google::protobuf::uint8* Table_Field::SerializeWithCachedSizesToArray(
4665 ::google::protobuf::uint8* target)
const {
4669 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4670 this->name().data(), this->name().length(),
4671 ::google::protobuf::internal::WireFormat::SERIALIZE,
4674 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4675 1, this->name(), target);
4680 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4681 2, this->type(), target);
4685 if (has_options()) {
4686 target = ::google::protobuf::internal::WireFormatLite::
4687 WriteMessageNoVirtualToArray(
4688 4, this->options(), target);
4692 if (has_constraints()) {
4693 target = ::google::protobuf::internal::WireFormatLite::
4694 WriteMessageNoVirtualToArray(
4695 5, this->constraints(), target);
4699 if (has_numeric_options()) {
4700 target = ::google::protobuf::internal::WireFormatLite::
4701 WriteMessageNoVirtualToArray(
4702 6, this->numeric_options(), target);
4706 if (has_string_options()) {
4707 target = ::google::protobuf::internal::WireFormatLite::
4708 WriteMessageNoVirtualToArray(
4709 7, this->string_options(), target);
4713 if (has_time_options()) {
4714 target = ::google::protobuf::internal::WireFormatLite::
4715 WriteMessageNoVirtualToArray(
4716 8, this->time_options(), target);
4720 if (has_comment()) {
4721 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4722 this->comment().data(), this->comment().length(),
4723 ::google::protobuf::internal::WireFormat::SERIALIZE,
4726 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4727 16, this->comment(), target);
4731 if (has_enumeration_values()) {
4732 target = ::google::protobuf::internal::WireFormatLite::
4733 WriteMessageNoVirtualToArray(
4734 17, this->enumeration_values(), target);
4737 if (!unknown_fields().empty()) {
4738 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4739 unknown_fields(), target);
4745 int Table_Field::ByteSize()
const {
4748 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4752 ::google::protobuf::internal::WireFormatLite::StringSize(
4759 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
4763 if (has_options()) {
4765 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4770 if (has_constraints()) {
4772 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4773 this->constraints());
4777 if (has_numeric_options()) {
4779 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4780 this->numeric_options());
4784 if (has_string_options()) {
4786 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4787 this->string_options());
4791 if (has_time_options()) {
4793 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4794 this->time_options());
4798 if (has_comment()) {
4800 ::google::protobuf::internal::WireFormatLite::StringSize(
4805 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
4807 if (has_enumeration_values()) {
4809 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4810 this->enumeration_values());
4814 if (!unknown_fields().empty()) {
4816 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4819 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4820 _cached_size_ = total_size;
4821 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4825 void Table_Field::MergeFrom(const ::google::protobuf::Message& from) {
4826 GOOGLE_CHECK_NE(&from,
this);
4827 const Table_Field* source =
4828 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field*>(
4830 if (source == NULL) {
4831 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
4837 void Table_Field::MergeFrom(
const Table_Field& from) {
4838 GOOGLE_CHECK_NE(&from,
this);
4839 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4840 if (from.has_name()) {
4841 set_name(from.name());
4843 if (from.has_type()) {
4844 set_type(from.type());
4846 if (from.has_options()) {
4847 mutable_options()->::drizzled::message::Table_Field_FieldOptions::MergeFrom(from.options());
4849 if (from.has_constraints()) {
4850 mutable_constraints()->::drizzled::message::Table_Field_FieldConstraints::MergeFrom(from.constraints());
4852 if (from.has_numeric_options()) {
4853 mutable_numeric_options()->::drizzled::message::Table_Field_NumericFieldOptions::MergeFrom(from.numeric_options());
4855 if (from.has_string_options()) {
4856 mutable_string_options()->::drizzled::message::Table_Field_StringFieldOptions::MergeFrom(from.string_options());
4858 if (from.has_time_options()) {
4859 mutable_time_options()->::drizzled::message::Table_Field_TimeFieldOptions::MergeFrom(from.time_options());
4861 if (from.has_comment()) {
4862 set_comment(from.comment());
4865 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
4866 if (from.has_enumeration_values()) {
4867 mutable_enumeration_values()->::drizzled::message::Table_Field_EnumerationValues::MergeFrom(from.enumeration_values());
4870 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4873 void Table_Field::CopyFrom(const ::google::protobuf::Message& from) {
4874 if (&from ==
this)
return;
4879 void Table_Field::CopyFrom(
const Table_Field& from) {
4880 if (&from ==
this)
return;
4885 bool Table_Field::IsInitialized()
const {
4886 if ((_has_bits_[0] & 0x00000003) != 0x00000003)
return false;
4891 void Table_Field::Swap(Table_Field* other) {
4892 if (other !=
this) {
4893 std::swap(name_, other->name_);
4894 std::swap(type_, other->type_);
4895 std::swap(options_, other->options_);
4896 std::swap(constraints_, other->constraints_);
4897 std::swap(numeric_options_, other->numeric_options_);
4898 std::swap(string_options_, other->string_options_);
4899 std::swap(time_options_, other->time_options_);
4900 std::swap(comment_, other->comment_);
4901 std::swap(enumeration_values_, other->enumeration_values_);
4902 std::swap(_has_bits_[0], other->_has_bits_[0]);
4903 _unknown_fields_.Swap(&other->_unknown_fields_);
4904 std::swap(_cached_size_, other->_cached_size_);
4908 ::google::protobuf::Metadata Table_Field::GetMetadata()
const {
4909 protobuf_AssignDescriptorsOnce();
4910 ::google::protobuf::Metadata metadata;
4911 metadata.descriptor = Table_Field_descriptor_;
4912 metadata.reflection = Table_Field_reflection_;
4919 const ::google::protobuf::EnumDescriptor* Table_Index_IndexType_descriptor() {
4920 protobuf_AssignDescriptorsOnce();
4921 return Table_Index_IndexType_descriptor_;
4923 bool Table_Index_IndexType_IsValid(
int value) {
4937 const Table_Index_IndexType Table_Index::UNKNOWN_INDEX;
4938 const Table_Index_IndexType Table_Index::BTREE;
4939 const Table_Index_IndexType Table_Index::RTREE;
4940 const Table_Index_IndexType Table_Index::HASH;
4941 const Table_Index_IndexType Table_Index::FULLTEXT;
4942 const Table_Index_IndexType Table_Index::IndexType_MIN;
4943 const Table_Index_IndexType Table_Index::IndexType_MAX;
4944 const int Table_Index::IndexType_ARRAYSIZE;
4947 const int Table_Index_IndexPart::kFieldnrFieldNumber;
4948 const int Table_Index_IndexPart::kCompareLengthFieldNumber;
4949 const int Table_Index_IndexPart::kInReverseOrderFieldNumber;
4952 Table_Index_IndexPart::Table_Index_IndexPart()
4953 : ::
google::protobuf::Message() {
4958 void Table_Index_IndexPart::InitAsDefaultInstance() {
4961 Table_Index_IndexPart::Table_Index_IndexPart(
const Table_Index_IndexPart& from)
4962 : ::
google::protobuf::Message() {
4968 void Table_Index_IndexPart::SharedCtor() {
4971 compare_length_ = 0u;
4972 in_reverse_order_ =
false;
4973 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
4976 Table_Index_IndexPart::~Table_Index_IndexPart() {
4981 void Table_Index_IndexPart::SharedDtor() {
4982 if (
this != default_instance_) {
4986 void Table_Index_IndexPart::SetCachedSize(
int size)
const {
4987 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4988 _cached_size_ = size;
4989 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4991 const ::google::protobuf::Descriptor* Table_Index_IndexPart::descriptor() {
4992 protobuf_AssignDescriptorsOnce();
4993 return Table_Index_IndexPart_descriptor_;
4996 const Table_Index_IndexPart& Table_Index_IndexPart::default_instance() {
4997 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
4998 return *default_instance_;
5001 Table_Index_IndexPart* Table_Index_IndexPart::default_instance_ = NULL;
5003 Table_Index_IndexPart* Table_Index_IndexPart::New()
const {
5004 return new Table_Index_IndexPart;
5007 void Table_Index_IndexPart::Clear() {
5008 #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
5009 &reinterpret_cast<Table_Index_IndexPart*>(16)->f) - \
5010 reinterpret_cast<char*>(16))
5012 #define ZR_(first, last) do { \
5013 size_t f = OFFSET_OF_FIELD_(first); \
5014 size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
5015 ::memset(&first, 0, n); \
5018 ZR_(fieldnr_, in_reverse_order_);
5020 #undef OFFSET_OF_FIELD_
5023 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
5024 mutable_unknown_fields()->Clear();
5027 bool Table_Index_IndexPart::MergePartialFromCodedStream(
5028 ::google::protobuf::io::CodedInputStream* input) {
5029 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
5030 ::google::protobuf::uint32 tag;
5033 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
5035 if (!p.second)
goto handle_unusual;
5036 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5040 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5041 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5042 input, &fieldnr_)));
5045 goto handle_unusual;
5047 if (input->ExpectTag(16))
goto parse_compare_length;
5054 parse_compare_length:
5055 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5056 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5057 input, &compare_length_)));
5058 set_has_compare_length();
5060 goto handle_unusual;
5062 if (input->ExpectTag(24))
goto parse_in_reverse_order;
5069 parse_in_reverse_order:
5070 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5071 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5072 input, &in_reverse_order_)));
5073 set_has_in_reverse_order();
5075 goto handle_unusual;
5077 if (input->ExpectAtEnd())
goto success;
5084 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5085 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5088 DO_(::google::protobuf::internal::WireFormat::SkipField(
5089 input, tag, mutable_unknown_fields()));
5103 void Table_Index_IndexPart::SerializeWithCachedSizes(
5104 ::google::protobuf::io::CodedOutputStream* output)
const {
5107 if (has_fieldnr()) {
5108 ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->fieldnr(), output);
5112 if (has_compare_length()) {
5113 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->compare_length(), output);
5117 if (has_in_reverse_order()) {
5118 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->in_reverse_order(), output);
5121 if (!unknown_fields().empty()) {
5122 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5123 unknown_fields(), output);
5128 ::google::protobuf::uint8* Table_Index_IndexPart::SerializeWithCachedSizesToArray(
5129 ::google::protobuf::uint8* target)
const {
5132 if (has_fieldnr()) {
5133 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->fieldnr(), target);
5137 if (has_compare_length()) {
5138 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->compare_length(), target);
5142 if (has_in_reverse_order()) {
5143 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->in_reverse_order(), target);
5146 if (!unknown_fields().empty()) {
5147 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5148 unknown_fields(), target);
5154 int Table_Index_IndexPart::ByteSize()
const {
5157 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5159 if (has_fieldnr()) {
5161 ::google::protobuf::internal::WireFormatLite::UInt32Size(
5166 if (has_compare_length()) {
5168 ::google::protobuf::internal::WireFormatLite::UInt32Size(
5169 this->compare_length());
5173 if (has_in_reverse_order()) {
5174 total_size += 1 + 1;
5178 if (!unknown_fields().empty()) {
5180 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5183 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5184 _cached_size_ = total_size;
5185 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5189 void Table_Index_IndexPart::MergeFrom(const ::google::protobuf::Message& from) {
5190 GOOGLE_CHECK_NE(&from,
this);
5191 const Table_Index_IndexPart* source =
5192 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Index_IndexPart*>(
5194 if (source == NULL) {
5195 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
5201 void Table_Index_IndexPart::MergeFrom(
const Table_Index_IndexPart& from) {
5202 GOOGLE_CHECK_NE(&from,
this);
5203 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5204 if (from.has_fieldnr()) {
5205 set_fieldnr(from.fieldnr());
5207 if (from.has_compare_length()) {
5208 set_compare_length(from.compare_length());
5210 if (from.has_in_reverse_order()) {
5211 set_in_reverse_order(from.in_reverse_order());
5214 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5217 void Table_Index_IndexPart::CopyFrom(const ::google::protobuf::Message& from) {
5218 if (&from ==
this)
return;
5223 void Table_Index_IndexPart::CopyFrom(
const Table_Index_IndexPart& from) {
5224 if (&from ==
this)
return;
5229 bool Table_Index_IndexPart::IsInitialized()
const {
5230 if ((_has_bits_[0] & 0x00000001) != 0x00000001)
return false;
5235 void Table_Index_IndexPart::Swap(Table_Index_IndexPart* other) {
5236 if (other !=
this) {
5237 std::swap(fieldnr_, other->fieldnr_);
5238 std::swap(compare_length_, other->compare_length_);
5239 std::swap(in_reverse_order_, other->in_reverse_order_);
5240 std::swap(_has_bits_[0], other->_has_bits_[0]);
5241 _unknown_fields_.Swap(&other->_unknown_fields_);
5242 std::swap(_cached_size_, other->_cached_size_);
5246 ::google::protobuf::Metadata Table_Index_IndexPart::GetMetadata()
const {
5247 protobuf_AssignDescriptorsOnce();
5248 ::google::protobuf::Metadata metadata;
5249 metadata.descriptor = Table_Index_IndexPart_descriptor_;
5250 metadata.reflection = Table_Index_IndexPart_reflection_;
5258 const int Table_Index_Options::kPackKeyFieldNumber;
5259 const int Table_Index_Options::kBinaryPackKeyFieldNumber;
5260 const int Table_Index_Options::kVarLengthKeyFieldNumber;
5261 const int Table_Index_Options::kNullPartKeyFieldNumber;
5262 const int Table_Index_Options::kKeyBlockSizeFieldNumber;
5263 const int Table_Index_Options::kHasPartialSegmentsFieldNumber;
5264 const int Table_Index_Options::kAutoGeneratedKeyFieldNumber;
5267 Table_Index_Options::Table_Index_Options()
5268 : ::
google::protobuf::Message() {
5273 void Table_Index_Options::InitAsDefaultInstance() {
5276 Table_Index_Options::Table_Index_Options(
const Table_Index_Options& from)
5277 : ::
google::protobuf::Message() {
5283 void Table_Index_Options::SharedCtor() {
5286 binary_pack_key_ =
false;
5287 var_length_key_ =
false;
5288 null_part_key_ =
false;
5289 key_block_size_ = 0u;
5290 has_partial_segments_ =
false;
5291 auto_generated_key_ =
false;
5292 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
5295 Table_Index_Options::~Table_Index_Options() {
5300 void Table_Index_Options::SharedDtor() {
5301 if (
this != default_instance_) {
5305 void Table_Index_Options::SetCachedSize(
int size)
const {
5306 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5307 _cached_size_ = size;
5308 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5310 const ::google::protobuf::Descriptor* Table_Index_Options::descriptor() {
5311 protobuf_AssignDescriptorsOnce();
5312 return Table_Index_Options_descriptor_;
5315 const Table_Index_Options& Table_Index_Options::default_instance() {
5316 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
5317 return *default_instance_;
5320 Table_Index_Options* Table_Index_Options::default_instance_ = NULL;
5322 Table_Index_Options* Table_Index_Options::New()
const {
5323 return new Table_Index_Options;
5326 void Table_Index_Options::Clear() {
5327 #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
5328 &reinterpret_cast<Table_Index_Options*>(16)->f) - \
5329 reinterpret_cast<char*>(16))
5331 #define ZR_(first, last) do { \
5332 size_t f = OFFSET_OF_FIELD_(first); \
5333 size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
5334 ::memset(&first, 0, n); \
5337 if (_has_bits_[0 / 32] & 127) {
5338 ZR_(pack_key_, auto_generated_key_);
5341 #undef OFFSET_OF_FIELD_
5344 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
5345 mutable_unknown_fields()->Clear();
5348 bool Table_Index_Options::MergePartialFromCodedStream(
5349 ::google::protobuf::io::CodedInputStream* input) {
5350 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
5351 ::google::protobuf::uint32 tag;
5354 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
5356 if (!p.second)
goto handle_unusual;
5357 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5361 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5362 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5363 input, &pack_key_)));
5366 goto handle_unusual;
5368 if (input->ExpectTag(16))
goto parse_binary_pack_key;
5375 parse_binary_pack_key:
5376 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5377 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5378 input, &binary_pack_key_)));
5379 set_has_binary_pack_key();
5381 goto handle_unusual;
5383 if (input->ExpectTag(24))
goto parse_var_length_key;
5390 parse_var_length_key:
5391 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5392 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5393 input, &var_length_key_)));
5394 set_has_var_length_key();
5396 goto handle_unusual;
5398 if (input->ExpectTag(32))
goto parse_null_part_key;
5405 parse_null_part_key:
5406 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5407 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5408 input, &null_part_key_)));
5409 set_has_null_part_key();
5411 goto handle_unusual;
5413 if (input->ExpectTag(40))
goto parse_key_block_size;
5420 parse_key_block_size:
5421 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5422 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5423 input, &key_block_size_)));
5424 set_has_key_block_size();
5426 goto handle_unusual;
5428 if (input->ExpectTag(48))
goto parse_has_partial_segments;
5435 parse_has_partial_segments:
5436 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5437 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5438 input, &has_partial_segments_)));
5439 set_has_has_partial_segments();
5441 goto handle_unusual;
5443 if (input->ExpectTag(56))
goto parse_auto_generated_key;
5450 parse_auto_generated_key:
5451 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5452 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5453 input, &auto_generated_key_)));
5454 set_has_auto_generated_key();
5456 goto handle_unusual;
5458 if (input->ExpectAtEnd())
goto success;
5465 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5466 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5469 DO_(::google::protobuf::internal::WireFormat::SkipField(
5470 input, tag, mutable_unknown_fields()));
5484 void Table_Index_Options::SerializeWithCachedSizes(
5485 ::google::protobuf::io::CodedOutputStream* output)
const {
5488 if (has_pack_key()) {
5489 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->pack_key(), output);
5493 if (has_binary_pack_key()) {
5494 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->binary_pack_key(), output);
5498 if (has_var_length_key()) {
5499 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->var_length_key(), output);
5503 if (has_null_part_key()) {
5504 ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->null_part_key(), output);
5508 if (has_key_block_size()) {
5509 ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->key_block_size(), output);
5513 if (has_has_partial_segments()) {
5514 ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->has_partial_segments(), output);
5518 if (has_auto_generated_key()) {
5519 ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->auto_generated_key(), output);
5522 if (!unknown_fields().empty()) {
5523 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5524 unknown_fields(), output);
5529 ::google::protobuf::uint8* Table_Index_Options::SerializeWithCachedSizesToArray(
5530 ::google::protobuf::uint8* target)
const {
5533 if (has_pack_key()) {
5534 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->pack_key(), target);
5538 if (has_binary_pack_key()) {
5539 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->binary_pack_key(), target);
5543 if (has_var_length_key()) {
5544 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->var_length_key(), target);
5548 if (has_null_part_key()) {
5549 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->null_part_key(), target);
5553 if (has_key_block_size()) {
5554 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->key_block_size(), target);
5558 if (has_has_partial_segments()) {
5559 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->has_partial_segments(), target);
5563 if (has_auto_generated_key()) {
5564 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->auto_generated_key(), target);
5567 if (!unknown_fields().empty()) {
5568 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5569 unknown_fields(), target);
5575 int Table_Index_Options::ByteSize()
const {
5578 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5580 if (has_pack_key()) {
5581 total_size += 1 + 1;
5585 if (has_binary_pack_key()) {
5586 total_size += 1 + 1;
5590 if (has_var_length_key()) {
5591 total_size += 1 + 1;
5595 if (has_null_part_key()) {
5596 total_size += 1 + 1;
5600 if (has_key_block_size()) {
5602 ::google::protobuf::internal::WireFormatLite::UInt32Size(
5603 this->key_block_size());
5607 if (has_has_partial_segments()) {
5608 total_size += 1 + 1;
5612 if (has_auto_generated_key()) {
5613 total_size += 1 + 1;
5617 if (!unknown_fields().empty()) {
5619 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5622 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5623 _cached_size_ = total_size;
5624 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5628 void Table_Index_Options::MergeFrom(const ::google::protobuf::Message& from) {
5629 GOOGLE_CHECK_NE(&from,
this);
5630 const Table_Index_Options* source =
5631 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Index_Options*>(
5633 if (source == NULL) {
5634 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
5640 void Table_Index_Options::MergeFrom(
const Table_Index_Options& from) {
5641 GOOGLE_CHECK_NE(&from,
this);
5642 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5643 if (from.has_pack_key()) {
5644 set_pack_key(from.pack_key());
5646 if (from.has_binary_pack_key()) {
5647 set_binary_pack_key(from.binary_pack_key());
5649 if (from.has_var_length_key()) {
5650 set_var_length_key(from.var_length_key());
5652 if (from.has_null_part_key()) {
5653 set_null_part_key(from.null_part_key());
5655 if (from.has_key_block_size()) {
5656 set_key_block_size(from.key_block_size());
5658 if (from.has_has_partial_segments()) {
5659 set_has_partial_segments(from.has_partial_segments());
5661 if (from.has_auto_generated_key()) {
5662 set_auto_generated_key(from.auto_generated_key());
5665 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5668 void Table_Index_Options::CopyFrom(const ::google::protobuf::Message& from) {
5669 if (&from ==
this)
return;
5674 void Table_Index_Options::CopyFrom(
const Table_Index_Options& from) {
5675 if (&from ==
this)
return;
5680 bool Table_Index_Options::IsInitialized()
const {
5685 void Table_Index_Options::Swap(Table_Index_Options* other) {
5686 if (other !=
this) {
5687 std::swap(pack_key_, other->pack_key_);
5688 std::swap(binary_pack_key_, other->binary_pack_key_);
5689 std::swap(var_length_key_, other->var_length_key_);
5690 std::swap(null_part_key_, other->null_part_key_);
5691 std::swap(key_block_size_, other->key_block_size_);
5692 std::swap(has_partial_segments_, other->has_partial_segments_);
5693 std::swap(auto_generated_key_, other->auto_generated_key_);
5694 std::swap(_has_bits_[0], other->_has_bits_[0]);
5695 _unknown_fields_.Swap(&other->_unknown_fields_);
5696 std::swap(_cached_size_, other->_cached_size_);
5700 ::google::protobuf::Metadata Table_Index_Options::GetMetadata()
const {
5701 protobuf_AssignDescriptorsOnce();
5702 ::google::protobuf::Metadata metadata;
5703 metadata.descriptor = Table_Index_Options_descriptor_;
5704 metadata.reflection = Table_Index_Options_reflection_;
5712 const int Table_Index::kNameFieldNumber;
5713 const int Table_Index::kIsPrimaryFieldNumber;
5714 const int Table_Index::kIsUniqueFieldNumber;
5715 const int Table_Index::kTypeFieldNumber;
5716 const int Table_Index::kKeyLengthFieldNumber;
5717 const int Table_Index::kIndexPartFieldNumber;
5718 const int Table_Index::kOptionsFieldNumber;
5719 const int Table_Index::kCommentFieldNumber;
5722 Table_Index::Table_Index()
5723 : ::
google::protobuf::Message() {
5728 void Table_Index::InitAsDefaultInstance() {
5732 Table_Index::Table_Index(
const Table_Index& from)
5733 : ::
google::protobuf::Message() {
5739 void Table_Index::SharedCtor() {
5740 ::google::protobuf::internal::GetEmptyString();
5742 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5743 is_primary_ =
false;
5748 comment_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5749 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
5752 Table_Index::~Table_Index() {
5757 void Table_Index::SharedDtor() {
5758 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
5761 if (comment_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
5764 if (
this != default_instance_) {
5769 void Table_Index::SetCachedSize(
int size)
const {
5770 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5771 _cached_size_ = size;
5772 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5774 const ::google::protobuf::Descriptor* Table_Index::descriptor() {
5775 protobuf_AssignDescriptorsOnce();
5776 return Table_Index_descriptor_;
5779 const Table_Index& Table_Index::default_instance() {
5780 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
5781 return *default_instance_;
5784 Table_Index* Table_Index::default_instance_ = NULL;
5786 Table_Index* Table_Index::New()
const {
5787 return new Table_Index;
5790 void Table_Index::Clear() {
5791 #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
5792 &reinterpret_cast<Table_Index*>(16)->f) - \
5793 reinterpret_cast<char*>(16))
5795 #define ZR_(first, last) do { \
5796 size_t f = OFFSET_OF_FIELD_(first); \
5797 size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
5798 ::memset(&first, 0, n); \
5801 if (_has_bits_[0 / 32] & 223) {
5802 ZR_(is_primary_, type_);
5804 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
5809 if (has_options()) {
5810 if (options_ != NULL) options_->::drizzled::message::Table_Index_Options::Clear();
5812 if (has_comment()) {
5813 if (comment_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
5819 #undef OFFSET_OF_FIELD_
5822 index_part_.Clear();
5823 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
5824 mutable_unknown_fields()->Clear();
5827 bool Table_Index::MergePartialFromCodedStream(
5828 ::google::protobuf::io::CodedInputStream* input) {
5829 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
5830 ::google::protobuf::uint32 tag;
5833 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
5835 if (!p.second)
goto handle_unusual;
5836 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5840 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5841 input, this->mutable_name()));
5842 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5843 this->name().data(), this->name().length(),
5844 ::google::protobuf::internal::WireFormat::PARSE,
5847 goto handle_unusual;
5849 if (input->ExpectTag(16))
goto parse_is_primary;
5857 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5858 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5859 input, &is_primary_)));
5860 set_has_is_primary();
5862 goto handle_unusual;
5864 if (input->ExpectTag(24))
goto parse_is_unique;
5872 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5873 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5874 input, &is_unique_)));
5875 set_has_is_unique();
5877 goto handle_unusual;
5879 if (input->ExpectTag(32))
goto parse_type;
5888 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5889 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5891 if (::drizzled::message::Table_Index_IndexType_IsValid(value)) {
5892 set_type(static_cast< ::drizzled::message::Table_Index_IndexType >(value));
5894 mutable_unknown_fields()->AddVarint(4, value);
5897 goto handle_unusual;
5899 if (input->ExpectTag(40))
goto parse_key_length;
5907 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5908 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5909 input, &key_length_)));
5910 set_has_key_length();
5912 goto handle_unusual;
5914 if (input->ExpectTag(50))
goto parse_index_part;
5922 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5923 input, add_index_part()));
5925 goto handle_unusual;
5927 if (input->ExpectTag(50))
goto parse_index_part;
5928 if (input->ExpectTag(58))
goto parse_options;
5936 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5937 input, mutable_options()));
5939 goto handle_unusual;
5941 if (input->ExpectTag(66))
goto parse_comment;
5949 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5950 input, this->mutable_comment()));
5951 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5952 this->comment().data(), this->comment().length(),
5953 ::google::protobuf::internal::WireFormat::PARSE,
5956 goto handle_unusual;
5958 if (input->ExpectAtEnd())
goto success;
5965 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5966 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5969 DO_(::google::protobuf::internal::WireFormat::SkipField(
5970 input, tag, mutable_unknown_fields()));
5984 void Table_Index::SerializeWithCachedSizes(
5985 ::google::protobuf::io::CodedOutputStream* output)
const {
5989 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5990 this->name().data(), this->name().length(),
5991 ::google::protobuf::internal::WireFormat::SERIALIZE,
5993 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5994 1, this->name(), output);
5998 if (has_is_primary()) {
5999 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_primary(), output);
6003 if (has_is_unique()) {
6004 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->is_unique(), output);
6009 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6010 4, this->type(), output);
6014 if (has_key_length()) {
6015 ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->key_length(), output);
6019 for (
int i = 0; i < this->index_part_size(); i++) {
6020 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6021 6, this->index_part(i), output);
6025 if (has_options()) {
6026 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6027 7, this->options(), output);
6031 if (has_comment()) {
6032 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6033 this->comment().data(), this->comment().length(),
6034 ::google::protobuf::internal::WireFormat::SERIALIZE,
6036 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6037 8, this->comment(), output);
6040 if (!unknown_fields().empty()) {
6041 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6042 unknown_fields(), output);
6047 ::google::protobuf::uint8* Table_Index::SerializeWithCachedSizesToArray(
6048 ::google::protobuf::uint8* target)
const {
6052 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6053 this->name().data(), this->name().length(),
6054 ::google::protobuf::internal::WireFormat::SERIALIZE,
6057 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6058 1, this->name(), target);
6062 if (has_is_primary()) {
6063 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_primary(), target);
6067 if (has_is_unique()) {
6068 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->is_unique(), target);
6073 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6074 4, this->type(), target);
6078 if (has_key_length()) {
6079 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->key_length(), target);
6083 for (
int i = 0; i < this->index_part_size(); i++) {
6084 target = ::google::protobuf::internal::WireFormatLite::
6085 WriteMessageNoVirtualToArray(
6086 6, this->index_part(i), target);
6090 if (has_options()) {
6091 target = ::google::protobuf::internal::WireFormatLite::
6092 WriteMessageNoVirtualToArray(
6093 7, this->options(), target);
6097 if (has_comment()) {
6098 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6099 this->comment().data(), this->comment().length(),
6100 ::google::protobuf::internal::WireFormat::SERIALIZE,
6103 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6104 8, this->comment(), target);
6107 if (!unknown_fields().empty()) {
6108 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6109 unknown_fields(), target);
6115 int Table_Index::ByteSize()
const {
6118 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6122 ::google::protobuf::internal::WireFormatLite::StringSize(
6127 if (has_is_primary()) {
6128 total_size += 1 + 1;
6132 if (has_is_unique()) {
6133 total_size += 1 + 1;
6139 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
6143 if (has_key_length()) {
6145 ::google::protobuf::internal::WireFormatLite::UInt32Size(
6146 this->key_length());
6150 if (has_options()) {
6152 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6157 if (has_comment()) {
6159 ::google::protobuf::internal::WireFormatLite::StringSize(
6165 total_size += 1 * this->index_part_size();
6166 for (
int i = 0; i < this->index_part_size(); i++) {
6168 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6169 this->index_part(i));
6172 if (!unknown_fields().empty()) {
6174 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6177 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6178 _cached_size_ = total_size;
6179 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6183 void Table_Index::MergeFrom(const ::google::protobuf::Message& from) {
6184 GOOGLE_CHECK_NE(&from,
this);
6185 const Table_Index* source =
6186 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Index*>(
6188 if (source == NULL) {
6189 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
6195 void Table_Index::MergeFrom(
const Table_Index& from) {
6196 GOOGLE_CHECK_NE(&from,
this);
6197 index_part_.MergeFrom(from.index_part_);
6198 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6199 if (from.has_name()) {
6200 set_name(from.name());
6202 if (from.has_is_primary()) {
6203 set_is_primary(from.is_primary());
6205 if (from.has_is_unique()) {
6206 set_is_unique(from.is_unique());
6208 if (from.has_type()) {
6209 set_type(from.type());
6211 if (from.has_key_length()) {
6212 set_key_length(from.key_length());
6214 if (from.has_options()) {
6215 mutable_options()->::drizzled::message::Table_Index_Options::MergeFrom(from.options());
6217 if (from.has_comment()) {
6218 set_comment(from.comment());
6221 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6224 void Table_Index::CopyFrom(const ::google::protobuf::Message& from) {
6225 if (&from ==
this)
return;
6230 void Table_Index::CopyFrom(
const Table_Index& from) {
6231 if (&from ==
this)
return;
6236 bool Table_Index::IsInitialized()
const {
6237 if ((_has_bits_[0] & 0x0000001f) != 0x0000001f)
return false;
6239 if (!::google::protobuf::internal::AllAreInitialized(this->index_part()))
return false;
6243 void Table_Index::Swap(Table_Index* other) {
6244 if (other !=
this) {
6245 std::swap(name_, other->name_);
6246 std::swap(is_primary_, other->is_primary_);
6247 std::swap(is_unique_, other->is_unique_);
6248 std::swap(type_, other->type_);
6249 std::swap(key_length_, other->key_length_);
6250 index_part_.Swap(&other->index_part_);
6251 std::swap(options_, other->options_);
6252 std::swap(comment_, other->comment_);
6253 std::swap(_has_bits_[0], other->_has_bits_[0]);
6254 _unknown_fields_.Swap(&other->_unknown_fields_);
6255 std::swap(_cached_size_, other->_cached_size_);
6259 ::google::protobuf::Metadata Table_Index::GetMetadata()
const {
6260 protobuf_AssignDescriptorsOnce();
6261 ::google::protobuf::Metadata metadata;
6262 metadata.descriptor = Table_Index_descriptor_;
6263 metadata.reflection = Table_Index_reflection_;
6271 const int Table::kNameFieldNumber;
6272 const int Table::kSchemaFieldNumber;
6273 const int Table::kTypeFieldNumber;
6274 const int Table::kEngineFieldNumber;
6275 const int Table::kFieldFieldNumber;
6276 const int Table::kIndexesFieldNumber;
6277 const int Table::kFkConstraintFieldNumber;
6278 const int Table::kOptionsFieldNumber;
6279 const int Table::kCreationTimestampFieldNumber;
6280 const int Table::kUpdateTimestampFieldNumber;
6281 const int Table::kCatalogFieldNumber;
6282 const int Table::kUuidFieldNumber;
6283 const int Table::kVersionFieldNumber;
6284 const int Table::kReplicationOptionsFieldNumber;
6285 const int Table::kAccessFieldNumber;
6289 : ::
google::protobuf::Message() {
6294 void Table::InitAsDefaultInstance() {
6301 Table::Table(
const Table& from)
6302 : ::
google::protobuf::Message() {
6308 void Table::SharedCtor() {
6309 ::google::protobuf::internal::GetEmptyString();
6311 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6312 schema_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6316 creation_timestamp_ = GOOGLE_ULONGLONG(0);
6317 update_timestamp_ = GOOGLE_ULONGLONG(0);
6318 catalog_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6319 uuid_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6320 version_ = GOOGLE_ULONGLONG(0);
6321 replication_options_ = NULL;
6323 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
6331 void Table::SharedDtor() {
6332 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6335 if (schema_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6338 if (catalog_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6341 if (uuid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6344 if (
this != default_instance_) {
6347 delete replication_options_;
6352 void Table::SetCachedSize(
int size)
const {
6353 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6354 _cached_size_ = size;
6355 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6357 const ::google::protobuf::Descriptor* Table::descriptor() {
6358 protobuf_AssignDescriptorsOnce();
6359 return Table_descriptor_;
6362 const Table& Table::default_instance() {
6363 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
6364 return *default_instance_;
6367 Table* Table::default_instance_ = NULL;
6369 Table* Table::New()
const {
6373 void Table::Clear() {
6374 #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
6375 &reinterpret_cast<Table*>(16)->f) - \
6376 reinterpret_cast<char*>(16))
6378 #define ZR_(first, last) do { \
6379 size_t f = OFFSET_OF_FIELD_(first); \
6380 size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
6381 ::memset(&first, 0, n); \
6384 if (_has_bits_[0 / 32] & 143) {
6386 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6391 if (schema_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6397 if (engine_ != NULL) engine_->::drizzled::message::Engine::Clear();
6399 if (has_options()) {
6400 if (options_ != NULL) options_->::drizzled::message::Table_TableOptions::Clear();
6403 if (_has_bits_[8 / 32] & 32512) {
6404 ZR_(creation_timestamp_, update_timestamp_);
6405 if (has_catalog()) {
6406 if (catalog_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6411 if (uuid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
6415 version_ = GOOGLE_ULONGLONG(0);
6416 if (has_replication_options()) {
6417 if (replication_options_ != NULL) replication_options_->::drizzled::message::ReplicationOptions::Clear();
6420 if (access_ != NULL) access_->::drizzled::message::Access::Clear();
6424 #undef OFFSET_OF_FIELD_
6429 fk_constraint_.Clear();
6430 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
6431 mutable_unknown_fields()->Clear();
6434 bool Table::MergePartialFromCodedStream(
6435 ::google::protobuf::io::CodedInputStream* input) {
6436 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
6437 ::google::protobuf::uint32 tag;
6440 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
6442 if (!p.second)
goto handle_unusual;
6443 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6447 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6448 input, this->mutable_name()));
6449 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6450 this->name().data(), this->name().length(),
6451 ::google::protobuf::internal::WireFormat::PARSE,
6454 goto handle_unusual;
6456 if (input->ExpectTag(18))
goto parse_engine;
6464 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6465 input, mutable_engine()));
6467 goto handle_unusual;
6469 if (input->ExpectTag(26))
goto parse_field;
6477 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6478 input, add_field()));
6480 goto handle_unusual;
6482 if (input->ExpectTag(26))
goto parse_field;
6483 if (input->ExpectTag(34))
goto parse_indexes;
6491 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6492 input, add_indexes()));
6494 goto handle_unusual;
6496 if (input->ExpectTag(34))
goto parse_indexes;
6497 if (input->ExpectTag(40))
goto parse_type;
6506 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6507 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6509 if (::drizzled::message::Table_TableType_IsValid(value)) {
6510 set_type(static_cast< ::drizzled::message::Table_TableType >(value));
6512 mutable_unknown_fields()->AddVarint(5, value);
6515 goto handle_unusual;
6517 if (input->ExpectTag(50))
goto parse_schema;
6525 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6526 input, this->mutable_schema()));
6527 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6528 this->schema().data(), this->schema().length(),
6529 ::google::protobuf::internal::WireFormat::PARSE,
6532 goto handle_unusual;
6534 if (input->ExpectTag(66))
goto parse_fk_constraint;
6541 parse_fk_constraint:
6542 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6543 input, add_fk_constraint()));
6545 goto handle_unusual;
6547 if (input->ExpectTag(66))
goto parse_fk_constraint;
6548 if (input->ExpectTag(74))
goto parse_options;
6556 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6557 input, mutable_options()));
6559 goto handle_unusual;
6561 if (input->ExpectTag(88))
goto parse_creation_timestamp;
6568 parse_creation_timestamp:
6569 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6570 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
6571 input, &creation_timestamp_)));
6572 set_has_creation_timestamp();
6574 goto handle_unusual;
6576 if (input->ExpectTag(96))
goto parse_update_timestamp;
6583 parse_update_timestamp:
6584 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6585 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
6586 input, &update_timestamp_)));
6587 set_has_update_timestamp();
6589 goto handle_unusual;
6591 if (input->ExpectTag(106))
goto parse_catalog;
6599 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6600 input, this->mutable_catalog()));
6601 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6602 this->catalog().data(), this->catalog().length(),
6603 ::google::protobuf::internal::WireFormat::PARSE,
6606 goto handle_unusual;
6608 if (input->ExpectTag(114))
goto parse_uuid;
6616 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6617 input, this->mutable_uuid()));
6618 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6619 this->uuid().data(), this->uuid().length(),
6620 ::google::protobuf::internal::WireFormat::PARSE,
6623 goto handle_unusual;
6625 if (input->ExpectTag(120))
goto parse_version;
6633 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6634 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
6635 input, &version_)));
6638 goto handle_unusual;
6640 if (input->ExpectTag(130))
goto parse_replication_options;
6647 parse_replication_options:
6648 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6649 input, mutable_replication_options()));
6651 goto handle_unusual;
6653 if (input->ExpectTag(138))
goto parse_access;
6661 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6662 input, mutable_access()));
6664 goto handle_unusual;
6666 if (input->ExpectAtEnd())
goto success;
6673 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6674 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6677 DO_(::google::protobuf::internal::WireFormat::SkipField(
6678 input, tag, mutable_unknown_fields()));
6692 void Table::SerializeWithCachedSizes(
6693 ::google::protobuf::io::CodedOutputStream* output)
const {
6697 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6698 this->name().data(), this->name().length(),
6699 ::google::protobuf::internal::WireFormat::SERIALIZE,
6701 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6702 1, this->name(), output);
6707 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6708 2, this->engine(), output);
6712 for (
int i = 0; i < this->field_size(); i++) {
6713 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6714 3, this->field(i), output);
6718 for (
int i = 0; i < this->indexes_size(); i++) {
6719 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6720 4, this->indexes(i), output);
6725 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6726 5, this->type(), output);
6731 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6732 this->schema().data(), this->schema().length(),
6733 ::google::protobuf::internal::WireFormat::SERIALIZE,
6735 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6736 6, this->schema(), output);
6740 for (
int i = 0; i < this->fk_constraint_size(); i++) {
6741 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6742 8, this->fk_constraint(i), output);
6746 if (has_options()) {
6747 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6748 9, this->options(), output);
6752 if (has_creation_timestamp()) {
6753 ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->creation_timestamp(), output);
6757 if (has_update_timestamp()) {
6758 ::google::protobuf::internal::WireFormatLite::WriteUInt64(12, this->update_timestamp(), output);
6762 if (has_catalog()) {
6763 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6764 this->catalog().data(), this->catalog().length(),
6765 ::google::protobuf::internal::WireFormat::SERIALIZE,
6767 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6768 13, this->catalog(), output);
6773 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6774 this->uuid().data(), this->uuid().length(),
6775 ::google::protobuf::internal::WireFormat::SERIALIZE,
6777 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6778 14, this->uuid(), output);
6782 if (has_version()) {
6783 ::google::protobuf::internal::WireFormatLite::WriteUInt64(15, this->version(), output);
6787 if (has_replication_options()) {
6788 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6789 16, this->replication_options(), output);
6794 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6795 17, this->access(), output);
6798 if (!unknown_fields().empty()) {
6799 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6800 unknown_fields(), output);
6805 ::google::protobuf::uint8* Table::SerializeWithCachedSizesToArray(
6806 ::google::protobuf::uint8* target)
const {
6810 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6811 this->name().data(), this->name().length(),
6812 ::google::protobuf::internal::WireFormat::SERIALIZE,
6815 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6816 1, this->name(), target);
6821 target = ::google::protobuf::internal::WireFormatLite::
6822 WriteMessageNoVirtualToArray(
6823 2, this->engine(), target);
6827 for (
int i = 0; i < this->field_size(); i++) {
6828 target = ::google::protobuf::internal::WireFormatLite::
6829 WriteMessageNoVirtualToArray(
6830 3, this->field(i), target);
6834 for (
int i = 0; i < this->indexes_size(); i++) {
6835 target = ::google::protobuf::internal::WireFormatLite::
6836 WriteMessageNoVirtualToArray(
6837 4, this->indexes(i), target);
6842 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6843 5, this->type(), target);
6848 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6849 this->schema().data(), this->schema().length(),
6850 ::google::protobuf::internal::WireFormat::SERIALIZE,
6853 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6854 6, this->schema(), target);
6858 for (
int i = 0; i < this->fk_constraint_size(); i++) {
6859 target = ::google::protobuf::internal::WireFormatLite::
6860 WriteMessageNoVirtualToArray(
6861 8, this->fk_constraint(i), target);
6865 if (has_options()) {
6866 target = ::google::protobuf::internal::WireFormatLite::
6867 WriteMessageNoVirtualToArray(
6868 9, this->options(), target);
6872 if (has_creation_timestamp()) {
6873 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->creation_timestamp(), target);
6877 if (has_update_timestamp()) {
6878 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(12, this->update_timestamp(), target);
6882 if (has_catalog()) {
6883 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6884 this->catalog().data(), this->catalog().length(),
6885 ::google::protobuf::internal::WireFormat::SERIALIZE,
6888 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6889 13, this->catalog(), target);
6894 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6895 this->uuid().data(), this->uuid().length(),
6896 ::google::protobuf::internal::WireFormat::SERIALIZE,
6899 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6900 14, this->uuid(), target);
6904 if (has_version()) {
6905 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(15, this->version(), target);
6909 if (has_replication_options()) {
6910 target = ::google::protobuf::internal::WireFormatLite::
6911 WriteMessageNoVirtualToArray(
6912 16, this->replication_options(), target);
6917 target = ::google::protobuf::internal::WireFormatLite::
6918 WriteMessageNoVirtualToArray(
6919 17, this->access(), target);
6922 if (!unknown_fields().empty()) {
6923 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6924 unknown_fields(), target);
6930 int Table::ByteSize()
const {
6933 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6937 ::google::protobuf::internal::WireFormatLite::StringSize(
6944 ::google::protobuf::internal::WireFormatLite::StringSize(
6951 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
6957 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6962 if (has_options()) {
6964 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6969 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
6971 if (has_creation_timestamp()) {
6973 ::google::protobuf::internal::WireFormatLite::UInt64Size(
6974 this->creation_timestamp());
6978 if (has_update_timestamp()) {
6980 ::google::protobuf::internal::WireFormatLite::UInt64Size(
6981 this->update_timestamp());
6985 if (has_catalog()) {
6987 ::google::protobuf::internal::WireFormatLite::StringSize(
6994 ::google::protobuf::internal::WireFormatLite::StringSize(
6999 if (has_version()) {
7001 ::google::protobuf::internal::WireFormatLite::UInt64Size(
7006 if (has_replication_options()) {
7008 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7009 this->replication_options());
7015 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7021 total_size += 1 * this->field_size();
7022 for (
int i = 0; i < this->field_size(); i++) {
7024 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7029 total_size += 1 * this->indexes_size();
7030 for (
int i = 0; i < this->indexes_size(); i++) {
7032 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7037 total_size += 1 * this->fk_constraint_size();
7038 for (
int i = 0; i < this->fk_constraint_size(); i++) {
7040 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7041 this->fk_constraint(i));
7044 if (!unknown_fields().empty()) {
7046 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7049 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7050 _cached_size_ = total_size;
7051 GOOGLE_SAFE_CONCURRENT_WRITES_END();
7055 void Table::MergeFrom(const ::google::protobuf::Message& from) {
7056 GOOGLE_CHECK_NE(&from,
this);
7057 const Table* source =
7058 ::google::protobuf::internal::dynamic_cast_if_available<const Table*>(
7060 if (source == NULL) {
7061 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
7067 void Table::MergeFrom(
const Table& from) {
7068 GOOGLE_CHECK_NE(&from,
this);
7069 field_.MergeFrom(from.field_);
7070 indexes_.MergeFrom(from.indexes_);
7071 fk_constraint_.MergeFrom(from.fk_constraint_);
7072 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
7073 if (from.has_name()) {
7074 set_name(from.name());
7076 if (from.has_schema()) {
7077 set_schema(from.schema());
7079 if (from.has_type()) {
7080 set_type(from.type());
7082 if (from.has_engine()) {
7083 mutable_engine()->::drizzled::message::Engine::MergeFrom(from.engine());
7085 if (from.has_options()) {
7086 mutable_options()->::drizzled::message::Table_TableOptions::MergeFrom(from.options());
7089 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
7090 if (from.has_creation_timestamp()) {
7091 set_creation_timestamp(from.creation_timestamp());
7093 if (from.has_update_timestamp()) {
7094 set_update_timestamp(from.update_timestamp());
7096 if (from.has_catalog()) {
7097 set_catalog(from.catalog());
7099 if (from.has_uuid()) {
7100 set_uuid(from.uuid());
7102 if (from.has_version()) {
7103 set_version(from.version());
7105 if (from.has_replication_options()) {
7106 mutable_replication_options()->::drizzled::message::ReplicationOptions::MergeFrom(from.replication_options());
7108 if (from.has_access()) {
7109 mutable_access()->::drizzled::message::Access::MergeFrom(from.access());
7112 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
7115 void Table::CopyFrom(const ::google::protobuf::Message& from) {
7116 if (&from ==
this)
return;
7121 void Table::CopyFrom(
const Table& from) {
7122 if (&from ==
this)
return;
7127 bool Table::IsInitialized()
const {
7128 if ((_has_bits_[0] & 0x0000030f) != 0x0000030f)
return false;
7131 if (!this->engine().IsInitialized())
return false;
7133 if (!::google::protobuf::internal::AllAreInitialized(this->field()))
return false;
7134 if (!::google::protobuf::internal::AllAreInitialized(this->indexes()))
return false;
7135 if (!::google::protobuf::internal::AllAreInitialized(this->fk_constraint()))
return false;
7139 void Table::Swap(Table* other) {
7140 if (other !=
this) {
7141 std::swap(name_, other->name_);
7142 std::swap(schema_, other->schema_);
7143 std::swap(type_, other->type_);
7144 std::swap(engine_, other->engine_);
7145 field_.Swap(&other->field_);
7146 indexes_.Swap(&other->indexes_);
7147 fk_constraint_.Swap(&other->fk_constraint_);
7148 std::swap(options_, other->options_);
7149 std::swap(creation_timestamp_, other->creation_timestamp_);
7150 std::swap(update_timestamp_, other->update_timestamp_);
7151 std::swap(catalog_, other->catalog_);
7152 std::swap(uuid_, other->uuid_);
7153 std::swap(version_, other->version_);
7154 std::swap(replication_options_, other->replication_options_);
7155 std::swap(access_, other->access_);
7156 std::swap(_has_bits_[0], other->_has_bits_[0]);
7157 _unknown_fields_.Swap(&other->_unknown_fields_);
7158 std::swap(_cached_size_, other->_cached_size_);
7162 ::google::protobuf::Metadata Table::GetMetadata()
const {
7163 protobuf_AssignDescriptorsOnce();
7164 ::google::protobuf::Metadata metadata;
7165 metadata.descriptor = Table_descriptor_;
7166 metadata.reflection = Table_reflection_;
7174 const int AddedFields::kAddedFieldFieldNumber;
7177 AddedFields::AddedFields()
7178 : ::
google::protobuf::Message() {
7183 void AddedFields::InitAsDefaultInstance() {
7186 AddedFields::AddedFields(
const AddedFields& from)
7187 : ::
google::protobuf::Message() {
7193 void AddedFields::SharedCtor() {
7195 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
7198 AddedFields::~AddedFields() {
7203 void AddedFields::SharedDtor() {
7204 if (
this != default_instance_) {
7208 void AddedFields::SetCachedSize(
int size)
const {
7209 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7210 _cached_size_ = size;
7211 GOOGLE_SAFE_CONCURRENT_WRITES_END();
7213 const ::google::protobuf::Descriptor* AddedFields::descriptor() {
7214 protobuf_AssignDescriptorsOnce();
7215 return AddedFields_descriptor_;
7218 const AddedFields& AddedFields::default_instance() {
7219 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
7220 return *default_instance_;
7223 AddedFields* AddedFields::default_instance_ = NULL;
7225 AddedFields* AddedFields::New()
const {
7226 return new AddedFields;
7229 void AddedFields::Clear() {
7230 added_field_.Clear();
7231 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
7232 mutable_unknown_fields()->Clear();
7235 bool AddedFields::MergePartialFromCodedStream(
7236 ::google::protobuf::io::CodedInputStream* input) {
7237 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
7238 ::google::protobuf::uint32 tag;
7241 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
7243 if (!p.second)
goto handle_unusual;
7244 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7249 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7250 input, add_added_field()));
7252 goto handle_unusual;
7254 if (input->ExpectTag(10))
goto parse_added_field;
7255 if (input->ExpectAtEnd())
goto success;
7262 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
7263 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
7266 DO_(::google::protobuf::internal::WireFormat::SkipField(
7267 input, tag, mutable_unknown_fields()));
7281 void AddedFields::SerializeWithCachedSizes(
7282 ::google::protobuf::io::CodedOutputStream* output)
const {
7285 for (
int i = 0; i < this->added_field_size(); i++) {
7286 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7287 1, this->added_field(i), output);
7290 if (!unknown_fields().empty()) {
7291 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7292 unknown_fields(), output);
7297 ::google::protobuf::uint8* AddedFields::SerializeWithCachedSizesToArray(
7298 ::google::protobuf::uint8* target)
const {
7301 for (
int i = 0; i < this->added_field_size(); i++) {
7302 target = ::google::protobuf::internal::WireFormatLite::
7303 WriteMessageNoVirtualToArray(
7304 1, this->added_field(i), target);
7307 if (!unknown_fields().empty()) {
7308 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7309 unknown_fields(), target);
7315 int AddedFields::ByteSize()
const {
7319 total_size += 1 * this->added_field_size();
7320 for (
int i = 0; i < this->added_field_size(); i++) {
7322 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7323 this->added_field(i));
7326 if (!unknown_fields().empty()) {
7328 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7331 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7332 _cached_size_ = total_size;
7333 GOOGLE_SAFE_CONCURRENT_WRITES_END();
7337 void AddedFields::MergeFrom(const ::google::protobuf::Message& from) {
7338 GOOGLE_CHECK_NE(&from,
this);
7339 const AddedFields* source =
7340 ::google::protobuf::internal::dynamic_cast_if_available<const AddedFields*>(
7342 if (source == NULL) {
7343 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
7349 void AddedFields::MergeFrom(
const AddedFields& from) {
7350 GOOGLE_CHECK_NE(&from,
this);
7351 added_field_.MergeFrom(from.added_field_);
7352 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
7355 void AddedFields::CopyFrom(const ::google::protobuf::Message& from) {
7356 if (&from ==
this)
return;
7361 void AddedFields::CopyFrom(
const AddedFields& from) {
7362 if (&from ==
this)
return;
7367 bool AddedFields::IsInitialized()
const {
7369 if (!::google::protobuf::internal::AllAreInitialized(this->added_field()))
return false;
7373 void AddedFields::Swap(AddedFields* other) {
7374 if (other !=
this) {
7375 added_field_.Swap(&other->added_field_);
7376 std::swap(_has_bits_[0], other->_has_bits_[0]);
7377 _unknown_fields_.Swap(&other->_unknown_fields_);
7378 std::swap(_cached_size_, other->_cached_size_);
7382 ::google::protobuf::Metadata AddedFields::GetMetadata()
const {
7383 protobuf_AssignDescriptorsOnce();
7384 ::google::protobuf::Metadata metadata;
7385 metadata.descriptor = AddedFields_descriptor_;
7386 metadata.reflection = AddedFields_reflection_;
TODO: Rename this file - func.h is stupid.