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() {
642 void Table_TableOptions::InitAsDefaultInstance() {
645 Table_TableOptions::Table_TableOptions(
const Table_TableOptions& from)
646 : ::google::protobuf::Message() {
651 void Table_TableOptions::SharedCtor() {
653 has_user_set_auto_increment_value_ =
false;
654 collation_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
656 data_file_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
657 index_file_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
658 max_rows_ = GOOGLE_ULONGLONG(0);
659 min_rows_ = GOOGLE_ULONGLONG(0);
660 auto_increment_value_ = GOOGLE_ULONGLONG(0);
661 avg_row_length_ = 0u;
663 comment_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
664 pack_record_ =
false;
666 page_checksum_ =
false;
667 delay_key_write_ =
false;
669 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
672 Table_TableOptions::~Table_TableOptions() {
676 void Table_TableOptions::SharedDtor() {
677 if (collation_ != &::google::protobuf::internal::kEmptyString) {
680 if (data_file_name_ != &::google::protobuf::internal::kEmptyString) {
681 delete data_file_name_;
683 if (index_file_name_ != &::google::protobuf::internal::kEmptyString) {
684 delete index_file_name_;
686 if (comment_ != &::google::protobuf::internal::kEmptyString) {
689 if (
this != default_instance_) {
693 void Table_TableOptions::SetCachedSize(
int size)
const {
694 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
695 _cached_size_ = size;
696 GOOGLE_SAFE_CONCURRENT_WRITES_END();
698 const ::google::protobuf::Descriptor* Table_TableOptions::descriptor() {
699 protobuf_AssignDescriptorsOnce();
700 return Table_TableOptions_descriptor_;
703 const Table_TableOptions& Table_TableOptions::default_instance() {
704 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
705 return *default_instance_;
708 Table_TableOptions* Table_TableOptions::default_instance_ = NULL;
710 Table_TableOptions* Table_TableOptions::New()
const {
711 return new Table_TableOptions;
714 void Table_TableOptions::Clear() {
715 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
716 has_user_set_auto_increment_value_ =
false;
717 if (has_collation()) {
718 if (collation_ != &::google::protobuf::internal::kEmptyString) {
723 if (has_data_file_name()) {
724 if (data_file_name_ != &::google::protobuf::internal::kEmptyString) {
725 data_file_name_->clear();
728 if (has_index_file_name()) {
729 if (index_file_name_ != &::google::protobuf::internal::kEmptyString) {
730 index_file_name_->clear();
733 max_rows_ = GOOGLE_ULONGLONG(0);
734 min_rows_ = GOOGLE_ULONGLONG(0);
735 auto_increment_value_ = GOOGLE_ULONGLONG(0);
737 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
738 avg_row_length_ = 0u;
741 if (comment_ != &::google::protobuf::internal::kEmptyString) {
745 pack_record_ =
false;
747 page_checksum_ =
false;
748 delay_key_write_ =
false;
751 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
752 mutable_unknown_fields()->Clear();
755 bool Table_TableOptions::MergePartialFromCodedStream(
756 ::google::protobuf::io::CodedInputStream* input) {
757 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
758 ::google::protobuf::uint32 tag;
759 while ((tag = input->ReadTag()) != 0) {
760 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
763 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
764 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
765 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
766 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
767 input, &has_user_set_auto_increment_value_)));
768 set_has_has_user_set_auto_increment_value();
770 goto handle_uninterpreted;
772 if (input->ExpectTag(18))
goto parse_collation;
778 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
779 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
781 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
782 input, this->mutable_collation()));
783 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
784 this->collation().data(), this->collation().length(),
785 ::google::protobuf::internal::WireFormat::PARSE);
787 goto handle_uninterpreted;
789 if (input->ExpectTag(24))
goto parse_collation_id;
795 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
796 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
798 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
799 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
800 input, &collation_id_)));
801 set_has_collation_id();
803 goto handle_uninterpreted;
805 if (input->ExpectTag(42))
goto parse_data_file_name;
811 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
812 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
813 parse_data_file_name:
814 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
815 input, this->mutable_data_file_name()));
816 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
817 this->data_file_name().data(), this->data_file_name().length(),
818 ::google::protobuf::internal::WireFormat::PARSE);
820 goto handle_uninterpreted;
822 if (input->ExpectTag(50))
goto parse_index_file_name;
828 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
829 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
830 parse_index_file_name:
831 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
832 input, this->mutable_index_file_name()));
833 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
834 this->index_file_name().data(), this->index_file_name().length(),
835 ::google::protobuf::internal::WireFormat::PARSE);
837 goto handle_uninterpreted;
839 if (input->ExpectTag(56))
goto parse_max_rows;
845 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
846 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
848 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
849 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
850 input, &max_rows_)));
853 goto handle_uninterpreted;
855 if (input->ExpectTag(64))
goto parse_min_rows;
861 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
862 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
864 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
865 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
866 input, &min_rows_)));
869 goto handle_uninterpreted;
871 if (input->ExpectTag(72))
goto parse_auto_increment_value;
877 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
878 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
879 parse_auto_increment_value:
880 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
881 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
882 input, &auto_increment_value_)));
883 set_has_auto_increment_value();
885 goto handle_uninterpreted;
887 if (input->ExpectTag(88))
goto parse_avg_row_length;
893 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
894 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
895 parse_avg_row_length:
896 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
897 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
898 input, &avg_row_length_)));
899 set_has_avg_row_length();
901 goto handle_uninterpreted;
903 if (input->ExpectTag(104))
goto parse_block_size;
909 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
910 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
912 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
913 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
914 input, &block_size_)));
915 set_has_block_size();
917 goto handle_uninterpreted;
919 if (input->ExpectTag(114))
goto parse_comment;
925 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
926 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
928 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
929 input, this->mutable_comment()));
930 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
931 this->comment().data(), this->comment().length(),
932 ::google::protobuf::internal::WireFormat::PARSE);
934 goto handle_uninterpreted;
936 if (input->ExpectTag(128))
goto parse_pack_record;
942 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
943 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
945 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
946 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
947 input, &pack_record_)));
948 set_has_pack_record();
950 goto handle_uninterpreted;
952 if (input->ExpectTag(136))
goto parse_checksum;
958 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
959 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
961 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
962 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
963 input, &checksum_)));
966 goto handle_uninterpreted;
968 if (input->ExpectTag(144))
goto parse_page_checksum;
974 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
975 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
977 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
978 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
979 input, &page_checksum_)));
980 set_has_page_checksum();
982 goto handle_uninterpreted;
984 if (input->ExpectTag(152))
goto parse_delay_key_write;
990 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
991 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
992 parse_delay_key_write:
993 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
994 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
995 input, &delay_key_write_)));
996 set_has_delay_key_write();
998 goto handle_uninterpreted;
1000 if (input->ExpectTag(160))
goto parse_unused;
1006 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1007 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1009 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1010 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1014 goto handle_uninterpreted;
1016 if (input->ExpectAtEnd())
return true;
1021 handle_uninterpreted:
1022 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1023 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1026 DO_(::google::protobuf::internal::WireFormat::SkipField(
1027 input, tag, mutable_unknown_fields()));
1036 void Table_TableOptions::SerializeWithCachedSizes(
1037 ::google::protobuf::io::CodedOutputStream* output)
const {
1039 if (has_has_user_set_auto_increment_value()) {
1040 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->has_user_set_auto_increment_value(), output);
1044 if (has_collation()) {
1045 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1046 this->collation().data(), this->collation().length(),
1047 ::google::protobuf::internal::WireFormat::SERIALIZE);
1048 ::google::protobuf::internal::WireFormatLite::WriteString(
1049 2, this->collation(), output);
1053 if (has_collation_id()) {
1054 ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->collation_id(), output);
1058 if (has_data_file_name()) {
1059 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1060 this->data_file_name().data(), this->data_file_name().length(),
1061 ::google::protobuf::internal::WireFormat::SERIALIZE);
1062 ::google::protobuf::internal::WireFormatLite::WriteString(
1063 5, this->data_file_name(), output);
1067 if (has_index_file_name()) {
1068 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1069 this->index_file_name().data(), this->index_file_name().length(),
1070 ::google::protobuf::internal::WireFormat::SERIALIZE);
1071 ::google::protobuf::internal::WireFormatLite::WriteString(
1072 6, this->index_file_name(), output);
1076 if (has_max_rows()) {
1077 ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->max_rows(), output);
1081 if (has_min_rows()) {
1082 ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->min_rows(), output);
1086 if (has_auto_increment_value()) {
1087 ::google::protobuf::internal::WireFormatLite::WriteUInt64(9, this->auto_increment_value(), output);
1091 if (has_avg_row_length()) {
1092 ::google::protobuf::internal::WireFormatLite::WriteUInt32(11, this->avg_row_length(), output);
1096 if (has_block_size()) {
1097 ::google::protobuf::internal::WireFormatLite::WriteUInt32(13, this->block_size(), output);
1101 if (has_comment()) {
1102 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1103 this->comment().data(), this->comment().length(),
1104 ::google::protobuf::internal::WireFormat::SERIALIZE);
1105 ::google::protobuf::internal::WireFormatLite::WriteString(
1106 14, this->comment(), output);
1110 if (has_pack_record()) {
1111 ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->pack_record(), output);
1115 if (has_checksum()) {
1116 ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->checksum(), output);
1120 if (has_page_checksum()) {
1121 ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->page_checksum(), output);
1125 if (has_delay_key_write()) {
1126 ::google::protobuf::internal::WireFormatLite::WriteBool(19, this->delay_key_write(), output);
1131 ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->unused(), output);
1134 if (!unknown_fields().empty()) {
1135 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1136 unknown_fields(), output);
1140 ::google::protobuf::uint8* Table_TableOptions::SerializeWithCachedSizesToArray(
1141 ::google::protobuf::uint8* target)
const {
1143 if (has_has_user_set_auto_increment_value()) {
1144 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->has_user_set_auto_increment_value(), target);
1148 if (has_collation()) {
1149 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1150 this->collation().data(), this->collation().length(),
1151 ::google::protobuf::internal::WireFormat::SERIALIZE);
1153 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1154 2, this->collation(), target);
1158 if (has_collation_id()) {
1159 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->collation_id(), target);
1163 if (has_data_file_name()) {
1164 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1165 this->data_file_name().data(), this->data_file_name().length(),
1166 ::google::protobuf::internal::WireFormat::SERIALIZE);
1168 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1169 5, this->data_file_name(), target);
1173 if (has_index_file_name()) {
1174 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1175 this->index_file_name().data(), this->index_file_name().length(),
1176 ::google::protobuf::internal::WireFormat::SERIALIZE);
1178 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1179 6, this->index_file_name(), target);
1183 if (has_max_rows()) {
1184 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->max_rows(), target);
1188 if (has_min_rows()) {
1189 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->min_rows(), target);
1193 if (has_auto_increment_value()) {
1194 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(9, this->auto_increment_value(), target);
1198 if (has_avg_row_length()) {
1199 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(11, this->avg_row_length(), target);
1203 if (has_block_size()) {
1204 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(13, this->block_size(), target);
1208 if (has_comment()) {
1209 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1210 this->comment().data(), this->comment().length(),
1211 ::google::protobuf::internal::WireFormat::SERIALIZE);
1213 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1214 14, this->comment(), target);
1218 if (has_pack_record()) {
1219 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->pack_record(), target);
1223 if (has_checksum()) {
1224 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->checksum(), target);
1228 if (has_page_checksum()) {
1229 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->page_checksum(), target);
1233 if (has_delay_key_write()) {
1234 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(19, this->delay_key_write(), target);
1239 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->unused(), target);
1242 if (!unknown_fields().empty()) {
1243 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1244 unknown_fields(), target);
1249 int Table_TableOptions::ByteSize()
const {
1252 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1254 if (has_has_user_set_auto_increment_value()) {
1255 total_size += 1 + 1;
1259 if (has_collation()) {
1261 ::google::protobuf::internal::WireFormatLite::StringSize(
1266 if (has_collation_id()) {
1268 ::google::protobuf::internal::WireFormatLite::UInt32Size(
1269 this->collation_id());
1273 if (has_data_file_name()) {
1275 ::google::protobuf::internal::WireFormatLite::StringSize(
1276 this->data_file_name());
1280 if (has_index_file_name()) {
1282 ::google::protobuf::internal::WireFormatLite::StringSize(
1283 this->index_file_name());
1287 if (has_max_rows()) {
1289 ::google::protobuf::internal::WireFormatLite::UInt64Size(
1294 if (has_min_rows()) {
1296 ::google::protobuf::internal::WireFormatLite::UInt64Size(
1301 if (has_auto_increment_value()) {
1303 ::google::protobuf::internal::WireFormatLite::UInt64Size(
1304 this->auto_increment_value());
1308 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
1310 if (has_avg_row_length()) {
1312 ::google::protobuf::internal::WireFormatLite::UInt32Size(
1313 this->avg_row_length());
1317 if (has_block_size()) {
1319 ::google::protobuf::internal::WireFormatLite::UInt32Size(
1320 this->block_size());
1324 if (has_comment()) {
1326 ::google::protobuf::internal::WireFormatLite::StringSize(
1331 if (has_pack_record()) {
1332 total_size += 2 + 1;
1336 if (has_checksum()) {
1337 total_size += 2 + 1;
1341 if (has_page_checksum()) {
1342 total_size += 2 + 1;
1346 if (has_delay_key_write()) {
1347 total_size += 2 + 1;
1352 total_size += 2 + 1;
1356 if (!unknown_fields().empty()) {
1358 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1361 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1362 _cached_size_ = total_size;
1363 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1367 void Table_TableOptions::MergeFrom(const ::google::protobuf::Message& from) {
1368 GOOGLE_CHECK_NE(&from,
this);
1369 const Table_TableOptions* source =
1370 ::google::protobuf::internal::dynamic_cast_if_available<const Table_TableOptions*>(
1372 if (source == NULL) {
1373 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
1379 void Table_TableOptions::MergeFrom(
const Table_TableOptions& from) {
1380 GOOGLE_CHECK_NE(&from,
this);
1381 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1382 if (from.has_has_user_set_auto_increment_value()) {
1383 set_has_user_set_auto_increment_value(from.has_user_set_auto_increment_value());
1385 if (from.has_collation()) {
1386 set_collation(from.collation());
1388 if (from.has_collation_id()) {
1389 set_collation_id(from.collation_id());
1391 if (from.has_data_file_name()) {
1392 set_data_file_name(from.data_file_name());
1394 if (from.has_index_file_name()) {
1395 set_index_file_name(from.index_file_name());
1397 if (from.has_max_rows()) {
1398 set_max_rows(from.max_rows());
1400 if (from.has_min_rows()) {
1401 set_min_rows(from.min_rows());
1403 if (from.has_auto_increment_value()) {
1404 set_auto_increment_value(from.auto_increment_value());
1407 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
1408 if (from.has_avg_row_length()) {
1409 set_avg_row_length(from.avg_row_length());
1411 if (from.has_block_size()) {
1412 set_block_size(from.block_size());
1414 if (from.has_comment()) {
1415 set_comment(from.comment());
1417 if (from.has_pack_record()) {
1418 set_pack_record(from.pack_record());
1420 if (from.has_checksum()) {
1421 set_checksum(from.checksum());
1423 if (from.has_page_checksum()) {
1424 set_page_checksum(from.page_checksum());
1426 if (from.has_delay_key_write()) {
1427 set_delay_key_write(from.delay_key_write());
1429 if (from.has_unused()) {
1430 set_unused(from.unused());
1433 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1436 void Table_TableOptions::CopyFrom(const ::google::protobuf::Message& from) {
1437 if (&from ==
this)
return;
1442 void Table_TableOptions::CopyFrom(
const Table_TableOptions& from) {
1443 if (&from ==
this)
return;
1448 bool Table_TableOptions::IsInitialized()
const {
1453 void Table_TableOptions::Swap(Table_TableOptions* other) {
1454 if (other !=
this) {
1455 std::swap(has_user_set_auto_increment_value_, other->has_user_set_auto_increment_value_);
1456 std::swap(collation_, other->collation_);
1457 std::swap(collation_id_, other->collation_id_);
1458 std::swap(data_file_name_, other->data_file_name_);
1459 std::swap(index_file_name_, other->index_file_name_);
1460 std::swap(max_rows_, other->max_rows_);
1461 std::swap(min_rows_, other->min_rows_);
1462 std::swap(auto_increment_value_, other->auto_increment_value_);
1463 std::swap(avg_row_length_, other->avg_row_length_);
1464 std::swap(block_size_, other->block_size_);
1465 std::swap(comment_, other->comment_);
1466 std::swap(pack_record_, other->pack_record_);
1467 std::swap(checksum_, other->checksum_);
1468 std::swap(page_checksum_, other->page_checksum_);
1469 std::swap(delay_key_write_, other->delay_key_write_);
1470 std::swap(unused_, other->unused_);
1471 std::swap(_has_bits_[0], other->_has_bits_[0]);
1472 _unknown_fields_.Swap(&other->_unknown_fields_);
1473 std::swap(_cached_size_, other->_cached_size_);
1477 ::google::protobuf::Metadata Table_TableOptions::GetMetadata()
const {
1478 protobuf_AssignDescriptorsOnce();
1479 ::google::protobuf::Metadata metadata;
1480 metadata.descriptor = Table_TableOptions_descriptor_;
1481 metadata.reflection = Table_TableOptions_reflection_;
1488 const ::google::protobuf::EnumDescriptor* Table_ForeignKeyConstraint_ForeignKeyMatchOption_descriptor() {
1489 protobuf_AssignDescriptorsOnce();
1490 return Table_ForeignKeyConstraint_ForeignKeyMatchOption_descriptor_;
1492 bool Table_ForeignKeyConstraint_ForeignKeyMatchOption_IsValid(
int value) {
1505 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::MATCH_UNDEFINED;
1506 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::MATCH_FULL;
1507 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::MATCH_PARTIAL;
1508 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::MATCH_SIMPLE;
1509 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::ForeignKeyMatchOption_MIN;
1510 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::ForeignKeyMatchOption_MAX;
1511 const int Table_ForeignKeyConstraint::ForeignKeyMatchOption_ARRAYSIZE;
1513 const ::google::protobuf::EnumDescriptor* Table_ForeignKeyConstraint_ForeignKeyOption_descriptor() {
1514 protobuf_AssignDescriptorsOnce();
1515 return Table_ForeignKeyConstraint_ForeignKeyOption_descriptor_;
1517 bool Table_ForeignKeyConstraint_ForeignKeyOption_IsValid(
int value) {
1532 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_UNDEF;
1533 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_RESTRICT;
1534 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_CASCADE;
1535 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_SET_NULL;
1536 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_NO_ACTION;
1537 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_SET_DEFAULT;
1538 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::ForeignKeyOption_MIN;
1539 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::ForeignKeyOption_MAX;
1540 const int Table_ForeignKeyConstraint::ForeignKeyOption_ARRAYSIZE;
1543 const int Table_ForeignKeyConstraint::kNameFieldNumber;
1544 const int Table_ForeignKeyConstraint::kColumnNamesFieldNumber;
1545 const int Table_ForeignKeyConstraint::kReferencesTableNameFieldNumber;
1546 const int Table_ForeignKeyConstraint::kReferencesColumnsFieldNumber;
1547 const int Table_ForeignKeyConstraint::kMatchFieldNumber;
1548 const int Table_ForeignKeyConstraint::kUpdateOptionFieldNumber;
1549 const int Table_ForeignKeyConstraint::kDeleteOptionFieldNumber;
1552 Table_ForeignKeyConstraint::Table_ForeignKeyConstraint()
1553 : ::google::protobuf::Message() {
1557 void Table_ForeignKeyConstraint::InitAsDefaultInstance() {
1560 Table_ForeignKeyConstraint::Table_ForeignKeyConstraint(
const Table_ForeignKeyConstraint& from)
1561 : ::google::protobuf::Message() {
1566 void Table_ForeignKeyConstraint::SharedCtor() {
1568 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
1569 references_table_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
1573 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1576 Table_ForeignKeyConstraint::~Table_ForeignKeyConstraint() {
1580 void Table_ForeignKeyConstraint::SharedDtor() {
1581 if (name_ != &::google::protobuf::internal::kEmptyString) {
1584 if (references_table_name_ != &::google::protobuf::internal::kEmptyString) {
1585 delete references_table_name_;
1587 if (
this != default_instance_) {
1591 void Table_ForeignKeyConstraint::SetCachedSize(
int size)
const {
1592 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1593 _cached_size_ = size;
1594 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1596 const ::google::protobuf::Descriptor* Table_ForeignKeyConstraint::descriptor() {
1597 protobuf_AssignDescriptorsOnce();
1598 return Table_ForeignKeyConstraint_descriptor_;
1601 const Table_ForeignKeyConstraint& Table_ForeignKeyConstraint::default_instance() {
1602 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
1603 return *default_instance_;
1606 Table_ForeignKeyConstraint* Table_ForeignKeyConstraint::default_instance_ = NULL;
1608 Table_ForeignKeyConstraint* Table_ForeignKeyConstraint::New()
const {
1609 return new Table_ForeignKeyConstraint;
1612 void Table_ForeignKeyConstraint::Clear() {
1613 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1615 if (name_ != &::google::protobuf::internal::kEmptyString) {
1619 if (has_references_table_name()) {
1620 if (references_table_name_ != &::google::protobuf::internal::kEmptyString) {
1621 references_table_name_->clear();
1628 column_names_.Clear();
1629 references_columns_.Clear();
1630 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1631 mutable_unknown_fields()->Clear();
1634 bool Table_ForeignKeyConstraint::MergePartialFromCodedStream(
1635 ::google::protobuf::io::CodedInputStream* input) {
1636 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1637 ::google::protobuf::uint32 tag;
1638 while ((tag = input->ReadTag()) != 0) {
1639 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1642 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1643 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1644 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1645 input, this->mutable_name()));
1646 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1647 this->name().data(), this->name().length(),
1648 ::google::protobuf::internal::WireFormat::PARSE);
1650 goto handle_uninterpreted;
1652 if (input->ExpectTag(18))
goto parse_column_names;
1658 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1659 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1661 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1662 input, this->add_column_names()));
1663 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1664 this->column_names(this->column_names_size() - 1).data(),
1665 this->column_names(this->column_names_size() - 1).length(),
1666 ::google::protobuf::internal::WireFormat::PARSE);
1668 goto handle_uninterpreted;
1670 if (input->ExpectTag(18))
goto parse_column_names;
1671 if (input->ExpectTag(26))
goto parse_references_table_name;
1677 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1678 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1679 parse_references_table_name:
1680 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1681 input, this->mutable_references_table_name()));
1682 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1683 this->references_table_name().data(), this->references_table_name().length(),
1684 ::google::protobuf::internal::WireFormat::PARSE);
1686 goto handle_uninterpreted;
1688 if (input->ExpectTag(34))
goto parse_references_columns;
1694 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1695 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1696 parse_references_columns:
1697 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1698 input, this->add_references_columns()));
1699 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1700 this->references_columns(this->references_columns_size() - 1).data(),
1701 this->references_columns(this->references_columns_size() - 1).length(),
1702 ::google::protobuf::internal::WireFormat::PARSE);
1704 goto handle_uninterpreted;
1706 if (input->ExpectTag(34))
goto parse_references_columns;
1707 if (input->ExpectTag(40))
goto parse_match;
1713 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1714 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1717 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1718 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1720 if (::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyMatchOption_IsValid(value)) {
1721 set_match(static_cast< ::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyMatchOption >(value));
1723 mutable_unknown_fields()->AddVarint(5, value);
1726 goto handle_uninterpreted;
1728 if (input->ExpectTag(48))
goto parse_update_option;
1734 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1735 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1736 parse_update_option:
1738 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1739 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1741 if (::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyOption_IsValid(value)) {
1742 set_update_option(static_cast< ::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyOption >(value));
1744 mutable_unknown_fields()->AddVarint(6, value);
1747 goto handle_uninterpreted;
1749 if (input->ExpectTag(56))
goto parse_delete_option;
1755 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1756 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1757 parse_delete_option:
1759 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1760 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1762 if (::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyOption_IsValid(value)) {
1763 set_delete_option(static_cast< ::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyOption >(value));
1765 mutable_unknown_fields()->AddVarint(7, value);
1768 goto handle_uninterpreted;
1770 if (input->ExpectAtEnd())
return true;
1775 handle_uninterpreted:
1776 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1777 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1780 DO_(::google::protobuf::internal::WireFormat::SkipField(
1781 input, tag, mutable_unknown_fields()));
1790 void Table_ForeignKeyConstraint::SerializeWithCachedSizes(
1791 ::google::protobuf::io::CodedOutputStream* output)
const {
1794 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1795 this->name().data(), this->name().length(),
1796 ::google::protobuf::internal::WireFormat::SERIALIZE);
1797 ::google::protobuf::internal::WireFormatLite::WriteString(
1798 1, this->name(), output);
1802 for (
int i = 0; i < this->column_names_size(); i++) {
1803 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1804 this->column_names(i).data(), this->column_names(i).length(),
1805 ::google::protobuf::internal::WireFormat::SERIALIZE);
1806 ::google::protobuf::internal::WireFormatLite::WriteString(
1807 2, this->column_names(i), output);
1811 if (has_references_table_name()) {
1812 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1813 this->references_table_name().data(), this->references_table_name().length(),
1814 ::google::protobuf::internal::WireFormat::SERIALIZE);
1815 ::google::protobuf::internal::WireFormatLite::WriteString(
1816 3, this->references_table_name(), output);
1820 for (
int i = 0; i < this->references_columns_size(); i++) {
1821 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1822 this->references_columns(i).data(), this->references_columns(i).length(),
1823 ::google::protobuf::internal::WireFormat::SERIALIZE);
1824 ::google::protobuf::internal::WireFormatLite::WriteString(
1825 4, this->references_columns(i), output);
1830 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1831 5, this->match(), output);
1835 if (has_update_option()) {
1836 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1837 6, this->update_option(), output);
1841 if (has_delete_option()) {
1842 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1843 7, this->delete_option(), output);
1846 if (!unknown_fields().empty()) {
1847 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1848 unknown_fields(), output);
1852 ::google::protobuf::uint8* Table_ForeignKeyConstraint::SerializeWithCachedSizesToArray(
1853 ::google::protobuf::uint8* target)
const {
1856 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1857 this->name().data(), this->name().length(),
1858 ::google::protobuf::internal::WireFormat::SERIALIZE);
1860 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1861 1, this->name(), target);
1865 for (
int i = 0; i < this->column_names_size(); i++) {
1866 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1867 this->column_names(i).data(), this->column_names(i).length(),
1868 ::google::protobuf::internal::WireFormat::SERIALIZE);
1869 target = ::google::protobuf::internal::WireFormatLite::
1870 WriteStringToArray(2, this->column_names(i), target);
1874 if (has_references_table_name()) {
1875 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1876 this->references_table_name().data(), this->references_table_name().length(),
1877 ::google::protobuf::internal::WireFormat::SERIALIZE);
1879 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1880 3, this->references_table_name(), target);
1884 for (
int i = 0; i < this->references_columns_size(); i++) {
1885 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1886 this->references_columns(i).data(), this->references_columns(i).length(),
1887 ::google::protobuf::internal::WireFormat::SERIALIZE);
1888 target = ::google::protobuf::internal::WireFormatLite::
1889 WriteStringToArray(4, this->references_columns(i), target);
1894 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1895 5, this->match(), target);
1899 if (has_update_option()) {
1900 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1901 6, this->update_option(), target);
1905 if (has_delete_option()) {
1906 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1907 7, this->delete_option(), target);
1910 if (!unknown_fields().empty()) {
1911 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1912 unknown_fields(), target);
1917 int Table_ForeignKeyConstraint::ByteSize()
const {
1920 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1924 ::google::protobuf::internal::WireFormatLite::StringSize(
1929 if (has_references_table_name()) {
1931 ::google::protobuf::internal::WireFormatLite::StringSize(
1932 this->references_table_name());
1938 ::google::protobuf::internal::WireFormatLite::EnumSize(this->match());
1942 if (has_update_option()) {
1944 ::google::protobuf::internal::WireFormatLite::EnumSize(this->update_option());
1948 if (has_delete_option()) {
1950 ::google::protobuf::internal::WireFormatLite::EnumSize(this->delete_option());
1955 total_size += 1 * this->column_names_size();
1956 for (
int i = 0; i < this->column_names_size(); i++) {
1957 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
1958 this->column_names(i));
1962 total_size += 1 * this->references_columns_size();
1963 for (
int i = 0; i < this->references_columns_size(); i++) {
1964 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
1965 this->references_columns(i));
1968 if (!unknown_fields().empty()) {
1970 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1973 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1974 _cached_size_ = total_size;
1975 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1979 void Table_ForeignKeyConstraint::MergeFrom(const ::google::protobuf::Message& from) {
1980 GOOGLE_CHECK_NE(&from,
this);
1981 const Table_ForeignKeyConstraint* source =
1982 ::google::protobuf::internal::dynamic_cast_if_available<const Table_ForeignKeyConstraint*>(
1984 if (source == NULL) {
1985 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
1991 void Table_ForeignKeyConstraint::MergeFrom(
const Table_ForeignKeyConstraint& from) {
1992 GOOGLE_CHECK_NE(&from,
this);
1993 column_names_.MergeFrom(from.column_names_);
1994 references_columns_.MergeFrom(from.references_columns_);
1995 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1996 if (from.has_name()) {
1997 set_name(from.name());
1999 if (from.has_references_table_name()) {
2000 set_references_table_name(from.references_table_name());
2002 if (from.has_match()) {
2003 set_match(from.match());
2005 if (from.has_update_option()) {
2006 set_update_option(from.update_option());
2008 if (from.has_delete_option()) {
2009 set_delete_option(from.delete_option());
2012 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2015 void Table_ForeignKeyConstraint::CopyFrom(const ::google::protobuf::Message& from) {
2016 if (&from ==
this)
return;
2021 void Table_ForeignKeyConstraint::CopyFrom(
const Table_ForeignKeyConstraint& from) {
2022 if (&from ==
this)
return;
2027 bool Table_ForeignKeyConstraint::IsInitialized()
const {
2028 if ((_has_bits_[0] & 0x00000074) != 0x00000074)
return false;
2033 void Table_ForeignKeyConstraint::Swap(Table_ForeignKeyConstraint* other) {
2034 if (other !=
this) {
2035 std::swap(name_, other->name_);
2036 column_names_.Swap(&other->column_names_);
2037 std::swap(references_table_name_, other->references_table_name_);
2038 references_columns_.Swap(&other->references_columns_);
2039 std::swap(match_, other->match_);
2040 std::swap(update_option_, other->update_option_);
2041 std::swap(delete_option_, other->delete_option_);
2042 std::swap(_has_bits_[0], other->_has_bits_[0]);
2043 _unknown_fields_.Swap(&other->_unknown_fields_);
2044 std::swap(_cached_size_, other->_cached_size_);
2048 ::google::protobuf::Metadata Table_ForeignKeyConstraint::GetMetadata()
const {
2049 protobuf_AssignDescriptorsOnce();
2050 ::google::protobuf::Metadata metadata;
2051 metadata.descriptor = Table_ForeignKeyConstraint_descriptor_;
2052 metadata.reflection = Table_ForeignKeyConstraint_reflection_;
2059 const ::google::protobuf::EnumDescriptor* Table_Field_FieldType_descriptor() {
2060 protobuf_AssignDescriptorsOnce();
2061 return Table_Field_FieldType_descriptor_;
2063 bool Table_Field_FieldType_IsValid(
int value) {
2086 const Table_Field_FieldType Table_Field::DOUBLE;
2087 const Table_Field_FieldType Table_Field::VARCHAR;
2088 const Table_Field_FieldType Table_Field::BLOB;
2089 const Table_Field_FieldType Table_Field::ENUM;
2090 const Table_Field_FieldType Table_Field::INTEGER;
2091 const Table_Field_FieldType Table_Field::BIGINT;
2092 const Table_Field_FieldType Table_Field::DECIMAL;
2093 const Table_Field_FieldType Table_Field::DATE;
2094 const Table_Field_FieldType Table_Field::EPOCH;
2095 const Table_Field_FieldType Table_Field::DATETIME;
2096 const Table_Field_FieldType Table_Field::UUID;
2097 const Table_Field_FieldType Table_Field::TIME;
2098 const Table_Field_FieldType Table_Field::BOOLEAN;
2099 const Table_Field_FieldType Table_Field::IPV6;
2100 const Table_Field_FieldType Table_Field::FieldType_MIN;
2101 const Table_Field_FieldType Table_Field::FieldType_MAX;
2102 const int Table_Field::FieldType_ARRAYSIZE;
2105 const int Table_Field_FieldOptions::kDefaultValueFieldNumber;
2106 const int Table_Field_FieldOptions::kUpdateValueFieldNumber;
2107 const int Table_Field_FieldOptions::kDefaultNullFieldNumber;
2108 const int Table_Field_FieldOptions::kDefaultBinValueFieldNumber;
2109 const int Table_Field_FieldOptions::kDefaultExpressionFieldNumber;
2110 const int Table_Field_FieldOptions::kUpdateExpressionFieldNumber;
2113 Table_Field_FieldOptions::Table_Field_FieldOptions()
2114 : ::google::protobuf::Message() {
2118 void Table_Field_FieldOptions::InitAsDefaultInstance() {
2121 Table_Field_FieldOptions::Table_Field_FieldOptions(
const Table_Field_FieldOptions& from)
2122 : ::google::protobuf::Message() {
2127 void Table_Field_FieldOptions::SharedCtor() {
2129 default_value_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
2130 update_value_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
2131 default_null_ =
false;
2132 default_bin_value_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
2133 default_expression_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
2134 update_expression_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
2135 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
2138 Table_Field_FieldOptions::~Table_Field_FieldOptions() {
2142 void Table_Field_FieldOptions::SharedDtor() {
2143 if (default_value_ != &::google::protobuf::internal::kEmptyString) {
2144 delete default_value_;
2146 if (update_value_ != &::google::protobuf::internal::kEmptyString) {
2147 delete update_value_;
2149 if (default_bin_value_ != &::google::protobuf::internal::kEmptyString) {
2150 delete default_bin_value_;
2152 if (default_expression_ != &::google::protobuf::internal::kEmptyString) {
2153 delete default_expression_;
2155 if (update_expression_ != &::google::protobuf::internal::kEmptyString) {
2156 delete update_expression_;
2158 if (
this != default_instance_) {
2162 void Table_Field_FieldOptions::SetCachedSize(
int size)
const {
2163 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2164 _cached_size_ = size;
2165 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2167 const ::google::protobuf::Descriptor* Table_Field_FieldOptions::descriptor() {
2168 protobuf_AssignDescriptorsOnce();
2169 return Table_Field_FieldOptions_descriptor_;
2172 const Table_Field_FieldOptions& Table_Field_FieldOptions::default_instance() {
2173 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
2174 return *default_instance_;
2177 Table_Field_FieldOptions* Table_Field_FieldOptions::default_instance_ = NULL;
2179 Table_Field_FieldOptions* Table_Field_FieldOptions::New()
const {
2180 return new Table_Field_FieldOptions;
2183 void Table_Field_FieldOptions::Clear() {
2184 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2185 if (has_default_value()) {
2186 if (default_value_ != &::google::protobuf::internal::kEmptyString) {
2187 default_value_->clear();
2190 if (has_update_value()) {
2191 if (update_value_ != &::google::protobuf::internal::kEmptyString) {
2192 update_value_->clear();
2195 default_null_ =
false;
2196 if (has_default_bin_value()) {
2197 if (default_bin_value_ != &::google::protobuf::internal::kEmptyString) {
2198 default_bin_value_->clear();
2201 if (has_default_expression()) {
2202 if (default_expression_ != &::google::protobuf::internal::kEmptyString) {
2203 default_expression_->clear();
2206 if (has_update_expression()) {
2207 if (update_expression_ != &::google::protobuf::internal::kEmptyString) {
2208 update_expression_->clear();
2212 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
2213 mutable_unknown_fields()->Clear();
2216 bool Table_Field_FieldOptions::MergePartialFromCodedStream(
2217 ::google::protobuf::io::CodedInputStream* input) {
2218 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
2219 ::google::protobuf::uint32 tag;
2220 while ((tag = input->ReadTag()) != 0) {
2221 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2224 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2225 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2226 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2227 input, this->mutable_default_value()));
2228 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2229 this->default_value().data(), this->default_value().length(),
2230 ::google::protobuf::internal::WireFormat::PARSE);
2232 goto handle_uninterpreted;
2234 if (input->ExpectTag(18))
goto parse_update_value;
2240 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2241 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2243 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2244 input, this->mutable_update_value()));
2245 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2246 this->update_value().data(), this->update_value().length(),
2247 ::google::protobuf::internal::WireFormat::PARSE);
2249 goto handle_uninterpreted;
2251 if (input->ExpectTag(24))
goto parse_default_null;
2257 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2258 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
2260 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2261 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2262 input, &default_null_)));
2263 set_has_default_null();
2265 goto handle_uninterpreted;
2267 if (input->ExpectTag(34))
goto parse_default_bin_value;
2273 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2274 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2275 parse_default_bin_value:
2276 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2277 input, this->mutable_default_bin_value()));
2279 goto handle_uninterpreted;
2281 if (input->ExpectTag(42))
goto parse_default_expression;
2287 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2288 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2289 parse_default_expression:
2290 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2291 input, this->mutable_default_expression()));
2292 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2293 this->default_expression().data(), this->default_expression().length(),
2294 ::google::protobuf::internal::WireFormat::PARSE);
2296 goto handle_uninterpreted;
2298 if (input->ExpectTag(50))
goto parse_update_expression;
2304 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2305 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2306 parse_update_expression:
2307 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2308 input, this->mutable_update_expression()));
2309 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2310 this->update_expression().data(), this->update_expression().length(),
2311 ::google::protobuf::internal::WireFormat::PARSE);
2313 goto handle_uninterpreted;
2315 if (input->ExpectAtEnd())
return true;
2320 handle_uninterpreted:
2321 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2322 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2325 DO_(::google::protobuf::internal::WireFormat::SkipField(
2326 input, tag, mutable_unknown_fields()));
2335 void Table_Field_FieldOptions::SerializeWithCachedSizes(
2336 ::google::protobuf::io::CodedOutputStream* output)
const {
2338 if (has_default_value()) {
2339 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2340 this->default_value().data(), this->default_value().length(),
2341 ::google::protobuf::internal::WireFormat::SERIALIZE);
2342 ::google::protobuf::internal::WireFormatLite::WriteString(
2343 1, this->default_value(), output);
2347 if (has_update_value()) {
2348 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2349 this->update_value().data(), this->update_value().length(),
2350 ::google::protobuf::internal::WireFormat::SERIALIZE);
2351 ::google::protobuf::internal::WireFormatLite::WriteString(
2352 2, this->update_value(), output);
2356 if (has_default_null()) {
2357 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->default_null(), output);
2361 if (has_default_bin_value()) {
2362 ::google::protobuf::internal::WireFormatLite::WriteBytes(
2363 4, this->default_bin_value(), output);
2367 if (has_default_expression()) {
2368 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2369 this->default_expression().data(), this->default_expression().length(),
2370 ::google::protobuf::internal::WireFormat::SERIALIZE);
2371 ::google::protobuf::internal::WireFormatLite::WriteString(
2372 5, this->default_expression(), output);
2376 if (has_update_expression()) {
2377 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2378 this->update_expression().data(), this->update_expression().length(),
2379 ::google::protobuf::internal::WireFormat::SERIALIZE);
2380 ::google::protobuf::internal::WireFormatLite::WriteString(
2381 6, this->update_expression(), output);
2384 if (!unknown_fields().empty()) {
2385 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2386 unknown_fields(), output);
2390 ::google::protobuf::uint8* Table_Field_FieldOptions::SerializeWithCachedSizesToArray(
2391 ::google::protobuf::uint8* target)
const {
2393 if (has_default_value()) {
2394 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2395 this->default_value().data(), this->default_value().length(),
2396 ::google::protobuf::internal::WireFormat::SERIALIZE);
2398 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2399 1, this->default_value(), target);
2403 if (has_update_value()) {
2404 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2405 this->update_value().data(), this->update_value().length(),
2406 ::google::protobuf::internal::WireFormat::SERIALIZE);
2408 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2409 2, this->update_value(), target);
2413 if (has_default_null()) {
2414 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->default_null(), target);
2418 if (has_default_bin_value()) {
2420 ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2421 4, this->default_bin_value(), target);
2425 if (has_default_expression()) {
2426 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2427 this->default_expression().data(), this->default_expression().length(),
2428 ::google::protobuf::internal::WireFormat::SERIALIZE);
2430 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2431 5, this->default_expression(), target);
2435 if (has_update_expression()) {
2436 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2437 this->update_expression().data(), this->update_expression().length(),
2438 ::google::protobuf::internal::WireFormat::SERIALIZE);
2440 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2441 6, this->update_expression(), target);
2444 if (!unknown_fields().empty()) {
2445 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2446 unknown_fields(), target);
2451 int Table_Field_FieldOptions::ByteSize()
const {
2454 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2456 if (has_default_value()) {
2458 ::google::protobuf::internal::WireFormatLite::StringSize(
2459 this->default_value());
2463 if (has_update_value()) {
2465 ::google::protobuf::internal::WireFormatLite::StringSize(
2466 this->update_value());
2470 if (has_default_null()) {
2471 total_size += 1 + 1;
2475 if (has_default_bin_value()) {
2477 ::google::protobuf::internal::WireFormatLite::BytesSize(
2478 this->default_bin_value());
2482 if (has_default_expression()) {
2484 ::google::protobuf::internal::WireFormatLite::StringSize(
2485 this->default_expression());
2489 if (has_update_expression()) {
2491 ::google::protobuf::internal::WireFormatLite::StringSize(
2492 this->update_expression());
2496 if (!unknown_fields().empty()) {
2498 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2501 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2502 _cached_size_ = total_size;
2503 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2507 void Table_Field_FieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
2508 GOOGLE_CHECK_NE(&from,
this);
2509 const Table_Field_FieldOptions* source =
2510 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_FieldOptions*>(
2512 if (source == NULL) {
2513 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
2519 void Table_Field_FieldOptions::MergeFrom(
const Table_Field_FieldOptions& from) {
2520 GOOGLE_CHECK_NE(&from,
this);
2521 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2522 if (from.has_default_value()) {
2523 set_default_value(from.default_value());
2525 if (from.has_update_value()) {
2526 set_update_value(from.update_value());
2528 if (from.has_default_null()) {
2529 set_default_null(from.default_null());
2531 if (from.has_default_bin_value()) {
2532 set_default_bin_value(from.default_bin_value());
2534 if (from.has_default_expression()) {
2535 set_default_expression(from.default_expression());
2537 if (from.has_update_expression()) {
2538 set_update_expression(from.update_expression());
2541 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2544 void Table_Field_FieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
2545 if (&from ==
this)
return;
2550 void Table_Field_FieldOptions::CopyFrom(
const Table_Field_FieldOptions& from) {
2551 if (&from ==
this)
return;
2556 bool Table_Field_FieldOptions::IsInitialized()
const {
2561 void Table_Field_FieldOptions::Swap(Table_Field_FieldOptions* other) {
2562 if (other !=
this) {
2563 std::swap(default_value_, other->default_value_);
2564 std::swap(update_value_, other->update_value_);
2565 std::swap(default_null_, other->default_null_);
2566 std::swap(default_bin_value_, other->default_bin_value_);
2567 std::swap(default_expression_, other->default_expression_);
2568 std::swap(update_expression_, other->update_expression_);
2569 std::swap(_has_bits_[0], other->_has_bits_[0]);
2570 _unknown_fields_.Swap(&other->_unknown_fields_);
2571 std::swap(_cached_size_, other->_cached_size_);
2575 ::google::protobuf::Metadata Table_Field_FieldOptions::GetMetadata()
const {
2576 protobuf_AssignDescriptorsOnce();
2577 ::google::protobuf::Metadata metadata;
2578 metadata.descriptor = Table_Field_FieldOptions_descriptor_;
2579 metadata.reflection = Table_Field_FieldOptions_reflection_;
2587 const int Table_Field_FieldConstraints::kIsNullableFieldNumber;
2588 const int Table_Field_FieldConstraints::kIsUnsignedFieldNumber;
2589 const int Table_Field_FieldConstraints::kIsNotnullFieldNumber;
2590 const int Table_Field_FieldConstraints::kIsUniqueFieldNumber;
2591 const int Table_Field_FieldConstraints::kExpressionFieldNumber;
2594 Table_Field_FieldConstraints::Table_Field_FieldConstraints()
2595 : ::google::protobuf::Message() {
2599 void Table_Field_FieldConstraints::InitAsDefaultInstance() {
2602 Table_Field_FieldConstraints::Table_Field_FieldConstraints(
const Table_Field_FieldConstraints& from)
2603 : ::google::protobuf::Message() {
2608 void Table_Field_FieldConstraints::SharedCtor() {
2610 is_nullable_ =
true;
2611 is_unsigned_ =
false;
2612 is_notnull_ =
false;
2614 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
2617 Table_Field_FieldConstraints::~Table_Field_FieldConstraints() {
2621 void Table_Field_FieldConstraints::SharedDtor() {
2622 if (
this != default_instance_) {
2626 void Table_Field_FieldConstraints::SetCachedSize(
int size)
const {
2627 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2628 _cached_size_ = size;
2629 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2631 const ::google::protobuf::Descriptor* Table_Field_FieldConstraints::descriptor() {
2632 protobuf_AssignDescriptorsOnce();
2633 return Table_Field_FieldConstraints_descriptor_;
2636 const Table_Field_FieldConstraints& Table_Field_FieldConstraints::default_instance() {
2637 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
2638 return *default_instance_;
2641 Table_Field_FieldConstraints* Table_Field_FieldConstraints::default_instance_ = NULL;
2643 Table_Field_FieldConstraints* Table_Field_FieldConstraints::New()
const {
2644 return new Table_Field_FieldConstraints;
2647 void Table_Field_FieldConstraints::Clear() {
2648 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2649 is_nullable_ =
true;
2650 is_unsigned_ =
false;
2651 is_notnull_ =
false;
2654 expression_.Clear();
2655 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
2656 mutable_unknown_fields()->Clear();
2659 bool Table_Field_FieldConstraints::MergePartialFromCodedStream(
2660 ::google::protobuf::io::CodedInputStream* input) {
2661 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
2662 ::google::protobuf::uint32 tag;
2663 while ((tag = input->ReadTag()) != 0) {
2664 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2667 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2668 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
2669 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2670 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2671 input, &is_nullable_)));
2672 set_has_is_nullable();
2674 goto handle_uninterpreted;
2676 if (input->ExpectTag(16))
goto parse_is_unsigned;
2682 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2683 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
2685 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2686 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2687 input, &is_unsigned_)));
2688 set_has_is_unsigned();
2690 goto handle_uninterpreted;
2692 if (input->ExpectTag(24))
goto parse_is_notnull;
2698 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2699 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
2701 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2702 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2703 input, &is_notnull_)));
2704 set_has_is_notnull();
2706 goto handle_uninterpreted;
2708 if (input->ExpectTag(32))
goto parse_is_unique;
2714 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2715 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
2717 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2718 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2719 input, &is_unique_)));
2720 set_has_is_unique();
2722 goto handle_uninterpreted;
2724 if (input->ExpectTag(130))
goto parse_expression;
2730 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2731 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2733 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2734 input, this->add_expression()));
2735 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2736 this->expression(this->expression_size() - 1).data(),
2737 this->expression(this->expression_size() - 1).length(),
2738 ::google::protobuf::internal::WireFormat::PARSE);
2740 goto handle_uninterpreted;
2742 if (input->ExpectTag(130))
goto parse_expression;
2743 if (input->ExpectAtEnd())
return true;
2748 handle_uninterpreted:
2749 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2750 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2753 DO_(::google::protobuf::internal::WireFormat::SkipField(
2754 input, tag, mutable_unknown_fields()));
2763 void Table_Field_FieldConstraints::SerializeWithCachedSizes(
2764 ::google::protobuf::io::CodedOutputStream* output)
const {
2766 if (has_is_nullable()) {
2767 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is_nullable(), output);
2771 if (has_is_unsigned()) {
2772 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_unsigned(), output);
2776 if (has_is_notnull()) {
2777 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->is_notnull(), output);
2781 if (has_is_unique()) {
2782 ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->is_unique(), output);
2786 for (
int i = 0; i < this->expression_size(); i++) {
2787 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2788 this->expression(i).data(), this->expression(i).length(),
2789 ::google::protobuf::internal::WireFormat::SERIALIZE);
2790 ::google::protobuf::internal::WireFormatLite::WriteString(
2791 16, this->expression(i), output);
2794 if (!unknown_fields().empty()) {
2795 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2796 unknown_fields(), output);
2800 ::google::protobuf::uint8* Table_Field_FieldConstraints::SerializeWithCachedSizesToArray(
2801 ::google::protobuf::uint8* target)
const {
2803 if (has_is_nullable()) {
2804 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->is_nullable(), target);
2808 if (has_is_unsigned()) {
2809 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_unsigned(), target);
2813 if (has_is_notnull()) {
2814 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->is_notnull(), target);
2818 if (has_is_unique()) {
2819 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->is_unique(), target);
2823 for (
int i = 0; i < this->expression_size(); i++) {
2824 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2825 this->expression(i).data(), this->expression(i).length(),
2826 ::google::protobuf::internal::WireFormat::SERIALIZE);
2827 target = ::google::protobuf::internal::WireFormatLite::
2828 WriteStringToArray(16, this->expression(i), target);
2831 if (!unknown_fields().empty()) {
2832 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2833 unknown_fields(), target);
2838 int Table_Field_FieldConstraints::ByteSize()
const {
2841 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2843 if (has_is_nullable()) {
2844 total_size += 1 + 1;
2848 if (has_is_unsigned()) {
2849 total_size += 1 + 1;
2853 if (has_is_notnull()) {
2854 total_size += 1 + 1;
2858 if (has_is_unique()) {
2859 total_size += 1 + 1;
2864 total_size += 2 * this->expression_size();
2865 for (
int i = 0; i < this->expression_size(); i++) {
2866 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
2867 this->expression(i));
2870 if (!unknown_fields().empty()) {
2872 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2875 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2876 _cached_size_ = total_size;
2877 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2881 void Table_Field_FieldConstraints::MergeFrom(const ::google::protobuf::Message& from) {
2882 GOOGLE_CHECK_NE(&from,
this);
2883 const Table_Field_FieldConstraints* source =
2884 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_FieldConstraints*>(
2886 if (source == NULL) {
2887 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
2893 void Table_Field_FieldConstraints::MergeFrom(
const Table_Field_FieldConstraints& from) {
2894 GOOGLE_CHECK_NE(&from,
this);
2895 expression_.MergeFrom(from.expression_);
2896 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2897 if (from.has_is_nullable()) {
2898 set_is_nullable(from.is_nullable());
2900 if (from.has_is_unsigned()) {
2901 set_is_unsigned(from.is_unsigned());
2903 if (from.has_is_notnull()) {
2904 set_is_notnull(from.is_notnull());
2906 if (from.has_is_unique()) {
2907 set_is_unique(from.is_unique());
2910 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2913 void Table_Field_FieldConstraints::CopyFrom(const ::google::protobuf::Message& from) {
2914 if (&from ==
this)
return;
2919 void Table_Field_FieldConstraints::CopyFrom(
const Table_Field_FieldConstraints& from) {
2920 if (&from ==
this)
return;
2925 bool Table_Field_FieldConstraints::IsInitialized()
const {
2930 void Table_Field_FieldConstraints::Swap(Table_Field_FieldConstraints* other) {
2931 if (other !=
this) {
2932 std::swap(is_nullable_, other->is_nullable_);
2933 std::swap(is_unsigned_, other->is_unsigned_);
2934 std::swap(is_notnull_, other->is_notnull_);
2935 std::swap(is_unique_, other->is_unique_);
2936 expression_.Swap(&other->expression_);
2937 std::swap(_has_bits_[0], other->_has_bits_[0]);
2938 _unknown_fields_.Swap(&other->_unknown_fields_);
2939 std::swap(_cached_size_, other->_cached_size_);
2943 ::google::protobuf::Metadata Table_Field_FieldConstraints::GetMetadata()
const {
2944 protobuf_AssignDescriptorsOnce();
2945 ::google::protobuf::Metadata metadata;
2946 metadata.descriptor = Table_Field_FieldConstraints_descriptor_;
2947 metadata.reflection = Table_Field_FieldConstraints_reflection_;
2955 const int Table_Field_NumericFieldOptions::kIsAutoincrementFieldNumber;
2956 const int Table_Field_NumericFieldOptions::kScaleFieldNumber;
2957 const int Table_Field_NumericFieldOptions::kPrecisionFieldNumber;
2960 Table_Field_NumericFieldOptions::Table_Field_NumericFieldOptions()
2961 : ::google::protobuf::Message() {
2965 void Table_Field_NumericFieldOptions::InitAsDefaultInstance() {
2968 Table_Field_NumericFieldOptions::Table_Field_NumericFieldOptions(
const Table_Field_NumericFieldOptions& from)
2969 : ::google::protobuf::Message() {
2974 void Table_Field_NumericFieldOptions::SharedCtor() {
2976 is_autoincrement_ =
false;
2979 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
2982 Table_Field_NumericFieldOptions::~Table_Field_NumericFieldOptions() {
2986 void Table_Field_NumericFieldOptions::SharedDtor() {
2987 if (
this != default_instance_) {
2991 void Table_Field_NumericFieldOptions::SetCachedSize(
int size)
const {
2992 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2993 _cached_size_ = size;
2994 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2996 const ::google::protobuf::Descriptor* Table_Field_NumericFieldOptions::descriptor() {
2997 protobuf_AssignDescriptorsOnce();
2998 return Table_Field_NumericFieldOptions_descriptor_;
3001 const Table_Field_NumericFieldOptions& Table_Field_NumericFieldOptions::default_instance() {
3002 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
3003 return *default_instance_;
3006 Table_Field_NumericFieldOptions* Table_Field_NumericFieldOptions::default_instance_ = NULL;
3008 Table_Field_NumericFieldOptions* Table_Field_NumericFieldOptions::New()
const {
3009 return new Table_Field_NumericFieldOptions;
3012 void Table_Field_NumericFieldOptions::Clear() {
3013 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3014 is_autoincrement_ =
false;
3018 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3019 mutable_unknown_fields()->Clear();
3022 bool Table_Field_NumericFieldOptions::MergePartialFromCodedStream(
3023 ::google::protobuf::io::CodedInputStream* input) {
3024 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
3025 ::google::protobuf::uint32 tag;
3026 while ((tag = input->ReadTag()) != 0) {
3027 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3030 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3031 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
3032 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3033 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3034 input, &is_autoincrement_)));
3035 set_has_is_autoincrement();
3037 goto handle_uninterpreted;
3039 if (input->ExpectTag(16))
goto parse_scale;
3045 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3046 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
3048 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3049 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3053 goto handle_uninterpreted;
3055 if (input->ExpectTag(24))
goto parse_precision;
3061 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3062 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
3064 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3065 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3066 input, &precision_)));
3067 set_has_precision();
3069 goto handle_uninterpreted;
3071 if (input->ExpectAtEnd())
return true;
3076 handle_uninterpreted:
3077 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3078 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3081 DO_(::google::protobuf::internal::WireFormat::SkipField(
3082 input, tag, mutable_unknown_fields()));
3091 void Table_Field_NumericFieldOptions::SerializeWithCachedSizes(
3092 ::google::protobuf::io::CodedOutputStream* output)
const {
3094 if (has_is_autoincrement()) {
3095 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is_autoincrement(), output);
3100 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->scale(), output);
3104 if (has_precision()) {
3105 ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->precision(), output);
3108 if (!unknown_fields().empty()) {
3109 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3110 unknown_fields(), output);
3114 ::google::protobuf::uint8* Table_Field_NumericFieldOptions::SerializeWithCachedSizesToArray(
3115 ::google::protobuf::uint8* target)
const {
3117 if (has_is_autoincrement()) {
3118 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->is_autoincrement(), target);
3123 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->scale(), target);
3127 if (has_precision()) {
3128 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->precision(), target);
3131 if (!unknown_fields().empty()) {
3132 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3133 unknown_fields(), target);
3138 int Table_Field_NumericFieldOptions::ByteSize()
const {
3141 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3143 if (has_is_autoincrement()) {
3144 total_size += 1 + 1;
3150 ::google::protobuf::internal::WireFormatLite::UInt32Size(
3155 if (has_precision()) {
3157 ::google::protobuf::internal::WireFormatLite::UInt32Size(
3162 if (!unknown_fields().empty()) {
3164 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3167 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3168 _cached_size_ = total_size;
3169 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3173 void Table_Field_NumericFieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
3174 GOOGLE_CHECK_NE(&from,
this);
3175 const Table_Field_NumericFieldOptions* source =
3176 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_NumericFieldOptions*>(
3178 if (source == NULL) {
3179 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
3185 void Table_Field_NumericFieldOptions::MergeFrom(
const Table_Field_NumericFieldOptions& from) {
3186 GOOGLE_CHECK_NE(&from,
this);
3187 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3188 if (from.has_is_autoincrement()) {
3189 set_is_autoincrement(from.is_autoincrement());
3191 if (from.has_scale()) {
3192 set_scale(from.scale());
3194 if (from.has_precision()) {
3195 set_precision(from.precision());
3198 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3201 void Table_Field_NumericFieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
3202 if (&from ==
this)
return;
3207 void Table_Field_NumericFieldOptions::CopyFrom(
const Table_Field_NumericFieldOptions& from) {
3208 if (&from ==
this)
return;
3213 bool Table_Field_NumericFieldOptions::IsInitialized()
const {
3218 void Table_Field_NumericFieldOptions::Swap(Table_Field_NumericFieldOptions* other) {
3219 if (other !=
this) {
3220 std::swap(is_autoincrement_, other->is_autoincrement_);
3221 std::swap(scale_, other->scale_);
3222 std::swap(precision_, other->precision_);
3223 std::swap(_has_bits_[0], other->_has_bits_[0]);
3224 _unknown_fields_.Swap(&other->_unknown_fields_);
3225 std::swap(_cached_size_, other->_cached_size_);
3229 ::google::protobuf::Metadata Table_Field_NumericFieldOptions::GetMetadata()
const {
3230 protobuf_AssignDescriptorsOnce();
3231 ::google::protobuf::Metadata metadata;
3232 metadata.descriptor = Table_Field_NumericFieldOptions_descriptor_;
3233 metadata.reflection = Table_Field_NumericFieldOptions_reflection_;
3241 const int Table_Field_StringFieldOptions::kIsFixedWidthFieldNumber;
3242 const int Table_Field_StringFieldOptions::kLengthFieldNumber;
3243 const int Table_Field_StringFieldOptions::kCollationIdFieldNumber;
3244 const int Table_Field_StringFieldOptions::kCollationFieldNumber;
3247 Table_Field_StringFieldOptions::Table_Field_StringFieldOptions()
3248 : ::google::protobuf::Message() {
3252 void Table_Field_StringFieldOptions::InitAsDefaultInstance() {
3255 Table_Field_StringFieldOptions::Table_Field_StringFieldOptions(
const Table_Field_StringFieldOptions& from)
3256 : ::google::protobuf::Message() {
3261 void Table_Field_StringFieldOptions::SharedCtor() {
3263 is_fixed_width_ =
false;
3266 collation_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
3267 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3270 Table_Field_StringFieldOptions::~Table_Field_StringFieldOptions() {
3274 void Table_Field_StringFieldOptions::SharedDtor() {
3275 if (collation_ != &::google::protobuf::internal::kEmptyString) {
3278 if (
this != default_instance_) {
3282 void Table_Field_StringFieldOptions::SetCachedSize(
int size)
const {
3283 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3284 _cached_size_ = size;
3285 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3287 const ::google::protobuf::Descriptor* Table_Field_StringFieldOptions::descriptor() {
3288 protobuf_AssignDescriptorsOnce();
3289 return Table_Field_StringFieldOptions_descriptor_;
3292 const Table_Field_StringFieldOptions& Table_Field_StringFieldOptions::default_instance() {
3293 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
3294 return *default_instance_;
3297 Table_Field_StringFieldOptions* Table_Field_StringFieldOptions::default_instance_ = NULL;
3299 Table_Field_StringFieldOptions* Table_Field_StringFieldOptions::New()
const {
3300 return new Table_Field_StringFieldOptions;
3303 void Table_Field_StringFieldOptions::Clear() {
3304 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3305 is_fixed_width_ =
false;
3308 if (has_collation()) {
3309 if (collation_ != &::google::protobuf::internal::kEmptyString) {
3310 collation_->clear();
3314 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3315 mutable_unknown_fields()->Clear();
3318 bool Table_Field_StringFieldOptions::MergePartialFromCodedStream(
3319 ::google::protobuf::io::CodedInputStream* input) {
3320 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
3321 ::google::protobuf::uint32 tag;
3322 while ((tag = input->ReadTag()) != 0) {
3323 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3326 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3327 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
3328 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3329 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3330 input, &is_fixed_width_)));
3331 set_has_is_fixed_width();
3333 goto handle_uninterpreted;
3335 if (input->ExpectTag(16))
goto parse_length;
3341 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3342 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
3344 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3345 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3349 goto handle_uninterpreted;
3351 if (input->ExpectTag(24))
goto parse_collation_id;
3357 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3358 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
3360 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3361 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3362 input, &collation_id_)));
3363 set_has_collation_id();
3365 goto handle_uninterpreted;
3367 if (input->ExpectTag(34))
goto parse_collation;
3373 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3374 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
3376 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3377 input, this->mutable_collation()));
3378 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3379 this->collation().data(), this->collation().length(),
3380 ::google::protobuf::internal::WireFormat::PARSE);
3382 goto handle_uninterpreted;
3384 if (input->ExpectAtEnd())
return true;
3389 handle_uninterpreted:
3390 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3391 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3394 DO_(::google::protobuf::internal::WireFormat::SkipField(
3395 input, tag, mutable_unknown_fields()));
3404 void Table_Field_StringFieldOptions::SerializeWithCachedSizes(
3405 ::google::protobuf::io::CodedOutputStream* output)
const {
3407 if (has_is_fixed_width()) {
3408 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is_fixed_width(), output);
3413 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->length(), output);
3417 if (has_collation_id()) {
3418 ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->collation_id(), output);
3422 if (has_collation()) {
3423 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3424 this->collation().data(), this->collation().length(),
3425 ::google::protobuf::internal::WireFormat::SERIALIZE);
3426 ::google::protobuf::internal::WireFormatLite::WriteString(
3427 4, this->collation(), output);
3430 if (!unknown_fields().empty()) {
3431 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3432 unknown_fields(), output);
3436 ::google::protobuf::uint8* Table_Field_StringFieldOptions::SerializeWithCachedSizesToArray(
3437 ::google::protobuf::uint8* target)
const {
3439 if (has_is_fixed_width()) {
3440 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->is_fixed_width(), target);
3445 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->length(), target);
3449 if (has_collation_id()) {
3450 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->collation_id(), target);
3454 if (has_collation()) {
3455 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3456 this->collation().data(), this->collation().length(),
3457 ::google::protobuf::internal::WireFormat::SERIALIZE);
3459 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3460 4, this->collation(), target);
3463 if (!unknown_fields().empty()) {
3464 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3465 unknown_fields(), target);
3470 int Table_Field_StringFieldOptions::ByteSize()
const {
3473 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3475 if (has_is_fixed_width()) {
3476 total_size += 1 + 1;
3482 ::google::protobuf::internal::WireFormatLite::UInt32Size(
3487 if (has_collation_id()) {
3489 ::google::protobuf::internal::WireFormatLite::UInt32Size(
3490 this->collation_id());
3494 if (has_collation()) {
3496 ::google::protobuf::internal::WireFormatLite::StringSize(
3501 if (!unknown_fields().empty()) {
3503 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3506 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3507 _cached_size_ = total_size;
3508 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3512 void Table_Field_StringFieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
3513 GOOGLE_CHECK_NE(&from,
this);
3514 const Table_Field_StringFieldOptions* source =
3515 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_StringFieldOptions*>(
3517 if (source == NULL) {
3518 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
3524 void Table_Field_StringFieldOptions::MergeFrom(
const Table_Field_StringFieldOptions& from) {
3525 GOOGLE_CHECK_NE(&from,
this);
3526 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3527 if (from.has_is_fixed_width()) {
3528 set_is_fixed_width(from.is_fixed_width());
3530 if (from.has_length()) {
3531 set_length(from.length());
3533 if (from.has_collation_id()) {
3534 set_collation_id(from.collation_id());
3536 if (from.has_collation()) {
3537 set_collation(from.collation());
3540 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3543 void Table_Field_StringFieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
3544 if (&from ==
this)
return;
3549 void Table_Field_StringFieldOptions::CopyFrom(
const Table_Field_StringFieldOptions& from) {
3550 if (&from ==
this)
return;
3555 bool Table_Field_StringFieldOptions::IsInitialized()
const {
3560 void Table_Field_StringFieldOptions::Swap(Table_Field_StringFieldOptions* other) {
3561 if (other !=
this) {
3562 std::swap(is_fixed_width_, other->is_fixed_width_);
3563 std::swap(length_, other->length_);
3564 std::swap(collation_id_, other->collation_id_);
3565 std::swap(collation_, other->collation_);
3566 std::swap(_has_bits_[0], other->_has_bits_[0]);
3567 _unknown_fields_.Swap(&other->_unknown_fields_);
3568 std::swap(_cached_size_, other->_cached_size_);
3572 ::google::protobuf::Metadata Table_Field_StringFieldOptions::GetMetadata()
const {
3573 protobuf_AssignDescriptorsOnce();
3574 ::google::protobuf::Metadata metadata;
3575 metadata.descriptor = Table_Field_StringFieldOptions_descriptor_;
3576 metadata.reflection = Table_Field_StringFieldOptions_reflection_;
3584 const int Table_Field_EnumerationValues::kCollationIdFieldNumber;
3585 const int Table_Field_EnumerationValues::kCollationFieldNumber;
3586 const int Table_Field_EnumerationValues::kFieldValueFieldNumber;
3589 Table_Field_EnumerationValues::Table_Field_EnumerationValues()
3590 : ::google::protobuf::Message() {
3594 void Table_Field_EnumerationValues::InitAsDefaultInstance() {
3597 Table_Field_EnumerationValues::Table_Field_EnumerationValues(
const Table_Field_EnumerationValues& from)
3598 : ::google::protobuf::Message() {
3603 void Table_Field_EnumerationValues::SharedCtor() {
3606 collation_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
3607 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3610 Table_Field_EnumerationValues::~Table_Field_EnumerationValues() {
3614 void Table_Field_EnumerationValues::SharedDtor() {
3615 if (collation_ != &::google::protobuf::internal::kEmptyString) {
3618 if (
this != default_instance_) {
3622 void Table_Field_EnumerationValues::SetCachedSize(
int size)
const {
3623 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3624 _cached_size_ = size;
3625 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3627 const ::google::protobuf::Descriptor* Table_Field_EnumerationValues::descriptor() {
3628 protobuf_AssignDescriptorsOnce();
3629 return Table_Field_EnumerationValues_descriptor_;
3632 const Table_Field_EnumerationValues& Table_Field_EnumerationValues::default_instance() {
3633 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
3634 return *default_instance_;
3637 Table_Field_EnumerationValues* Table_Field_EnumerationValues::default_instance_ = NULL;
3639 Table_Field_EnumerationValues* Table_Field_EnumerationValues::New()
const {
3640 return new Table_Field_EnumerationValues;
3643 void Table_Field_EnumerationValues::Clear() {
3644 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3646 if (has_collation()) {
3647 if (collation_ != &::google::protobuf::internal::kEmptyString) {
3648 collation_->clear();
3652 field_value_.Clear();
3653 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3654 mutable_unknown_fields()->Clear();
3657 bool Table_Field_EnumerationValues::MergePartialFromCodedStream(
3658 ::google::protobuf::io::CodedInputStream* input) {
3659 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
3660 ::google::protobuf::uint32 tag;
3661 while ((tag = input->ReadTag()) != 0) {
3662 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3665 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3666 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
3667 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3668 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3669 input, &collation_id_)));
3670 set_has_collation_id();
3672 goto handle_uninterpreted;
3674 if (input->ExpectTag(26))
goto parse_collation;
3680 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3681 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
3683 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3684 input, this->mutable_collation()));
3685 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3686 this->collation().data(), this->collation().length(),
3687 ::google::protobuf::internal::WireFormat::PARSE);
3689 goto handle_uninterpreted;
3691 if (input->ExpectTag(34))
goto parse_field_value;
3697 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3698 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
3700 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3701 input, this->add_field_value()));
3702 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3703 this->field_value(this->field_value_size() - 1).data(),
3704 this->field_value(this->field_value_size() - 1).length(),
3705 ::google::protobuf::internal::WireFormat::PARSE);
3707 goto handle_uninterpreted;
3709 if (input->ExpectTag(34))
goto parse_field_value;
3710 if (input->ExpectAtEnd())
return true;
3715 handle_uninterpreted:
3716 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3717 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3720 DO_(::google::protobuf::internal::WireFormat::SkipField(
3721 input, tag, mutable_unknown_fields()));
3730 void Table_Field_EnumerationValues::SerializeWithCachedSizes(
3731 ::google::protobuf::io::CodedOutputStream* output)
const {
3733 if (has_collation_id()) {
3734 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->collation_id(), output);
3738 if (has_collation()) {
3739 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3740 this->collation().data(), this->collation().length(),
3741 ::google::protobuf::internal::WireFormat::SERIALIZE);
3742 ::google::protobuf::internal::WireFormatLite::WriteString(
3743 3, this->collation(), output);
3747 for (
int i = 0; i < this->field_value_size(); i++) {
3748 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3749 this->field_value(i).data(), this->field_value(i).length(),
3750 ::google::protobuf::internal::WireFormat::SERIALIZE);
3751 ::google::protobuf::internal::WireFormatLite::WriteString(
3752 4, this->field_value(i), output);
3755 if (!unknown_fields().empty()) {
3756 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3757 unknown_fields(), output);
3761 ::google::protobuf::uint8* Table_Field_EnumerationValues::SerializeWithCachedSizesToArray(
3762 ::google::protobuf::uint8* target)
const {
3764 if (has_collation_id()) {
3765 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->collation_id(), target);
3769 if (has_collation()) {
3770 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3771 this->collation().data(), this->collation().length(),
3772 ::google::protobuf::internal::WireFormat::SERIALIZE);
3774 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3775 3, this->collation(), target);
3779 for (
int i = 0; i < this->field_value_size(); i++) {
3780 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3781 this->field_value(i).data(), this->field_value(i).length(),
3782 ::google::protobuf::internal::WireFormat::SERIALIZE);
3783 target = ::google::protobuf::internal::WireFormatLite::
3784 WriteStringToArray(4, this->field_value(i), target);
3787 if (!unknown_fields().empty()) {
3788 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3789 unknown_fields(), target);
3794 int Table_Field_EnumerationValues::ByteSize()
const {
3797 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3799 if (has_collation_id()) {
3801 ::google::protobuf::internal::WireFormatLite::UInt32Size(
3802 this->collation_id());
3806 if (has_collation()) {
3808 ::google::protobuf::internal::WireFormatLite::StringSize(
3814 total_size += 1 * this->field_value_size();
3815 for (
int i = 0; i < this->field_value_size(); i++) {
3816 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
3817 this->field_value(i));
3820 if (!unknown_fields().empty()) {
3822 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3825 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3826 _cached_size_ = total_size;
3827 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3831 void Table_Field_EnumerationValues::MergeFrom(const ::google::protobuf::Message& from) {
3832 GOOGLE_CHECK_NE(&from,
this);
3833 const Table_Field_EnumerationValues* source =
3834 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_EnumerationValues*>(
3836 if (source == NULL) {
3837 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
3843 void Table_Field_EnumerationValues::MergeFrom(
const Table_Field_EnumerationValues& from) {
3844 GOOGLE_CHECK_NE(&from,
this);
3845 field_value_.MergeFrom(from.field_value_);
3846 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3847 if (from.has_collation_id()) {
3848 set_collation_id(from.collation_id());
3850 if (from.has_collation()) {
3851 set_collation(from.collation());
3854 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3857 void Table_Field_EnumerationValues::CopyFrom(const ::google::protobuf::Message& from) {
3858 if (&from ==
this)
return;
3863 void Table_Field_EnumerationValues::CopyFrom(
const Table_Field_EnumerationValues& from) {
3864 if (&from ==
this)
return;
3869 bool Table_Field_EnumerationValues::IsInitialized()
const {
3874 void Table_Field_EnumerationValues::Swap(Table_Field_EnumerationValues* other) {
3875 if (other !=
this) {
3876 std::swap(collation_id_, other->collation_id_);
3877 std::swap(collation_, other->collation_);
3878 field_value_.Swap(&other->field_value_);
3879 std::swap(_has_bits_[0], other->_has_bits_[0]);
3880 _unknown_fields_.Swap(&other->_unknown_fields_);
3881 std::swap(_cached_size_, other->_cached_size_);
3885 ::google::protobuf::Metadata Table_Field_EnumerationValues::GetMetadata()
const {
3886 protobuf_AssignDescriptorsOnce();
3887 ::google::protobuf::Metadata metadata;
3888 metadata.descriptor = Table_Field_EnumerationValues_descriptor_;
3889 metadata.reflection = Table_Field_EnumerationValues_reflection_;
3897 const int Table_Field_TimeFieldOptions::kMicrosecondsFieldNumber;
3900 Table_Field_TimeFieldOptions::Table_Field_TimeFieldOptions()
3901 : ::google::protobuf::Message() {
3905 void Table_Field_TimeFieldOptions::InitAsDefaultInstance() {
3908 Table_Field_TimeFieldOptions::Table_Field_TimeFieldOptions(
const Table_Field_TimeFieldOptions& from)
3909 : ::google::protobuf::Message() {
3914 void Table_Field_TimeFieldOptions::SharedCtor() {
3916 microseconds_ =
false;
3917 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3920 Table_Field_TimeFieldOptions::~Table_Field_TimeFieldOptions() {
3924 void Table_Field_TimeFieldOptions::SharedDtor() {
3925 if (
this != default_instance_) {
3929 void Table_Field_TimeFieldOptions::SetCachedSize(
int size)
const {
3930 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3931 _cached_size_ = size;
3932 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3934 const ::google::protobuf::Descriptor* Table_Field_TimeFieldOptions::descriptor() {
3935 protobuf_AssignDescriptorsOnce();
3936 return Table_Field_TimeFieldOptions_descriptor_;
3939 const Table_Field_TimeFieldOptions& Table_Field_TimeFieldOptions::default_instance() {
3940 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
3941 return *default_instance_;
3944 Table_Field_TimeFieldOptions* Table_Field_TimeFieldOptions::default_instance_ = NULL;
3946 Table_Field_TimeFieldOptions* Table_Field_TimeFieldOptions::New()
const {
3947 return new Table_Field_TimeFieldOptions;
3950 void Table_Field_TimeFieldOptions::Clear() {
3951 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3952 microseconds_ =
false;
3954 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3955 mutable_unknown_fields()->Clear();
3958 bool Table_Field_TimeFieldOptions::MergePartialFromCodedStream(
3959 ::google::protobuf::io::CodedInputStream* input) {
3960 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
3961 ::google::protobuf::uint32 tag;
3962 while ((tag = input->ReadTag()) != 0) {
3963 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3966 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3967 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
3968 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3969 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3970 input, µseconds_)));
3971 set_has_microseconds();
3973 goto handle_uninterpreted;
3975 if (input->ExpectAtEnd())
return true;
3980 handle_uninterpreted:
3981 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3982 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3985 DO_(::google::protobuf::internal::WireFormat::SkipField(
3986 input, tag, mutable_unknown_fields()));
3995 void Table_Field_TimeFieldOptions::SerializeWithCachedSizes(
3996 ::google::protobuf::io::CodedOutputStream* output)
const {
3998 if (has_microseconds()) {
3999 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->microseconds(), output);
4002 if (!unknown_fields().empty()) {
4003 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4004 unknown_fields(), output);
4008 ::google::protobuf::uint8* Table_Field_TimeFieldOptions::SerializeWithCachedSizesToArray(
4009 ::google::protobuf::uint8* target)
const {
4011 if (has_microseconds()) {
4012 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->microseconds(), target);
4015 if (!unknown_fields().empty()) {
4016 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4017 unknown_fields(), target);
4022 int Table_Field_TimeFieldOptions::ByteSize()
const {
4025 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4027 if (has_microseconds()) {
4028 total_size += 1 + 1;
4032 if (!unknown_fields().empty()) {
4034 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4037 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4038 _cached_size_ = total_size;
4039 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4043 void Table_Field_TimeFieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
4044 GOOGLE_CHECK_NE(&from,
this);
4045 const Table_Field_TimeFieldOptions* source =
4046 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_TimeFieldOptions*>(
4048 if (source == NULL) {
4049 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
4055 void Table_Field_TimeFieldOptions::MergeFrom(
const Table_Field_TimeFieldOptions& from) {
4056 GOOGLE_CHECK_NE(&from,
this);
4057 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4058 if (from.has_microseconds()) {
4059 set_microseconds(from.microseconds());
4062 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4065 void Table_Field_TimeFieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
4066 if (&from ==
this)
return;
4071 void Table_Field_TimeFieldOptions::CopyFrom(
const Table_Field_TimeFieldOptions& from) {
4072 if (&from ==
this)
return;
4077 bool Table_Field_TimeFieldOptions::IsInitialized()
const {
4082 void Table_Field_TimeFieldOptions::Swap(Table_Field_TimeFieldOptions* other) {
4083 if (other !=
this) {
4084 std::swap(microseconds_, other->microseconds_);
4085 std::swap(_has_bits_[0], other->_has_bits_[0]);
4086 _unknown_fields_.Swap(&other->_unknown_fields_);
4087 std::swap(_cached_size_, other->_cached_size_);
4091 ::google::protobuf::Metadata Table_Field_TimeFieldOptions::GetMetadata()
const {
4092 protobuf_AssignDescriptorsOnce();
4093 ::google::protobuf::Metadata metadata;
4094 metadata.descriptor = Table_Field_TimeFieldOptions_descriptor_;
4095 metadata.reflection = Table_Field_TimeFieldOptions_reflection_;
4103 const int Table_Field::kNameFieldNumber;
4104 const int Table_Field::kTypeFieldNumber;
4105 const int Table_Field::kOptionsFieldNumber;
4106 const int Table_Field::kConstraintsFieldNumber;
4107 const int Table_Field::kNumericOptionsFieldNumber;
4108 const int Table_Field::kStringOptionsFieldNumber;
4109 const int Table_Field::kTimeOptionsFieldNumber;
4110 const int Table_Field::kCommentFieldNumber;
4111 const int Table_Field::kEnumerationValuesFieldNumber;
4114 Table_Field::Table_Field()
4115 : ::google::protobuf::Message() {
4119 void Table_Field::InitAsDefaultInstance() {
4128 Table_Field::Table_Field(
const Table_Field& from)
4129 : ::google::protobuf::Message() {
4134 void Table_Field::SharedCtor() {
4136 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
4139 constraints_ = NULL;
4140 numeric_options_ = NULL;
4141 string_options_ = NULL;
4142 time_options_ = NULL;
4143 comment_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
4144 enumeration_values_ = NULL;
4145 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
4148 Table_Field::~Table_Field() {
4152 void Table_Field::SharedDtor() {
4153 if (name_ != &::google::protobuf::internal::kEmptyString) {
4156 if (comment_ != &::google::protobuf::internal::kEmptyString) {
4159 if (
this != default_instance_) {
4161 delete constraints_;
4162 delete numeric_options_;
4163 delete string_options_;
4164 delete time_options_;
4165 delete enumeration_values_;
4169 void Table_Field::SetCachedSize(
int size)
const {
4170 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4171 _cached_size_ = size;
4172 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4174 const ::google::protobuf::Descriptor* Table_Field::descriptor() {
4175 protobuf_AssignDescriptorsOnce();
4176 return Table_Field_descriptor_;
4179 const Table_Field& Table_Field::default_instance() {
4180 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
4181 return *default_instance_;
4184 Table_Field* Table_Field::default_instance_ = NULL;
4186 Table_Field* Table_Field::New()
const {
4187 return new Table_Field;
4190 void Table_Field::Clear() {
4191 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4193 if (name_ != &::google::protobuf::internal::kEmptyString) {
4198 if (has_options()) {
4199 if (options_ != NULL) options_->::drizzled::message::Table_Field_FieldOptions::Clear();
4201 if (has_constraints()) {
4202 if (constraints_ != NULL) constraints_->::drizzled::message::Table_Field_FieldConstraints::Clear();
4204 if (has_numeric_options()) {
4205 if (numeric_options_ != NULL) numeric_options_->::drizzled::message::Table_Field_NumericFieldOptions::Clear();
4207 if (has_string_options()) {
4208 if (string_options_ != NULL) string_options_->::drizzled::message::Table_Field_StringFieldOptions::Clear();
4210 if (has_time_options()) {
4211 if (time_options_ != NULL) time_options_->::drizzled::message::Table_Field_TimeFieldOptions::Clear();
4213 if (has_comment()) {
4214 if (comment_ != &::google::protobuf::internal::kEmptyString) {
4219 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
4220 if (has_enumeration_values()) {
4221 if (enumeration_values_ != NULL) enumeration_values_->::drizzled::message::Table_Field_EnumerationValues::Clear();
4224 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
4225 mutable_unknown_fields()->Clear();
4228 bool Table_Field::MergePartialFromCodedStream(
4229 ::google::protobuf::io::CodedInputStream* input) {
4230 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
4231 ::google::protobuf::uint32 tag;
4232 while ((tag = input->ReadTag()) != 0) {
4233 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4236 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4237 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4238 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4239 input, this->mutable_name()));
4240 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4241 this->name().data(), this->name().length(),
4242 ::google::protobuf::internal::WireFormat::PARSE);
4244 goto handle_uninterpreted;
4246 if (input->ExpectTag(16))
goto parse_type;
4252 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4253 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4256 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4257 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4259 if (::drizzled::message::Table_Field_FieldType_IsValid(value)) {
4260 set_type(static_cast< ::drizzled::message::Table_Field_FieldType >(value));
4262 mutable_unknown_fields()->AddVarint(2, value);
4265 goto handle_uninterpreted;
4267 if (input->ExpectTag(34))
goto parse_options;
4273 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4274 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4276 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4277 input, mutable_options()));
4279 goto handle_uninterpreted;
4281 if (input->ExpectTag(42))
goto parse_constraints;
4287 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4288 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4290 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4291 input, mutable_constraints()));
4293 goto handle_uninterpreted;
4295 if (input->ExpectTag(50))
goto parse_numeric_options;
4301 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4302 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4303 parse_numeric_options:
4304 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4305 input, mutable_numeric_options()));
4307 goto handle_uninterpreted;
4309 if (input->ExpectTag(58))
goto parse_string_options;
4315 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4316 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4317 parse_string_options:
4318 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4319 input, mutable_string_options()));
4321 goto handle_uninterpreted;
4323 if (input->ExpectTag(66))
goto parse_time_options;
4329 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4330 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4332 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4333 input, mutable_time_options()));
4335 goto handle_uninterpreted;
4337 if (input->ExpectTag(130))
goto parse_comment;
4343 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4344 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4346 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4347 input, this->mutable_comment()));
4348 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4349 this->comment().data(), this->comment().length(),
4350 ::google::protobuf::internal::WireFormat::PARSE);
4352 goto handle_uninterpreted;
4354 if (input->ExpectTag(138))
goto parse_enumeration_values;
4360 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4361 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4362 parse_enumeration_values:
4363 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4364 input, mutable_enumeration_values()));
4366 goto handle_uninterpreted;
4368 if (input->ExpectAtEnd())
return true;
4373 handle_uninterpreted:
4374 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4375 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4378 DO_(::google::protobuf::internal::WireFormat::SkipField(
4379 input, tag, mutable_unknown_fields()));
4388 void Table_Field::SerializeWithCachedSizes(
4389 ::google::protobuf::io::CodedOutputStream* output)
const {
4392 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4393 this->name().data(), this->name().length(),
4394 ::google::protobuf::internal::WireFormat::SERIALIZE);
4395 ::google::protobuf::internal::WireFormatLite::WriteString(
4396 1, this->name(), output);
4401 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4402 2, this->type(), output);
4406 if (has_options()) {
4407 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4408 4, this->options(), output);
4412 if (has_constraints()) {
4413 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4414 5, this->constraints(), output);
4418 if (has_numeric_options()) {
4419 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4420 6, this->numeric_options(), output);
4424 if (has_string_options()) {
4425 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4426 7, this->string_options(), output);
4430 if (has_time_options()) {
4431 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4432 8, this->time_options(), output);
4436 if (has_comment()) {
4437 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4438 this->comment().data(), this->comment().length(),
4439 ::google::protobuf::internal::WireFormat::SERIALIZE);
4440 ::google::protobuf::internal::WireFormatLite::WriteString(
4441 16, this->comment(), output);
4445 if (has_enumeration_values()) {
4446 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4447 17, this->enumeration_values(), output);
4450 if (!unknown_fields().empty()) {
4451 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4452 unknown_fields(), output);
4456 ::google::protobuf::uint8* Table_Field::SerializeWithCachedSizesToArray(
4457 ::google::protobuf::uint8* target)
const {
4460 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4461 this->name().data(), this->name().length(),
4462 ::google::protobuf::internal::WireFormat::SERIALIZE);
4464 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4465 1, this->name(), target);
4470 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4471 2, this->type(), target);
4475 if (has_options()) {
4476 target = ::google::protobuf::internal::WireFormatLite::
4477 WriteMessageNoVirtualToArray(
4478 4, this->options(), target);
4482 if (has_constraints()) {
4483 target = ::google::protobuf::internal::WireFormatLite::
4484 WriteMessageNoVirtualToArray(
4485 5, this->constraints(), target);
4489 if (has_numeric_options()) {
4490 target = ::google::protobuf::internal::WireFormatLite::
4491 WriteMessageNoVirtualToArray(
4492 6, this->numeric_options(), target);
4496 if (has_string_options()) {
4497 target = ::google::protobuf::internal::WireFormatLite::
4498 WriteMessageNoVirtualToArray(
4499 7, this->string_options(), target);
4503 if (has_time_options()) {
4504 target = ::google::protobuf::internal::WireFormatLite::
4505 WriteMessageNoVirtualToArray(
4506 8, this->time_options(), target);
4510 if (has_comment()) {
4511 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4512 this->comment().data(), this->comment().length(),
4513 ::google::protobuf::internal::WireFormat::SERIALIZE);
4515 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4516 16, this->comment(), target);
4520 if (has_enumeration_values()) {
4521 target = ::google::protobuf::internal::WireFormatLite::
4522 WriteMessageNoVirtualToArray(
4523 17, this->enumeration_values(), target);
4526 if (!unknown_fields().empty()) {
4527 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4528 unknown_fields(), target);
4533 int Table_Field::ByteSize()
const {
4536 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4540 ::google::protobuf::internal::WireFormatLite::StringSize(
4547 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
4551 if (has_options()) {
4553 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4558 if (has_constraints()) {
4560 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4561 this->constraints());
4565 if (has_numeric_options()) {
4567 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4568 this->numeric_options());
4572 if (has_string_options()) {
4574 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4575 this->string_options());
4579 if (has_time_options()) {
4581 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4582 this->time_options());
4586 if (has_comment()) {
4588 ::google::protobuf::internal::WireFormatLite::StringSize(
4593 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
4595 if (has_enumeration_values()) {
4597 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4598 this->enumeration_values());
4602 if (!unknown_fields().empty()) {
4604 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4607 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4608 _cached_size_ = total_size;
4609 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4613 void Table_Field::MergeFrom(const ::google::protobuf::Message& from) {
4614 GOOGLE_CHECK_NE(&from,
this);
4615 const Table_Field* source =
4616 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field*>(
4618 if (source == NULL) {
4619 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
4625 void Table_Field::MergeFrom(
const Table_Field& from) {
4626 GOOGLE_CHECK_NE(&from,
this);
4627 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4628 if (from.has_name()) {
4629 set_name(from.name());
4631 if (from.has_type()) {
4632 set_type(from.type());
4634 if (from.has_options()) {
4635 mutable_options()->::drizzled::message::Table_Field_FieldOptions::MergeFrom(from.options());
4637 if (from.has_constraints()) {
4638 mutable_constraints()->::drizzled::message::Table_Field_FieldConstraints::MergeFrom(from.constraints());
4640 if (from.has_numeric_options()) {
4641 mutable_numeric_options()->::drizzled::message::Table_Field_NumericFieldOptions::MergeFrom(from.numeric_options());
4643 if (from.has_string_options()) {
4644 mutable_string_options()->::drizzled::message::Table_Field_StringFieldOptions::MergeFrom(from.string_options());
4646 if (from.has_time_options()) {
4647 mutable_time_options()->::drizzled::message::Table_Field_TimeFieldOptions::MergeFrom(from.time_options());
4649 if (from.has_comment()) {
4650 set_comment(from.comment());
4653 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
4654 if (from.has_enumeration_values()) {
4655 mutable_enumeration_values()->::drizzled::message::Table_Field_EnumerationValues::MergeFrom(from.enumeration_values());
4658 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4661 void Table_Field::CopyFrom(const ::google::protobuf::Message& from) {
4662 if (&from ==
this)
return;
4667 void Table_Field::CopyFrom(
const Table_Field& from) {
4668 if (&from ==
this)
return;
4673 bool Table_Field::IsInitialized()
const {
4674 if ((_has_bits_[0] & 0x00000003) != 0x00000003)
return false;
4679 void Table_Field::Swap(Table_Field* other) {
4680 if (other !=
this) {
4681 std::swap(name_, other->name_);
4682 std::swap(type_, other->type_);
4683 std::swap(options_, other->options_);
4684 std::swap(constraints_, other->constraints_);
4685 std::swap(numeric_options_, other->numeric_options_);
4686 std::swap(string_options_, other->string_options_);
4687 std::swap(time_options_, other->time_options_);
4688 std::swap(comment_, other->comment_);
4689 std::swap(enumeration_values_, other->enumeration_values_);
4690 std::swap(_has_bits_[0], other->_has_bits_[0]);
4691 _unknown_fields_.Swap(&other->_unknown_fields_);
4692 std::swap(_cached_size_, other->_cached_size_);
4696 ::google::protobuf::Metadata Table_Field::GetMetadata()
const {
4697 protobuf_AssignDescriptorsOnce();
4698 ::google::protobuf::Metadata metadata;
4699 metadata.descriptor = Table_Field_descriptor_;
4700 metadata.reflection = Table_Field_reflection_;
4707 const ::google::protobuf::EnumDescriptor* Table_Index_IndexType_descriptor() {
4708 protobuf_AssignDescriptorsOnce();
4709 return Table_Index_IndexType_descriptor_;
4711 bool Table_Index_IndexType_IsValid(
int value) {
4725 const Table_Index_IndexType Table_Index::UNKNOWN_INDEX;
4726 const Table_Index_IndexType Table_Index::BTREE;
4727 const Table_Index_IndexType Table_Index::RTREE;
4728 const Table_Index_IndexType Table_Index::HASH;
4729 const Table_Index_IndexType Table_Index::FULLTEXT;
4730 const Table_Index_IndexType Table_Index::IndexType_MIN;
4731 const Table_Index_IndexType Table_Index::IndexType_MAX;
4732 const int Table_Index::IndexType_ARRAYSIZE;
4735 const int Table_Index_IndexPart::kFieldnrFieldNumber;
4736 const int Table_Index_IndexPart::kCompareLengthFieldNumber;
4737 const int Table_Index_IndexPart::kInReverseOrderFieldNumber;
4740 Table_Index_IndexPart::Table_Index_IndexPart()
4741 : ::google::protobuf::Message() {
4745 void Table_Index_IndexPart::InitAsDefaultInstance() {
4748 Table_Index_IndexPart::Table_Index_IndexPart(
const Table_Index_IndexPart& from)
4749 : ::google::protobuf::Message() {
4754 void Table_Index_IndexPart::SharedCtor() {
4757 compare_length_ = 0u;
4758 in_reverse_order_ =
false;
4759 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
4762 Table_Index_IndexPart::~Table_Index_IndexPart() {
4766 void Table_Index_IndexPart::SharedDtor() {
4767 if (
this != default_instance_) {
4771 void Table_Index_IndexPart::SetCachedSize(
int size)
const {
4772 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4773 _cached_size_ = size;
4774 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4776 const ::google::protobuf::Descriptor* Table_Index_IndexPart::descriptor() {
4777 protobuf_AssignDescriptorsOnce();
4778 return Table_Index_IndexPart_descriptor_;
4781 const Table_Index_IndexPart& Table_Index_IndexPart::default_instance() {
4782 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
4783 return *default_instance_;
4786 Table_Index_IndexPart* Table_Index_IndexPart::default_instance_ = NULL;
4788 Table_Index_IndexPart* Table_Index_IndexPart::New()
const {
4789 return new Table_Index_IndexPart;
4792 void Table_Index_IndexPart::Clear() {
4793 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4795 compare_length_ = 0u;
4796 in_reverse_order_ =
false;
4798 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
4799 mutable_unknown_fields()->Clear();
4802 bool Table_Index_IndexPart::MergePartialFromCodedStream(
4803 ::google::protobuf::io::CodedInputStream* input) {
4804 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
4805 ::google::protobuf::uint32 tag;
4806 while ((tag = input->ReadTag()) != 0) {
4807 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4810 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4811 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4812 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4813 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
4814 input, &fieldnr_)));
4817 goto handle_uninterpreted;
4819 if (input->ExpectTag(16))
goto parse_compare_length;
4825 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4826 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4827 parse_compare_length:
4828 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4829 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
4830 input, &compare_length_)));
4831 set_has_compare_length();
4833 goto handle_uninterpreted;
4835 if (input->ExpectTag(24))
goto parse_in_reverse_order;
4841 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4842 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4843 parse_in_reverse_order:
4844 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4845 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4846 input, &in_reverse_order_)));
4847 set_has_in_reverse_order();
4849 goto handle_uninterpreted;
4851 if (input->ExpectAtEnd())
return true;
4856 handle_uninterpreted:
4857 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4858 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4861 DO_(::google::protobuf::internal::WireFormat::SkipField(
4862 input, tag, mutable_unknown_fields()));
4871 void Table_Index_IndexPart::SerializeWithCachedSizes(
4872 ::google::protobuf::io::CodedOutputStream* output)
const {
4874 if (has_fieldnr()) {
4875 ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->fieldnr(), output);
4879 if (has_compare_length()) {
4880 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->compare_length(), output);
4884 if (has_in_reverse_order()) {
4885 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->in_reverse_order(), output);
4888 if (!unknown_fields().empty()) {
4889 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4890 unknown_fields(), output);
4894 ::google::protobuf::uint8* Table_Index_IndexPart::SerializeWithCachedSizesToArray(
4895 ::google::protobuf::uint8* target)
const {
4897 if (has_fieldnr()) {
4898 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->fieldnr(), target);
4902 if (has_compare_length()) {
4903 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->compare_length(), target);
4907 if (has_in_reverse_order()) {
4908 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->in_reverse_order(), target);
4911 if (!unknown_fields().empty()) {
4912 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4913 unknown_fields(), target);
4918 int Table_Index_IndexPart::ByteSize()
const {
4921 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4923 if (has_fieldnr()) {
4925 ::google::protobuf::internal::WireFormatLite::UInt32Size(
4930 if (has_compare_length()) {
4932 ::google::protobuf::internal::WireFormatLite::UInt32Size(
4933 this->compare_length());
4937 if (has_in_reverse_order()) {
4938 total_size += 1 + 1;
4942 if (!unknown_fields().empty()) {
4944 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4947 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4948 _cached_size_ = total_size;
4949 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4953 void Table_Index_IndexPart::MergeFrom(const ::google::protobuf::Message& from) {
4954 GOOGLE_CHECK_NE(&from,
this);
4955 const Table_Index_IndexPart* source =
4956 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Index_IndexPart*>(
4958 if (source == NULL) {
4959 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
4965 void Table_Index_IndexPart::MergeFrom(
const Table_Index_IndexPart& from) {
4966 GOOGLE_CHECK_NE(&from,
this);
4967 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4968 if (from.has_fieldnr()) {
4969 set_fieldnr(from.fieldnr());
4971 if (from.has_compare_length()) {
4972 set_compare_length(from.compare_length());
4974 if (from.has_in_reverse_order()) {
4975 set_in_reverse_order(from.in_reverse_order());
4978 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4981 void Table_Index_IndexPart::CopyFrom(const ::google::protobuf::Message& from) {
4982 if (&from ==
this)
return;
4987 void Table_Index_IndexPart::CopyFrom(
const Table_Index_IndexPart& from) {
4988 if (&from ==
this)
return;
4993 bool Table_Index_IndexPart::IsInitialized()
const {
4994 if ((_has_bits_[0] & 0x00000001) != 0x00000001)
return false;
4999 void Table_Index_IndexPart::Swap(Table_Index_IndexPart* other) {
5000 if (other !=
this) {
5001 std::swap(fieldnr_, other->fieldnr_);
5002 std::swap(compare_length_, other->compare_length_);
5003 std::swap(in_reverse_order_, other->in_reverse_order_);
5004 std::swap(_has_bits_[0], other->_has_bits_[0]);
5005 _unknown_fields_.Swap(&other->_unknown_fields_);
5006 std::swap(_cached_size_, other->_cached_size_);
5010 ::google::protobuf::Metadata Table_Index_IndexPart::GetMetadata()
const {
5011 protobuf_AssignDescriptorsOnce();
5012 ::google::protobuf::Metadata metadata;
5013 metadata.descriptor = Table_Index_IndexPart_descriptor_;
5014 metadata.reflection = Table_Index_IndexPart_reflection_;
5022 const int Table_Index_Options::kPackKeyFieldNumber;
5023 const int Table_Index_Options::kBinaryPackKeyFieldNumber;
5024 const int Table_Index_Options::kVarLengthKeyFieldNumber;
5025 const int Table_Index_Options::kNullPartKeyFieldNumber;
5026 const int Table_Index_Options::kKeyBlockSizeFieldNumber;
5027 const int Table_Index_Options::kHasPartialSegmentsFieldNumber;
5028 const int Table_Index_Options::kAutoGeneratedKeyFieldNumber;
5031 Table_Index_Options::Table_Index_Options()
5032 : ::google::protobuf::Message() {
5036 void Table_Index_Options::InitAsDefaultInstance() {
5039 Table_Index_Options::Table_Index_Options(
const Table_Index_Options& from)
5040 : ::google::protobuf::Message() {
5045 void Table_Index_Options::SharedCtor() {
5048 binary_pack_key_ =
false;
5049 var_length_key_ =
false;
5050 null_part_key_ =
false;
5051 key_block_size_ = 0u;
5052 has_partial_segments_ =
false;
5053 auto_generated_key_ =
false;
5054 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
5057 Table_Index_Options::~Table_Index_Options() {
5061 void Table_Index_Options::SharedDtor() {
5062 if (
this != default_instance_) {
5066 void Table_Index_Options::SetCachedSize(
int size)
const {
5067 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5068 _cached_size_ = size;
5069 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5071 const ::google::protobuf::Descriptor* Table_Index_Options::descriptor() {
5072 protobuf_AssignDescriptorsOnce();
5073 return Table_Index_Options_descriptor_;
5076 const Table_Index_Options& Table_Index_Options::default_instance() {
5077 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
5078 return *default_instance_;
5081 Table_Index_Options* Table_Index_Options::default_instance_ = NULL;
5083 Table_Index_Options* Table_Index_Options::New()
const {
5084 return new Table_Index_Options;
5087 void Table_Index_Options::Clear() {
5088 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5090 binary_pack_key_ =
false;
5091 var_length_key_ =
false;
5092 null_part_key_ =
false;
5093 key_block_size_ = 0u;
5094 has_partial_segments_ =
false;
5095 auto_generated_key_ =
false;
5097 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
5098 mutable_unknown_fields()->Clear();
5101 bool Table_Index_Options::MergePartialFromCodedStream(
5102 ::google::protobuf::io::CodedInputStream* input) {
5103 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
5104 ::google::protobuf::uint32 tag;
5105 while ((tag = input->ReadTag()) != 0) {
5106 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5109 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5110 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5111 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5112 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5113 input, &pack_key_)));
5116 goto handle_uninterpreted;
5118 if (input->ExpectTag(16))
goto parse_binary_pack_key;
5124 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5125 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5126 parse_binary_pack_key:
5127 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5128 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5129 input, &binary_pack_key_)));
5130 set_has_binary_pack_key();
5132 goto handle_uninterpreted;
5134 if (input->ExpectTag(24))
goto parse_var_length_key;
5140 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5141 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5142 parse_var_length_key:
5143 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5144 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5145 input, &var_length_key_)));
5146 set_has_var_length_key();
5148 goto handle_uninterpreted;
5150 if (input->ExpectTag(32))
goto parse_null_part_key;
5156 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5157 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5158 parse_null_part_key:
5159 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5160 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5161 input, &null_part_key_)));
5162 set_has_null_part_key();
5164 goto handle_uninterpreted;
5166 if (input->ExpectTag(40))
goto parse_key_block_size;
5172 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5173 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5174 parse_key_block_size:
5175 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5176 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5177 input, &key_block_size_)));
5178 set_has_key_block_size();
5180 goto handle_uninterpreted;
5182 if (input->ExpectTag(48))
goto parse_has_partial_segments;
5188 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5189 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5190 parse_has_partial_segments:
5191 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5192 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5193 input, &has_partial_segments_)));
5194 set_has_has_partial_segments();
5196 goto handle_uninterpreted;
5198 if (input->ExpectTag(56))
goto parse_auto_generated_key;
5204 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5205 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5206 parse_auto_generated_key:
5207 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5208 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5209 input, &auto_generated_key_)));
5210 set_has_auto_generated_key();
5212 goto handle_uninterpreted;
5214 if (input->ExpectAtEnd())
return true;
5219 handle_uninterpreted:
5220 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5221 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5224 DO_(::google::protobuf::internal::WireFormat::SkipField(
5225 input, tag, mutable_unknown_fields()));
5234 void Table_Index_Options::SerializeWithCachedSizes(
5235 ::google::protobuf::io::CodedOutputStream* output)
const {
5237 if (has_pack_key()) {
5238 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->pack_key(), output);
5242 if (has_binary_pack_key()) {
5243 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->binary_pack_key(), output);
5247 if (has_var_length_key()) {
5248 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->var_length_key(), output);
5252 if (has_null_part_key()) {
5253 ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->null_part_key(), output);
5257 if (has_key_block_size()) {
5258 ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->key_block_size(), output);
5262 if (has_has_partial_segments()) {
5263 ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->has_partial_segments(), output);
5267 if (has_auto_generated_key()) {
5268 ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->auto_generated_key(), output);
5271 if (!unknown_fields().empty()) {
5272 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5273 unknown_fields(), output);
5277 ::google::protobuf::uint8* Table_Index_Options::SerializeWithCachedSizesToArray(
5278 ::google::protobuf::uint8* target)
const {
5280 if (has_pack_key()) {
5281 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->pack_key(), target);
5285 if (has_binary_pack_key()) {
5286 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->binary_pack_key(), target);
5290 if (has_var_length_key()) {
5291 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->var_length_key(), target);
5295 if (has_null_part_key()) {
5296 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->null_part_key(), target);
5300 if (has_key_block_size()) {
5301 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->key_block_size(), target);
5305 if (has_has_partial_segments()) {
5306 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->has_partial_segments(), target);
5310 if (has_auto_generated_key()) {
5311 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->auto_generated_key(), target);
5314 if (!unknown_fields().empty()) {
5315 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5316 unknown_fields(), target);
5321 int Table_Index_Options::ByteSize()
const {
5324 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5326 if (has_pack_key()) {
5327 total_size += 1 + 1;
5331 if (has_binary_pack_key()) {
5332 total_size += 1 + 1;
5336 if (has_var_length_key()) {
5337 total_size += 1 + 1;
5341 if (has_null_part_key()) {
5342 total_size += 1 + 1;
5346 if (has_key_block_size()) {
5348 ::google::protobuf::internal::WireFormatLite::UInt32Size(
5349 this->key_block_size());
5353 if (has_has_partial_segments()) {
5354 total_size += 1 + 1;
5358 if (has_auto_generated_key()) {
5359 total_size += 1 + 1;
5363 if (!unknown_fields().empty()) {
5365 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5368 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5369 _cached_size_ = total_size;
5370 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5374 void Table_Index_Options::MergeFrom(const ::google::protobuf::Message& from) {
5375 GOOGLE_CHECK_NE(&from,
this);
5376 const Table_Index_Options* source =
5377 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Index_Options*>(
5379 if (source == NULL) {
5380 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
5386 void Table_Index_Options::MergeFrom(
const Table_Index_Options& from) {
5387 GOOGLE_CHECK_NE(&from,
this);
5388 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5389 if (from.has_pack_key()) {
5390 set_pack_key(from.pack_key());
5392 if (from.has_binary_pack_key()) {
5393 set_binary_pack_key(from.binary_pack_key());
5395 if (from.has_var_length_key()) {
5396 set_var_length_key(from.var_length_key());
5398 if (from.has_null_part_key()) {
5399 set_null_part_key(from.null_part_key());
5401 if (from.has_key_block_size()) {
5402 set_key_block_size(from.key_block_size());
5404 if (from.has_has_partial_segments()) {
5405 set_has_partial_segments(from.has_partial_segments());
5407 if (from.has_auto_generated_key()) {
5408 set_auto_generated_key(from.auto_generated_key());
5411 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5414 void Table_Index_Options::CopyFrom(const ::google::protobuf::Message& from) {
5415 if (&from ==
this)
return;
5420 void Table_Index_Options::CopyFrom(
const Table_Index_Options& from) {
5421 if (&from ==
this)
return;
5426 bool Table_Index_Options::IsInitialized()
const {
5431 void Table_Index_Options::Swap(Table_Index_Options* other) {
5432 if (other !=
this) {
5433 std::swap(pack_key_, other->pack_key_);
5434 std::swap(binary_pack_key_, other->binary_pack_key_);
5435 std::swap(var_length_key_, other->var_length_key_);
5436 std::swap(null_part_key_, other->null_part_key_);
5437 std::swap(key_block_size_, other->key_block_size_);
5438 std::swap(has_partial_segments_, other->has_partial_segments_);
5439 std::swap(auto_generated_key_, other->auto_generated_key_);
5440 std::swap(_has_bits_[0], other->_has_bits_[0]);
5441 _unknown_fields_.Swap(&other->_unknown_fields_);
5442 std::swap(_cached_size_, other->_cached_size_);
5446 ::google::protobuf::Metadata Table_Index_Options::GetMetadata()
const {
5447 protobuf_AssignDescriptorsOnce();
5448 ::google::protobuf::Metadata metadata;
5449 metadata.descriptor = Table_Index_Options_descriptor_;
5450 metadata.reflection = Table_Index_Options_reflection_;
5458 const int Table_Index::kNameFieldNumber;
5459 const int Table_Index::kIsPrimaryFieldNumber;
5460 const int Table_Index::kIsUniqueFieldNumber;
5461 const int Table_Index::kTypeFieldNumber;
5462 const int Table_Index::kKeyLengthFieldNumber;
5463 const int Table_Index::kIndexPartFieldNumber;
5464 const int Table_Index::kOptionsFieldNumber;
5465 const int Table_Index::kCommentFieldNumber;
5468 Table_Index::Table_Index()
5469 : ::google::protobuf::Message() {
5473 void Table_Index::InitAsDefaultInstance() {
5477 Table_Index::Table_Index(
const Table_Index& from)
5478 : ::google::protobuf::Message() {
5483 void Table_Index::SharedCtor() {
5485 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
5486 is_primary_ =
false;
5491 comment_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
5492 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
5495 Table_Index::~Table_Index() {
5499 void Table_Index::SharedDtor() {
5500 if (name_ != &::google::protobuf::internal::kEmptyString) {
5503 if (comment_ != &::google::protobuf::internal::kEmptyString) {
5506 if (
this != default_instance_) {
5511 void Table_Index::SetCachedSize(
int size)
const {
5512 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5513 _cached_size_ = size;
5514 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5516 const ::google::protobuf::Descriptor* Table_Index::descriptor() {
5517 protobuf_AssignDescriptorsOnce();
5518 return Table_Index_descriptor_;
5521 const Table_Index& Table_Index::default_instance() {
5522 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
5523 return *default_instance_;
5526 Table_Index* Table_Index::default_instance_ = NULL;
5528 Table_Index* Table_Index::New()
const {
5529 return new Table_Index;
5532 void Table_Index::Clear() {
5533 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5535 if (name_ != &::google::protobuf::internal::kEmptyString) {
5539 is_primary_ =
false;
5543 if (has_options()) {
5544 if (options_ != NULL) options_->::drizzled::message::Table_Index_Options::Clear();
5546 if (has_comment()) {
5547 if (comment_ != &::google::protobuf::internal::kEmptyString) {
5552 index_part_.Clear();
5553 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
5554 mutable_unknown_fields()->Clear();
5557 bool Table_Index::MergePartialFromCodedStream(
5558 ::google::protobuf::io::CodedInputStream* input) {
5559 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
5560 ::google::protobuf::uint32 tag;
5561 while ((tag = input->ReadTag()) != 0) {
5562 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5565 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5566 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
5567 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5568 input, this->mutable_name()));
5569 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5570 this->name().data(), this->name().length(),
5571 ::google::protobuf::internal::WireFormat::PARSE);
5573 goto handle_uninterpreted;
5575 if (input->ExpectTag(16))
goto parse_is_primary;
5581 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5582 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5584 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5585 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5586 input, &is_primary_)));
5587 set_has_is_primary();
5589 goto handle_uninterpreted;
5591 if (input->ExpectTag(24))
goto parse_is_unique;
5597 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5598 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5600 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5601 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5602 input, &is_unique_)));
5603 set_has_is_unique();
5605 goto handle_uninterpreted;
5607 if (input->ExpectTag(32))
goto parse_type;
5613 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5614 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5617 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5618 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5620 if (::drizzled::message::Table_Index_IndexType_IsValid(value)) {
5621 set_type(static_cast< ::drizzled::message::Table_Index_IndexType >(value));
5623 mutable_unknown_fields()->AddVarint(4, value);
5626 goto handle_uninterpreted;
5628 if (input->ExpectTag(40))
goto parse_key_length;
5634 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5635 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5637 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5638 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5639 input, &key_length_)));
5640 set_has_key_length();
5642 goto handle_uninterpreted;
5644 if (input->ExpectTag(50))
goto parse_index_part;
5650 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5651 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
5653 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5654 input, add_index_part()));
5656 goto handle_uninterpreted;
5658 if (input->ExpectTag(50))
goto parse_index_part;
5659 if (input->ExpectTag(58))
goto parse_options;
5665 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5666 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
5668 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5669 input, mutable_options()));
5671 goto handle_uninterpreted;
5673 if (input->ExpectTag(66))
goto parse_comment;
5679 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5680 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
5682 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5683 input, this->mutable_comment()));
5684 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5685 this->comment().data(), this->comment().length(),
5686 ::google::protobuf::internal::WireFormat::PARSE);
5688 goto handle_uninterpreted;
5690 if (input->ExpectAtEnd())
return true;
5695 handle_uninterpreted:
5696 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5697 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5700 DO_(::google::protobuf::internal::WireFormat::SkipField(
5701 input, tag, mutable_unknown_fields()));
5710 void Table_Index::SerializeWithCachedSizes(
5711 ::google::protobuf::io::CodedOutputStream* output)
const {
5714 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5715 this->name().data(), this->name().length(),
5716 ::google::protobuf::internal::WireFormat::SERIALIZE);
5717 ::google::protobuf::internal::WireFormatLite::WriteString(
5718 1, this->name(), output);
5722 if (has_is_primary()) {
5723 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_primary(), output);
5727 if (has_is_unique()) {
5728 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->is_unique(), output);
5733 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5734 4, this->type(), output);
5738 if (has_key_length()) {
5739 ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->key_length(), output);
5743 for (
int i = 0; i < this->index_part_size(); i++) {
5744 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5745 6, this->index_part(i), output);
5749 if (has_options()) {
5750 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5751 7, this->options(), output);
5755 if (has_comment()) {
5756 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5757 this->comment().data(), this->comment().length(),
5758 ::google::protobuf::internal::WireFormat::SERIALIZE);
5759 ::google::protobuf::internal::WireFormatLite::WriteString(
5760 8, this->comment(), output);
5763 if (!unknown_fields().empty()) {
5764 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5765 unknown_fields(), output);
5769 ::google::protobuf::uint8* Table_Index::SerializeWithCachedSizesToArray(
5770 ::google::protobuf::uint8* target)
const {
5773 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5774 this->name().data(), this->name().length(),
5775 ::google::protobuf::internal::WireFormat::SERIALIZE);
5777 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5778 1, this->name(), target);
5782 if (has_is_primary()) {
5783 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_primary(), target);
5787 if (has_is_unique()) {
5788 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->is_unique(), target);
5793 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5794 4, this->type(), target);
5798 if (has_key_length()) {
5799 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->key_length(), target);
5803 for (
int i = 0; i < this->index_part_size(); i++) {
5804 target = ::google::protobuf::internal::WireFormatLite::
5805 WriteMessageNoVirtualToArray(
5806 6, this->index_part(i), target);
5810 if (has_options()) {
5811 target = ::google::protobuf::internal::WireFormatLite::
5812 WriteMessageNoVirtualToArray(
5813 7, this->options(), target);
5817 if (has_comment()) {
5818 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5819 this->comment().data(), this->comment().length(),
5820 ::google::protobuf::internal::WireFormat::SERIALIZE);
5822 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5823 8, this->comment(), target);
5826 if (!unknown_fields().empty()) {
5827 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5828 unknown_fields(), target);
5833 int Table_Index::ByteSize()
const {
5836 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5840 ::google::protobuf::internal::WireFormatLite::StringSize(
5845 if (has_is_primary()) {
5846 total_size += 1 + 1;
5850 if (has_is_unique()) {
5851 total_size += 1 + 1;
5857 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
5861 if (has_key_length()) {
5863 ::google::protobuf::internal::WireFormatLite::UInt32Size(
5864 this->key_length());
5868 if (has_options()) {
5870 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5875 if (has_comment()) {
5877 ::google::protobuf::internal::WireFormatLite::StringSize(
5883 total_size += 1 * this->index_part_size();
5884 for (
int i = 0; i < this->index_part_size(); i++) {
5886 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5887 this->index_part(i));
5890 if (!unknown_fields().empty()) {
5892 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5895 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5896 _cached_size_ = total_size;
5897 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5901 void Table_Index::MergeFrom(const ::google::protobuf::Message& from) {
5902 GOOGLE_CHECK_NE(&from,
this);
5903 const Table_Index* source =
5904 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Index*>(
5906 if (source == NULL) {
5907 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
5913 void Table_Index::MergeFrom(
const Table_Index& from) {
5914 GOOGLE_CHECK_NE(&from,
this);
5915 index_part_.MergeFrom(from.index_part_);
5916 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5917 if (from.has_name()) {
5918 set_name(from.name());
5920 if (from.has_is_primary()) {
5921 set_is_primary(from.is_primary());
5923 if (from.has_is_unique()) {
5924 set_is_unique(from.is_unique());
5926 if (from.has_type()) {
5927 set_type(from.type());
5929 if (from.has_key_length()) {
5930 set_key_length(from.key_length());
5932 if (from.has_options()) {
5933 mutable_options()->::drizzled::message::Table_Index_Options::MergeFrom(from.options());
5935 if (from.has_comment()) {
5936 set_comment(from.comment());
5939 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5942 void Table_Index::CopyFrom(const ::google::protobuf::Message& from) {
5943 if (&from ==
this)
return;
5948 void Table_Index::CopyFrom(
const Table_Index& from) {
5949 if (&from ==
this)
return;
5954 bool Table_Index::IsInitialized()
const {
5955 if ((_has_bits_[0] & 0x0000001f) != 0x0000001f)
return false;
5957 for (
int i = 0; i < index_part_size(); i++) {
5958 if (!this->index_part(i).IsInitialized())
return false;
5963 void Table_Index::Swap(Table_Index* other) {
5964 if (other !=
this) {
5965 std::swap(name_, other->name_);
5966 std::swap(is_primary_, other->is_primary_);
5967 std::swap(is_unique_, other->is_unique_);
5968 std::swap(type_, other->type_);
5969 std::swap(key_length_, other->key_length_);
5970 index_part_.Swap(&other->index_part_);
5971 std::swap(options_, other->options_);
5972 std::swap(comment_, other->comment_);
5973 std::swap(_has_bits_[0], other->_has_bits_[0]);
5974 _unknown_fields_.Swap(&other->_unknown_fields_);
5975 std::swap(_cached_size_, other->_cached_size_);
5979 ::google::protobuf::Metadata Table_Index::GetMetadata()
const {
5980 protobuf_AssignDescriptorsOnce();
5981 ::google::protobuf::Metadata metadata;
5982 metadata.descriptor = Table_Index_descriptor_;
5983 metadata.reflection = Table_Index_reflection_;
5991 const int Table::kNameFieldNumber;
5992 const int Table::kSchemaFieldNumber;
5993 const int Table::kTypeFieldNumber;
5994 const int Table::kEngineFieldNumber;
5995 const int Table::kFieldFieldNumber;
5996 const int Table::kIndexesFieldNumber;
5997 const int Table::kFkConstraintFieldNumber;
5998 const int Table::kOptionsFieldNumber;
5999 const int Table::kCreationTimestampFieldNumber;
6000 const int Table::kUpdateTimestampFieldNumber;
6001 const int Table::kCatalogFieldNumber;
6002 const int Table::kUuidFieldNumber;
6003 const int Table::kVersionFieldNumber;
6004 const int Table::kReplicationOptionsFieldNumber;
6005 const int Table::kAccessFieldNumber;
6009 : ::google::protobuf::Message() {
6013 void Table::InitAsDefaultInstance() {
6020 Table::Table(
const Table& from)
6021 : ::google::protobuf::Message() {
6026 void Table::SharedCtor() {
6028 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
6029 schema_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
6033 creation_timestamp_ = GOOGLE_ULONGLONG(0);
6034 update_timestamp_ = GOOGLE_ULONGLONG(0);
6035 catalog_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
6036 uuid_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
6037 version_ = GOOGLE_ULONGLONG(0);
6038 replication_options_ = NULL;
6040 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
6047 void Table::SharedDtor() {
6048 if (name_ != &::google::protobuf::internal::kEmptyString) {
6051 if (schema_ != &::google::protobuf::internal::kEmptyString) {
6054 if (catalog_ != &::google::protobuf::internal::kEmptyString) {
6057 if (uuid_ != &::google::protobuf::internal::kEmptyString) {
6060 if (
this != default_instance_) {
6063 delete replication_options_;
6068 void Table::SetCachedSize(
int size)
const {
6069 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6070 _cached_size_ = size;
6071 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6073 const ::google::protobuf::Descriptor* Table::descriptor() {
6074 protobuf_AssignDescriptorsOnce();
6075 return Table_descriptor_;
6078 const Table& Table::default_instance() {
6079 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
6080 return *default_instance_;
6083 Table* Table::default_instance_ = NULL;
6085 Table* Table::New()
const {
6089 void Table::Clear() {
6090 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6092 if (name_ != &::google::protobuf::internal::kEmptyString) {
6097 if (schema_ != &::google::protobuf::internal::kEmptyString) {
6103 if (engine_ != NULL) engine_->::drizzled::message::Engine::Clear();
6105 if (has_options()) {
6106 if (options_ != NULL) options_->::drizzled::message::Table_TableOptions::Clear();
6109 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
6110 creation_timestamp_ = GOOGLE_ULONGLONG(0);
6111 update_timestamp_ = GOOGLE_ULONGLONG(0);
6112 if (has_catalog()) {
6113 if (catalog_ != &::google::protobuf::internal::kEmptyString) {
6118 if (uuid_ != &::google::protobuf::internal::kEmptyString) {
6122 version_ = GOOGLE_ULONGLONG(0);
6123 if (has_replication_options()) {
6124 if (replication_options_ != NULL) replication_options_->::drizzled::message::ReplicationOptions::Clear();
6127 if (access_ != NULL) access_->::drizzled::message::Access::Clear();
6132 fk_constraint_.Clear();
6133 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
6134 mutable_unknown_fields()->Clear();
6137 bool Table::MergePartialFromCodedStream(
6138 ::google::protobuf::io::CodedInputStream* input) {
6139 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
6140 ::google::protobuf::uint32 tag;
6141 while ((tag = input->ReadTag()) != 0) {
6142 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6145 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6146 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6147 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6148 input, this->mutable_name()));
6149 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6150 this->name().data(), this->name().length(),
6151 ::google::protobuf::internal::WireFormat::PARSE);
6153 goto handle_uninterpreted;
6155 if (input->ExpectTag(18))
goto parse_engine;
6161 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6162 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6164 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6165 input, mutable_engine()));
6167 goto handle_uninterpreted;
6169 if (input->ExpectTag(26))
goto parse_field;
6175 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6176 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6178 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6179 input, add_field()));
6181 goto handle_uninterpreted;
6183 if (input->ExpectTag(26))
goto parse_field;
6184 if (input->ExpectTag(34))
goto parse_indexes;
6190 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6191 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6193 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6194 input, add_indexes()));
6196 goto handle_uninterpreted;
6198 if (input->ExpectTag(34))
goto parse_indexes;
6199 if (input->ExpectTag(40))
goto parse_type;
6205 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6206 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
6209 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6210 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6212 if (::drizzled::message::Table_TableType_IsValid(value)) {
6213 set_type(static_cast< ::drizzled::message::Table_TableType >(value));
6215 mutable_unknown_fields()->AddVarint(5, value);
6218 goto handle_uninterpreted;
6220 if (input->ExpectTag(50))
goto parse_schema;
6226 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6227 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6229 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6230 input, this->mutable_schema()));
6231 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6232 this->schema().data(), this->schema().length(),
6233 ::google::protobuf::internal::WireFormat::PARSE);
6235 goto handle_uninterpreted;
6237 if (input->ExpectTag(66))
goto parse_fk_constraint;
6243 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6244 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6245 parse_fk_constraint:
6246 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6247 input, add_fk_constraint()));
6249 goto handle_uninterpreted;
6251 if (input->ExpectTag(66))
goto parse_fk_constraint;
6252 if (input->ExpectTag(74))
goto parse_options;
6258 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6259 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6261 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6262 input, mutable_options()));
6264 goto handle_uninterpreted;
6266 if (input->ExpectTag(88))
goto parse_creation_timestamp;
6272 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6273 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
6274 parse_creation_timestamp:
6275 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6276 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
6277 input, &creation_timestamp_)));
6278 set_has_creation_timestamp();
6280 goto handle_uninterpreted;
6282 if (input->ExpectTag(96))
goto parse_update_timestamp;
6288 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6289 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
6290 parse_update_timestamp:
6291 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6292 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
6293 input, &update_timestamp_)));
6294 set_has_update_timestamp();
6296 goto handle_uninterpreted;
6298 if (input->ExpectTag(106))
goto parse_catalog;
6304 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6305 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6307 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6308 input, this->mutable_catalog()));
6309 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6310 this->catalog().data(), this->catalog().length(),
6311 ::google::protobuf::internal::WireFormat::PARSE);
6313 goto handle_uninterpreted;
6315 if (input->ExpectTag(114))
goto parse_uuid;
6321 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6322 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6324 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6325 input, this->mutable_uuid()));
6326 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6327 this->uuid().data(), this->uuid().length(),
6328 ::google::protobuf::internal::WireFormat::PARSE);
6330 goto handle_uninterpreted;
6332 if (input->ExpectTag(120))
goto parse_version;
6338 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6339 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
6341 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6342 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
6343 input, &version_)));
6346 goto handle_uninterpreted;
6348 if (input->ExpectTag(130))
goto parse_replication_options;
6354 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6355 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6356 parse_replication_options:
6357 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6358 input, mutable_replication_options()));
6360 goto handle_uninterpreted;
6362 if (input->ExpectTag(138))
goto parse_access;
6368 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6369 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6371 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6372 input, mutable_access()));
6374 goto handle_uninterpreted;
6376 if (input->ExpectAtEnd())
return true;
6381 handle_uninterpreted:
6382 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6383 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6386 DO_(::google::protobuf::internal::WireFormat::SkipField(
6387 input, tag, mutable_unknown_fields()));
6396 void Table::SerializeWithCachedSizes(
6397 ::google::protobuf::io::CodedOutputStream* output)
const {
6400 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6401 this->name().data(), this->name().length(),
6402 ::google::protobuf::internal::WireFormat::SERIALIZE);
6403 ::google::protobuf::internal::WireFormatLite::WriteString(
6404 1, this->name(), output);
6409 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6410 2, this->engine(), output);
6414 for (
int i = 0; i < this->field_size(); i++) {
6415 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6416 3, this->field(i), output);
6420 for (
int i = 0; i < this->indexes_size(); i++) {
6421 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6422 4, this->indexes(i), output);
6427 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6428 5, this->type(), output);
6433 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6434 this->schema().data(), this->schema().length(),
6435 ::google::protobuf::internal::WireFormat::SERIALIZE);
6436 ::google::protobuf::internal::WireFormatLite::WriteString(
6437 6, this->schema(), output);
6441 for (
int i = 0; i < this->fk_constraint_size(); i++) {
6442 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6443 8, this->fk_constraint(i), output);
6447 if (has_options()) {
6448 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6449 9, this->options(), output);
6453 if (has_creation_timestamp()) {
6454 ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->creation_timestamp(), output);
6458 if (has_update_timestamp()) {
6459 ::google::protobuf::internal::WireFormatLite::WriteUInt64(12, this->update_timestamp(), output);
6463 if (has_catalog()) {
6464 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6465 this->catalog().data(), this->catalog().length(),
6466 ::google::protobuf::internal::WireFormat::SERIALIZE);
6467 ::google::protobuf::internal::WireFormatLite::WriteString(
6468 13, this->catalog(), output);
6473 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6474 this->uuid().data(), this->uuid().length(),
6475 ::google::protobuf::internal::WireFormat::SERIALIZE);
6476 ::google::protobuf::internal::WireFormatLite::WriteString(
6477 14, this->uuid(), output);
6481 if (has_version()) {
6482 ::google::protobuf::internal::WireFormatLite::WriteUInt64(15, this->version(), output);
6486 if (has_replication_options()) {
6487 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6488 16, this->replication_options(), output);
6493 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6494 17, this->access(), output);
6497 if (!unknown_fields().empty()) {
6498 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6499 unknown_fields(), output);
6503 ::google::protobuf::uint8* Table::SerializeWithCachedSizesToArray(
6504 ::google::protobuf::uint8* target)
const {
6507 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6508 this->name().data(), this->name().length(),
6509 ::google::protobuf::internal::WireFormat::SERIALIZE);
6511 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6512 1, this->name(), target);
6517 target = ::google::protobuf::internal::WireFormatLite::
6518 WriteMessageNoVirtualToArray(
6519 2, this->engine(), target);
6523 for (
int i = 0; i < this->field_size(); i++) {
6524 target = ::google::protobuf::internal::WireFormatLite::
6525 WriteMessageNoVirtualToArray(
6526 3, this->field(i), target);
6530 for (
int i = 0; i < this->indexes_size(); i++) {
6531 target = ::google::protobuf::internal::WireFormatLite::
6532 WriteMessageNoVirtualToArray(
6533 4, this->indexes(i), target);
6538 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6539 5, this->type(), target);
6544 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6545 this->schema().data(), this->schema().length(),
6546 ::google::protobuf::internal::WireFormat::SERIALIZE);
6548 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6549 6, this->schema(), target);
6553 for (
int i = 0; i < this->fk_constraint_size(); i++) {
6554 target = ::google::protobuf::internal::WireFormatLite::
6555 WriteMessageNoVirtualToArray(
6556 8, this->fk_constraint(i), target);
6560 if (has_options()) {
6561 target = ::google::protobuf::internal::WireFormatLite::
6562 WriteMessageNoVirtualToArray(
6563 9, this->options(), target);
6567 if (has_creation_timestamp()) {
6568 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->creation_timestamp(), target);
6572 if (has_update_timestamp()) {
6573 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(12, this->update_timestamp(), target);
6577 if (has_catalog()) {
6578 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6579 this->catalog().data(), this->catalog().length(),
6580 ::google::protobuf::internal::WireFormat::SERIALIZE);
6582 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6583 13, this->catalog(), target);
6588 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6589 this->uuid().data(), this->uuid().length(),
6590 ::google::protobuf::internal::WireFormat::SERIALIZE);
6592 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6593 14, this->uuid(), target);
6597 if (has_version()) {
6598 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(15, this->version(), target);
6602 if (has_replication_options()) {
6603 target = ::google::protobuf::internal::WireFormatLite::
6604 WriteMessageNoVirtualToArray(
6605 16, this->replication_options(), target);
6610 target = ::google::protobuf::internal::WireFormatLite::
6611 WriteMessageNoVirtualToArray(
6612 17, this->access(), target);
6615 if (!unknown_fields().empty()) {
6616 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6617 unknown_fields(), target);
6622 int Table::ByteSize()
const {
6625 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6629 ::google::protobuf::internal::WireFormatLite::StringSize(
6636 ::google::protobuf::internal::WireFormatLite::StringSize(
6643 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
6649 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6654 if (has_options()) {
6656 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6661 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
6663 if (has_creation_timestamp()) {
6665 ::google::protobuf::internal::WireFormatLite::UInt64Size(
6666 this->creation_timestamp());
6670 if (has_update_timestamp()) {
6672 ::google::protobuf::internal::WireFormatLite::UInt64Size(
6673 this->update_timestamp());
6677 if (has_catalog()) {
6679 ::google::protobuf::internal::WireFormatLite::StringSize(
6686 ::google::protobuf::internal::WireFormatLite::StringSize(
6691 if (has_version()) {
6693 ::google::protobuf::internal::WireFormatLite::UInt64Size(
6698 if (has_replication_options()) {
6700 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6701 this->replication_options());
6707 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6713 total_size += 1 * this->field_size();
6714 for (
int i = 0; i < this->field_size(); i++) {
6716 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6721 total_size += 1 * this->indexes_size();
6722 for (
int i = 0; i < this->indexes_size(); i++) {
6724 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6729 total_size += 1 * this->fk_constraint_size();
6730 for (
int i = 0; i < this->fk_constraint_size(); i++) {
6732 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6733 this->fk_constraint(i));
6736 if (!unknown_fields().empty()) {
6738 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6741 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6742 _cached_size_ = total_size;
6743 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6747 void Table::MergeFrom(const ::google::protobuf::Message& from) {
6748 GOOGLE_CHECK_NE(&from,
this);
6749 const Table* source =
6750 ::google::protobuf::internal::dynamic_cast_if_available<const Table*>(
6752 if (source == NULL) {
6753 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
6759 void Table::MergeFrom(
const Table& from) {
6760 GOOGLE_CHECK_NE(&from,
this);
6761 field_.MergeFrom(from.field_);
6762 indexes_.MergeFrom(from.indexes_);
6763 fk_constraint_.MergeFrom(from.fk_constraint_);
6764 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6765 if (from.has_name()) {
6766 set_name(from.name());
6768 if (from.has_schema()) {
6769 set_schema(from.schema());
6771 if (from.has_type()) {
6772 set_type(from.type());
6774 if (from.has_engine()) {
6775 mutable_engine()->::drizzled::message::Engine::MergeFrom(from.engine());
6777 if (from.has_options()) {
6778 mutable_options()->::drizzled::message::Table_TableOptions::MergeFrom(from.options());
6781 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
6782 if (from.has_creation_timestamp()) {
6783 set_creation_timestamp(from.creation_timestamp());
6785 if (from.has_update_timestamp()) {
6786 set_update_timestamp(from.update_timestamp());
6788 if (from.has_catalog()) {
6789 set_catalog(from.catalog());
6791 if (from.has_uuid()) {
6792 set_uuid(from.uuid());
6794 if (from.has_version()) {
6795 set_version(from.version());
6797 if (from.has_replication_options()) {
6798 mutable_replication_options()->::drizzled::message::ReplicationOptions::MergeFrom(from.replication_options());
6800 if (from.has_access()) {
6801 mutable_access()->::drizzled::message::Access::MergeFrom(from.access());
6804 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6807 void Table::CopyFrom(const ::google::protobuf::Message& from) {
6808 if (&from ==
this)
return;
6813 void Table::CopyFrom(
const Table& from) {
6814 if (&from ==
this)
return;
6819 bool Table::IsInitialized()
const {
6820 if ((_has_bits_[0] & 0x0000030f) != 0x0000030f)
return false;
6823 if (!this->engine().IsInitialized())
return false;
6825 for (
int i = 0; i < field_size(); i++) {
6826 if (!this->field(i).IsInitialized())
return false;
6828 for (
int i = 0; i < indexes_size(); i++) {
6829 if (!this->indexes(i).IsInitialized())
return false;
6831 for (
int i = 0; i < fk_constraint_size(); i++) {
6832 if (!this->fk_constraint(i).IsInitialized())
return false;
6837 void Table::Swap(Table* other) {
6838 if (other !=
this) {
6839 std::swap(name_, other->name_);
6840 std::swap(schema_, other->schema_);
6841 std::swap(type_, other->type_);
6842 std::swap(engine_, other->engine_);
6843 field_.Swap(&other->field_);
6844 indexes_.Swap(&other->indexes_);
6845 fk_constraint_.Swap(&other->fk_constraint_);
6846 std::swap(options_, other->options_);
6847 std::swap(creation_timestamp_, other->creation_timestamp_);
6848 std::swap(update_timestamp_, other->update_timestamp_);
6849 std::swap(catalog_, other->catalog_);
6850 std::swap(uuid_, other->uuid_);
6851 std::swap(version_, other->version_);
6852 std::swap(replication_options_, other->replication_options_);
6853 std::swap(access_, other->access_);
6854 std::swap(_has_bits_[0], other->_has_bits_[0]);
6855 _unknown_fields_.Swap(&other->_unknown_fields_);
6856 std::swap(_cached_size_, other->_cached_size_);
6860 ::google::protobuf::Metadata Table::GetMetadata()
const {
6861 protobuf_AssignDescriptorsOnce();
6862 ::google::protobuf::Metadata metadata;
6863 metadata.descriptor = Table_descriptor_;
6864 metadata.reflection = Table_reflection_;
6872 const int AddedFields::kAddedFieldFieldNumber;
6875 AddedFields::AddedFields()
6876 : ::google::protobuf::Message() {
6880 void AddedFields::InitAsDefaultInstance() {
6883 AddedFields::AddedFields(
const AddedFields& from)
6884 : ::google::protobuf::Message() {
6889 void AddedFields::SharedCtor() {
6891 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
6894 AddedFields::~AddedFields() {
6898 void AddedFields::SharedDtor() {
6899 if (
this != default_instance_) {
6903 void AddedFields::SetCachedSize(
int size)
const {
6904 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6905 _cached_size_ = size;
6906 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6908 const ::google::protobuf::Descriptor* AddedFields::descriptor() {
6909 protobuf_AssignDescriptorsOnce();
6910 return AddedFields_descriptor_;
6913 const AddedFields& AddedFields::default_instance() {
6914 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
6915 return *default_instance_;
6918 AddedFields* AddedFields::default_instance_ = NULL;
6920 AddedFields* AddedFields::New()
const {
6921 return new AddedFields;
6924 void AddedFields::Clear() {
6925 added_field_.Clear();
6926 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
6927 mutable_unknown_fields()->Clear();
6930 bool AddedFields::MergePartialFromCodedStream(
6931 ::google::protobuf::io::CodedInputStream* input) {
6932 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
6933 ::google::protobuf::uint32 tag;
6934 while ((tag = input->ReadTag()) != 0) {
6935 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6938 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6939 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6941 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6942 input, add_added_field()));
6944 goto handle_uninterpreted;
6946 if (input->ExpectTag(10))
goto parse_added_field;
6947 if (input->ExpectAtEnd())
return true;
6952 handle_uninterpreted:
6953 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6954 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6957 DO_(::google::protobuf::internal::WireFormat::SkipField(
6958 input, tag, mutable_unknown_fields()));
6967 void AddedFields::SerializeWithCachedSizes(
6968 ::google::protobuf::io::CodedOutputStream* output)
const {
6970 for (
int i = 0; i < this->added_field_size(); i++) {
6971 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6972 1, this->added_field(i), output);
6975 if (!unknown_fields().empty()) {
6976 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6977 unknown_fields(), output);
6981 ::google::protobuf::uint8* AddedFields::SerializeWithCachedSizesToArray(
6982 ::google::protobuf::uint8* target)
const {
6984 for (
int i = 0; i < this->added_field_size(); i++) {
6985 target = ::google::protobuf::internal::WireFormatLite::
6986 WriteMessageNoVirtualToArray(
6987 1, this->added_field(i), target);
6990 if (!unknown_fields().empty()) {
6991 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6992 unknown_fields(), target);
6997 int AddedFields::ByteSize()
const {
7001 total_size += 1 * this->added_field_size();
7002 for (
int i = 0; i < this->added_field_size(); i++) {
7004 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7005 this->added_field(i));
7008 if (!unknown_fields().empty()) {
7010 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7013 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7014 _cached_size_ = total_size;
7015 GOOGLE_SAFE_CONCURRENT_WRITES_END();
7019 void AddedFields::MergeFrom(const ::google::protobuf::Message& from) {
7020 GOOGLE_CHECK_NE(&from,
this);
7021 const AddedFields* source =
7022 ::google::protobuf::internal::dynamic_cast_if_available<const AddedFields*>(
7024 if (source == NULL) {
7025 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
7031 void AddedFields::MergeFrom(
const AddedFields& from) {
7032 GOOGLE_CHECK_NE(&from,
this);
7033 added_field_.MergeFrom(from.added_field_);
7034 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
7037 void AddedFields::CopyFrom(const ::google::protobuf::Message& from) {
7038 if (&from ==
this)
return;
7043 void AddedFields::CopyFrom(
const AddedFields& from) {
7044 if (&from ==
this)
return;
7049 bool AddedFields::IsInitialized()
const {
7051 for (
int i = 0; i < added_field_size(); i++) {
7052 if (!this->added_field(i).IsInitialized())
return false;
7057 void AddedFields::Swap(AddedFields* other) {
7058 if (other !=
this) {
7059 added_field_.Swap(&other->added_field_);
7060 std::swap(_has_bits_[0], other->_has_bits_[0]);
7061 _unknown_fields_.Swap(&other->_unknown_fields_);
7062 std::swap(_cached_size_, other->_cached_size_);
7066 ::google::protobuf::Metadata AddedFields::GetMetadata()
const {
7067 protobuf_AssignDescriptorsOnce();
7068 ::google::protobuf::Metadata metadata;
7069 metadata.descriptor = AddedFields_descriptor_;
7070 metadata.reflection = AddedFields_reflection_;