3 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
8 #include <google/protobuf/stubs/once.h>
9 #include <google/protobuf/io/coded_stream.h>
10 #include <google/protobuf/wire_format_lite_inl.h>
11 #include <google/protobuf/descriptor.h>
12 #include <google/protobuf/reflection_ops.h>
13 #include <google/protobuf/wire_format.h>
21 const ::google::protobuf::Descriptor* Table_descriptor_ = NULL;
22 const ::google::protobuf::internal::GeneratedMessageReflection*
23 Table_reflection_ = NULL;
24 const ::google::protobuf::Descriptor* Table_TableOptions_descriptor_ = NULL;
25 const ::google::protobuf::internal::GeneratedMessageReflection*
26 Table_TableOptions_reflection_ = NULL;
27 const ::google::protobuf::Descriptor* Table_ForeignKeyConstraint_descriptor_ = NULL;
28 const ::google::protobuf::internal::GeneratedMessageReflection*
29 Table_ForeignKeyConstraint_reflection_ = NULL;
30 const ::google::protobuf::EnumDescriptor* Table_ForeignKeyConstraint_ForeignKeyMatchOption_descriptor_ = NULL;
31 const ::google::protobuf::EnumDescriptor* Table_ForeignKeyConstraint_ForeignKeyOption_descriptor_ = NULL;
32 const ::google::protobuf::Descriptor* Table_Field_descriptor_ = NULL;
33 const ::google::protobuf::internal::GeneratedMessageReflection*
34 Table_Field_reflection_ = NULL;
35 const ::google::protobuf::Descriptor* Table_Field_FieldOptions_descriptor_ = NULL;
36 const ::google::protobuf::internal::GeneratedMessageReflection*
37 Table_Field_FieldOptions_reflection_ = NULL;
38 const ::google::protobuf::Descriptor* Table_Field_FieldConstraints_descriptor_ = NULL;
39 const ::google::protobuf::internal::GeneratedMessageReflection*
40 Table_Field_FieldConstraints_reflection_ = NULL;
41 const ::google::protobuf::Descriptor* Table_Field_NumericFieldOptions_descriptor_ = NULL;
42 const ::google::protobuf::internal::GeneratedMessageReflection*
43 Table_Field_NumericFieldOptions_reflection_ = NULL;
44 const ::google::protobuf::Descriptor* Table_Field_StringFieldOptions_descriptor_ = NULL;
45 const ::google::protobuf::internal::GeneratedMessageReflection*
46 Table_Field_StringFieldOptions_reflection_ = NULL;
47 const ::google::protobuf::Descriptor* Table_Field_EnumerationValues_descriptor_ = NULL;
48 const ::google::protobuf::internal::GeneratedMessageReflection*
49 Table_Field_EnumerationValues_reflection_ = NULL;
50 const ::google::protobuf::Descriptor* Table_Field_TimeFieldOptions_descriptor_ = NULL;
51 const ::google::protobuf::internal::GeneratedMessageReflection*
52 Table_Field_TimeFieldOptions_reflection_ = NULL;
53 const ::google::protobuf::EnumDescriptor* Table_Field_FieldType_descriptor_ = NULL;
54 const ::google::protobuf::Descriptor* Table_Index_descriptor_ = NULL;
55 const ::google::protobuf::internal::GeneratedMessageReflection*
56 Table_Index_reflection_ = NULL;
57 const ::google::protobuf::Descriptor* Table_Index_IndexPart_descriptor_ = NULL;
58 const ::google::protobuf::internal::GeneratedMessageReflection*
59 Table_Index_IndexPart_reflection_ = NULL;
60 const ::google::protobuf::Descriptor* Table_Index_Options_descriptor_ = NULL;
61 const ::google::protobuf::internal::GeneratedMessageReflection*
62 Table_Index_Options_reflection_ = NULL;
63 const ::google::protobuf::EnumDescriptor* Table_Index_IndexType_descriptor_ = NULL;
64 const ::google::protobuf::EnumDescriptor* Table_TableType_descriptor_ = NULL;
65 const ::google::protobuf::Descriptor* AddedFields_descriptor_ = NULL;
66 const ::google::protobuf::internal::GeneratedMessageReflection*
67 AddedFields_reflection_ = NULL;
72 void protobuf_AssignDesc_table_2eproto() {
73 protobuf_AddDesc_table_2eproto();
74 const ::google::protobuf::FileDescriptor* file =
75 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
77 GOOGLE_CHECK(file != NULL);
78 Table_descriptor_ = file->message_type(0);
79 static const int Table_offsets_[15] = {
80 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, name_),
81 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, schema_),
82 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, type_),
83 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, engine_),
84 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, field_),
85 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, indexes_),
86 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, fk_constraint_),
87 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, options_),
88 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, creation_timestamp_),
89 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, update_timestamp_),
90 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, catalog_),
91 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, uuid_),
92 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, version_),
93 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, replication_options_),
94 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, access_),
97 new ::google::protobuf::internal::GeneratedMessageReflection(
99 Table::default_instance_,
101 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, _has_bits_[0]),
102 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, _unknown_fields_),
104 ::google::protobuf::DescriptorPool::generated_pool(),
105 ::google::protobuf::MessageFactory::generated_factory(),
107 Table_TableOptions_descriptor_ = Table_descriptor_->nested_type(0);
108 static const int Table_TableOptions_offsets_[16] = {
109 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, has_user_set_auto_increment_value_),
110 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, collation_),
111 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, collation_id_),
112 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, data_file_name_),
113 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, index_file_name_),
114 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, max_rows_),
115 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, min_rows_),
116 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, auto_increment_value_),
117 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, avg_row_length_),
118 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, block_size_),
119 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, comment_),
120 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, pack_record_),
121 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, checksum_),
122 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, page_checksum_),
123 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, delay_key_write_),
124 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, unused_),
126 Table_TableOptions_reflection_ =
127 new ::google::protobuf::internal::GeneratedMessageReflection(
128 Table_TableOptions_descriptor_,
129 Table_TableOptions::default_instance_,
130 Table_TableOptions_offsets_,
131 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, _has_bits_[0]),
132 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, _unknown_fields_),
134 ::google::protobuf::DescriptorPool::generated_pool(),
135 ::google::protobuf::MessageFactory::generated_factory(),
136 sizeof(Table_TableOptions));
137 Table_ForeignKeyConstraint_descriptor_ = Table_descriptor_->nested_type(1);
138 static const int Table_ForeignKeyConstraint_offsets_[7] = {
139 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, name_),
140 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, column_names_),
141 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, references_table_name_),
142 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, references_columns_),
143 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, match_),
144 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, update_option_),
145 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, delete_option_),
147 Table_ForeignKeyConstraint_reflection_ =
148 new ::google::protobuf::internal::GeneratedMessageReflection(
149 Table_ForeignKeyConstraint_descriptor_,
150 Table_ForeignKeyConstraint::default_instance_,
151 Table_ForeignKeyConstraint_offsets_,
152 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, _has_bits_[0]),
153 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, _unknown_fields_),
155 ::google::protobuf::DescriptorPool::generated_pool(),
156 ::google::protobuf::MessageFactory::generated_factory(),
157 sizeof(Table_ForeignKeyConstraint));
158 Table_ForeignKeyConstraint_ForeignKeyMatchOption_descriptor_ = Table_ForeignKeyConstraint_descriptor_->enum_type(0);
159 Table_ForeignKeyConstraint_ForeignKeyOption_descriptor_ = Table_ForeignKeyConstraint_descriptor_->enum_type(1);
160 Table_Field_descriptor_ = Table_descriptor_->nested_type(2);
161 static const int Table_Field_offsets_[9] = {
162 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, name_),
163 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, type_),
164 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, options_),
165 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, constraints_),
166 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, numeric_options_),
167 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, string_options_),
168 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, time_options_),
169 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, comment_),
170 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, enumeration_values_),
172 Table_Field_reflection_ =
173 new ::google::protobuf::internal::GeneratedMessageReflection(
174 Table_Field_descriptor_,
175 Table_Field::default_instance_,
176 Table_Field_offsets_,
177 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, _has_bits_[0]),
178 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, _unknown_fields_),
180 ::google::protobuf::DescriptorPool::generated_pool(),
181 ::google::protobuf::MessageFactory::generated_factory(),
182 sizeof(Table_Field));
183 Table_Field_FieldOptions_descriptor_ = Table_Field_descriptor_->nested_type(0);
184 static const int Table_Field_FieldOptions_offsets_[6] = {
185 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, default_value_),
186 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, update_value_),
187 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, default_null_),
188 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, default_bin_value_),
189 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, default_expression_),
190 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, update_expression_),
192 Table_Field_FieldOptions_reflection_ =
193 new ::google::protobuf::internal::GeneratedMessageReflection(
194 Table_Field_FieldOptions_descriptor_,
195 Table_Field_FieldOptions::default_instance_,
196 Table_Field_FieldOptions_offsets_,
197 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, _has_bits_[0]),
198 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, _unknown_fields_),
200 ::google::protobuf::DescriptorPool::generated_pool(),
201 ::google::protobuf::MessageFactory::generated_factory(),
202 sizeof(Table_Field_FieldOptions));
203 Table_Field_FieldConstraints_descriptor_ = Table_Field_descriptor_->nested_type(1);
204 static const int Table_Field_FieldConstraints_offsets_[5] = {
205 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, is_nullable_),
206 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, is_unsigned_),
207 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, is_notnull_),
208 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, is_unique_),
209 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, expression_),
211 Table_Field_FieldConstraints_reflection_ =
212 new ::google::protobuf::internal::GeneratedMessageReflection(
213 Table_Field_FieldConstraints_descriptor_,
214 Table_Field_FieldConstraints::default_instance_,
215 Table_Field_FieldConstraints_offsets_,
216 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, _has_bits_[0]),
217 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, _unknown_fields_),
219 ::google::protobuf::DescriptorPool::generated_pool(),
220 ::google::protobuf::MessageFactory::generated_factory(),
221 sizeof(Table_Field_FieldConstraints));
222 Table_Field_NumericFieldOptions_descriptor_ = Table_Field_descriptor_->nested_type(2);
223 static const int Table_Field_NumericFieldOptions_offsets_[3] = {
224 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_NumericFieldOptions, is_autoincrement_),
225 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_NumericFieldOptions, scale_),
226 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_NumericFieldOptions, precision_),
228 Table_Field_NumericFieldOptions_reflection_ =
229 new ::google::protobuf::internal::GeneratedMessageReflection(
230 Table_Field_NumericFieldOptions_descriptor_,
231 Table_Field_NumericFieldOptions::default_instance_,
232 Table_Field_NumericFieldOptions_offsets_,
233 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_NumericFieldOptions, _has_bits_[0]),
234 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_NumericFieldOptions, _unknown_fields_),
236 ::google::protobuf::DescriptorPool::generated_pool(),
237 ::google::protobuf::MessageFactory::generated_factory(),
238 sizeof(Table_Field_NumericFieldOptions));
239 Table_Field_StringFieldOptions_descriptor_ = Table_Field_descriptor_->nested_type(3);
240 static const int Table_Field_StringFieldOptions_offsets_[4] = {
241 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, is_fixed_width_),
242 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, length_),
243 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, collation_id_),
244 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, collation_),
246 Table_Field_StringFieldOptions_reflection_ =
247 new ::google::protobuf::internal::GeneratedMessageReflection(
248 Table_Field_StringFieldOptions_descriptor_,
249 Table_Field_StringFieldOptions::default_instance_,
250 Table_Field_StringFieldOptions_offsets_,
251 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, _has_bits_[0]),
252 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, _unknown_fields_),
254 ::google::protobuf::DescriptorPool::generated_pool(),
255 ::google::protobuf::MessageFactory::generated_factory(),
256 sizeof(Table_Field_StringFieldOptions));
257 Table_Field_EnumerationValues_descriptor_ = Table_Field_descriptor_->nested_type(4);
258 static const int Table_Field_EnumerationValues_offsets_[3] = {
259 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_EnumerationValues, collation_id_),
260 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_EnumerationValues, collation_),
261 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_EnumerationValues, field_value_),
263 Table_Field_EnumerationValues_reflection_ =
264 new ::google::protobuf::internal::GeneratedMessageReflection(
265 Table_Field_EnumerationValues_descriptor_,
266 Table_Field_EnumerationValues::default_instance_,
267 Table_Field_EnumerationValues_offsets_,
268 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_EnumerationValues, _has_bits_[0]),
269 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_EnumerationValues, _unknown_fields_),
271 ::google::protobuf::DescriptorPool::generated_pool(),
272 ::google::protobuf::MessageFactory::generated_factory(),
273 sizeof(Table_Field_EnumerationValues));
274 Table_Field_TimeFieldOptions_descriptor_ = Table_Field_descriptor_->nested_type(5);
275 static const int Table_Field_TimeFieldOptions_offsets_[1] = {
276 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_TimeFieldOptions, microseconds_),
278 Table_Field_TimeFieldOptions_reflection_ =
279 new ::google::protobuf::internal::GeneratedMessageReflection(
280 Table_Field_TimeFieldOptions_descriptor_,
281 Table_Field_TimeFieldOptions::default_instance_,
282 Table_Field_TimeFieldOptions_offsets_,
283 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_TimeFieldOptions, _has_bits_[0]),
284 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_TimeFieldOptions, _unknown_fields_),
286 ::google::protobuf::DescriptorPool::generated_pool(),
287 ::google::protobuf::MessageFactory::generated_factory(),
288 sizeof(Table_Field_TimeFieldOptions));
289 Table_Field_FieldType_descriptor_ = Table_Field_descriptor_->enum_type(0);
290 Table_Index_descriptor_ = Table_descriptor_->nested_type(3);
291 static const int Table_Index_offsets_[8] = {
292 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, name_),
293 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, is_primary_),
294 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, is_unique_),
295 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, type_),
296 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, key_length_),
297 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, index_part_),
298 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, options_),
299 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, comment_),
301 Table_Index_reflection_ =
302 new ::google::protobuf::internal::GeneratedMessageReflection(
303 Table_Index_descriptor_,
304 Table_Index::default_instance_,
305 Table_Index_offsets_,
306 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, _has_bits_[0]),
307 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, _unknown_fields_),
309 ::google::protobuf::DescriptorPool::generated_pool(),
310 ::google::protobuf::MessageFactory::generated_factory(),
311 sizeof(Table_Index));
312 Table_Index_IndexPart_descriptor_ = Table_Index_descriptor_->nested_type(0);
313 static const int Table_Index_IndexPart_offsets_[3] = {
314 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_IndexPart, fieldnr_),
315 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_IndexPart, compare_length_),
316 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_IndexPart, in_reverse_order_),
318 Table_Index_IndexPart_reflection_ =
319 new ::google::protobuf::internal::GeneratedMessageReflection(
320 Table_Index_IndexPart_descriptor_,
321 Table_Index_IndexPart::default_instance_,
322 Table_Index_IndexPart_offsets_,
323 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_IndexPart, _has_bits_[0]),
324 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_IndexPart, _unknown_fields_),
326 ::google::protobuf::DescriptorPool::generated_pool(),
327 ::google::protobuf::MessageFactory::generated_factory(),
328 sizeof(Table_Index_IndexPart));
329 Table_Index_Options_descriptor_ = Table_Index_descriptor_->nested_type(1);
330 static const int Table_Index_Options_offsets_[7] = {
331 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, pack_key_),
332 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, binary_pack_key_),
333 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, var_length_key_),
334 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, null_part_key_),
335 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, key_block_size_),
336 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, has_partial_segments_),
337 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, auto_generated_key_),
339 Table_Index_Options_reflection_ =
340 new ::google::protobuf::internal::GeneratedMessageReflection(
341 Table_Index_Options_descriptor_,
342 Table_Index_Options::default_instance_,
343 Table_Index_Options_offsets_,
344 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, _has_bits_[0]),
345 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, _unknown_fields_),
347 ::google::protobuf::DescriptorPool::generated_pool(),
348 ::google::protobuf::MessageFactory::generated_factory(),
349 sizeof(Table_Index_Options));
350 Table_Index_IndexType_descriptor_ = Table_Index_descriptor_->enum_type(0);
351 Table_TableType_descriptor_ = Table_descriptor_->enum_type(0);
352 AddedFields_descriptor_ = file->message_type(1);
353 static const int AddedFields_offsets_[1] = {
354 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddedFields, added_field_),
356 AddedFields_reflection_ =
357 new ::google::protobuf::internal::GeneratedMessageReflection(
358 AddedFields_descriptor_,
359 AddedFields::default_instance_,
360 AddedFields_offsets_,
361 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddedFields, _has_bits_[0]),
362 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddedFields, _unknown_fields_),
364 ::google::protobuf::DescriptorPool::generated_pool(),
365 ::google::protobuf::MessageFactory::generated_factory(),
366 sizeof(AddedFields));
371 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
372 inline void protobuf_AssignDescriptorsOnce() {
373 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
374 &protobuf_AssignDesc_table_2eproto);
377 void protobuf_RegisterTypes(const ::std::string&) {
378 protobuf_AssignDescriptorsOnce();
379 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
380 Table_descriptor_, &Table::default_instance());
381 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
382 Table_TableOptions_descriptor_, &Table_TableOptions::default_instance());
383 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
384 Table_ForeignKeyConstraint_descriptor_, &Table_ForeignKeyConstraint::default_instance());
385 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
386 Table_Field_descriptor_, &Table_Field::default_instance());
387 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
388 Table_Field_FieldOptions_descriptor_, &Table_Field_FieldOptions::default_instance());
389 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
390 Table_Field_FieldConstraints_descriptor_, &Table_Field_FieldConstraints::default_instance());
391 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
392 Table_Field_NumericFieldOptions_descriptor_, &Table_Field_NumericFieldOptions::default_instance());
393 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
394 Table_Field_StringFieldOptions_descriptor_, &Table_Field_StringFieldOptions::default_instance());
395 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
396 Table_Field_EnumerationValues_descriptor_, &Table_Field_EnumerationValues::default_instance());
397 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
398 Table_Field_TimeFieldOptions_descriptor_, &Table_Field_TimeFieldOptions::default_instance());
399 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
400 Table_Index_descriptor_, &Table_Index::default_instance());
401 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
402 Table_Index_IndexPart_descriptor_, &Table_Index_IndexPart::default_instance());
403 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
404 Table_Index_Options_descriptor_, &Table_Index_Options::default_instance());
405 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
406 AddedFields_descriptor_, &AddedFields::default_instance());
411 void protobuf_ShutdownFile_table_2eproto() {
412 delete Table::default_instance_;
413 delete Table_reflection_;
414 delete Table_TableOptions::default_instance_;
415 delete Table_TableOptions_reflection_;
416 delete Table_ForeignKeyConstraint::default_instance_;
417 delete Table_ForeignKeyConstraint_reflection_;
418 delete Table_Field::default_instance_;
419 delete Table_Field_reflection_;
420 delete Table_Field_FieldOptions::default_instance_;
421 delete Table_Field_FieldOptions_reflection_;
422 delete Table_Field_FieldConstraints::default_instance_;
423 delete Table_Field_FieldConstraints_reflection_;
424 delete Table_Field_NumericFieldOptions::default_instance_;
425 delete Table_Field_NumericFieldOptions_reflection_;
426 delete Table_Field_StringFieldOptions::default_instance_;
427 delete Table_Field_StringFieldOptions_reflection_;
428 delete Table_Field_EnumerationValues::default_instance_;
429 delete Table_Field_EnumerationValues_reflection_;
430 delete Table_Field_TimeFieldOptions::default_instance_;
431 delete Table_Field_TimeFieldOptions_reflection_;
432 delete Table_Index::default_instance_;
433 delete Table_Index_reflection_;
434 delete Table_Index_IndexPart::default_instance_;
435 delete Table_Index_IndexPart_reflection_;
436 delete Table_Index_Options::default_instance_;
437 delete Table_Index_Options_reflection_;
438 delete AddedFields::default_instance_;
439 delete AddedFields_reflection_;
442 void protobuf_AddDesc_table_2eproto() {
443 static bool already_here =
false;
444 if (already_here)
return;
446 GOOGLE_PROTOBUF_VERIFY_VERSION;
448 ::drizzled::message::protobuf_AddDesc_engine_2eproto();
449 ::drizzled::message::protobuf_AddDesc_access_2eproto();
450 ::drizzled::message::protobuf_AddDesc_replication_5foptions_2eproto();
451 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
452 "\n\013table.proto\022\020drizzled.message\032\014engine."
453 "proto\032\014access.proto\032\031replication_options"
454 ".proto\"\273\034\n\005Table\022\014\n\004name\030\001 \002(\t\022\016\n\006schema"
455 "\030\006 \002(\t\022/\n\004type\030\005 \002(\0162!.drizzled.message."
456 "Table.TableType\022(\n\006engine\030\002 \002(\0132\030.drizzl"
457 "ed.message.Engine\022,\n\005field\030\003 \003(\0132\035.drizz"
458 "led.message.Table.Field\022.\n\007indexes\030\004 \003(\013"
459 "2\035.drizzled.message.Table.Index\022C\n\rfk_co"
460 "nstraint\030\010 \003(\0132,.drizzled.message.Table."
461 "ForeignKeyConstraint\0225\n\007options\030\t \001(\0132$."
462 "drizzled.message.Table.TableOptions\022\035\n\022c"
463 "reation_timestamp\030\013 \002(\004:\0010\022\033\n\020update_tim"
464 "estamp\030\014 \002(\004:\0010\022\017\n\007catalog\030\r \001(\t\022\014\n\004uuid"
465 "\030\016 \001(\t\022\017\n\007version\030\017 \001(\004\022A\n\023replication_o"
466 "ptions\030\020 \001(\0132$.drizzled.message.Replicat"
467 "ionOptions\022(\n\006access\030\021 \001(\0132\030.drizzled.me"
468 "ssage.Access\032\371\002\n\014TableOptions\022)\n!has_use"
469 "r_set_auto_increment_value\030\001 \001(\010\022\021\n\tcoll"
470 "ation\030\002 \001(\t\022\024\n\014collation_id\030\003 \001(\r\022\026\n\016dat"
471 "a_file_name\030\005 \001(\t\022\027\n\017index_file_name\030\006 \001"
472 "(\t\022\020\n\010max_rows\030\007 \001(\004\022\020\n\010min_rows\030\010 \001(\004\022\034"
473 "\n\024auto_increment_value\030\t \001(\004\022\026\n\016avg_row_"
474 "length\030\013 \001(\r\022\022\n\nblock_size\030\r \001(\r\022\017\n\007comm"
475 "ent\030\016 \001(\t\022\023\n\013pack_record\030\020 \001(\010\022\020\n\010checks"
476 "um\030\021 \001(\010\022\025\n\rpage_checksum\030\022 \001(\010\022\027\n\017delay"
477 "_key_write\030\023 \001(\010\022\016\n\006unused\030\024 \001(\010\032\206\005\n\024For"
478 "eignKeyConstraint\022\014\n\004name\030\001 \001(\t\022\024\n\014colum"
479 "n_names\030\002 \003(\t\022\035\n\025references_table_name\030\003"
480 " \002(\t\022\032\n\022references_columns\030\004 \003(\t\022Q\n\005matc"
481 "h\030\005 \002(\0162B.drizzled.message.Table.Foreign"
482 "KeyConstraint.ForeignKeyMatchOption\022b\n\ru"
483 "pdate_option\030\006 \002(\0162=.drizzled.message.Ta"
484 "ble.ForeignKeyConstraint.ForeignKeyOptio"
485 "n:\014OPTION_UNDEF\022b\n\rdelete_option\030\007 \002(\0162="
486 ".drizzled.message.Table.ForeignKeyConstr"
487 "aint.ForeignKeyOption:\014OPTION_UNDEF\"a\n\025F"
488 "oreignKeyMatchOption\022\023\n\017MATCH_UNDEFINED\020"
489 "\000\022\016\n\nMATCH_FULL\020\001\022\021\n\rMATCH_PARTIAL\020\002\022\020\n\014"
490 "MATCH_SIMPLE\020\003\"\220\001\n\020ForeignKeyOption\022\020\n\014O"
491 "PTION_UNDEF\020\000\022\023\n\017OPTION_RESTRICT\020\001\022\022\n\016OP"
492 "TION_CASCADE\020\002\022\023\n\017OPTION_SET_NULL\020\003\022\024\n\020O"
493 "PTION_NO_ACTION\020\004\022\026\n\022OPTION_SET_DEFAULT\020"
494 "\005\032\276\n\n\005Field\022\014\n\004name\030\001 \002(\t\0225\n\004type\030\002 \002(\0162"
495 "\'.drizzled.message.Table.Field.FieldType"
496 "\022;\n\007options\030\004 \001(\0132*.drizzled.message.Tab"
497 "le.Field.FieldOptions\022C\n\013constraints\030\005 \001"
498 "(\0132..drizzled.message.Table.Field.FieldC"
499 "onstraints\022J\n\017numeric_options\030\006 \001(\01321.dr"
500 "izzled.message.Table.Field.NumericFieldO"
501 "ptions\022H\n\016string_options\030\007 \001(\01320.drizzle"
502 "d.message.Table.Field.StringFieldOptions"
503 "\022D\n\014time_options\030\010 \001(\0132..drizzled.messag"
504 "e.Table.Field.TimeFieldOptions\022\017\n\007commen"
505 "t\030\020 \001(\t\022K\n\022enumeration_values\030\021 \001(\0132/.dr"
506 "izzled.message.Table.Field.EnumerationVa"
507 "lues\032\252\001\n\014FieldOptions\022\025\n\rdefault_value\030\001"
508 " \001(\t\022\024\n\014update_value\030\002 \001(\t\022\033\n\014default_nu"
509 "ll\030\003 \001(\010:\005false\022\031\n\021default_bin_value\030\004 \001"
510 "(\014\022\032\n\022default_expression\030\005 \001(\t\022\031\n\021update"
511 "_expression\030\006 \001(\t\032\222\001\n\020FieldConstraints\022\031"
512 "\n\013is_nullable\030\001 \001(\010:\004true\022\032\n\013is_unsigned"
513 "\030\002 \001(\010:\005false\022\031\n\nis_notnull\030\003 \001(\010:\005false"
514 "\022\030\n\tis_unique\030\004 \001(\010:\005false\022\022\n\nexpression"
515 "\030\020 \003(\t\032X\n\023NumericFieldOptions\022\037\n\020is_auto"
516 "increment\030\001 \001(\010:\005false\022\r\n\005scale\030\002 \001(\r\022\021\n"
517 "\tprecision\030\003 \001(\r\032l\n\022StringFieldOptions\022\035"
518 "\n\016is_fixed_width\030\001 \001(\010:\005false\022\016\n\006length\030"
519 "\002 \001(\r\022\024\n\014collation_id\030\003 \001(\r\022\021\n\tcollation"
520 "\030\004 \001(\t\032Q\n\021EnumerationValues\022\024\n\014collation"
521 "_id\030\002 \001(\r\022\021\n\tcollation\030\003 \001(\t\022\023\n\013field_va"
522 "lue\030\004 \003(\t\032(\n\020TimeFieldOptions\022\024\n\014microse"
523 "conds\030\001 \001(\010\"\254\001\n\tFieldType\022\n\n\006DOUBLE\020\000\022\013\n"
524 "\007VARCHAR\020\001\022\010\n\004BLOB\020\002\022\010\n\004ENUM\020\003\022\013\n\007INTEGE"
525 "R\020\004\022\n\n\006BIGINT\020\005\022\013\n\007DECIMAL\020\006\022\010\n\004DATE\020\007\022\t"
526 "\n\005EPOCH\020\t\022\014\n\010DATETIME\020\n\022\010\n\004UUID\020\013\022\010\n\004TIM"
527 "E\020\014\022\013\n\007BOOLEAN\020\r\022\010\n\004IPV6\020\016\032\371\004\n\005Index\022\014\n\004"
528 "name\030\001 \002(\t\022\022\n\nis_primary\030\002 \002(\010\022\021\n\tis_uni"
529 "que\030\003 \002(\010\022D\n\004type\030\004 \002(\0162\'.drizzled.messa"
530 "ge.Table.Index.IndexType:\rUNKNOWN_INDEX\022"
531 "\022\n\nkey_length\030\005 \002(\r\022;\n\nindex_part\030\006 \003(\0132"
532 "\'.drizzled.message.Table.Index.IndexPart"
533 "\0226\n\007options\030\007 \001(\0132%.drizzled.message.Tab"
534 "le.Index.Options\022\017\n\007comment\030\010 \001(\t\032U\n\tInd"
535 "exPart\022\017\n\007fieldnr\030\001 \002(\r\022\026\n\016compare_lengt"
536 "h\030\002 \001(\r\022\037\n\020in_reverse_order\030\003 \001(\010:\005false"
537 "\032\265\001\n\007Options\022\020\n\010pack_key\030\001 \001(\010\022\027\n\017binary"
538 "_pack_key\030\002 \001(\010\022\026\n\016var_length_key\030\003 \001(\010\022"
539 "\025\n\rnull_part_key\030\004 \001(\010\022\026\n\016key_block_size"
540 "\030\005 \001(\r\022\034\n\024has_partial_segments\030\006 \001(\010\022\032\n\022"
541 "auto_generated_key\030\007 \001(\010\"L\n\tIndexType\022\021\n"
542 "\rUNKNOWN_INDEX\020\000\022\t\n\005BTREE\020\001\022\t\n\005RTREE\020\002\022\010"
543 "\n\004HASH\020\003\022\014\n\010FULLTEXT\020\004\"D\n\tTableType\022\014\n\010S"
544 "TANDARD\020\000\022\r\n\tTEMPORARY\020\001\022\014\n\010INTERNAL\020\002\022\014"
545 "\n\010FUNCTION\020\003\"A\n\013AddedFields\0222\n\013added_fie"
546 "ld\030\001 \003(\0132\035.drizzled.message.Table.FieldB"
547 "&\n\024org.drizzle.messagesB\014TableMessageH\001", 3839);
548 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
549 "table.proto", &protobuf_RegisterTypes);
550 Table::default_instance_ =
new Table();
551 Table_TableOptions::default_instance_ =
new Table_TableOptions();
552 Table_ForeignKeyConstraint::default_instance_ =
new Table_ForeignKeyConstraint();
553 Table_Field::default_instance_ =
new Table_Field();
554 Table_Field_FieldOptions::default_instance_ =
new Table_Field_FieldOptions();
555 Table_Field_FieldConstraints::default_instance_ =
new Table_Field_FieldConstraints();
556 Table_Field_NumericFieldOptions::default_instance_ =
new Table_Field_NumericFieldOptions();
557 Table_Field_StringFieldOptions::default_instance_ =
new Table_Field_StringFieldOptions();
558 Table_Field_EnumerationValues::default_instance_ =
new Table_Field_EnumerationValues();
559 Table_Field_TimeFieldOptions::default_instance_ =
new Table_Field_TimeFieldOptions();
560 Table_Index::default_instance_ =
new Table_Index();
561 Table_Index_IndexPart::default_instance_ =
new Table_Index_IndexPart();
562 Table_Index_Options::default_instance_ =
new Table_Index_Options();
563 AddedFields::default_instance_ =
new AddedFields();
564 Table::default_instance_->InitAsDefaultInstance();
565 Table_TableOptions::default_instance_->InitAsDefaultInstance();
566 Table_ForeignKeyConstraint::default_instance_->InitAsDefaultInstance();
567 Table_Field::default_instance_->InitAsDefaultInstance();
568 Table_Field_FieldOptions::default_instance_->InitAsDefaultInstance();
569 Table_Field_FieldConstraints::default_instance_->InitAsDefaultInstance();
570 Table_Field_NumericFieldOptions::default_instance_->InitAsDefaultInstance();
571 Table_Field_StringFieldOptions::default_instance_->InitAsDefaultInstance();
572 Table_Field_EnumerationValues::default_instance_->InitAsDefaultInstance();
573 Table_Field_TimeFieldOptions::default_instance_->InitAsDefaultInstance();
574 Table_Index::default_instance_->InitAsDefaultInstance();
575 Table_Index_IndexPart::default_instance_->InitAsDefaultInstance();
576 Table_Index_Options::default_instance_->InitAsDefaultInstance();
577 AddedFields::default_instance_->InitAsDefaultInstance();
578 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_table_2eproto);
584 protobuf_AddDesc_table_2eproto();
586 } static_descriptor_initializer_table_2eproto_;
591 const ::google::protobuf::EnumDescriptor* Table_TableType_descriptor() {
592 protobuf_AssignDescriptorsOnce();
593 return Table_TableType_descriptor_;
595 bool Table_TableType_IsValid(
int value) {
608 const Table_TableType Table::STANDARD;
609 const Table_TableType Table::TEMPORARY;
610 const Table_TableType Table::INTERNAL;
611 const Table_TableType Table::FUNCTION;
612 const Table_TableType Table::TableType_MIN;
613 const Table_TableType Table::TableType_MAX;
614 const int Table::TableType_ARRAYSIZE;
617 const int Table_TableOptions::kHasUserSetAutoIncrementValueFieldNumber;
618 const int Table_TableOptions::kCollationFieldNumber;
619 const int Table_TableOptions::kCollationIdFieldNumber;
620 const int Table_TableOptions::kDataFileNameFieldNumber;
621 const int Table_TableOptions::kIndexFileNameFieldNumber;
622 const int Table_TableOptions::kMaxRowsFieldNumber;
623 const int Table_TableOptions::kMinRowsFieldNumber;
624 const int Table_TableOptions::kAutoIncrementValueFieldNumber;
625 const int Table_TableOptions::kAvgRowLengthFieldNumber;
626 const int Table_TableOptions::kBlockSizeFieldNumber;
627 const int Table_TableOptions::kCommentFieldNumber;
628 const int Table_TableOptions::kPackRecordFieldNumber;
629 const int Table_TableOptions::kChecksumFieldNumber;
630 const int Table_TableOptions::kPageChecksumFieldNumber;
631 const int Table_TableOptions::kDelayKeyWriteFieldNumber;
632 const int Table_TableOptions::kUnusedFieldNumber;
635 Table_TableOptions::Table_TableOptions()
636 : ::google::protobuf::Message() {
640 void Table_TableOptions::InitAsDefaultInstance() {
643 Table_TableOptions::Table_TableOptions(
const Table_TableOptions& from)
644 : ::google::protobuf::Message() {
649 void Table_TableOptions::SharedCtor() {
651 has_user_set_auto_increment_value_ =
false;
652 collation_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
654 data_file_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
655 index_file_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
656 max_rows_ = GOOGLE_ULONGLONG(0);
657 min_rows_ = GOOGLE_ULONGLONG(0);
658 auto_increment_value_ = GOOGLE_ULONGLONG(0);
659 avg_row_length_ = 0u;
661 comment_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
662 pack_record_ =
false;
664 page_checksum_ =
false;
665 delay_key_write_ =
false;
667 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
670 Table_TableOptions::~Table_TableOptions() {
674 void Table_TableOptions::SharedDtor() {
675 if (collation_ != &::google::protobuf::internal::kEmptyString) {
678 if (data_file_name_ != &::google::protobuf::internal::kEmptyString) {
679 delete data_file_name_;
681 if (index_file_name_ != &::google::protobuf::internal::kEmptyString) {
682 delete index_file_name_;
684 if (comment_ != &::google::protobuf::internal::kEmptyString) {
687 if (
this != default_instance_) {
691 void Table_TableOptions::SetCachedSize(
int size)
const {
692 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
693 _cached_size_ = size;
694 GOOGLE_SAFE_CONCURRENT_WRITES_END();
696 const ::google::protobuf::Descriptor* Table_TableOptions::descriptor() {
697 protobuf_AssignDescriptorsOnce();
698 return Table_TableOptions_descriptor_;
701 const Table_TableOptions& Table_TableOptions::default_instance() {
702 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
return *default_instance_;
705 Table_TableOptions* Table_TableOptions::default_instance_ = NULL;
707 Table_TableOptions* Table_TableOptions::New()
const {
708 return new Table_TableOptions;
711 void Table_TableOptions::Clear() {
712 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
713 has_user_set_auto_increment_value_ =
false;
714 if (has_collation()) {
715 if (collation_ != &::google::protobuf::internal::kEmptyString) {
720 if (has_data_file_name()) {
721 if (data_file_name_ != &::google::protobuf::internal::kEmptyString) {
722 data_file_name_->clear();
725 if (has_index_file_name()) {
726 if (index_file_name_ != &::google::protobuf::internal::kEmptyString) {
727 index_file_name_->clear();
730 max_rows_ = GOOGLE_ULONGLONG(0);
731 min_rows_ = GOOGLE_ULONGLONG(0);
732 auto_increment_value_ = GOOGLE_ULONGLONG(0);
734 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
735 avg_row_length_ = 0u;
738 if (comment_ != &::google::protobuf::internal::kEmptyString) {
742 pack_record_ =
false;
744 page_checksum_ =
false;
745 delay_key_write_ =
false;
748 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
749 mutable_unknown_fields()->Clear();
752 bool Table_TableOptions::MergePartialFromCodedStream(
753 ::google::protobuf::io::CodedInputStream* input) {
754 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
755 ::google::protobuf::uint32 tag;
756 while ((tag = input->ReadTag()) != 0) {
757 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
760 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
761 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
762 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
763 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
764 input, &has_user_set_auto_increment_value_)));
765 set_has_has_user_set_auto_increment_value();
767 goto handle_uninterpreted;
769 if (input->ExpectTag(18))
goto parse_collation;
775 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
776 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
778 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
779 input, this->mutable_collation()));
780 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
781 this->collation().data(), this->collation().length(),
782 ::google::protobuf::internal::WireFormat::PARSE);
784 goto handle_uninterpreted;
786 if (input->ExpectTag(24))
goto parse_collation_id;
792 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
793 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
795 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
796 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
797 input, &collation_id_)));
798 set_has_collation_id();
800 goto handle_uninterpreted;
802 if (input->ExpectTag(42))
goto parse_data_file_name;
808 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
809 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
810 parse_data_file_name:
811 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
812 input, this->mutable_data_file_name()));
813 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
814 this->data_file_name().data(), this->data_file_name().length(),
815 ::google::protobuf::internal::WireFormat::PARSE);
817 goto handle_uninterpreted;
819 if (input->ExpectTag(50))
goto parse_index_file_name;
825 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
826 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
827 parse_index_file_name:
828 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
829 input, this->mutable_index_file_name()));
830 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
831 this->index_file_name().data(), this->index_file_name().length(),
832 ::google::protobuf::internal::WireFormat::PARSE);
834 goto handle_uninterpreted;
836 if (input->ExpectTag(56))
goto parse_max_rows;
842 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
843 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
845 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
846 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
847 input, &max_rows_)));
850 goto handle_uninterpreted;
852 if (input->ExpectTag(64))
goto parse_min_rows;
858 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
859 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
861 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
862 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
863 input, &min_rows_)));
866 goto handle_uninterpreted;
868 if (input->ExpectTag(72))
goto parse_auto_increment_value;
874 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
875 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
876 parse_auto_increment_value:
877 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
878 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
879 input, &auto_increment_value_)));
880 set_has_auto_increment_value();
882 goto handle_uninterpreted;
884 if (input->ExpectTag(88))
goto parse_avg_row_length;
890 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
891 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
892 parse_avg_row_length:
893 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
894 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
895 input, &avg_row_length_)));
896 set_has_avg_row_length();
898 goto handle_uninterpreted;
900 if (input->ExpectTag(104))
goto parse_block_size;
906 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
907 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
909 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
910 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
911 input, &block_size_)));
912 set_has_block_size();
914 goto handle_uninterpreted;
916 if (input->ExpectTag(114))
goto parse_comment;
922 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
923 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
925 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
926 input, this->mutable_comment()));
927 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
928 this->comment().data(), this->comment().length(),
929 ::google::protobuf::internal::WireFormat::PARSE);
931 goto handle_uninterpreted;
933 if (input->ExpectTag(128))
goto parse_pack_record;
939 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
940 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
942 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
943 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
944 input, &pack_record_)));
945 set_has_pack_record();
947 goto handle_uninterpreted;
949 if (input->ExpectTag(136))
goto parse_checksum;
955 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
956 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
958 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
959 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
960 input, &checksum_)));
963 goto handle_uninterpreted;
965 if (input->ExpectTag(144))
goto parse_page_checksum;
971 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
972 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
974 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
975 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
976 input, &page_checksum_)));
977 set_has_page_checksum();
979 goto handle_uninterpreted;
981 if (input->ExpectTag(152))
goto parse_delay_key_write;
987 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
988 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
989 parse_delay_key_write:
990 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
991 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
992 input, &delay_key_write_)));
993 set_has_delay_key_write();
995 goto handle_uninterpreted;
997 if (input->ExpectTag(160))
goto parse_unused;
1003 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1004 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1006 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1007 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1011 goto handle_uninterpreted;
1013 if (input->ExpectAtEnd())
return true;
1018 handle_uninterpreted:
1019 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1020 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1023 DO_(::google::protobuf::internal::WireFormat::SkipField(
1024 input, tag, mutable_unknown_fields()));
1033 void Table_TableOptions::SerializeWithCachedSizes(
1034 ::google::protobuf::io::CodedOutputStream* output)
const {
1036 if (has_has_user_set_auto_increment_value()) {
1037 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->has_user_set_auto_increment_value(), output);
1041 if (has_collation()) {
1042 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1043 this->collation().data(), this->collation().length(),
1044 ::google::protobuf::internal::WireFormat::SERIALIZE);
1045 ::google::protobuf::internal::WireFormatLite::WriteString(
1046 2, this->collation(), output);
1050 if (has_collation_id()) {
1051 ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->collation_id(), output);
1055 if (has_data_file_name()) {
1056 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1057 this->data_file_name().data(), this->data_file_name().length(),
1058 ::google::protobuf::internal::WireFormat::SERIALIZE);
1059 ::google::protobuf::internal::WireFormatLite::WriteString(
1060 5, this->data_file_name(), output);
1064 if (has_index_file_name()) {
1065 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1066 this->index_file_name().data(), this->index_file_name().length(),
1067 ::google::protobuf::internal::WireFormat::SERIALIZE);
1068 ::google::protobuf::internal::WireFormatLite::WriteString(
1069 6, this->index_file_name(), output);
1073 if (has_max_rows()) {
1074 ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->max_rows(), output);
1078 if (has_min_rows()) {
1079 ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->min_rows(), output);
1083 if (has_auto_increment_value()) {
1084 ::google::protobuf::internal::WireFormatLite::WriteUInt64(9, this->auto_increment_value(), output);
1088 if (has_avg_row_length()) {
1089 ::google::protobuf::internal::WireFormatLite::WriteUInt32(11, this->avg_row_length(), output);
1093 if (has_block_size()) {
1094 ::google::protobuf::internal::WireFormatLite::WriteUInt32(13, this->block_size(), output);
1098 if (has_comment()) {
1099 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1100 this->comment().data(), this->comment().length(),
1101 ::google::protobuf::internal::WireFormat::SERIALIZE);
1102 ::google::protobuf::internal::WireFormatLite::WriteString(
1103 14, this->comment(), output);
1107 if (has_pack_record()) {
1108 ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->pack_record(), output);
1112 if (has_checksum()) {
1113 ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->checksum(), output);
1117 if (has_page_checksum()) {
1118 ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->page_checksum(), output);
1122 if (has_delay_key_write()) {
1123 ::google::protobuf::internal::WireFormatLite::WriteBool(19, this->delay_key_write(), output);
1128 ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->unused(), output);
1131 if (!unknown_fields().empty()) {
1132 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1133 unknown_fields(), output);
1137 ::google::protobuf::uint8* Table_TableOptions::SerializeWithCachedSizesToArray(
1138 ::google::protobuf::uint8* target)
const {
1140 if (has_has_user_set_auto_increment_value()) {
1141 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->has_user_set_auto_increment_value(), target);
1145 if (has_collation()) {
1146 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1147 this->collation().data(), this->collation().length(),
1148 ::google::protobuf::internal::WireFormat::SERIALIZE);
1150 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1151 2, this->collation(), target);
1155 if (has_collation_id()) {
1156 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->collation_id(), target);
1160 if (has_data_file_name()) {
1161 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1162 this->data_file_name().data(), this->data_file_name().length(),
1163 ::google::protobuf::internal::WireFormat::SERIALIZE);
1165 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1166 5, this->data_file_name(), target);
1170 if (has_index_file_name()) {
1171 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1172 this->index_file_name().data(), this->index_file_name().length(),
1173 ::google::protobuf::internal::WireFormat::SERIALIZE);
1175 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1176 6, this->index_file_name(), target);
1180 if (has_max_rows()) {
1181 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->max_rows(), target);
1185 if (has_min_rows()) {
1186 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->min_rows(), target);
1190 if (has_auto_increment_value()) {
1191 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(9, this->auto_increment_value(), target);
1195 if (has_avg_row_length()) {
1196 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(11, this->avg_row_length(), target);
1200 if (has_block_size()) {
1201 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(13, this->block_size(), target);
1205 if (has_comment()) {
1206 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1207 this->comment().data(), this->comment().length(),
1208 ::google::protobuf::internal::WireFormat::SERIALIZE);
1210 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1211 14, this->comment(), target);
1215 if (has_pack_record()) {
1216 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->pack_record(), target);
1220 if (has_checksum()) {
1221 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->checksum(), target);
1225 if (has_page_checksum()) {
1226 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->page_checksum(), target);
1230 if (has_delay_key_write()) {
1231 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(19, this->delay_key_write(), target);
1236 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->unused(), target);
1239 if (!unknown_fields().empty()) {
1240 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1241 unknown_fields(), target);
1246 int Table_TableOptions::ByteSize()
const {
1249 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1251 if (has_has_user_set_auto_increment_value()) {
1252 total_size += 1 + 1;
1256 if (has_collation()) {
1258 ::google::protobuf::internal::WireFormatLite::StringSize(
1263 if (has_collation_id()) {
1265 ::google::protobuf::internal::WireFormatLite::UInt32Size(
1266 this->collation_id());
1270 if (has_data_file_name()) {
1272 ::google::protobuf::internal::WireFormatLite::StringSize(
1273 this->data_file_name());
1277 if (has_index_file_name()) {
1279 ::google::protobuf::internal::WireFormatLite::StringSize(
1280 this->index_file_name());
1284 if (has_max_rows()) {
1286 ::google::protobuf::internal::WireFormatLite::UInt64Size(
1291 if (has_min_rows()) {
1293 ::google::protobuf::internal::WireFormatLite::UInt64Size(
1298 if (has_auto_increment_value()) {
1300 ::google::protobuf::internal::WireFormatLite::UInt64Size(
1301 this->auto_increment_value());
1305 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
1307 if (has_avg_row_length()) {
1309 ::google::protobuf::internal::WireFormatLite::UInt32Size(
1310 this->avg_row_length());
1314 if (has_block_size()) {
1316 ::google::protobuf::internal::WireFormatLite::UInt32Size(
1317 this->block_size());
1321 if (has_comment()) {
1323 ::google::protobuf::internal::WireFormatLite::StringSize(
1328 if (has_pack_record()) {
1329 total_size += 2 + 1;
1333 if (has_checksum()) {
1334 total_size += 2 + 1;
1338 if (has_page_checksum()) {
1339 total_size += 2 + 1;
1343 if (has_delay_key_write()) {
1344 total_size += 2 + 1;
1349 total_size += 2 + 1;
1353 if (!unknown_fields().empty()) {
1355 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1358 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1359 _cached_size_ = total_size;
1360 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1364 void Table_TableOptions::MergeFrom(const ::google::protobuf::Message& from) {
1365 GOOGLE_CHECK_NE(&from,
this);
1366 const Table_TableOptions* source =
1367 ::google::protobuf::internal::dynamic_cast_if_available<const Table_TableOptions*>(
1369 if (source == NULL) {
1370 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
1376 void Table_TableOptions::MergeFrom(
const Table_TableOptions& from) {
1377 GOOGLE_CHECK_NE(&from,
this);
1378 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1379 if (from.has_has_user_set_auto_increment_value()) {
1380 set_has_user_set_auto_increment_value(from.has_user_set_auto_increment_value());
1382 if (from.has_collation()) {
1383 set_collation(from.collation());
1385 if (from.has_collation_id()) {
1386 set_collation_id(from.collation_id());
1388 if (from.has_data_file_name()) {
1389 set_data_file_name(from.data_file_name());
1391 if (from.has_index_file_name()) {
1392 set_index_file_name(from.index_file_name());
1394 if (from.has_max_rows()) {
1395 set_max_rows(from.max_rows());
1397 if (from.has_min_rows()) {
1398 set_min_rows(from.min_rows());
1400 if (from.has_auto_increment_value()) {
1401 set_auto_increment_value(from.auto_increment_value());
1404 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
1405 if (from.has_avg_row_length()) {
1406 set_avg_row_length(from.avg_row_length());
1408 if (from.has_block_size()) {
1409 set_block_size(from.block_size());
1411 if (from.has_comment()) {
1412 set_comment(from.comment());
1414 if (from.has_pack_record()) {
1415 set_pack_record(from.pack_record());
1417 if (from.has_checksum()) {
1418 set_checksum(from.checksum());
1420 if (from.has_page_checksum()) {
1421 set_page_checksum(from.page_checksum());
1423 if (from.has_delay_key_write()) {
1424 set_delay_key_write(from.delay_key_write());
1426 if (from.has_unused()) {
1427 set_unused(from.unused());
1430 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1433 void Table_TableOptions::CopyFrom(const ::google::protobuf::Message& from) {
1434 if (&from ==
this)
return;
1439 void Table_TableOptions::CopyFrom(
const Table_TableOptions& from) {
1440 if (&from ==
this)
return;
1445 bool Table_TableOptions::IsInitialized()
const {
1450 void Table_TableOptions::Swap(Table_TableOptions* other) {
1451 if (other !=
this) {
1452 std::swap(has_user_set_auto_increment_value_, other->has_user_set_auto_increment_value_);
1453 std::swap(collation_, other->collation_);
1454 std::swap(collation_id_, other->collation_id_);
1455 std::swap(data_file_name_, other->data_file_name_);
1456 std::swap(index_file_name_, other->index_file_name_);
1457 std::swap(max_rows_, other->max_rows_);
1458 std::swap(min_rows_, other->min_rows_);
1459 std::swap(auto_increment_value_, other->auto_increment_value_);
1460 std::swap(avg_row_length_, other->avg_row_length_);
1461 std::swap(block_size_, other->block_size_);
1462 std::swap(comment_, other->comment_);
1463 std::swap(pack_record_, other->pack_record_);
1464 std::swap(checksum_, other->checksum_);
1465 std::swap(page_checksum_, other->page_checksum_);
1466 std::swap(delay_key_write_, other->delay_key_write_);
1467 std::swap(unused_, other->unused_);
1468 std::swap(_has_bits_[0], other->_has_bits_[0]);
1469 _unknown_fields_.Swap(&other->_unknown_fields_);
1470 std::swap(_cached_size_, other->_cached_size_);
1474 ::google::protobuf::Metadata Table_TableOptions::GetMetadata()
const {
1475 protobuf_AssignDescriptorsOnce();
1476 ::google::protobuf::Metadata metadata;
1477 metadata.descriptor = Table_TableOptions_descriptor_;
1478 metadata.reflection = Table_TableOptions_reflection_;
1485 const ::google::protobuf::EnumDescriptor* Table_ForeignKeyConstraint_ForeignKeyMatchOption_descriptor() {
1486 protobuf_AssignDescriptorsOnce();
1487 return Table_ForeignKeyConstraint_ForeignKeyMatchOption_descriptor_;
1489 bool Table_ForeignKeyConstraint_ForeignKeyMatchOption_IsValid(
int value) {
1502 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::MATCH_UNDEFINED;
1503 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::MATCH_FULL;
1504 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::MATCH_PARTIAL;
1505 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::MATCH_SIMPLE;
1506 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::ForeignKeyMatchOption_MIN;
1507 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::ForeignKeyMatchOption_MAX;
1508 const int Table_ForeignKeyConstraint::ForeignKeyMatchOption_ARRAYSIZE;
1510 const ::google::protobuf::EnumDescriptor* Table_ForeignKeyConstraint_ForeignKeyOption_descriptor() {
1511 protobuf_AssignDescriptorsOnce();
1512 return Table_ForeignKeyConstraint_ForeignKeyOption_descriptor_;
1514 bool Table_ForeignKeyConstraint_ForeignKeyOption_IsValid(
int value) {
1529 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_UNDEF;
1530 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_RESTRICT;
1531 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_CASCADE;
1532 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_SET_NULL;
1533 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_NO_ACTION;
1534 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_SET_DEFAULT;
1535 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::ForeignKeyOption_MIN;
1536 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::ForeignKeyOption_MAX;
1537 const int Table_ForeignKeyConstraint::ForeignKeyOption_ARRAYSIZE;
1540 const int Table_ForeignKeyConstraint::kNameFieldNumber;
1541 const int Table_ForeignKeyConstraint::kColumnNamesFieldNumber;
1542 const int Table_ForeignKeyConstraint::kReferencesTableNameFieldNumber;
1543 const int Table_ForeignKeyConstraint::kReferencesColumnsFieldNumber;
1544 const int Table_ForeignKeyConstraint::kMatchFieldNumber;
1545 const int Table_ForeignKeyConstraint::kUpdateOptionFieldNumber;
1546 const int Table_ForeignKeyConstraint::kDeleteOptionFieldNumber;
1549 Table_ForeignKeyConstraint::Table_ForeignKeyConstraint()
1550 : ::google::protobuf::Message() {
1554 void Table_ForeignKeyConstraint::InitAsDefaultInstance() {
1557 Table_ForeignKeyConstraint::Table_ForeignKeyConstraint(
const Table_ForeignKeyConstraint& from)
1558 : ::google::protobuf::Message() {
1563 void Table_ForeignKeyConstraint::SharedCtor() {
1565 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
1566 references_table_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
1570 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1573 Table_ForeignKeyConstraint::~Table_ForeignKeyConstraint() {
1577 void Table_ForeignKeyConstraint::SharedDtor() {
1578 if (name_ != &::google::protobuf::internal::kEmptyString) {
1581 if (references_table_name_ != &::google::protobuf::internal::kEmptyString) {
1582 delete references_table_name_;
1584 if (
this != default_instance_) {
1588 void Table_ForeignKeyConstraint::SetCachedSize(
int size)
const {
1589 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1590 _cached_size_ = size;
1591 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1593 const ::google::protobuf::Descriptor* Table_ForeignKeyConstraint::descriptor() {
1594 protobuf_AssignDescriptorsOnce();
1595 return Table_ForeignKeyConstraint_descriptor_;
1598 const Table_ForeignKeyConstraint& Table_ForeignKeyConstraint::default_instance() {
1599 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
return *default_instance_;
1602 Table_ForeignKeyConstraint* Table_ForeignKeyConstraint::default_instance_ = NULL;
1604 Table_ForeignKeyConstraint* Table_ForeignKeyConstraint::New()
const {
1605 return new Table_ForeignKeyConstraint;
1608 void Table_ForeignKeyConstraint::Clear() {
1609 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1611 if (name_ != &::google::protobuf::internal::kEmptyString) {
1615 if (has_references_table_name()) {
1616 if (references_table_name_ != &::google::protobuf::internal::kEmptyString) {
1617 references_table_name_->clear();
1624 column_names_.Clear();
1625 references_columns_.Clear();
1626 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1627 mutable_unknown_fields()->Clear();
1630 bool Table_ForeignKeyConstraint::MergePartialFromCodedStream(
1631 ::google::protobuf::io::CodedInputStream* input) {
1632 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1633 ::google::protobuf::uint32 tag;
1634 while ((tag = input->ReadTag()) != 0) {
1635 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1638 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1639 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1640 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1641 input, this->mutable_name()));
1642 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1643 this->name().data(), this->name().length(),
1644 ::google::protobuf::internal::WireFormat::PARSE);
1646 goto handle_uninterpreted;
1648 if (input->ExpectTag(18))
goto parse_column_names;
1654 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1655 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1657 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1658 input, this->add_column_names()));
1659 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1660 this->column_names(0).data(), this->column_names(0).length(),
1661 ::google::protobuf::internal::WireFormat::PARSE);
1663 goto handle_uninterpreted;
1665 if (input->ExpectTag(18))
goto parse_column_names;
1666 if (input->ExpectTag(26))
goto parse_references_table_name;
1672 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1673 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1674 parse_references_table_name:
1675 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1676 input, this->mutable_references_table_name()));
1677 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1678 this->references_table_name().data(), this->references_table_name().length(),
1679 ::google::protobuf::internal::WireFormat::PARSE);
1681 goto handle_uninterpreted;
1683 if (input->ExpectTag(34))
goto parse_references_columns;
1689 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1690 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1691 parse_references_columns:
1692 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1693 input, this->add_references_columns()));
1694 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1695 this->references_columns(0).data(), this->references_columns(0).length(),
1696 ::google::protobuf::internal::WireFormat::PARSE);
1698 goto handle_uninterpreted;
1700 if (input->ExpectTag(34))
goto parse_references_columns;
1701 if (input->ExpectTag(40))
goto parse_match;
1707 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1708 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1711 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1712 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1714 if (::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyMatchOption_IsValid(value)) {
1715 set_match(static_cast< ::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyMatchOption >(value));
1717 mutable_unknown_fields()->AddVarint(5, value);
1720 goto handle_uninterpreted;
1722 if (input->ExpectTag(48))
goto parse_update_option;
1728 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1729 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1730 parse_update_option:
1732 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1733 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1735 if (::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyOption_IsValid(value)) {
1736 set_update_option(static_cast< ::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyOption >(value));
1738 mutable_unknown_fields()->AddVarint(6, value);
1741 goto handle_uninterpreted;
1743 if (input->ExpectTag(56))
goto parse_delete_option;
1749 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1750 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1751 parse_delete_option:
1753 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1754 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1756 if (::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyOption_IsValid(value)) {
1757 set_delete_option(static_cast< ::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyOption >(value));
1759 mutable_unknown_fields()->AddVarint(7, value);
1762 goto handle_uninterpreted;
1764 if (input->ExpectAtEnd())
return true;
1769 handle_uninterpreted:
1770 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1771 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1774 DO_(::google::protobuf::internal::WireFormat::SkipField(
1775 input, tag, mutable_unknown_fields()));
1784 void Table_ForeignKeyConstraint::SerializeWithCachedSizes(
1785 ::google::protobuf::io::CodedOutputStream* output)
const {
1788 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1789 this->name().data(), this->name().length(),
1790 ::google::protobuf::internal::WireFormat::SERIALIZE);
1791 ::google::protobuf::internal::WireFormatLite::WriteString(
1792 1, this->name(), output);
1796 for (
int i = 0; i < this->column_names_size(); i++) {
1797 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1798 this->column_names(i).data(), this->column_names(i).length(),
1799 ::google::protobuf::internal::WireFormat::SERIALIZE);
1800 ::google::protobuf::internal::WireFormatLite::WriteString(
1801 2, this->column_names(i), output);
1805 if (has_references_table_name()) {
1806 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1807 this->references_table_name().data(), this->references_table_name().length(),
1808 ::google::protobuf::internal::WireFormat::SERIALIZE);
1809 ::google::protobuf::internal::WireFormatLite::WriteString(
1810 3, this->references_table_name(), output);
1814 for (
int i = 0; i < this->references_columns_size(); i++) {
1815 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1816 this->references_columns(i).data(), this->references_columns(i).length(),
1817 ::google::protobuf::internal::WireFormat::SERIALIZE);
1818 ::google::protobuf::internal::WireFormatLite::WriteString(
1819 4, this->references_columns(i), output);
1824 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1825 5, this->match(), output);
1829 if (has_update_option()) {
1830 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1831 6, this->update_option(), output);
1835 if (has_delete_option()) {
1836 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1837 7, this->delete_option(), output);
1840 if (!unknown_fields().empty()) {
1841 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1842 unknown_fields(), output);
1846 ::google::protobuf::uint8* Table_ForeignKeyConstraint::SerializeWithCachedSizesToArray(
1847 ::google::protobuf::uint8* target)
const {
1850 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1851 this->name().data(), this->name().length(),
1852 ::google::protobuf::internal::WireFormat::SERIALIZE);
1854 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1855 1, this->name(), target);
1859 for (
int i = 0; i < this->column_names_size(); i++) {
1860 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1861 this->column_names(i).data(), this->column_names(i).length(),
1862 ::google::protobuf::internal::WireFormat::SERIALIZE);
1863 target = ::google::protobuf::internal::WireFormatLite::
1864 WriteStringToArray(2, this->column_names(i), target);
1868 if (has_references_table_name()) {
1869 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1870 this->references_table_name().data(), this->references_table_name().length(),
1871 ::google::protobuf::internal::WireFormat::SERIALIZE);
1873 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1874 3, this->references_table_name(), target);
1878 for (
int i = 0; i < this->references_columns_size(); i++) {
1879 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1880 this->references_columns(i).data(), this->references_columns(i).length(),
1881 ::google::protobuf::internal::WireFormat::SERIALIZE);
1882 target = ::google::protobuf::internal::WireFormatLite::
1883 WriteStringToArray(4, this->references_columns(i), target);
1888 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1889 5, this->match(), target);
1893 if (has_update_option()) {
1894 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1895 6, this->update_option(), target);
1899 if (has_delete_option()) {
1900 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1901 7, this->delete_option(), target);
1904 if (!unknown_fields().empty()) {
1905 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1906 unknown_fields(), target);
1911 int Table_ForeignKeyConstraint::ByteSize()
const {
1914 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1918 ::google::protobuf::internal::WireFormatLite::StringSize(
1923 if (has_references_table_name()) {
1925 ::google::protobuf::internal::WireFormatLite::StringSize(
1926 this->references_table_name());
1932 ::google::protobuf::internal::WireFormatLite::EnumSize(this->match());
1936 if (has_update_option()) {
1938 ::google::protobuf::internal::WireFormatLite::EnumSize(this->update_option());
1942 if (has_delete_option()) {
1944 ::google::protobuf::internal::WireFormatLite::EnumSize(this->delete_option());
1949 total_size += 1 * this->column_names_size();
1950 for (
int i = 0; i < this->column_names_size(); i++) {
1951 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
1952 this->column_names(i));
1956 total_size += 1 * this->references_columns_size();
1957 for (
int i = 0; i < this->references_columns_size(); i++) {
1958 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
1959 this->references_columns(i));
1962 if (!unknown_fields().empty()) {
1964 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1967 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1968 _cached_size_ = total_size;
1969 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1973 void Table_ForeignKeyConstraint::MergeFrom(const ::google::protobuf::Message& from) {
1974 GOOGLE_CHECK_NE(&from,
this);
1975 const Table_ForeignKeyConstraint* source =
1976 ::google::protobuf::internal::dynamic_cast_if_available<const Table_ForeignKeyConstraint*>(
1978 if (source == NULL) {
1979 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
1985 void Table_ForeignKeyConstraint::MergeFrom(
const Table_ForeignKeyConstraint& from) {
1986 GOOGLE_CHECK_NE(&from,
this);
1987 column_names_.MergeFrom(from.column_names_);
1988 references_columns_.MergeFrom(from.references_columns_);
1989 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1990 if (from.has_name()) {
1991 set_name(from.name());
1993 if (from.has_references_table_name()) {
1994 set_references_table_name(from.references_table_name());
1996 if (from.has_match()) {
1997 set_match(from.match());
1999 if (from.has_update_option()) {
2000 set_update_option(from.update_option());
2002 if (from.has_delete_option()) {
2003 set_delete_option(from.delete_option());
2006 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2009 void Table_ForeignKeyConstraint::CopyFrom(const ::google::protobuf::Message& from) {
2010 if (&from ==
this)
return;
2015 void Table_ForeignKeyConstraint::CopyFrom(
const Table_ForeignKeyConstraint& from) {
2016 if (&from ==
this)
return;
2021 bool Table_ForeignKeyConstraint::IsInitialized()
const {
2022 if ((_has_bits_[0] & 0x00000074) != 0x00000074)
return false;
2027 void Table_ForeignKeyConstraint::Swap(Table_ForeignKeyConstraint* other) {
2028 if (other !=
this) {
2029 std::swap(name_, other->name_);
2030 column_names_.Swap(&other->column_names_);
2031 std::swap(references_table_name_, other->references_table_name_);
2032 references_columns_.Swap(&other->references_columns_);
2033 std::swap(match_, other->match_);
2034 std::swap(update_option_, other->update_option_);
2035 std::swap(delete_option_, other->delete_option_);
2036 std::swap(_has_bits_[0], other->_has_bits_[0]);
2037 _unknown_fields_.Swap(&other->_unknown_fields_);
2038 std::swap(_cached_size_, other->_cached_size_);
2042 ::google::protobuf::Metadata Table_ForeignKeyConstraint::GetMetadata()
const {
2043 protobuf_AssignDescriptorsOnce();
2044 ::google::protobuf::Metadata metadata;
2045 metadata.descriptor = Table_ForeignKeyConstraint_descriptor_;
2046 metadata.reflection = Table_ForeignKeyConstraint_reflection_;
2053 const ::google::protobuf::EnumDescriptor* Table_Field_FieldType_descriptor() {
2054 protobuf_AssignDescriptorsOnce();
2055 return Table_Field_FieldType_descriptor_;
2057 bool Table_Field_FieldType_IsValid(
int value) {
2080 const Table_Field_FieldType Table_Field::DOUBLE;
2081 const Table_Field_FieldType Table_Field::VARCHAR;
2082 const Table_Field_FieldType Table_Field::BLOB;
2083 const Table_Field_FieldType Table_Field::ENUM;
2084 const Table_Field_FieldType Table_Field::INTEGER;
2085 const Table_Field_FieldType Table_Field::BIGINT;
2086 const Table_Field_FieldType Table_Field::DECIMAL;
2087 const Table_Field_FieldType Table_Field::DATE;
2088 const Table_Field_FieldType Table_Field::EPOCH;
2089 const Table_Field_FieldType Table_Field::DATETIME;
2090 const Table_Field_FieldType Table_Field::UUID;
2091 const Table_Field_FieldType Table_Field::TIME;
2092 const Table_Field_FieldType Table_Field::BOOLEAN;
2093 const Table_Field_FieldType Table_Field::IPV6;
2094 const Table_Field_FieldType Table_Field::FieldType_MIN;
2095 const Table_Field_FieldType Table_Field::FieldType_MAX;
2096 const int Table_Field::FieldType_ARRAYSIZE;
2099 const int Table_Field_FieldOptions::kDefaultValueFieldNumber;
2100 const int Table_Field_FieldOptions::kUpdateValueFieldNumber;
2101 const int Table_Field_FieldOptions::kDefaultNullFieldNumber;
2102 const int Table_Field_FieldOptions::kDefaultBinValueFieldNumber;
2103 const int Table_Field_FieldOptions::kDefaultExpressionFieldNumber;
2104 const int Table_Field_FieldOptions::kUpdateExpressionFieldNumber;
2107 Table_Field_FieldOptions::Table_Field_FieldOptions()
2108 : ::google::protobuf::Message() {
2112 void Table_Field_FieldOptions::InitAsDefaultInstance() {
2115 Table_Field_FieldOptions::Table_Field_FieldOptions(
const Table_Field_FieldOptions& from)
2116 : ::google::protobuf::Message() {
2121 void Table_Field_FieldOptions::SharedCtor() {
2123 default_value_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
2124 update_value_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
2125 default_null_ =
false;
2126 default_bin_value_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
2127 default_expression_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
2128 update_expression_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
2129 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
2132 Table_Field_FieldOptions::~Table_Field_FieldOptions() {
2136 void Table_Field_FieldOptions::SharedDtor() {
2137 if (default_value_ != &::google::protobuf::internal::kEmptyString) {
2138 delete default_value_;
2140 if (update_value_ != &::google::protobuf::internal::kEmptyString) {
2141 delete update_value_;
2143 if (default_bin_value_ != &::google::protobuf::internal::kEmptyString) {
2144 delete default_bin_value_;
2146 if (default_expression_ != &::google::protobuf::internal::kEmptyString) {
2147 delete default_expression_;
2149 if (update_expression_ != &::google::protobuf::internal::kEmptyString) {
2150 delete update_expression_;
2152 if (
this != default_instance_) {
2156 void Table_Field_FieldOptions::SetCachedSize(
int size)
const {
2157 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2158 _cached_size_ = size;
2159 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2161 const ::google::protobuf::Descriptor* Table_Field_FieldOptions::descriptor() {
2162 protobuf_AssignDescriptorsOnce();
2163 return Table_Field_FieldOptions_descriptor_;
2166 const Table_Field_FieldOptions& Table_Field_FieldOptions::default_instance() {
2167 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
return *default_instance_;
2170 Table_Field_FieldOptions* Table_Field_FieldOptions::default_instance_ = NULL;
2172 Table_Field_FieldOptions* Table_Field_FieldOptions::New()
const {
2173 return new Table_Field_FieldOptions;
2176 void Table_Field_FieldOptions::Clear() {
2177 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2178 if (has_default_value()) {
2179 if (default_value_ != &::google::protobuf::internal::kEmptyString) {
2180 default_value_->clear();
2183 if (has_update_value()) {
2184 if (update_value_ != &::google::protobuf::internal::kEmptyString) {
2185 update_value_->clear();
2188 default_null_ =
false;
2189 if (has_default_bin_value()) {
2190 if (default_bin_value_ != &::google::protobuf::internal::kEmptyString) {
2191 default_bin_value_->clear();
2194 if (has_default_expression()) {
2195 if (default_expression_ != &::google::protobuf::internal::kEmptyString) {
2196 default_expression_->clear();
2199 if (has_update_expression()) {
2200 if (update_expression_ != &::google::protobuf::internal::kEmptyString) {
2201 update_expression_->clear();
2205 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
2206 mutable_unknown_fields()->Clear();
2209 bool Table_Field_FieldOptions::MergePartialFromCodedStream(
2210 ::google::protobuf::io::CodedInputStream* input) {
2211 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
2212 ::google::protobuf::uint32 tag;
2213 while ((tag = input->ReadTag()) != 0) {
2214 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2217 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2218 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2219 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2220 input, this->mutable_default_value()));
2221 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2222 this->default_value().data(), this->default_value().length(),
2223 ::google::protobuf::internal::WireFormat::PARSE);
2225 goto handle_uninterpreted;
2227 if (input->ExpectTag(18))
goto parse_update_value;
2233 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2234 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2236 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2237 input, this->mutable_update_value()));
2238 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2239 this->update_value().data(), this->update_value().length(),
2240 ::google::protobuf::internal::WireFormat::PARSE);
2242 goto handle_uninterpreted;
2244 if (input->ExpectTag(24))
goto parse_default_null;
2250 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2251 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
2253 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2254 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2255 input, &default_null_)));
2256 set_has_default_null();
2258 goto handle_uninterpreted;
2260 if (input->ExpectTag(34))
goto parse_default_bin_value;
2266 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2267 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2268 parse_default_bin_value:
2269 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2270 input, this->mutable_default_bin_value()));
2272 goto handle_uninterpreted;
2274 if (input->ExpectTag(42))
goto parse_default_expression;
2280 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2281 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2282 parse_default_expression:
2283 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2284 input, this->mutable_default_expression()));
2285 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2286 this->default_expression().data(), this->default_expression().length(),
2287 ::google::protobuf::internal::WireFormat::PARSE);
2289 goto handle_uninterpreted;
2291 if (input->ExpectTag(50))
goto parse_update_expression;
2297 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2298 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2299 parse_update_expression:
2300 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2301 input, this->mutable_update_expression()));
2302 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2303 this->update_expression().data(), this->update_expression().length(),
2304 ::google::protobuf::internal::WireFormat::PARSE);
2306 goto handle_uninterpreted;
2308 if (input->ExpectAtEnd())
return true;
2313 handle_uninterpreted:
2314 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2315 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2318 DO_(::google::protobuf::internal::WireFormat::SkipField(
2319 input, tag, mutable_unknown_fields()));
2328 void Table_Field_FieldOptions::SerializeWithCachedSizes(
2329 ::google::protobuf::io::CodedOutputStream* output)
const {
2331 if (has_default_value()) {
2332 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2333 this->default_value().data(), this->default_value().length(),
2334 ::google::protobuf::internal::WireFormat::SERIALIZE);
2335 ::google::protobuf::internal::WireFormatLite::WriteString(
2336 1, this->default_value(), output);
2340 if (has_update_value()) {
2341 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2342 this->update_value().data(), this->update_value().length(),
2343 ::google::protobuf::internal::WireFormat::SERIALIZE);
2344 ::google::protobuf::internal::WireFormatLite::WriteString(
2345 2, this->update_value(), output);
2349 if (has_default_null()) {
2350 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->default_null(), output);
2354 if (has_default_bin_value()) {
2355 ::google::protobuf::internal::WireFormatLite::WriteBytes(
2356 4, this->default_bin_value(), output);
2360 if (has_default_expression()) {
2361 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2362 this->default_expression().data(), this->default_expression().length(),
2363 ::google::protobuf::internal::WireFormat::SERIALIZE);
2364 ::google::protobuf::internal::WireFormatLite::WriteString(
2365 5, this->default_expression(), output);
2369 if (has_update_expression()) {
2370 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2371 this->update_expression().data(), this->update_expression().length(),
2372 ::google::protobuf::internal::WireFormat::SERIALIZE);
2373 ::google::protobuf::internal::WireFormatLite::WriteString(
2374 6, this->update_expression(), output);
2377 if (!unknown_fields().empty()) {
2378 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2379 unknown_fields(), output);
2383 ::google::protobuf::uint8* Table_Field_FieldOptions::SerializeWithCachedSizesToArray(
2384 ::google::protobuf::uint8* target)
const {
2386 if (has_default_value()) {
2387 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2388 this->default_value().data(), this->default_value().length(),
2389 ::google::protobuf::internal::WireFormat::SERIALIZE);
2391 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2392 1, this->default_value(), target);
2396 if (has_update_value()) {
2397 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2398 this->update_value().data(), this->update_value().length(),
2399 ::google::protobuf::internal::WireFormat::SERIALIZE);
2401 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2402 2, this->update_value(), target);
2406 if (has_default_null()) {
2407 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->default_null(), target);
2411 if (has_default_bin_value()) {
2413 ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2414 4, this->default_bin_value(), target);
2418 if (has_default_expression()) {
2419 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2420 this->default_expression().data(), this->default_expression().length(),
2421 ::google::protobuf::internal::WireFormat::SERIALIZE);
2423 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2424 5, this->default_expression(), target);
2428 if (has_update_expression()) {
2429 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2430 this->update_expression().data(), this->update_expression().length(),
2431 ::google::protobuf::internal::WireFormat::SERIALIZE);
2433 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2434 6, this->update_expression(), target);
2437 if (!unknown_fields().empty()) {
2438 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2439 unknown_fields(), target);
2444 int Table_Field_FieldOptions::ByteSize()
const {
2447 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2449 if (has_default_value()) {
2451 ::google::protobuf::internal::WireFormatLite::StringSize(
2452 this->default_value());
2456 if (has_update_value()) {
2458 ::google::protobuf::internal::WireFormatLite::StringSize(
2459 this->update_value());
2463 if (has_default_null()) {
2464 total_size += 1 + 1;
2468 if (has_default_bin_value()) {
2470 ::google::protobuf::internal::WireFormatLite::BytesSize(
2471 this->default_bin_value());
2475 if (has_default_expression()) {
2477 ::google::protobuf::internal::WireFormatLite::StringSize(
2478 this->default_expression());
2482 if (has_update_expression()) {
2484 ::google::protobuf::internal::WireFormatLite::StringSize(
2485 this->update_expression());
2489 if (!unknown_fields().empty()) {
2491 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2494 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2495 _cached_size_ = total_size;
2496 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2500 void Table_Field_FieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
2501 GOOGLE_CHECK_NE(&from,
this);
2502 const Table_Field_FieldOptions* source =
2503 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_FieldOptions*>(
2505 if (source == NULL) {
2506 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
2512 void Table_Field_FieldOptions::MergeFrom(
const Table_Field_FieldOptions& from) {
2513 GOOGLE_CHECK_NE(&from,
this);
2514 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2515 if (from.has_default_value()) {
2516 set_default_value(from.default_value());
2518 if (from.has_update_value()) {
2519 set_update_value(from.update_value());
2521 if (from.has_default_null()) {
2522 set_default_null(from.default_null());
2524 if (from.has_default_bin_value()) {
2525 set_default_bin_value(from.default_bin_value());
2527 if (from.has_default_expression()) {
2528 set_default_expression(from.default_expression());
2530 if (from.has_update_expression()) {
2531 set_update_expression(from.update_expression());
2534 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2537 void Table_Field_FieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
2538 if (&from ==
this)
return;
2543 void Table_Field_FieldOptions::CopyFrom(
const Table_Field_FieldOptions& from) {
2544 if (&from ==
this)
return;
2549 bool Table_Field_FieldOptions::IsInitialized()
const {
2554 void Table_Field_FieldOptions::Swap(Table_Field_FieldOptions* other) {
2555 if (other !=
this) {
2556 std::swap(default_value_, other->default_value_);
2557 std::swap(update_value_, other->update_value_);
2558 std::swap(default_null_, other->default_null_);
2559 std::swap(default_bin_value_, other->default_bin_value_);
2560 std::swap(default_expression_, other->default_expression_);
2561 std::swap(update_expression_, other->update_expression_);
2562 std::swap(_has_bits_[0], other->_has_bits_[0]);
2563 _unknown_fields_.Swap(&other->_unknown_fields_);
2564 std::swap(_cached_size_, other->_cached_size_);
2568 ::google::protobuf::Metadata Table_Field_FieldOptions::GetMetadata()
const {
2569 protobuf_AssignDescriptorsOnce();
2570 ::google::protobuf::Metadata metadata;
2571 metadata.descriptor = Table_Field_FieldOptions_descriptor_;
2572 metadata.reflection = Table_Field_FieldOptions_reflection_;
2580 const int Table_Field_FieldConstraints::kIsNullableFieldNumber;
2581 const int Table_Field_FieldConstraints::kIsUnsignedFieldNumber;
2582 const int Table_Field_FieldConstraints::kIsNotnullFieldNumber;
2583 const int Table_Field_FieldConstraints::kIsUniqueFieldNumber;
2584 const int Table_Field_FieldConstraints::kExpressionFieldNumber;
2587 Table_Field_FieldConstraints::Table_Field_FieldConstraints()
2588 : ::google::protobuf::Message() {
2592 void Table_Field_FieldConstraints::InitAsDefaultInstance() {
2595 Table_Field_FieldConstraints::Table_Field_FieldConstraints(
const Table_Field_FieldConstraints& from)
2596 : ::google::protobuf::Message() {
2601 void Table_Field_FieldConstraints::SharedCtor() {
2603 is_nullable_ =
true;
2604 is_unsigned_ =
false;
2605 is_notnull_ =
false;
2607 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
2610 Table_Field_FieldConstraints::~Table_Field_FieldConstraints() {
2614 void Table_Field_FieldConstraints::SharedDtor() {
2615 if (
this != default_instance_) {
2619 void Table_Field_FieldConstraints::SetCachedSize(
int size)
const {
2620 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2621 _cached_size_ = size;
2622 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2624 const ::google::protobuf::Descriptor* Table_Field_FieldConstraints::descriptor() {
2625 protobuf_AssignDescriptorsOnce();
2626 return Table_Field_FieldConstraints_descriptor_;
2629 const Table_Field_FieldConstraints& Table_Field_FieldConstraints::default_instance() {
2630 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
return *default_instance_;
2633 Table_Field_FieldConstraints* Table_Field_FieldConstraints::default_instance_ = NULL;
2635 Table_Field_FieldConstraints* Table_Field_FieldConstraints::New()
const {
2636 return new Table_Field_FieldConstraints;
2639 void Table_Field_FieldConstraints::Clear() {
2640 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2641 is_nullable_ =
true;
2642 is_unsigned_ =
false;
2643 is_notnull_ =
false;
2646 expression_.Clear();
2647 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
2648 mutable_unknown_fields()->Clear();
2651 bool Table_Field_FieldConstraints::MergePartialFromCodedStream(
2652 ::google::protobuf::io::CodedInputStream* input) {
2653 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
2654 ::google::protobuf::uint32 tag;
2655 while ((tag = input->ReadTag()) != 0) {
2656 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2659 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2660 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
2661 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2662 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2663 input, &is_nullable_)));
2664 set_has_is_nullable();
2666 goto handle_uninterpreted;
2668 if (input->ExpectTag(16))
goto parse_is_unsigned;
2674 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2675 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
2677 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2678 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2679 input, &is_unsigned_)));
2680 set_has_is_unsigned();
2682 goto handle_uninterpreted;
2684 if (input->ExpectTag(24))
goto parse_is_notnull;
2690 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2691 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
2693 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2694 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2695 input, &is_notnull_)));
2696 set_has_is_notnull();
2698 goto handle_uninterpreted;
2700 if (input->ExpectTag(32))
goto parse_is_unique;
2706 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2707 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
2709 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2710 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2711 input, &is_unique_)));
2712 set_has_is_unique();
2714 goto handle_uninterpreted;
2716 if (input->ExpectTag(130))
goto parse_expression;
2722 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2723 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2725 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2726 input, this->add_expression()));
2727 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2728 this->expression(0).data(), this->expression(0).length(),
2729 ::google::protobuf::internal::WireFormat::PARSE);
2731 goto handle_uninterpreted;
2733 if (input->ExpectTag(130))
goto parse_expression;
2734 if (input->ExpectAtEnd())
return true;
2739 handle_uninterpreted:
2740 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2741 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2744 DO_(::google::protobuf::internal::WireFormat::SkipField(
2745 input, tag, mutable_unknown_fields()));
2754 void Table_Field_FieldConstraints::SerializeWithCachedSizes(
2755 ::google::protobuf::io::CodedOutputStream* output)
const {
2757 if (has_is_nullable()) {
2758 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is_nullable(), output);
2762 if (has_is_unsigned()) {
2763 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_unsigned(), output);
2767 if (has_is_notnull()) {
2768 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->is_notnull(), output);
2772 if (has_is_unique()) {
2773 ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->is_unique(), output);
2777 for (
int i = 0; i < this->expression_size(); i++) {
2778 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2779 this->expression(i).data(), this->expression(i).length(),
2780 ::google::protobuf::internal::WireFormat::SERIALIZE);
2781 ::google::protobuf::internal::WireFormatLite::WriteString(
2782 16, this->expression(i), output);
2785 if (!unknown_fields().empty()) {
2786 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2787 unknown_fields(), output);
2791 ::google::protobuf::uint8* Table_Field_FieldConstraints::SerializeWithCachedSizesToArray(
2792 ::google::protobuf::uint8* target)
const {
2794 if (has_is_nullable()) {
2795 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->is_nullable(), target);
2799 if (has_is_unsigned()) {
2800 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_unsigned(), target);
2804 if (has_is_notnull()) {
2805 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->is_notnull(), target);
2809 if (has_is_unique()) {
2810 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->is_unique(), target);
2814 for (
int i = 0; i < this->expression_size(); i++) {
2815 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2816 this->expression(i).data(), this->expression(i).length(),
2817 ::google::protobuf::internal::WireFormat::SERIALIZE);
2818 target = ::google::protobuf::internal::WireFormatLite::
2819 WriteStringToArray(16, this->expression(i), target);
2822 if (!unknown_fields().empty()) {
2823 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2824 unknown_fields(), target);
2829 int Table_Field_FieldConstraints::ByteSize()
const {
2832 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2834 if (has_is_nullable()) {
2835 total_size += 1 + 1;
2839 if (has_is_unsigned()) {
2840 total_size += 1 + 1;
2844 if (has_is_notnull()) {
2845 total_size += 1 + 1;
2849 if (has_is_unique()) {
2850 total_size += 1 + 1;
2855 total_size += 2 * this->expression_size();
2856 for (
int i = 0; i < this->expression_size(); i++) {
2857 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
2858 this->expression(i));
2861 if (!unknown_fields().empty()) {
2863 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2866 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2867 _cached_size_ = total_size;
2868 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2872 void Table_Field_FieldConstraints::MergeFrom(const ::google::protobuf::Message& from) {
2873 GOOGLE_CHECK_NE(&from,
this);
2874 const Table_Field_FieldConstraints* source =
2875 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_FieldConstraints*>(
2877 if (source == NULL) {
2878 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
2884 void Table_Field_FieldConstraints::MergeFrom(
const Table_Field_FieldConstraints& from) {
2885 GOOGLE_CHECK_NE(&from,
this);
2886 expression_.MergeFrom(from.expression_);
2887 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2888 if (from.has_is_nullable()) {
2889 set_is_nullable(from.is_nullable());
2891 if (from.has_is_unsigned()) {
2892 set_is_unsigned(from.is_unsigned());
2894 if (from.has_is_notnull()) {
2895 set_is_notnull(from.is_notnull());
2897 if (from.has_is_unique()) {
2898 set_is_unique(from.is_unique());
2901 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2904 void Table_Field_FieldConstraints::CopyFrom(const ::google::protobuf::Message& from) {
2905 if (&from ==
this)
return;
2910 void Table_Field_FieldConstraints::CopyFrom(
const Table_Field_FieldConstraints& from) {
2911 if (&from ==
this)
return;
2916 bool Table_Field_FieldConstraints::IsInitialized()
const {
2921 void Table_Field_FieldConstraints::Swap(Table_Field_FieldConstraints* other) {
2922 if (other !=
this) {
2923 std::swap(is_nullable_, other->is_nullable_);
2924 std::swap(is_unsigned_, other->is_unsigned_);
2925 std::swap(is_notnull_, other->is_notnull_);
2926 std::swap(is_unique_, other->is_unique_);
2927 expression_.Swap(&other->expression_);
2928 std::swap(_has_bits_[0], other->_has_bits_[0]);
2929 _unknown_fields_.Swap(&other->_unknown_fields_);
2930 std::swap(_cached_size_, other->_cached_size_);
2934 ::google::protobuf::Metadata Table_Field_FieldConstraints::GetMetadata()
const {
2935 protobuf_AssignDescriptorsOnce();
2936 ::google::protobuf::Metadata metadata;
2937 metadata.descriptor = Table_Field_FieldConstraints_descriptor_;
2938 metadata.reflection = Table_Field_FieldConstraints_reflection_;
2946 const int Table_Field_NumericFieldOptions::kIsAutoincrementFieldNumber;
2947 const int Table_Field_NumericFieldOptions::kScaleFieldNumber;
2948 const int Table_Field_NumericFieldOptions::kPrecisionFieldNumber;
2951 Table_Field_NumericFieldOptions::Table_Field_NumericFieldOptions()
2952 : ::google::protobuf::Message() {
2956 void Table_Field_NumericFieldOptions::InitAsDefaultInstance() {
2959 Table_Field_NumericFieldOptions::Table_Field_NumericFieldOptions(
const Table_Field_NumericFieldOptions& from)
2960 : ::google::protobuf::Message() {
2965 void Table_Field_NumericFieldOptions::SharedCtor() {
2967 is_autoincrement_ =
false;
2970 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
2973 Table_Field_NumericFieldOptions::~Table_Field_NumericFieldOptions() {
2977 void Table_Field_NumericFieldOptions::SharedDtor() {
2978 if (
this != default_instance_) {
2982 void Table_Field_NumericFieldOptions::SetCachedSize(
int size)
const {
2983 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2984 _cached_size_ = size;
2985 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2987 const ::google::protobuf::Descriptor* Table_Field_NumericFieldOptions::descriptor() {
2988 protobuf_AssignDescriptorsOnce();
2989 return Table_Field_NumericFieldOptions_descriptor_;
2992 const Table_Field_NumericFieldOptions& Table_Field_NumericFieldOptions::default_instance() {
2993 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
return *default_instance_;
2996 Table_Field_NumericFieldOptions* Table_Field_NumericFieldOptions::default_instance_ = NULL;
2998 Table_Field_NumericFieldOptions* Table_Field_NumericFieldOptions::New()
const {
2999 return new Table_Field_NumericFieldOptions;
3002 void Table_Field_NumericFieldOptions::Clear() {
3003 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3004 is_autoincrement_ =
false;
3008 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3009 mutable_unknown_fields()->Clear();
3012 bool Table_Field_NumericFieldOptions::MergePartialFromCodedStream(
3013 ::google::protobuf::io::CodedInputStream* input) {
3014 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
3015 ::google::protobuf::uint32 tag;
3016 while ((tag = input->ReadTag()) != 0) {
3017 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3020 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3021 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
3022 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3023 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3024 input, &is_autoincrement_)));
3025 set_has_is_autoincrement();
3027 goto handle_uninterpreted;
3029 if (input->ExpectTag(16))
goto parse_scale;
3035 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3036 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
3038 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3039 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3043 goto handle_uninterpreted;
3045 if (input->ExpectTag(24))
goto parse_precision;
3051 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3052 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
3054 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3055 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3056 input, &precision_)));
3057 set_has_precision();
3059 goto handle_uninterpreted;
3061 if (input->ExpectAtEnd())
return true;
3066 handle_uninterpreted:
3067 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3068 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3071 DO_(::google::protobuf::internal::WireFormat::SkipField(
3072 input, tag, mutable_unknown_fields()));
3081 void Table_Field_NumericFieldOptions::SerializeWithCachedSizes(
3082 ::google::protobuf::io::CodedOutputStream* output)
const {
3084 if (has_is_autoincrement()) {
3085 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is_autoincrement(), output);
3090 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->scale(), output);
3094 if (has_precision()) {
3095 ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->precision(), output);
3098 if (!unknown_fields().empty()) {
3099 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3100 unknown_fields(), output);
3104 ::google::protobuf::uint8* Table_Field_NumericFieldOptions::SerializeWithCachedSizesToArray(
3105 ::google::protobuf::uint8* target)
const {
3107 if (has_is_autoincrement()) {
3108 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->is_autoincrement(), target);
3113 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->scale(), target);
3117 if (has_precision()) {
3118 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->precision(), target);
3121 if (!unknown_fields().empty()) {
3122 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3123 unknown_fields(), target);
3128 int Table_Field_NumericFieldOptions::ByteSize()
const {
3131 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3133 if (has_is_autoincrement()) {
3134 total_size += 1 + 1;
3140 ::google::protobuf::internal::WireFormatLite::UInt32Size(
3145 if (has_precision()) {
3147 ::google::protobuf::internal::WireFormatLite::UInt32Size(
3152 if (!unknown_fields().empty()) {
3154 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3157 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3158 _cached_size_ = total_size;
3159 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3163 void Table_Field_NumericFieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
3164 GOOGLE_CHECK_NE(&from,
this);
3165 const Table_Field_NumericFieldOptions* source =
3166 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_NumericFieldOptions*>(
3168 if (source == NULL) {
3169 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
3175 void Table_Field_NumericFieldOptions::MergeFrom(
const Table_Field_NumericFieldOptions& from) {
3176 GOOGLE_CHECK_NE(&from,
this);
3177 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3178 if (from.has_is_autoincrement()) {
3179 set_is_autoincrement(from.is_autoincrement());
3181 if (from.has_scale()) {
3182 set_scale(from.scale());
3184 if (from.has_precision()) {
3185 set_precision(from.precision());
3188 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3191 void Table_Field_NumericFieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
3192 if (&from ==
this)
return;
3197 void Table_Field_NumericFieldOptions::CopyFrom(
const Table_Field_NumericFieldOptions& from) {
3198 if (&from ==
this)
return;
3203 bool Table_Field_NumericFieldOptions::IsInitialized()
const {
3208 void Table_Field_NumericFieldOptions::Swap(Table_Field_NumericFieldOptions* other) {
3209 if (other !=
this) {
3210 std::swap(is_autoincrement_, other->is_autoincrement_);
3211 std::swap(scale_, other->scale_);
3212 std::swap(precision_, other->precision_);
3213 std::swap(_has_bits_[0], other->_has_bits_[0]);
3214 _unknown_fields_.Swap(&other->_unknown_fields_);
3215 std::swap(_cached_size_, other->_cached_size_);
3219 ::google::protobuf::Metadata Table_Field_NumericFieldOptions::GetMetadata()
const {
3220 protobuf_AssignDescriptorsOnce();
3221 ::google::protobuf::Metadata metadata;
3222 metadata.descriptor = Table_Field_NumericFieldOptions_descriptor_;
3223 metadata.reflection = Table_Field_NumericFieldOptions_reflection_;
3231 const int Table_Field_StringFieldOptions::kIsFixedWidthFieldNumber;
3232 const int Table_Field_StringFieldOptions::kLengthFieldNumber;
3233 const int Table_Field_StringFieldOptions::kCollationIdFieldNumber;
3234 const int Table_Field_StringFieldOptions::kCollationFieldNumber;
3237 Table_Field_StringFieldOptions::Table_Field_StringFieldOptions()
3238 : ::google::protobuf::Message() {
3242 void Table_Field_StringFieldOptions::InitAsDefaultInstance() {
3245 Table_Field_StringFieldOptions::Table_Field_StringFieldOptions(
const Table_Field_StringFieldOptions& from)
3246 : ::google::protobuf::Message() {
3251 void Table_Field_StringFieldOptions::SharedCtor() {
3253 is_fixed_width_ =
false;
3256 collation_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
3257 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3260 Table_Field_StringFieldOptions::~Table_Field_StringFieldOptions() {
3264 void Table_Field_StringFieldOptions::SharedDtor() {
3265 if (collation_ != &::google::protobuf::internal::kEmptyString) {
3268 if (
this != default_instance_) {
3272 void Table_Field_StringFieldOptions::SetCachedSize(
int size)
const {
3273 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3274 _cached_size_ = size;
3275 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3277 const ::google::protobuf::Descriptor* Table_Field_StringFieldOptions::descriptor() {
3278 protobuf_AssignDescriptorsOnce();
3279 return Table_Field_StringFieldOptions_descriptor_;
3282 const Table_Field_StringFieldOptions& Table_Field_StringFieldOptions::default_instance() {
3283 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
return *default_instance_;
3286 Table_Field_StringFieldOptions* Table_Field_StringFieldOptions::default_instance_ = NULL;
3288 Table_Field_StringFieldOptions* Table_Field_StringFieldOptions::New()
const {
3289 return new Table_Field_StringFieldOptions;
3292 void Table_Field_StringFieldOptions::Clear() {
3293 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3294 is_fixed_width_ =
false;
3297 if (has_collation()) {
3298 if (collation_ != &::google::protobuf::internal::kEmptyString) {
3299 collation_->clear();
3303 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3304 mutable_unknown_fields()->Clear();
3307 bool Table_Field_StringFieldOptions::MergePartialFromCodedStream(
3308 ::google::protobuf::io::CodedInputStream* input) {
3309 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
3310 ::google::protobuf::uint32 tag;
3311 while ((tag = input->ReadTag()) != 0) {
3312 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3315 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3316 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
3317 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3318 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3319 input, &is_fixed_width_)));
3320 set_has_is_fixed_width();
3322 goto handle_uninterpreted;
3324 if (input->ExpectTag(16))
goto parse_length;
3330 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3331 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
3333 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3334 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3338 goto handle_uninterpreted;
3340 if (input->ExpectTag(24))
goto parse_collation_id;
3346 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3347 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
3349 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3350 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3351 input, &collation_id_)));
3352 set_has_collation_id();
3354 goto handle_uninterpreted;
3356 if (input->ExpectTag(34))
goto parse_collation;
3362 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3363 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
3365 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3366 input, this->mutable_collation()));
3367 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3368 this->collation().data(), this->collation().length(),
3369 ::google::protobuf::internal::WireFormat::PARSE);
3371 goto handle_uninterpreted;
3373 if (input->ExpectAtEnd())
return true;
3378 handle_uninterpreted:
3379 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3380 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3383 DO_(::google::protobuf::internal::WireFormat::SkipField(
3384 input, tag, mutable_unknown_fields()));
3393 void Table_Field_StringFieldOptions::SerializeWithCachedSizes(
3394 ::google::protobuf::io::CodedOutputStream* output)
const {
3396 if (has_is_fixed_width()) {
3397 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is_fixed_width(), output);
3402 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->length(), output);
3406 if (has_collation_id()) {
3407 ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->collation_id(), output);
3411 if (has_collation()) {
3412 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3413 this->collation().data(), this->collation().length(),
3414 ::google::protobuf::internal::WireFormat::SERIALIZE);
3415 ::google::protobuf::internal::WireFormatLite::WriteString(
3416 4, this->collation(), output);
3419 if (!unknown_fields().empty()) {
3420 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3421 unknown_fields(), output);
3425 ::google::protobuf::uint8* Table_Field_StringFieldOptions::SerializeWithCachedSizesToArray(
3426 ::google::protobuf::uint8* target)
const {
3428 if (has_is_fixed_width()) {
3429 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->is_fixed_width(), target);
3434 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->length(), target);
3438 if (has_collation_id()) {
3439 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->collation_id(), target);
3443 if (has_collation()) {
3444 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3445 this->collation().data(), this->collation().length(),
3446 ::google::protobuf::internal::WireFormat::SERIALIZE);
3448 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3449 4, this->collation(), target);
3452 if (!unknown_fields().empty()) {
3453 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3454 unknown_fields(), target);
3459 int Table_Field_StringFieldOptions::ByteSize()
const {
3462 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3464 if (has_is_fixed_width()) {
3465 total_size += 1 + 1;
3471 ::google::protobuf::internal::WireFormatLite::UInt32Size(
3476 if (has_collation_id()) {
3478 ::google::protobuf::internal::WireFormatLite::UInt32Size(
3479 this->collation_id());
3483 if (has_collation()) {
3485 ::google::protobuf::internal::WireFormatLite::StringSize(
3490 if (!unknown_fields().empty()) {
3492 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3495 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3496 _cached_size_ = total_size;
3497 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3501 void Table_Field_StringFieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
3502 GOOGLE_CHECK_NE(&from,
this);
3503 const Table_Field_StringFieldOptions* source =
3504 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_StringFieldOptions*>(
3506 if (source == NULL) {
3507 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
3513 void Table_Field_StringFieldOptions::MergeFrom(
const Table_Field_StringFieldOptions& from) {
3514 GOOGLE_CHECK_NE(&from,
this);
3515 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3516 if (from.has_is_fixed_width()) {
3517 set_is_fixed_width(from.is_fixed_width());
3519 if (from.has_length()) {
3520 set_length(from.length());
3522 if (from.has_collation_id()) {
3523 set_collation_id(from.collation_id());
3525 if (from.has_collation()) {
3526 set_collation(from.collation());
3529 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3532 void Table_Field_StringFieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
3533 if (&from ==
this)
return;
3538 void Table_Field_StringFieldOptions::CopyFrom(
const Table_Field_StringFieldOptions& from) {
3539 if (&from ==
this)
return;
3544 bool Table_Field_StringFieldOptions::IsInitialized()
const {
3549 void Table_Field_StringFieldOptions::Swap(Table_Field_StringFieldOptions* other) {
3550 if (other !=
this) {
3551 std::swap(is_fixed_width_, other->is_fixed_width_);
3552 std::swap(length_, other->length_);
3553 std::swap(collation_id_, other->collation_id_);
3554 std::swap(collation_, other->collation_);
3555 std::swap(_has_bits_[0], other->_has_bits_[0]);
3556 _unknown_fields_.Swap(&other->_unknown_fields_);
3557 std::swap(_cached_size_, other->_cached_size_);
3561 ::google::protobuf::Metadata Table_Field_StringFieldOptions::GetMetadata()
const {
3562 protobuf_AssignDescriptorsOnce();
3563 ::google::protobuf::Metadata metadata;
3564 metadata.descriptor = Table_Field_StringFieldOptions_descriptor_;
3565 metadata.reflection = Table_Field_StringFieldOptions_reflection_;
3573 const int Table_Field_EnumerationValues::kCollationIdFieldNumber;
3574 const int Table_Field_EnumerationValues::kCollationFieldNumber;
3575 const int Table_Field_EnumerationValues::kFieldValueFieldNumber;
3578 Table_Field_EnumerationValues::Table_Field_EnumerationValues()
3579 : ::google::protobuf::Message() {
3583 void Table_Field_EnumerationValues::InitAsDefaultInstance() {
3586 Table_Field_EnumerationValues::Table_Field_EnumerationValues(
const Table_Field_EnumerationValues& from)
3587 : ::google::protobuf::Message() {
3592 void Table_Field_EnumerationValues::SharedCtor() {
3595 collation_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
3596 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3599 Table_Field_EnumerationValues::~Table_Field_EnumerationValues() {
3603 void Table_Field_EnumerationValues::SharedDtor() {
3604 if (collation_ != &::google::protobuf::internal::kEmptyString) {
3607 if (
this != default_instance_) {
3611 void Table_Field_EnumerationValues::SetCachedSize(
int size)
const {
3612 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3613 _cached_size_ = size;
3614 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3616 const ::google::protobuf::Descriptor* Table_Field_EnumerationValues::descriptor() {
3617 protobuf_AssignDescriptorsOnce();
3618 return Table_Field_EnumerationValues_descriptor_;
3621 const Table_Field_EnumerationValues& Table_Field_EnumerationValues::default_instance() {
3622 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
return *default_instance_;
3625 Table_Field_EnumerationValues* Table_Field_EnumerationValues::default_instance_ = NULL;
3627 Table_Field_EnumerationValues* Table_Field_EnumerationValues::New()
const {
3628 return new Table_Field_EnumerationValues;
3631 void Table_Field_EnumerationValues::Clear() {
3632 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3634 if (has_collation()) {
3635 if (collation_ != &::google::protobuf::internal::kEmptyString) {
3636 collation_->clear();
3640 field_value_.Clear();
3641 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3642 mutable_unknown_fields()->Clear();
3645 bool Table_Field_EnumerationValues::MergePartialFromCodedStream(
3646 ::google::protobuf::io::CodedInputStream* input) {
3647 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
3648 ::google::protobuf::uint32 tag;
3649 while ((tag = input->ReadTag()) != 0) {
3650 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3653 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3654 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
3655 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3656 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3657 input, &collation_id_)));
3658 set_has_collation_id();
3660 goto handle_uninterpreted;
3662 if (input->ExpectTag(26))
goto parse_collation;
3668 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3669 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
3671 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3672 input, this->mutable_collation()));
3673 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3674 this->collation().data(), this->collation().length(),
3675 ::google::protobuf::internal::WireFormat::PARSE);
3677 goto handle_uninterpreted;
3679 if (input->ExpectTag(34))
goto parse_field_value;
3685 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3686 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
3688 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3689 input, this->add_field_value()));
3690 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3691 this->field_value(0).data(), this->field_value(0).length(),
3692 ::google::protobuf::internal::WireFormat::PARSE);
3694 goto handle_uninterpreted;
3696 if (input->ExpectTag(34))
goto parse_field_value;
3697 if (input->ExpectAtEnd())
return true;
3702 handle_uninterpreted:
3703 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3704 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3707 DO_(::google::protobuf::internal::WireFormat::SkipField(
3708 input, tag, mutable_unknown_fields()));
3717 void Table_Field_EnumerationValues::SerializeWithCachedSizes(
3718 ::google::protobuf::io::CodedOutputStream* output)
const {
3720 if (has_collation_id()) {
3721 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->collation_id(), output);
3725 if (has_collation()) {
3726 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3727 this->collation().data(), this->collation().length(),
3728 ::google::protobuf::internal::WireFormat::SERIALIZE);
3729 ::google::protobuf::internal::WireFormatLite::WriteString(
3730 3, this->collation(), output);
3734 for (
int i = 0; i < this->field_value_size(); i++) {
3735 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3736 this->field_value(i).data(), this->field_value(i).length(),
3737 ::google::protobuf::internal::WireFormat::SERIALIZE);
3738 ::google::protobuf::internal::WireFormatLite::WriteString(
3739 4, this->field_value(i), output);
3742 if (!unknown_fields().empty()) {
3743 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3744 unknown_fields(), output);
3748 ::google::protobuf::uint8* Table_Field_EnumerationValues::SerializeWithCachedSizesToArray(
3749 ::google::protobuf::uint8* target)
const {
3751 if (has_collation_id()) {
3752 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->collation_id(), target);
3756 if (has_collation()) {
3757 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3758 this->collation().data(), this->collation().length(),
3759 ::google::protobuf::internal::WireFormat::SERIALIZE);
3761 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3762 3, this->collation(), target);
3766 for (
int i = 0; i < this->field_value_size(); i++) {
3767 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3768 this->field_value(i).data(), this->field_value(i).length(),
3769 ::google::protobuf::internal::WireFormat::SERIALIZE);
3770 target = ::google::protobuf::internal::WireFormatLite::
3771 WriteStringToArray(4, this->field_value(i), target);
3774 if (!unknown_fields().empty()) {
3775 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3776 unknown_fields(), target);
3781 int Table_Field_EnumerationValues::ByteSize()
const {
3784 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3786 if (has_collation_id()) {
3788 ::google::protobuf::internal::WireFormatLite::UInt32Size(
3789 this->collation_id());
3793 if (has_collation()) {
3795 ::google::protobuf::internal::WireFormatLite::StringSize(
3801 total_size += 1 * this->field_value_size();
3802 for (
int i = 0; i < this->field_value_size(); i++) {
3803 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
3804 this->field_value(i));
3807 if (!unknown_fields().empty()) {
3809 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3812 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3813 _cached_size_ = total_size;
3814 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3818 void Table_Field_EnumerationValues::MergeFrom(const ::google::protobuf::Message& from) {
3819 GOOGLE_CHECK_NE(&from,
this);
3820 const Table_Field_EnumerationValues* source =
3821 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_EnumerationValues*>(
3823 if (source == NULL) {
3824 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
3830 void Table_Field_EnumerationValues::MergeFrom(
const Table_Field_EnumerationValues& from) {
3831 GOOGLE_CHECK_NE(&from,
this);
3832 field_value_.MergeFrom(from.field_value_);
3833 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3834 if (from.has_collation_id()) {
3835 set_collation_id(from.collation_id());
3837 if (from.has_collation()) {
3838 set_collation(from.collation());
3841 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3844 void Table_Field_EnumerationValues::CopyFrom(const ::google::protobuf::Message& from) {
3845 if (&from ==
this)
return;
3850 void Table_Field_EnumerationValues::CopyFrom(
const Table_Field_EnumerationValues& from) {
3851 if (&from ==
this)
return;
3856 bool Table_Field_EnumerationValues::IsInitialized()
const {
3861 void Table_Field_EnumerationValues::Swap(Table_Field_EnumerationValues* other) {
3862 if (other !=
this) {
3863 std::swap(collation_id_, other->collation_id_);
3864 std::swap(collation_, other->collation_);
3865 field_value_.Swap(&other->field_value_);
3866 std::swap(_has_bits_[0], other->_has_bits_[0]);
3867 _unknown_fields_.Swap(&other->_unknown_fields_);
3868 std::swap(_cached_size_, other->_cached_size_);
3872 ::google::protobuf::Metadata Table_Field_EnumerationValues::GetMetadata()
const {
3873 protobuf_AssignDescriptorsOnce();
3874 ::google::protobuf::Metadata metadata;
3875 metadata.descriptor = Table_Field_EnumerationValues_descriptor_;
3876 metadata.reflection = Table_Field_EnumerationValues_reflection_;
3884 const int Table_Field_TimeFieldOptions::kMicrosecondsFieldNumber;
3887 Table_Field_TimeFieldOptions::Table_Field_TimeFieldOptions()
3888 : ::google::protobuf::Message() {
3892 void Table_Field_TimeFieldOptions::InitAsDefaultInstance() {
3895 Table_Field_TimeFieldOptions::Table_Field_TimeFieldOptions(
const Table_Field_TimeFieldOptions& from)
3896 : ::google::protobuf::Message() {
3901 void Table_Field_TimeFieldOptions::SharedCtor() {
3903 microseconds_ =
false;
3904 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3907 Table_Field_TimeFieldOptions::~Table_Field_TimeFieldOptions() {
3911 void Table_Field_TimeFieldOptions::SharedDtor() {
3912 if (
this != default_instance_) {
3916 void Table_Field_TimeFieldOptions::SetCachedSize(
int size)
const {
3917 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3918 _cached_size_ = size;
3919 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3921 const ::google::protobuf::Descriptor* Table_Field_TimeFieldOptions::descriptor() {
3922 protobuf_AssignDescriptorsOnce();
3923 return Table_Field_TimeFieldOptions_descriptor_;
3926 const Table_Field_TimeFieldOptions& Table_Field_TimeFieldOptions::default_instance() {
3927 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
return *default_instance_;
3930 Table_Field_TimeFieldOptions* Table_Field_TimeFieldOptions::default_instance_ = NULL;
3932 Table_Field_TimeFieldOptions* Table_Field_TimeFieldOptions::New()
const {
3933 return new Table_Field_TimeFieldOptions;
3936 void Table_Field_TimeFieldOptions::Clear() {
3937 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3938 microseconds_ =
false;
3940 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
3941 mutable_unknown_fields()->Clear();
3944 bool Table_Field_TimeFieldOptions::MergePartialFromCodedStream(
3945 ::google::protobuf::io::CodedInputStream* input) {
3946 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
3947 ::google::protobuf::uint32 tag;
3948 while ((tag = input->ReadTag()) != 0) {
3949 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3952 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3953 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
3954 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3955 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3956 input, µseconds_)));
3957 set_has_microseconds();
3959 goto handle_uninterpreted;
3961 if (input->ExpectAtEnd())
return true;
3966 handle_uninterpreted:
3967 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3968 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3971 DO_(::google::protobuf::internal::WireFormat::SkipField(
3972 input, tag, mutable_unknown_fields()));
3981 void Table_Field_TimeFieldOptions::SerializeWithCachedSizes(
3982 ::google::protobuf::io::CodedOutputStream* output)
const {
3984 if (has_microseconds()) {
3985 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->microseconds(), output);
3988 if (!unknown_fields().empty()) {
3989 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3990 unknown_fields(), output);
3994 ::google::protobuf::uint8* Table_Field_TimeFieldOptions::SerializeWithCachedSizesToArray(
3995 ::google::protobuf::uint8* target)
const {
3997 if (has_microseconds()) {
3998 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->microseconds(), target);
4001 if (!unknown_fields().empty()) {
4002 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4003 unknown_fields(), target);
4008 int Table_Field_TimeFieldOptions::ByteSize()
const {
4011 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4013 if (has_microseconds()) {
4014 total_size += 1 + 1;
4018 if (!unknown_fields().empty()) {
4020 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4023 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4024 _cached_size_ = total_size;
4025 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4029 void Table_Field_TimeFieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
4030 GOOGLE_CHECK_NE(&from,
this);
4031 const Table_Field_TimeFieldOptions* source =
4032 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_TimeFieldOptions*>(
4034 if (source == NULL) {
4035 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
4041 void Table_Field_TimeFieldOptions::MergeFrom(
const Table_Field_TimeFieldOptions& from) {
4042 GOOGLE_CHECK_NE(&from,
this);
4043 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4044 if (from.has_microseconds()) {
4045 set_microseconds(from.microseconds());
4048 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4051 void Table_Field_TimeFieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
4052 if (&from ==
this)
return;
4057 void Table_Field_TimeFieldOptions::CopyFrom(
const Table_Field_TimeFieldOptions& from) {
4058 if (&from ==
this)
return;
4063 bool Table_Field_TimeFieldOptions::IsInitialized()
const {
4068 void Table_Field_TimeFieldOptions::Swap(Table_Field_TimeFieldOptions* other) {
4069 if (other !=
this) {
4070 std::swap(microseconds_, other->microseconds_);
4071 std::swap(_has_bits_[0], other->_has_bits_[0]);
4072 _unknown_fields_.Swap(&other->_unknown_fields_);
4073 std::swap(_cached_size_, other->_cached_size_);
4077 ::google::protobuf::Metadata Table_Field_TimeFieldOptions::GetMetadata()
const {
4078 protobuf_AssignDescriptorsOnce();
4079 ::google::protobuf::Metadata metadata;
4080 metadata.descriptor = Table_Field_TimeFieldOptions_descriptor_;
4081 metadata.reflection = Table_Field_TimeFieldOptions_reflection_;
4089 const int Table_Field::kNameFieldNumber;
4090 const int Table_Field::kTypeFieldNumber;
4091 const int Table_Field::kOptionsFieldNumber;
4092 const int Table_Field::kConstraintsFieldNumber;
4093 const int Table_Field::kNumericOptionsFieldNumber;
4094 const int Table_Field::kStringOptionsFieldNumber;
4095 const int Table_Field::kTimeOptionsFieldNumber;
4096 const int Table_Field::kCommentFieldNumber;
4097 const int Table_Field::kEnumerationValuesFieldNumber;
4100 Table_Field::Table_Field()
4101 : ::google::protobuf::Message() {
4105 void Table_Field::InitAsDefaultInstance() {
4114 Table_Field::Table_Field(
const Table_Field& from)
4115 : ::google::protobuf::Message() {
4120 void Table_Field::SharedCtor() {
4122 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
4125 constraints_ = NULL;
4126 numeric_options_ = NULL;
4127 string_options_ = NULL;
4128 time_options_ = NULL;
4129 comment_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
4130 enumeration_values_ = NULL;
4131 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
4134 Table_Field::~Table_Field() {
4138 void Table_Field::SharedDtor() {
4139 if (name_ != &::google::protobuf::internal::kEmptyString) {
4142 if (comment_ != &::google::protobuf::internal::kEmptyString) {
4145 if (
this != default_instance_) {
4147 delete constraints_;
4148 delete numeric_options_;
4149 delete string_options_;
4150 delete time_options_;
4151 delete enumeration_values_;
4155 void Table_Field::SetCachedSize(
int size)
const {
4156 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4157 _cached_size_ = size;
4158 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4160 const ::google::protobuf::Descriptor* Table_Field::descriptor() {
4161 protobuf_AssignDescriptorsOnce();
4162 return Table_Field_descriptor_;
4165 const Table_Field& Table_Field::default_instance() {
4166 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
return *default_instance_;
4169 Table_Field* Table_Field::default_instance_ = NULL;
4171 Table_Field* Table_Field::New()
const {
4172 return new Table_Field;
4175 void Table_Field::Clear() {
4176 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4178 if (name_ != &::google::protobuf::internal::kEmptyString) {
4183 if (has_options()) {
4184 if (options_ != NULL) options_->::drizzled::message::Table_Field_FieldOptions::Clear();
4186 if (has_constraints()) {
4187 if (constraints_ != NULL) constraints_->::drizzled::message::Table_Field_FieldConstraints::Clear();
4189 if (has_numeric_options()) {
4190 if (numeric_options_ != NULL) numeric_options_->::drizzled::message::Table_Field_NumericFieldOptions::Clear();
4192 if (has_string_options()) {
4193 if (string_options_ != NULL) string_options_->::drizzled::message::Table_Field_StringFieldOptions::Clear();
4195 if (has_time_options()) {
4196 if (time_options_ != NULL) time_options_->::drizzled::message::Table_Field_TimeFieldOptions::Clear();
4198 if (has_comment()) {
4199 if (comment_ != &::google::protobuf::internal::kEmptyString) {
4204 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
4205 if (has_enumeration_values()) {
4206 if (enumeration_values_ != NULL) enumeration_values_->::drizzled::message::Table_Field_EnumerationValues::Clear();
4209 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
4210 mutable_unknown_fields()->Clear();
4213 bool Table_Field::MergePartialFromCodedStream(
4214 ::google::protobuf::io::CodedInputStream* input) {
4215 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
4216 ::google::protobuf::uint32 tag;
4217 while ((tag = input->ReadTag()) != 0) {
4218 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4221 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4222 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4223 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4224 input, this->mutable_name()));
4225 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4226 this->name().data(), this->name().length(),
4227 ::google::protobuf::internal::WireFormat::PARSE);
4229 goto handle_uninterpreted;
4231 if (input->ExpectTag(16))
goto parse_type;
4237 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4238 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4241 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4242 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4244 if (::drizzled::message::Table_Field_FieldType_IsValid(value)) {
4245 set_type(static_cast< ::drizzled::message::Table_Field_FieldType >(value));
4247 mutable_unknown_fields()->AddVarint(2, value);
4250 goto handle_uninterpreted;
4252 if (input->ExpectTag(34))
goto parse_options;
4258 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4259 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4261 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4262 input, mutable_options()));
4264 goto handle_uninterpreted;
4266 if (input->ExpectTag(42))
goto parse_constraints;
4272 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4273 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4275 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4276 input, mutable_constraints()));
4278 goto handle_uninterpreted;
4280 if (input->ExpectTag(50))
goto parse_numeric_options;
4286 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4287 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4288 parse_numeric_options:
4289 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4290 input, mutable_numeric_options()));
4292 goto handle_uninterpreted;
4294 if (input->ExpectTag(58))
goto parse_string_options;
4300 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4301 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4302 parse_string_options:
4303 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4304 input, mutable_string_options()));
4306 goto handle_uninterpreted;
4308 if (input->ExpectTag(66))
goto parse_time_options;
4314 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4315 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4317 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4318 input, mutable_time_options()));
4320 goto handle_uninterpreted;
4322 if (input->ExpectTag(130))
goto parse_comment;
4328 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4329 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4331 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4332 input, this->mutable_comment()));
4333 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4334 this->comment().data(), this->comment().length(),
4335 ::google::protobuf::internal::WireFormat::PARSE);
4337 goto handle_uninterpreted;
4339 if (input->ExpectTag(138))
goto parse_enumeration_values;
4345 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4346 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4347 parse_enumeration_values:
4348 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4349 input, mutable_enumeration_values()));
4351 goto handle_uninterpreted;
4353 if (input->ExpectAtEnd())
return true;
4358 handle_uninterpreted:
4359 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4360 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4363 DO_(::google::protobuf::internal::WireFormat::SkipField(
4364 input, tag, mutable_unknown_fields()));
4373 void Table_Field::SerializeWithCachedSizes(
4374 ::google::protobuf::io::CodedOutputStream* output)
const {
4377 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4378 this->name().data(), this->name().length(),
4379 ::google::protobuf::internal::WireFormat::SERIALIZE);
4380 ::google::protobuf::internal::WireFormatLite::WriteString(
4381 1, this->name(), output);
4386 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4387 2, this->type(), output);
4391 if (has_options()) {
4392 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4393 4, this->options(), output);
4397 if (has_constraints()) {
4398 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4399 5, this->constraints(), output);
4403 if (has_numeric_options()) {
4404 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4405 6, this->numeric_options(), output);
4409 if (has_string_options()) {
4410 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4411 7, this->string_options(), output);
4415 if (has_time_options()) {
4416 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4417 8, this->time_options(), output);
4421 if (has_comment()) {
4422 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4423 this->comment().data(), this->comment().length(),
4424 ::google::protobuf::internal::WireFormat::SERIALIZE);
4425 ::google::protobuf::internal::WireFormatLite::WriteString(
4426 16, this->comment(), output);
4430 if (has_enumeration_values()) {
4431 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4432 17, this->enumeration_values(), output);
4435 if (!unknown_fields().empty()) {
4436 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4437 unknown_fields(), output);
4441 ::google::protobuf::uint8* Table_Field::SerializeWithCachedSizesToArray(
4442 ::google::protobuf::uint8* target)
const {
4445 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4446 this->name().data(), this->name().length(),
4447 ::google::protobuf::internal::WireFormat::SERIALIZE);
4449 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4450 1, this->name(), target);
4455 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4456 2, this->type(), target);
4460 if (has_options()) {
4461 target = ::google::protobuf::internal::WireFormatLite::
4462 WriteMessageNoVirtualToArray(
4463 4, this->options(), target);
4467 if (has_constraints()) {
4468 target = ::google::protobuf::internal::WireFormatLite::
4469 WriteMessageNoVirtualToArray(
4470 5, this->constraints(), target);
4474 if (has_numeric_options()) {
4475 target = ::google::protobuf::internal::WireFormatLite::
4476 WriteMessageNoVirtualToArray(
4477 6, this->numeric_options(), target);
4481 if (has_string_options()) {
4482 target = ::google::protobuf::internal::WireFormatLite::
4483 WriteMessageNoVirtualToArray(
4484 7, this->string_options(), target);
4488 if (has_time_options()) {
4489 target = ::google::protobuf::internal::WireFormatLite::
4490 WriteMessageNoVirtualToArray(
4491 8, this->time_options(), target);
4495 if (has_comment()) {
4496 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4497 this->comment().data(), this->comment().length(),
4498 ::google::protobuf::internal::WireFormat::SERIALIZE);
4500 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4501 16, this->comment(), target);
4505 if (has_enumeration_values()) {
4506 target = ::google::protobuf::internal::WireFormatLite::
4507 WriteMessageNoVirtualToArray(
4508 17, this->enumeration_values(), target);
4511 if (!unknown_fields().empty()) {
4512 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4513 unknown_fields(), target);
4518 int Table_Field::ByteSize()
const {
4521 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4525 ::google::protobuf::internal::WireFormatLite::StringSize(
4532 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
4536 if (has_options()) {
4538 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4543 if (has_constraints()) {
4545 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4546 this->constraints());
4550 if (has_numeric_options()) {
4552 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4553 this->numeric_options());
4557 if (has_string_options()) {
4559 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4560 this->string_options());
4564 if (has_time_options()) {
4566 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4567 this->time_options());
4571 if (has_comment()) {
4573 ::google::protobuf::internal::WireFormatLite::StringSize(
4578 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
4580 if (has_enumeration_values()) {
4582 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4583 this->enumeration_values());
4587 if (!unknown_fields().empty()) {
4589 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4592 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4593 _cached_size_ = total_size;
4594 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4598 void Table_Field::MergeFrom(const ::google::protobuf::Message& from) {
4599 GOOGLE_CHECK_NE(&from,
this);
4600 const Table_Field* source =
4601 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field*>(
4603 if (source == NULL) {
4604 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
4610 void Table_Field::MergeFrom(
const Table_Field& from) {
4611 GOOGLE_CHECK_NE(&from,
this);
4612 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4613 if (from.has_name()) {
4614 set_name(from.name());
4616 if (from.has_type()) {
4617 set_type(from.type());
4619 if (from.has_options()) {
4620 mutable_options()->::drizzled::message::Table_Field_FieldOptions::MergeFrom(from.options());
4622 if (from.has_constraints()) {
4623 mutable_constraints()->::drizzled::message::Table_Field_FieldConstraints::MergeFrom(from.constraints());
4625 if (from.has_numeric_options()) {
4626 mutable_numeric_options()->::drizzled::message::Table_Field_NumericFieldOptions::MergeFrom(from.numeric_options());
4628 if (from.has_string_options()) {
4629 mutable_string_options()->::drizzled::message::Table_Field_StringFieldOptions::MergeFrom(from.string_options());
4631 if (from.has_time_options()) {
4632 mutable_time_options()->::drizzled::message::Table_Field_TimeFieldOptions::MergeFrom(from.time_options());
4634 if (from.has_comment()) {
4635 set_comment(from.comment());
4638 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
4639 if (from.has_enumeration_values()) {
4640 mutable_enumeration_values()->::drizzled::message::Table_Field_EnumerationValues::MergeFrom(from.enumeration_values());
4643 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4646 void Table_Field::CopyFrom(const ::google::protobuf::Message& from) {
4647 if (&from ==
this)
return;
4652 void Table_Field::CopyFrom(
const Table_Field& from) {
4653 if (&from ==
this)
return;
4658 bool Table_Field::IsInitialized()
const {
4659 if ((_has_bits_[0] & 0x00000003) != 0x00000003)
return false;
4664 void Table_Field::Swap(Table_Field* other) {
4665 if (other !=
this) {
4666 std::swap(name_, other->name_);
4667 std::swap(type_, other->type_);
4668 std::swap(options_, other->options_);
4669 std::swap(constraints_, other->constraints_);
4670 std::swap(numeric_options_, other->numeric_options_);
4671 std::swap(string_options_, other->string_options_);
4672 std::swap(time_options_, other->time_options_);
4673 std::swap(comment_, other->comment_);
4674 std::swap(enumeration_values_, other->enumeration_values_);
4675 std::swap(_has_bits_[0], other->_has_bits_[0]);
4676 _unknown_fields_.Swap(&other->_unknown_fields_);
4677 std::swap(_cached_size_, other->_cached_size_);
4681 ::google::protobuf::Metadata Table_Field::GetMetadata()
const {
4682 protobuf_AssignDescriptorsOnce();
4683 ::google::protobuf::Metadata metadata;
4684 metadata.descriptor = Table_Field_descriptor_;
4685 metadata.reflection = Table_Field_reflection_;
4692 const ::google::protobuf::EnumDescriptor* Table_Index_IndexType_descriptor() {
4693 protobuf_AssignDescriptorsOnce();
4694 return Table_Index_IndexType_descriptor_;
4696 bool Table_Index_IndexType_IsValid(
int value) {
4710 const Table_Index_IndexType Table_Index::UNKNOWN_INDEX;
4711 const Table_Index_IndexType Table_Index::BTREE;
4712 const Table_Index_IndexType Table_Index::RTREE;
4713 const Table_Index_IndexType Table_Index::HASH;
4714 const Table_Index_IndexType Table_Index::FULLTEXT;
4715 const Table_Index_IndexType Table_Index::IndexType_MIN;
4716 const Table_Index_IndexType Table_Index::IndexType_MAX;
4717 const int Table_Index::IndexType_ARRAYSIZE;
4720 const int Table_Index_IndexPart::kFieldnrFieldNumber;
4721 const int Table_Index_IndexPart::kCompareLengthFieldNumber;
4722 const int Table_Index_IndexPart::kInReverseOrderFieldNumber;
4725 Table_Index_IndexPart::Table_Index_IndexPart()
4726 : ::google::protobuf::Message() {
4730 void Table_Index_IndexPart::InitAsDefaultInstance() {
4733 Table_Index_IndexPart::Table_Index_IndexPart(
const Table_Index_IndexPart& from)
4734 : ::google::protobuf::Message() {
4739 void Table_Index_IndexPart::SharedCtor() {
4742 compare_length_ = 0u;
4743 in_reverse_order_ =
false;
4744 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
4747 Table_Index_IndexPart::~Table_Index_IndexPart() {
4751 void Table_Index_IndexPart::SharedDtor() {
4752 if (
this != default_instance_) {
4756 void Table_Index_IndexPart::SetCachedSize(
int size)
const {
4757 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4758 _cached_size_ = size;
4759 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4761 const ::google::protobuf::Descriptor* Table_Index_IndexPart::descriptor() {
4762 protobuf_AssignDescriptorsOnce();
4763 return Table_Index_IndexPart_descriptor_;
4766 const Table_Index_IndexPart& Table_Index_IndexPart::default_instance() {
4767 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
return *default_instance_;
4770 Table_Index_IndexPart* Table_Index_IndexPart::default_instance_ = NULL;
4772 Table_Index_IndexPart* Table_Index_IndexPart::New()
const {
4773 return new Table_Index_IndexPart;
4776 void Table_Index_IndexPart::Clear() {
4777 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4779 compare_length_ = 0u;
4780 in_reverse_order_ =
false;
4782 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
4783 mutable_unknown_fields()->Clear();
4786 bool Table_Index_IndexPart::MergePartialFromCodedStream(
4787 ::google::protobuf::io::CodedInputStream* input) {
4788 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
4789 ::google::protobuf::uint32 tag;
4790 while ((tag = input->ReadTag()) != 0) {
4791 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4794 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4795 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4796 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4797 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
4798 input, &fieldnr_)));
4801 goto handle_uninterpreted;
4803 if (input->ExpectTag(16))
goto parse_compare_length;
4809 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4810 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4811 parse_compare_length:
4812 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4813 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
4814 input, &compare_length_)));
4815 set_has_compare_length();
4817 goto handle_uninterpreted;
4819 if (input->ExpectTag(24))
goto parse_in_reverse_order;
4825 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4826 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4827 parse_in_reverse_order:
4828 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4829 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4830 input, &in_reverse_order_)));
4831 set_has_in_reverse_order();
4833 goto handle_uninterpreted;
4835 if (input->ExpectAtEnd())
return true;
4840 handle_uninterpreted:
4841 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4842 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4845 DO_(::google::protobuf::internal::WireFormat::SkipField(
4846 input, tag, mutable_unknown_fields()));
4855 void Table_Index_IndexPart::SerializeWithCachedSizes(
4856 ::google::protobuf::io::CodedOutputStream* output)
const {
4858 if (has_fieldnr()) {
4859 ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->fieldnr(), output);
4863 if (has_compare_length()) {
4864 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->compare_length(), output);
4868 if (has_in_reverse_order()) {
4869 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->in_reverse_order(), output);
4872 if (!unknown_fields().empty()) {
4873 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4874 unknown_fields(), output);
4878 ::google::protobuf::uint8* Table_Index_IndexPart::SerializeWithCachedSizesToArray(
4879 ::google::protobuf::uint8* target)
const {
4881 if (has_fieldnr()) {
4882 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->fieldnr(), target);
4886 if (has_compare_length()) {
4887 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->compare_length(), target);
4891 if (has_in_reverse_order()) {
4892 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->in_reverse_order(), target);
4895 if (!unknown_fields().empty()) {
4896 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4897 unknown_fields(), target);
4902 int Table_Index_IndexPart::ByteSize()
const {
4905 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4907 if (has_fieldnr()) {
4909 ::google::protobuf::internal::WireFormatLite::UInt32Size(
4914 if (has_compare_length()) {
4916 ::google::protobuf::internal::WireFormatLite::UInt32Size(
4917 this->compare_length());
4921 if (has_in_reverse_order()) {
4922 total_size += 1 + 1;
4926 if (!unknown_fields().empty()) {
4928 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4931 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4932 _cached_size_ = total_size;
4933 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4937 void Table_Index_IndexPart::MergeFrom(const ::google::protobuf::Message& from) {
4938 GOOGLE_CHECK_NE(&from,
this);
4939 const Table_Index_IndexPart* source =
4940 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Index_IndexPart*>(
4942 if (source == NULL) {
4943 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
4949 void Table_Index_IndexPart::MergeFrom(
const Table_Index_IndexPart& from) {
4950 GOOGLE_CHECK_NE(&from,
this);
4951 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4952 if (from.has_fieldnr()) {
4953 set_fieldnr(from.fieldnr());
4955 if (from.has_compare_length()) {
4956 set_compare_length(from.compare_length());
4958 if (from.has_in_reverse_order()) {
4959 set_in_reverse_order(from.in_reverse_order());
4962 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4965 void Table_Index_IndexPart::CopyFrom(const ::google::protobuf::Message& from) {
4966 if (&from ==
this)
return;
4971 void Table_Index_IndexPart::CopyFrom(
const Table_Index_IndexPart& from) {
4972 if (&from ==
this)
return;
4977 bool Table_Index_IndexPart::IsInitialized()
const {
4978 if ((_has_bits_[0] & 0x00000001) != 0x00000001)
return false;
4983 void Table_Index_IndexPart::Swap(Table_Index_IndexPart* other) {
4984 if (other !=
this) {
4985 std::swap(fieldnr_, other->fieldnr_);
4986 std::swap(compare_length_, other->compare_length_);
4987 std::swap(in_reverse_order_, other->in_reverse_order_);
4988 std::swap(_has_bits_[0], other->_has_bits_[0]);
4989 _unknown_fields_.Swap(&other->_unknown_fields_);
4990 std::swap(_cached_size_, other->_cached_size_);
4994 ::google::protobuf::Metadata Table_Index_IndexPart::GetMetadata()
const {
4995 protobuf_AssignDescriptorsOnce();
4996 ::google::protobuf::Metadata metadata;
4997 metadata.descriptor = Table_Index_IndexPart_descriptor_;
4998 metadata.reflection = Table_Index_IndexPart_reflection_;
5006 const int Table_Index_Options::kPackKeyFieldNumber;
5007 const int Table_Index_Options::kBinaryPackKeyFieldNumber;
5008 const int Table_Index_Options::kVarLengthKeyFieldNumber;
5009 const int Table_Index_Options::kNullPartKeyFieldNumber;
5010 const int Table_Index_Options::kKeyBlockSizeFieldNumber;
5011 const int Table_Index_Options::kHasPartialSegmentsFieldNumber;
5012 const int Table_Index_Options::kAutoGeneratedKeyFieldNumber;
5015 Table_Index_Options::Table_Index_Options()
5016 : ::google::protobuf::Message() {
5020 void Table_Index_Options::InitAsDefaultInstance() {
5023 Table_Index_Options::Table_Index_Options(
const Table_Index_Options& from)
5024 : ::google::protobuf::Message() {
5029 void Table_Index_Options::SharedCtor() {
5032 binary_pack_key_ =
false;
5033 var_length_key_ =
false;
5034 null_part_key_ =
false;
5035 key_block_size_ = 0u;
5036 has_partial_segments_ =
false;
5037 auto_generated_key_ =
false;
5038 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
5041 Table_Index_Options::~Table_Index_Options() {
5045 void Table_Index_Options::SharedDtor() {
5046 if (
this != default_instance_) {
5050 void Table_Index_Options::SetCachedSize(
int size)
const {
5051 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5052 _cached_size_ = size;
5053 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5055 const ::google::protobuf::Descriptor* Table_Index_Options::descriptor() {
5056 protobuf_AssignDescriptorsOnce();
5057 return Table_Index_Options_descriptor_;
5060 const Table_Index_Options& Table_Index_Options::default_instance() {
5061 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
return *default_instance_;
5064 Table_Index_Options* Table_Index_Options::default_instance_ = NULL;
5066 Table_Index_Options* Table_Index_Options::New()
const {
5067 return new Table_Index_Options;
5070 void Table_Index_Options::Clear() {
5071 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5073 binary_pack_key_ =
false;
5074 var_length_key_ =
false;
5075 null_part_key_ =
false;
5076 key_block_size_ = 0u;
5077 has_partial_segments_ =
false;
5078 auto_generated_key_ =
false;
5080 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
5081 mutable_unknown_fields()->Clear();
5084 bool Table_Index_Options::MergePartialFromCodedStream(
5085 ::google::protobuf::io::CodedInputStream* input) {
5086 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
5087 ::google::protobuf::uint32 tag;
5088 while ((tag = input->ReadTag()) != 0) {
5089 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5092 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5093 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5094 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5095 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5096 input, &pack_key_)));
5099 goto handle_uninterpreted;
5101 if (input->ExpectTag(16))
goto parse_binary_pack_key;
5107 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5108 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5109 parse_binary_pack_key:
5110 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5111 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5112 input, &binary_pack_key_)));
5113 set_has_binary_pack_key();
5115 goto handle_uninterpreted;
5117 if (input->ExpectTag(24))
goto parse_var_length_key;
5123 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5124 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5125 parse_var_length_key:
5126 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5127 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5128 input, &var_length_key_)));
5129 set_has_var_length_key();
5131 goto handle_uninterpreted;
5133 if (input->ExpectTag(32))
goto parse_null_part_key;
5139 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5140 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5141 parse_null_part_key:
5142 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5143 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5144 input, &null_part_key_)));
5145 set_has_null_part_key();
5147 goto handle_uninterpreted;
5149 if (input->ExpectTag(40))
goto parse_key_block_size;
5155 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5156 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5157 parse_key_block_size:
5158 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5159 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5160 input, &key_block_size_)));
5161 set_has_key_block_size();
5163 goto handle_uninterpreted;
5165 if (input->ExpectTag(48))
goto parse_has_partial_segments;
5171 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5172 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5173 parse_has_partial_segments:
5174 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5175 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5176 input, &has_partial_segments_)));
5177 set_has_has_partial_segments();
5179 goto handle_uninterpreted;
5181 if (input->ExpectTag(56))
goto parse_auto_generated_key;
5187 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5188 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5189 parse_auto_generated_key:
5190 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5191 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5192 input, &auto_generated_key_)));
5193 set_has_auto_generated_key();
5195 goto handle_uninterpreted;
5197 if (input->ExpectAtEnd())
return true;
5202 handle_uninterpreted:
5203 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5204 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5207 DO_(::google::protobuf::internal::WireFormat::SkipField(
5208 input, tag, mutable_unknown_fields()));
5217 void Table_Index_Options::SerializeWithCachedSizes(
5218 ::google::protobuf::io::CodedOutputStream* output)
const {
5220 if (has_pack_key()) {
5221 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->pack_key(), output);
5225 if (has_binary_pack_key()) {
5226 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->binary_pack_key(), output);
5230 if (has_var_length_key()) {
5231 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->var_length_key(), output);
5235 if (has_null_part_key()) {
5236 ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->null_part_key(), output);
5240 if (has_key_block_size()) {
5241 ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->key_block_size(), output);
5245 if (has_has_partial_segments()) {
5246 ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->has_partial_segments(), output);
5250 if (has_auto_generated_key()) {
5251 ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->auto_generated_key(), output);
5254 if (!unknown_fields().empty()) {
5255 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5256 unknown_fields(), output);
5260 ::google::protobuf::uint8* Table_Index_Options::SerializeWithCachedSizesToArray(
5261 ::google::protobuf::uint8* target)
const {
5263 if (has_pack_key()) {
5264 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->pack_key(), target);
5268 if (has_binary_pack_key()) {
5269 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->binary_pack_key(), target);
5273 if (has_var_length_key()) {
5274 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->var_length_key(), target);
5278 if (has_null_part_key()) {
5279 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->null_part_key(), target);
5283 if (has_key_block_size()) {
5284 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->key_block_size(), target);
5288 if (has_has_partial_segments()) {
5289 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->has_partial_segments(), target);
5293 if (has_auto_generated_key()) {
5294 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->auto_generated_key(), target);
5297 if (!unknown_fields().empty()) {
5298 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5299 unknown_fields(), target);
5304 int Table_Index_Options::ByteSize()
const {
5307 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5309 if (has_pack_key()) {
5310 total_size += 1 + 1;
5314 if (has_binary_pack_key()) {
5315 total_size += 1 + 1;
5319 if (has_var_length_key()) {
5320 total_size += 1 + 1;
5324 if (has_null_part_key()) {
5325 total_size += 1 + 1;
5329 if (has_key_block_size()) {
5331 ::google::protobuf::internal::WireFormatLite::UInt32Size(
5332 this->key_block_size());
5336 if (has_has_partial_segments()) {
5337 total_size += 1 + 1;
5341 if (has_auto_generated_key()) {
5342 total_size += 1 + 1;
5346 if (!unknown_fields().empty()) {
5348 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5351 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5352 _cached_size_ = total_size;
5353 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5357 void Table_Index_Options::MergeFrom(const ::google::protobuf::Message& from) {
5358 GOOGLE_CHECK_NE(&from,
this);
5359 const Table_Index_Options* source =
5360 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Index_Options*>(
5362 if (source == NULL) {
5363 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
5369 void Table_Index_Options::MergeFrom(
const Table_Index_Options& from) {
5370 GOOGLE_CHECK_NE(&from,
this);
5371 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5372 if (from.has_pack_key()) {
5373 set_pack_key(from.pack_key());
5375 if (from.has_binary_pack_key()) {
5376 set_binary_pack_key(from.binary_pack_key());
5378 if (from.has_var_length_key()) {
5379 set_var_length_key(from.var_length_key());
5381 if (from.has_null_part_key()) {
5382 set_null_part_key(from.null_part_key());
5384 if (from.has_key_block_size()) {
5385 set_key_block_size(from.key_block_size());
5387 if (from.has_has_partial_segments()) {
5388 set_has_partial_segments(from.has_partial_segments());
5390 if (from.has_auto_generated_key()) {
5391 set_auto_generated_key(from.auto_generated_key());
5394 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5397 void Table_Index_Options::CopyFrom(const ::google::protobuf::Message& from) {
5398 if (&from ==
this)
return;
5403 void Table_Index_Options::CopyFrom(
const Table_Index_Options& from) {
5404 if (&from ==
this)
return;
5409 bool Table_Index_Options::IsInitialized()
const {
5414 void Table_Index_Options::Swap(Table_Index_Options* other) {
5415 if (other !=
this) {
5416 std::swap(pack_key_, other->pack_key_);
5417 std::swap(binary_pack_key_, other->binary_pack_key_);
5418 std::swap(var_length_key_, other->var_length_key_);
5419 std::swap(null_part_key_, other->null_part_key_);
5420 std::swap(key_block_size_, other->key_block_size_);
5421 std::swap(has_partial_segments_, other->has_partial_segments_);
5422 std::swap(auto_generated_key_, other->auto_generated_key_);
5423 std::swap(_has_bits_[0], other->_has_bits_[0]);
5424 _unknown_fields_.Swap(&other->_unknown_fields_);
5425 std::swap(_cached_size_, other->_cached_size_);
5429 ::google::protobuf::Metadata Table_Index_Options::GetMetadata()
const {
5430 protobuf_AssignDescriptorsOnce();
5431 ::google::protobuf::Metadata metadata;
5432 metadata.descriptor = Table_Index_Options_descriptor_;
5433 metadata.reflection = Table_Index_Options_reflection_;
5441 const int Table_Index::kNameFieldNumber;
5442 const int Table_Index::kIsPrimaryFieldNumber;
5443 const int Table_Index::kIsUniqueFieldNumber;
5444 const int Table_Index::kTypeFieldNumber;
5445 const int Table_Index::kKeyLengthFieldNumber;
5446 const int Table_Index::kIndexPartFieldNumber;
5447 const int Table_Index::kOptionsFieldNumber;
5448 const int Table_Index::kCommentFieldNumber;
5451 Table_Index::Table_Index()
5452 : ::google::protobuf::Message() {
5456 void Table_Index::InitAsDefaultInstance() {
5460 Table_Index::Table_Index(
const Table_Index& from)
5461 : ::google::protobuf::Message() {
5466 void Table_Index::SharedCtor() {
5468 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
5469 is_primary_ =
false;
5474 comment_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
5475 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
5478 Table_Index::~Table_Index() {
5482 void Table_Index::SharedDtor() {
5483 if (name_ != &::google::protobuf::internal::kEmptyString) {
5486 if (comment_ != &::google::protobuf::internal::kEmptyString) {
5489 if (
this != default_instance_) {
5494 void Table_Index::SetCachedSize(
int size)
const {
5495 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5496 _cached_size_ = size;
5497 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5499 const ::google::protobuf::Descriptor* Table_Index::descriptor() {
5500 protobuf_AssignDescriptorsOnce();
5501 return Table_Index_descriptor_;
5504 const Table_Index& Table_Index::default_instance() {
5505 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
return *default_instance_;
5508 Table_Index* Table_Index::default_instance_ = NULL;
5510 Table_Index* Table_Index::New()
const {
5511 return new Table_Index;
5514 void Table_Index::Clear() {
5515 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5517 if (name_ != &::google::protobuf::internal::kEmptyString) {
5521 is_primary_ =
false;
5525 if (has_options()) {
5526 if (options_ != NULL) options_->::drizzled::message::Table_Index_Options::Clear();
5528 if (has_comment()) {
5529 if (comment_ != &::google::protobuf::internal::kEmptyString) {
5534 index_part_.Clear();
5535 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
5536 mutable_unknown_fields()->Clear();
5539 bool Table_Index::MergePartialFromCodedStream(
5540 ::google::protobuf::io::CodedInputStream* input) {
5541 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
5542 ::google::protobuf::uint32 tag;
5543 while ((tag = input->ReadTag()) != 0) {
5544 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5547 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5548 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
5549 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5550 input, this->mutable_name()));
5551 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5552 this->name().data(), this->name().length(),
5553 ::google::protobuf::internal::WireFormat::PARSE);
5555 goto handle_uninterpreted;
5557 if (input->ExpectTag(16))
goto parse_is_primary;
5563 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5564 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5566 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5567 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5568 input, &is_primary_)));
5569 set_has_is_primary();
5571 goto handle_uninterpreted;
5573 if (input->ExpectTag(24))
goto parse_is_unique;
5579 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5580 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5582 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5583 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5584 input, &is_unique_)));
5585 set_has_is_unique();
5587 goto handle_uninterpreted;
5589 if (input->ExpectTag(32))
goto parse_type;
5595 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5596 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5599 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5600 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5602 if (::drizzled::message::Table_Index_IndexType_IsValid(value)) {
5603 set_type(static_cast< ::drizzled::message::Table_Index_IndexType >(value));
5605 mutable_unknown_fields()->AddVarint(4, value);
5608 goto handle_uninterpreted;
5610 if (input->ExpectTag(40))
goto parse_key_length;
5616 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5617 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5619 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5620 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5621 input, &key_length_)));
5622 set_has_key_length();
5624 goto handle_uninterpreted;
5626 if (input->ExpectTag(50))
goto parse_index_part;
5632 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5633 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
5635 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5636 input, add_index_part()));
5638 goto handle_uninterpreted;
5640 if (input->ExpectTag(50))
goto parse_index_part;
5641 if (input->ExpectTag(58))
goto parse_options;
5647 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5648 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
5650 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5651 input, mutable_options()));
5653 goto handle_uninterpreted;
5655 if (input->ExpectTag(66))
goto parse_comment;
5661 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5662 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
5664 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5665 input, this->mutable_comment()));
5666 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5667 this->comment().data(), this->comment().length(),
5668 ::google::protobuf::internal::WireFormat::PARSE);
5670 goto handle_uninterpreted;
5672 if (input->ExpectAtEnd())
return true;
5677 handle_uninterpreted:
5678 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5679 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5682 DO_(::google::protobuf::internal::WireFormat::SkipField(
5683 input, tag, mutable_unknown_fields()));
5692 void Table_Index::SerializeWithCachedSizes(
5693 ::google::protobuf::io::CodedOutputStream* output)
const {
5696 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5697 this->name().data(), this->name().length(),
5698 ::google::protobuf::internal::WireFormat::SERIALIZE);
5699 ::google::protobuf::internal::WireFormatLite::WriteString(
5700 1, this->name(), output);
5704 if (has_is_primary()) {
5705 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_primary(), output);
5709 if (has_is_unique()) {
5710 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->is_unique(), output);
5715 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5716 4, this->type(), output);
5720 if (has_key_length()) {
5721 ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->key_length(), output);
5725 for (
int i = 0; i < this->index_part_size(); i++) {
5726 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5727 6, this->index_part(i), output);
5731 if (has_options()) {
5732 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5733 7, this->options(), output);
5737 if (has_comment()) {
5738 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5739 this->comment().data(), this->comment().length(),
5740 ::google::protobuf::internal::WireFormat::SERIALIZE);
5741 ::google::protobuf::internal::WireFormatLite::WriteString(
5742 8, this->comment(), output);
5745 if (!unknown_fields().empty()) {
5746 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5747 unknown_fields(), output);
5751 ::google::protobuf::uint8* Table_Index::SerializeWithCachedSizesToArray(
5752 ::google::protobuf::uint8* target)
const {
5755 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5756 this->name().data(), this->name().length(),
5757 ::google::protobuf::internal::WireFormat::SERIALIZE);
5759 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5760 1, this->name(), target);
5764 if (has_is_primary()) {
5765 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_primary(), target);
5769 if (has_is_unique()) {
5770 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->is_unique(), target);
5775 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5776 4, this->type(), target);
5780 if (has_key_length()) {
5781 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->key_length(), target);
5785 for (
int i = 0; i < this->index_part_size(); i++) {
5786 target = ::google::protobuf::internal::WireFormatLite::
5787 WriteMessageNoVirtualToArray(
5788 6, this->index_part(i), target);
5792 if (has_options()) {
5793 target = ::google::protobuf::internal::WireFormatLite::
5794 WriteMessageNoVirtualToArray(
5795 7, this->options(), target);
5799 if (has_comment()) {
5800 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5801 this->comment().data(), this->comment().length(),
5802 ::google::protobuf::internal::WireFormat::SERIALIZE);
5804 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5805 8, this->comment(), target);
5808 if (!unknown_fields().empty()) {
5809 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5810 unknown_fields(), target);
5815 int Table_Index::ByteSize()
const {
5818 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5822 ::google::protobuf::internal::WireFormatLite::StringSize(
5827 if (has_is_primary()) {
5828 total_size += 1 + 1;
5832 if (has_is_unique()) {
5833 total_size += 1 + 1;
5839 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
5843 if (has_key_length()) {
5845 ::google::protobuf::internal::WireFormatLite::UInt32Size(
5846 this->key_length());
5850 if (has_options()) {
5852 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5857 if (has_comment()) {
5859 ::google::protobuf::internal::WireFormatLite::StringSize(
5865 total_size += 1 * this->index_part_size();
5866 for (
int i = 0; i < this->index_part_size(); i++) {
5868 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5869 this->index_part(i));
5872 if (!unknown_fields().empty()) {
5874 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5877 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5878 _cached_size_ = total_size;
5879 GOOGLE_SAFE_CONCURRENT_WRITES_END();
5883 void Table_Index::MergeFrom(const ::google::protobuf::Message& from) {
5884 GOOGLE_CHECK_NE(&from,
this);
5885 const Table_Index* source =
5886 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Index*>(
5888 if (source == NULL) {
5889 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
5895 void Table_Index::MergeFrom(
const Table_Index& from) {
5896 GOOGLE_CHECK_NE(&from,
this);
5897 index_part_.MergeFrom(from.index_part_);
5898 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5899 if (from.has_name()) {
5900 set_name(from.name());
5902 if (from.has_is_primary()) {
5903 set_is_primary(from.is_primary());
5905 if (from.has_is_unique()) {
5906 set_is_unique(from.is_unique());
5908 if (from.has_type()) {
5909 set_type(from.type());
5911 if (from.has_key_length()) {
5912 set_key_length(from.key_length());
5914 if (from.has_options()) {
5915 mutable_options()->::drizzled::message::Table_Index_Options::MergeFrom(from.options());
5917 if (from.has_comment()) {
5918 set_comment(from.comment());
5921 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5924 void Table_Index::CopyFrom(const ::google::protobuf::Message& from) {
5925 if (&from ==
this)
return;
5930 void Table_Index::CopyFrom(
const Table_Index& from) {
5931 if (&from ==
this)
return;
5936 bool Table_Index::IsInitialized()
const {
5937 if ((_has_bits_[0] & 0x0000001f) != 0x0000001f)
return false;
5939 for (
int i = 0; i < index_part_size(); i++) {
5940 if (!this->index_part(i).IsInitialized())
return false;
5945 void Table_Index::Swap(Table_Index* other) {
5946 if (other !=
this) {
5947 std::swap(name_, other->name_);
5948 std::swap(is_primary_, other->is_primary_);
5949 std::swap(is_unique_, other->is_unique_);
5950 std::swap(type_, other->type_);
5951 std::swap(key_length_, other->key_length_);
5952 index_part_.Swap(&other->index_part_);
5953 std::swap(options_, other->options_);
5954 std::swap(comment_, other->comment_);
5955 std::swap(_has_bits_[0], other->_has_bits_[0]);
5956 _unknown_fields_.Swap(&other->_unknown_fields_);
5957 std::swap(_cached_size_, other->_cached_size_);
5961 ::google::protobuf::Metadata Table_Index::GetMetadata()
const {
5962 protobuf_AssignDescriptorsOnce();
5963 ::google::protobuf::Metadata metadata;
5964 metadata.descriptor = Table_Index_descriptor_;
5965 metadata.reflection = Table_Index_reflection_;
5973 const int Table::kNameFieldNumber;
5974 const int Table::kSchemaFieldNumber;
5975 const int Table::kTypeFieldNumber;
5976 const int Table::kEngineFieldNumber;
5977 const int Table::kFieldFieldNumber;
5978 const int Table::kIndexesFieldNumber;
5979 const int Table::kFkConstraintFieldNumber;
5980 const int Table::kOptionsFieldNumber;
5981 const int Table::kCreationTimestampFieldNumber;
5982 const int Table::kUpdateTimestampFieldNumber;
5983 const int Table::kCatalogFieldNumber;
5984 const int Table::kUuidFieldNumber;
5985 const int Table::kVersionFieldNumber;
5986 const int Table::kReplicationOptionsFieldNumber;
5987 const int Table::kAccessFieldNumber;
5991 : ::google::protobuf::Message() {
5995 void Table::InitAsDefaultInstance() {
6002 Table::Table(
const Table& from)
6003 : ::google::protobuf::Message() {
6008 void Table::SharedCtor() {
6010 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
6011 schema_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
6015 creation_timestamp_ = GOOGLE_ULONGLONG(0);
6016 update_timestamp_ = GOOGLE_ULONGLONG(0);
6017 catalog_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
6018 uuid_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
6019 version_ = GOOGLE_ULONGLONG(0);
6020 replication_options_ = NULL;
6022 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
6029 void Table::SharedDtor() {
6030 if (name_ != &::google::protobuf::internal::kEmptyString) {
6033 if (schema_ != &::google::protobuf::internal::kEmptyString) {
6036 if (catalog_ != &::google::protobuf::internal::kEmptyString) {
6039 if (uuid_ != &::google::protobuf::internal::kEmptyString) {
6042 if (
this != default_instance_) {
6045 delete replication_options_;
6050 void Table::SetCachedSize(
int size)
const {
6051 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6052 _cached_size_ = size;
6053 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6055 const ::google::protobuf::Descriptor* Table::descriptor() {
6056 protobuf_AssignDescriptorsOnce();
6057 return Table_descriptor_;
6060 const Table& Table::default_instance() {
6061 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
return *default_instance_;
6064 Table* Table::default_instance_ = NULL;
6066 Table* Table::New()
const {
6070 void Table::Clear() {
6071 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6073 if (name_ != &::google::protobuf::internal::kEmptyString) {
6078 if (schema_ != &::google::protobuf::internal::kEmptyString) {
6084 if (engine_ != NULL) engine_->::drizzled::message::Engine::Clear();
6086 if (has_options()) {
6087 if (options_ != NULL) options_->::drizzled::message::Table_TableOptions::Clear();
6090 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
6091 creation_timestamp_ = GOOGLE_ULONGLONG(0);
6092 update_timestamp_ = GOOGLE_ULONGLONG(0);
6093 if (has_catalog()) {
6094 if (catalog_ != &::google::protobuf::internal::kEmptyString) {
6099 if (uuid_ != &::google::protobuf::internal::kEmptyString) {
6103 version_ = GOOGLE_ULONGLONG(0);
6104 if (has_replication_options()) {
6105 if (replication_options_ != NULL) replication_options_->::drizzled::message::ReplicationOptions::Clear();
6108 if (access_ != NULL) access_->::drizzled::message::Access::Clear();
6113 fk_constraint_.Clear();
6114 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
6115 mutable_unknown_fields()->Clear();
6118 bool Table::MergePartialFromCodedStream(
6119 ::google::protobuf::io::CodedInputStream* input) {
6120 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
6121 ::google::protobuf::uint32 tag;
6122 while ((tag = input->ReadTag()) != 0) {
6123 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6126 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6127 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6128 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6129 input, this->mutable_name()));
6130 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6131 this->name().data(), this->name().length(),
6132 ::google::protobuf::internal::WireFormat::PARSE);
6134 goto handle_uninterpreted;
6136 if (input->ExpectTag(18))
goto parse_engine;
6142 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6143 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6145 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6146 input, mutable_engine()));
6148 goto handle_uninterpreted;
6150 if (input->ExpectTag(26))
goto parse_field;
6156 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6157 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6159 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6160 input, add_field()));
6162 goto handle_uninterpreted;
6164 if (input->ExpectTag(26))
goto parse_field;
6165 if (input->ExpectTag(34))
goto parse_indexes;
6171 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6172 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6174 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6175 input, add_indexes()));
6177 goto handle_uninterpreted;
6179 if (input->ExpectTag(34))
goto parse_indexes;
6180 if (input->ExpectTag(40))
goto parse_type;
6186 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6187 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
6190 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6191 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6193 if (::drizzled::message::Table_TableType_IsValid(value)) {
6194 set_type(static_cast< ::drizzled::message::Table_TableType >(value));
6196 mutable_unknown_fields()->AddVarint(5, value);
6199 goto handle_uninterpreted;
6201 if (input->ExpectTag(50))
goto parse_schema;
6207 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6208 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6210 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6211 input, this->mutable_schema()));
6212 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6213 this->schema().data(), this->schema().length(),
6214 ::google::protobuf::internal::WireFormat::PARSE);
6216 goto handle_uninterpreted;
6218 if (input->ExpectTag(66))
goto parse_fk_constraint;
6224 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6225 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6226 parse_fk_constraint:
6227 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6228 input, add_fk_constraint()));
6230 goto handle_uninterpreted;
6232 if (input->ExpectTag(66))
goto parse_fk_constraint;
6233 if (input->ExpectTag(74))
goto parse_options;
6239 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6240 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6242 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6243 input, mutable_options()));
6245 goto handle_uninterpreted;
6247 if (input->ExpectTag(88))
goto parse_creation_timestamp;
6253 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6254 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
6255 parse_creation_timestamp:
6256 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6257 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
6258 input, &creation_timestamp_)));
6259 set_has_creation_timestamp();
6261 goto handle_uninterpreted;
6263 if (input->ExpectTag(96))
goto parse_update_timestamp;
6269 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6270 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
6271 parse_update_timestamp:
6272 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6273 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
6274 input, &update_timestamp_)));
6275 set_has_update_timestamp();
6277 goto handle_uninterpreted;
6279 if (input->ExpectTag(106))
goto parse_catalog;
6285 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6286 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6288 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6289 input, this->mutable_catalog()));
6290 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6291 this->catalog().data(), this->catalog().length(),
6292 ::google::protobuf::internal::WireFormat::PARSE);
6294 goto handle_uninterpreted;
6296 if (input->ExpectTag(114))
goto parse_uuid;
6302 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6303 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6305 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6306 input, this->mutable_uuid()));
6307 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6308 this->uuid().data(), this->uuid().length(),
6309 ::google::protobuf::internal::WireFormat::PARSE);
6311 goto handle_uninterpreted;
6313 if (input->ExpectTag(120))
goto parse_version;
6319 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6320 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
6322 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6323 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
6324 input, &version_)));
6327 goto handle_uninterpreted;
6329 if (input->ExpectTag(130))
goto parse_replication_options;
6335 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6336 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6337 parse_replication_options:
6338 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6339 input, mutable_replication_options()));
6341 goto handle_uninterpreted;
6343 if (input->ExpectTag(138))
goto parse_access;
6349 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6350 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6352 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6353 input, mutable_access()));
6355 goto handle_uninterpreted;
6357 if (input->ExpectAtEnd())
return true;
6362 handle_uninterpreted:
6363 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6364 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6367 DO_(::google::protobuf::internal::WireFormat::SkipField(
6368 input, tag, mutable_unknown_fields()));
6377 void Table::SerializeWithCachedSizes(
6378 ::google::protobuf::io::CodedOutputStream* output)
const {
6381 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6382 this->name().data(), this->name().length(),
6383 ::google::protobuf::internal::WireFormat::SERIALIZE);
6384 ::google::protobuf::internal::WireFormatLite::WriteString(
6385 1, this->name(), output);
6390 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6391 2, this->engine(), output);
6395 for (
int i = 0; i < this->field_size(); i++) {
6396 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6397 3, this->field(i), output);
6401 for (
int i = 0; i < this->indexes_size(); i++) {
6402 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6403 4, this->indexes(i), output);
6408 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6409 5, this->type(), output);
6414 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6415 this->schema().data(), this->schema().length(),
6416 ::google::protobuf::internal::WireFormat::SERIALIZE);
6417 ::google::protobuf::internal::WireFormatLite::WriteString(
6418 6, this->schema(), output);
6422 for (
int i = 0; i < this->fk_constraint_size(); i++) {
6423 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6424 8, this->fk_constraint(i), output);
6428 if (has_options()) {
6429 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6430 9, this->options(), output);
6434 if (has_creation_timestamp()) {
6435 ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->creation_timestamp(), output);
6439 if (has_update_timestamp()) {
6440 ::google::protobuf::internal::WireFormatLite::WriteUInt64(12, this->update_timestamp(), output);
6444 if (has_catalog()) {
6445 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6446 this->catalog().data(), this->catalog().length(),
6447 ::google::protobuf::internal::WireFormat::SERIALIZE);
6448 ::google::protobuf::internal::WireFormatLite::WriteString(
6449 13, this->catalog(), output);
6454 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6455 this->uuid().data(), this->uuid().length(),
6456 ::google::protobuf::internal::WireFormat::SERIALIZE);
6457 ::google::protobuf::internal::WireFormatLite::WriteString(
6458 14, this->uuid(), output);
6462 if (has_version()) {
6463 ::google::protobuf::internal::WireFormatLite::WriteUInt64(15, this->version(), output);
6467 if (has_replication_options()) {
6468 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6469 16, this->replication_options(), output);
6474 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6475 17, this->access(), output);
6478 if (!unknown_fields().empty()) {
6479 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6480 unknown_fields(), output);
6484 ::google::protobuf::uint8* Table::SerializeWithCachedSizesToArray(
6485 ::google::protobuf::uint8* target)
const {
6488 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6489 this->name().data(), this->name().length(),
6490 ::google::protobuf::internal::WireFormat::SERIALIZE);
6492 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6493 1, this->name(), target);
6498 target = ::google::protobuf::internal::WireFormatLite::
6499 WriteMessageNoVirtualToArray(
6500 2, this->engine(), target);
6504 for (
int i = 0; i < this->field_size(); i++) {
6505 target = ::google::protobuf::internal::WireFormatLite::
6506 WriteMessageNoVirtualToArray(
6507 3, this->field(i), target);
6511 for (
int i = 0; i < this->indexes_size(); i++) {
6512 target = ::google::protobuf::internal::WireFormatLite::
6513 WriteMessageNoVirtualToArray(
6514 4, this->indexes(i), target);
6519 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6520 5, this->type(), target);
6525 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6526 this->schema().data(), this->schema().length(),
6527 ::google::protobuf::internal::WireFormat::SERIALIZE);
6529 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6530 6, this->schema(), target);
6534 for (
int i = 0; i < this->fk_constraint_size(); i++) {
6535 target = ::google::protobuf::internal::WireFormatLite::
6536 WriteMessageNoVirtualToArray(
6537 8, this->fk_constraint(i), target);
6541 if (has_options()) {
6542 target = ::google::protobuf::internal::WireFormatLite::
6543 WriteMessageNoVirtualToArray(
6544 9, this->options(), target);
6548 if (has_creation_timestamp()) {
6549 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->creation_timestamp(), target);
6553 if (has_update_timestamp()) {
6554 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(12, this->update_timestamp(), target);
6558 if (has_catalog()) {
6559 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6560 this->catalog().data(), this->catalog().length(),
6561 ::google::protobuf::internal::WireFormat::SERIALIZE);
6563 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6564 13, this->catalog(), target);
6569 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6570 this->uuid().data(), this->uuid().length(),
6571 ::google::protobuf::internal::WireFormat::SERIALIZE);
6573 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6574 14, this->uuid(), target);
6578 if (has_version()) {
6579 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(15, this->version(), target);
6583 if (has_replication_options()) {
6584 target = ::google::protobuf::internal::WireFormatLite::
6585 WriteMessageNoVirtualToArray(
6586 16, this->replication_options(), target);
6591 target = ::google::protobuf::internal::WireFormatLite::
6592 WriteMessageNoVirtualToArray(
6593 17, this->access(), target);
6596 if (!unknown_fields().empty()) {
6597 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6598 unknown_fields(), target);
6603 int Table::ByteSize()
const {
6606 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6610 ::google::protobuf::internal::WireFormatLite::StringSize(
6617 ::google::protobuf::internal::WireFormatLite::StringSize(
6624 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
6630 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6635 if (has_options()) {
6637 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6642 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
6644 if (has_creation_timestamp()) {
6646 ::google::protobuf::internal::WireFormatLite::UInt64Size(
6647 this->creation_timestamp());
6651 if (has_update_timestamp()) {
6653 ::google::protobuf::internal::WireFormatLite::UInt64Size(
6654 this->update_timestamp());
6658 if (has_catalog()) {
6660 ::google::protobuf::internal::WireFormatLite::StringSize(
6667 ::google::protobuf::internal::WireFormatLite::StringSize(
6672 if (has_version()) {
6674 ::google::protobuf::internal::WireFormatLite::UInt64Size(
6679 if (has_replication_options()) {
6681 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6682 this->replication_options());
6688 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6694 total_size += 1 * this->field_size();
6695 for (
int i = 0; i < this->field_size(); i++) {
6697 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6702 total_size += 1 * this->indexes_size();
6703 for (
int i = 0; i < this->indexes_size(); i++) {
6705 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6710 total_size += 1 * this->fk_constraint_size();
6711 for (
int i = 0; i < this->fk_constraint_size(); i++) {
6713 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6714 this->fk_constraint(i));
6717 if (!unknown_fields().empty()) {
6719 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6722 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6723 _cached_size_ = total_size;
6724 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6728 void Table::MergeFrom(const ::google::protobuf::Message& from) {
6729 GOOGLE_CHECK_NE(&from,
this);
6730 const Table* source =
6731 ::google::protobuf::internal::dynamic_cast_if_available<const Table*>(
6733 if (source == NULL) {
6734 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
6740 void Table::MergeFrom(
const Table& from) {
6741 GOOGLE_CHECK_NE(&from,
this);
6742 field_.MergeFrom(from.field_);
6743 indexes_.MergeFrom(from.indexes_);
6744 fk_constraint_.MergeFrom(from.fk_constraint_);
6745 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6746 if (from.has_name()) {
6747 set_name(from.name());
6749 if (from.has_schema()) {
6750 set_schema(from.schema());
6752 if (from.has_type()) {
6753 set_type(from.type());
6755 if (from.has_engine()) {
6756 mutable_engine()->::drizzled::message::Engine::MergeFrom(from.engine());
6758 if (from.has_options()) {
6759 mutable_options()->::drizzled::message::Table_TableOptions::MergeFrom(from.options());
6762 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
6763 if (from.has_creation_timestamp()) {
6764 set_creation_timestamp(from.creation_timestamp());
6766 if (from.has_update_timestamp()) {
6767 set_update_timestamp(from.update_timestamp());
6769 if (from.has_catalog()) {
6770 set_catalog(from.catalog());
6772 if (from.has_uuid()) {
6773 set_uuid(from.uuid());
6775 if (from.has_version()) {
6776 set_version(from.version());
6778 if (from.has_replication_options()) {
6779 mutable_replication_options()->::drizzled::message::ReplicationOptions::MergeFrom(from.replication_options());
6781 if (from.has_access()) {
6782 mutable_access()->::drizzled::message::Access::MergeFrom(from.access());
6785 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6788 void Table::CopyFrom(const ::google::protobuf::Message& from) {
6789 if (&from ==
this)
return;
6794 void Table::CopyFrom(
const Table& from) {
6795 if (&from ==
this)
return;
6800 bool Table::IsInitialized()
const {
6801 if ((_has_bits_[0] & 0x0000030f) != 0x0000030f)
return false;
6804 if (!this->engine().IsInitialized())
return false;
6806 for (
int i = 0; i < field_size(); i++) {
6807 if (!this->field(i).IsInitialized())
return false;
6809 for (
int i = 0; i < indexes_size(); i++) {
6810 if (!this->indexes(i).IsInitialized())
return false;
6812 for (
int i = 0; i < fk_constraint_size(); i++) {
6813 if (!this->fk_constraint(i).IsInitialized())
return false;
6818 void Table::Swap(Table* other) {
6819 if (other !=
this) {
6820 std::swap(name_, other->name_);
6821 std::swap(schema_, other->schema_);
6822 std::swap(type_, other->type_);
6823 std::swap(engine_, other->engine_);
6824 field_.Swap(&other->field_);
6825 indexes_.Swap(&other->indexes_);
6826 fk_constraint_.Swap(&other->fk_constraint_);
6827 std::swap(options_, other->options_);
6828 std::swap(creation_timestamp_, other->creation_timestamp_);
6829 std::swap(update_timestamp_, other->update_timestamp_);
6830 std::swap(catalog_, other->catalog_);
6831 std::swap(uuid_, other->uuid_);
6832 std::swap(version_, other->version_);
6833 std::swap(replication_options_, other->replication_options_);
6834 std::swap(access_, other->access_);
6835 std::swap(_has_bits_[0], other->_has_bits_[0]);
6836 _unknown_fields_.Swap(&other->_unknown_fields_);
6837 std::swap(_cached_size_, other->_cached_size_);
6841 ::google::protobuf::Metadata Table::GetMetadata()
const {
6842 protobuf_AssignDescriptorsOnce();
6843 ::google::protobuf::Metadata metadata;
6844 metadata.descriptor = Table_descriptor_;
6845 metadata.reflection = Table_reflection_;
6853 const int AddedFields::kAddedFieldFieldNumber;
6856 AddedFields::AddedFields()
6857 : ::google::protobuf::Message() {
6861 void AddedFields::InitAsDefaultInstance() {
6864 AddedFields::AddedFields(
const AddedFields& from)
6865 : ::google::protobuf::Message() {
6870 void AddedFields::SharedCtor() {
6872 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
6875 AddedFields::~AddedFields() {
6879 void AddedFields::SharedDtor() {
6880 if (
this != default_instance_) {
6884 void AddedFields::SetCachedSize(
int size)
const {
6885 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6886 _cached_size_ = size;
6887 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6889 const ::google::protobuf::Descriptor* AddedFields::descriptor() {
6890 protobuf_AssignDescriptorsOnce();
6891 return AddedFields_descriptor_;
6894 const AddedFields& AddedFields::default_instance() {
6895 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto();
return *default_instance_;
6898 AddedFields* AddedFields::default_instance_ = NULL;
6900 AddedFields* AddedFields::New()
const {
6901 return new AddedFields;
6904 void AddedFields::Clear() {
6905 added_field_.Clear();
6906 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
6907 mutable_unknown_fields()->Clear();
6910 bool AddedFields::MergePartialFromCodedStream(
6911 ::google::protobuf::io::CodedInputStream* input) {
6912 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
6913 ::google::protobuf::uint32 tag;
6914 while ((tag = input->ReadTag()) != 0) {
6915 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6918 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6919 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6921 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6922 input, add_added_field()));
6924 goto handle_uninterpreted;
6926 if (input->ExpectTag(10))
goto parse_added_field;
6927 if (input->ExpectAtEnd())
return true;
6932 handle_uninterpreted:
6933 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6934 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6937 DO_(::google::protobuf::internal::WireFormat::SkipField(
6938 input, tag, mutable_unknown_fields()));
6947 void AddedFields::SerializeWithCachedSizes(
6948 ::google::protobuf::io::CodedOutputStream* output)
const {
6950 for (
int i = 0; i < this->added_field_size(); i++) {
6951 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6952 1, this->added_field(i), output);
6955 if (!unknown_fields().empty()) {
6956 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6957 unknown_fields(), output);
6961 ::google::protobuf::uint8* AddedFields::SerializeWithCachedSizesToArray(
6962 ::google::protobuf::uint8* target)
const {
6964 for (
int i = 0; i < this->added_field_size(); i++) {
6965 target = ::google::protobuf::internal::WireFormatLite::
6966 WriteMessageNoVirtualToArray(
6967 1, this->added_field(i), target);
6970 if (!unknown_fields().empty()) {
6971 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6972 unknown_fields(), target);
6977 int AddedFields::ByteSize()
const {
6981 total_size += 1 * this->added_field_size();
6982 for (
int i = 0; i < this->added_field_size(); i++) {
6984 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6985 this->added_field(i));
6988 if (!unknown_fields().empty()) {
6990 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6993 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6994 _cached_size_ = total_size;
6995 GOOGLE_SAFE_CONCURRENT_WRITES_END();
6999 void AddedFields::MergeFrom(const ::google::protobuf::Message& from) {
7000 GOOGLE_CHECK_NE(&from,
this);
7001 const AddedFields* source =
7002 ::google::protobuf::internal::dynamic_cast_if_available<const AddedFields*>(
7004 if (source == NULL) {
7005 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
7011 void AddedFields::MergeFrom(
const AddedFields& from) {
7012 GOOGLE_CHECK_NE(&from,
this);
7013 added_field_.MergeFrom(from.added_field_);
7014 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
7017 void AddedFields::CopyFrom(const ::google::protobuf::Message& from) {
7018 if (&from ==
this)
return;
7023 void AddedFields::CopyFrom(
const AddedFields& from) {
7024 if (&from ==
this)
return;
7029 bool AddedFields::IsInitialized()
const {
7031 for (
int i = 0; i < added_field_size(); i++) {
7032 if (!this->added_field(i).IsInitialized())
return false;
7037 void AddedFields::Swap(AddedFields* other) {
7038 if (other !=
this) {
7039 added_field_.Swap(&other->added_field_);
7040 std::swap(_has_bits_[0], other->_has_bits_[0]);
7041 _unknown_fields_.Swap(&other->_unknown_fields_);
7042 std::swap(_cached_size_, other->_cached_size_);
7046 ::google::protobuf::Metadata AddedFields::GetMetadata()
const {
7047 protobuf_AssignDescriptorsOnce();
7048 ::google::protobuf::Metadata metadata;
7049 metadata.descriptor = AddedFields_descriptor_;
7050 metadata.reflection = AddedFields_reflection_;