00001
00002
00003 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
00004 #include "table.pb.h"
00005
00006 #include <algorithm>
00007
00008 #include <google/protobuf/stubs/once.h>
00009 #include <google/protobuf/io/coded_stream.h>
00010 #include <google/protobuf/wire_format_lite_inl.h>
00011 #include <google/protobuf/descriptor.h>
00012 #include <google/protobuf/reflection_ops.h>
00013 #include <google/protobuf/wire_format.h>
00014
00015
00016 namespace drizzled {
00017 namespace message {
00018
00019 namespace {
00020
00021 const ::google::protobuf::Descriptor* Table_descriptor_ = NULL;
00022 const ::google::protobuf::internal::GeneratedMessageReflection*
00023 Table_reflection_ = NULL;
00024 const ::google::protobuf::Descriptor* Table_TableOptions_descriptor_ = NULL;
00025 const ::google::protobuf::internal::GeneratedMessageReflection*
00026 Table_TableOptions_reflection_ = NULL;
00027 const ::google::protobuf::Descriptor* Table_ForeignKeyConstraint_descriptor_ = NULL;
00028 const ::google::protobuf::internal::GeneratedMessageReflection*
00029 Table_ForeignKeyConstraint_reflection_ = NULL;
00030 const ::google::protobuf::EnumDescriptor* Table_ForeignKeyConstraint_ForeignKeyMatchOption_descriptor_ = NULL;
00031 const ::google::protobuf::EnumDescriptor* Table_ForeignKeyConstraint_ForeignKeyOption_descriptor_ = NULL;
00032 const ::google::protobuf::Descriptor* Table_Field_descriptor_ = NULL;
00033 const ::google::protobuf::internal::GeneratedMessageReflection*
00034 Table_Field_reflection_ = NULL;
00035 const ::google::protobuf::Descriptor* Table_Field_FieldOptions_descriptor_ = NULL;
00036 const ::google::protobuf::internal::GeneratedMessageReflection*
00037 Table_Field_FieldOptions_reflection_ = NULL;
00038 const ::google::protobuf::Descriptor* Table_Field_FieldConstraints_descriptor_ = NULL;
00039 const ::google::protobuf::internal::GeneratedMessageReflection*
00040 Table_Field_FieldConstraints_reflection_ = NULL;
00041 const ::google::protobuf::Descriptor* Table_Field_NumericFieldOptions_descriptor_ = NULL;
00042 const ::google::protobuf::internal::GeneratedMessageReflection*
00043 Table_Field_NumericFieldOptions_reflection_ = NULL;
00044 const ::google::protobuf::Descriptor* Table_Field_StringFieldOptions_descriptor_ = NULL;
00045 const ::google::protobuf::internal::GeneratedMessageReflection*
00046 Table_Field_StringFieldOptions_reflection_ = NULL;
00047 const ::google::protobuf::Descriptor* Table_Field_EnumerationValues_descriptor_ = NULL;
00048 const ::google::protobuf::internal::GeneratedMessageReflection*
00049 Table_Field_EnumerationValues_reflection_ = NULL;
00050 const ::google::protobuf::Descriptor* Table_Field_TimeFieldOptions_descriptor_ = NULL;
00051 const ::google::protobuf::internal::GeneratedMessageReflection*
00052 Table_Field_TimeFieldOptions_reflection_ = NULL;
00053 const ::google::protobuf::EnumDescriptor* Table_Field_FieldType_descriptor_ = NULL;
00054 const ::google::protobuf::Descriptor* Table_Index_descriptor_ = NULL;
00055 const ::google::protobuf::internal::GeneratedMessageReflection*
00056 Table_Index_reflection_ = NULL;
00057 const ::google::protobuf::Descriptor* Table_Index_IndexPart_descriptor_ = NULL;
00058 const ::google::protobuf::internal::GeneratedMessageReflection*
00059 Table_Index_IndexPart_reflection_ = NULL;
00060 const ::google::protobuf::Descriptor* Table_Index_Options_descriptor_ = NULL;
00061 const ::google::protobuf::internal::GeneratedMessageReflection*
00062 Table_Index_Options_reflection_ = NULL;
00063 const ::google::protobuf::EnumDescriptor* Table_Index_IndexType_descriptor_ = NULL;
00064 const ::google::protobuf::EnumDescriptor* Table_TableType_descriptor_ = NULL;
00065 const ::google::protobuf::Descriptor* AlterTable_descriptor_ = NULL;
00066 const ::google::protobuf::internal::GeneratedMessageReflection*
00067 AlterTable_reflection_ = NULL;
00068
00069 }
00070
00071
00072 void protobuf_AssignDesc_table_2eproto() {
00073 protobuf_AddDesc_table_2eproto();
00074 const ::google::protobuf::FileDescriptor* file =
00075 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
00076 "table.proto");
00077 GOOGLE_CHECK(file != NULL);
00078 Table_descriptor_ = file->message_type(0);
00079 static const int Table_offsets_[14] = {
00080 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, name_),
00081 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, schema_),
00082 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, type_),
00083 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, engine_),
00084 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, field_),
00085 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, indexes_),
00086 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, fk_constraint_),
00087 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, options_),
00088 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, creation_timestamp_),
00089 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, update_timestamp_),
00090 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, catalog_),
00091 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, uuid_),
00092 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, version_),
00093 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, replication_options_),
00094 };
00095 Table_reflection_ =
00096 new ::google::protobuf::internal::GeneratedMessageReflection(
00097 Table_descriptor_,
00098 Table::default_instance_,
00099 Table_offsets_,
00100 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, _has_bits_[0]),
00101 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table, _unknown_fields_),
00102 -1,
00103 ::google::protobuf::DescriptorPool::generated_pool(),
00104 ::google::protobuf::MessageFactory::generated_factory(),
00105 sizeof(Table));
00106 Table_TableOptions_descriptor_ = Table_descriptor_->nested_type(0);
00107 static const int Table_TableOptions_offsets_[16] = {
00108 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, has_user_set_auto_increment_value_),
00109 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, collation_),
00110 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, collation_id_),
00111 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, data_file_name_),
00112 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, index_file_name_),
00113 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, max_rows_),
00114 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, min_rows_),
00115 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, auto_increment_value_),
00116 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, avg_row_length_),
00117 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, block_size_),
00118 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, comment_),
00119 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, pack_record_),
00120 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, checksum_),
00121 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, page_checksum_),
00122 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, delay_key_write_),
00123 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, dont_replicate_),
00124 };
00125 Table_TableOptions_reflection_ =
00126 new ::google::protobuf::internal::GeneratedMessageReflection(
00127 Table_TableOptions_descriptor_,
00128 Table_TableOptions::default_instance_,
00129 Table_TableOptions_offsets_,
00130 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, _has_bits_[0]),
00131 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_TableOptions, _unknown_fields_),
00132 -1,
00133 ::google::protobuf::DescriptorPool::generated_pool(),
00134 ::google::protobuf::MessageFactory::generated_factory(),
00135 sizeof(Table_TableOptions));
00136 Table_ForeignKeyConstraint_descriptor_ = Table_descriptor_->nested_type(1);
00137 static const int Table_ForeignKeyConstraint_offsets_[7] = {
00138 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, name_),
00139 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, column_names_),
00140 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, references_table_name_),
00141 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, references_columns_),
00142 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, match_),
00143 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, update_option_),
00144 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, delete_option_),
00145 };
00146 Table_ForeignKeyConstraint_reflection_ =
00147 new ::google::protobuf::internal::GeneratedMessageReflection(
00148 Table_ForeignKeyConstraint_descriptor_,
00149 Table_ForeignKeyConstraint::default_instance_,
00150 Table_ForeignKeyConstraint_offsets_,
00151 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, _has_bits_[0]),
00152 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_ForeignKeyConstraint, _unknown_fields_),
00153 -1,
00154 ::google::protobuf::DescriptorPool::generated_pool(),
00155 ::google::protobuf::MessageFactory::generated_factory(),
00156 sizeof(Table_ForeignKeyConstraint));
00157 Table_ForeignKeyConstraint_ForeignKeyMatchOption_descriptor_ = Table_ForeignKeyConstraint_descriptor_->enum_type(0);
00158 Table_ForeignKeyConstraint_ForeignKeyOption_descriptor_ = Table_ForeignKeyConstraint_descriptor_->enum_type(1);
00159 Table_Field_descriptor_ = Table_descriptor_->nested_type(2);
00160 static const int Table_Field_offsets_[9] = {
00161 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, name_),
00162 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, type_),
00163 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, options_),
00164 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, constraints_),
00165 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, numeric_options_),
00166 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, string_options_),
00167 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, time_options_),
00168 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, comment_),
00169 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, enumeration_values_),
00170 };
00171 Table_Field_reflection_ =
00172 new ::google::protobuf::internal::GeneratedMessageReflection(
00173 Table_Field_descriptor_,
00174 Table_Field::default_instance_,
00175 Table_Field_offsets_,
00176 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, _has_bits_[0]),
00177 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field, _unknown_fields_),
00178 -1,
00179 ::google::protobuf::DescriptorPool::generated_pool(),
00180 ::google::protobuf::MessageFactory::generated_factory(),
00181 sizeof(Table_Field));
00182 Table_Field_FieldOptions_descriptor_ = Table_Field_descriptor_->nested_type(0);
00183 static const int Table_Field_FieldOptions_offsets_[6] = {
00184 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, default_value_),
00185 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, update_value_),
00186 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, default_null_),
00187 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, default_bin_value_),
00188 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, default_expression_),
00189 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, update_expression_),
00190 };
00191 Table_Field_FieldOptions_reflection_ =
00192 new ::google::protobuf::internal::GeneratedMessageReflection(
00193 Table_Field_FieldOptions_descriptor_,
00194 Table_Field_FieldOptions::default_instance_,
00195 Table_Field_FieldOptions_offsets_,
00196 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, _has_bits_[0]),
00197 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldOptions, _unknown_fields_),
00198 -1,
00199 ::google::protobuf::DescriptorPool::generated_pool(),
00200 ::google::protobuf::MessageFactory::generated_factory(),
00201 sizeof(Table_Field_FieldOptions));
00202 Table_Field_FieldConstraints_descriptor_ = Table_Field_descriptor_->nested_type(1);
00203 static const int Table_Field_FieldConstraints_offsets_[5] = {
00204 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, is_nullable_),
00205 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, is_unsigned_),
00206 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, is_notnull_),
00207 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, is_unique_),
00208 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, expression_),
00209 };
00210 Table_Field_FieldConstraints_reflection_ =
00211 new ::google::protobuf::internal::GeneratedMessageReflection(
00212 Table_Field_FieldConstraints_descriptor_,
00213 Table_Field_FieldConstraints::default_instance_,
00214 Table_Field_FieldConstraints_offsets_,
00215 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, _has_bits_[0]),
00216 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_FieldConstraints, _unknown_fields_),
00217 -1,
00218 ::google::protobuf::DescriptorPool::generated_pool(),
00219 ::google::protobuf::MessageFactory::generated_factory(),
00220 sizeof(Table_Field_FieldConstraints));
00221 Table_Field_NumericFieldOptions_descriptor_ = Table_Field_descriptor_->nested_type(2);
00222 static const int Table_Field_NumericFieldOptions_offsets_[3] = {
00223 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_NumericFieldOptions, is_autoincrement_),
00224 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_NumericFieldOptions, scale_),
00225 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_NumericFieldOptions, precision_),
00226 };
00227 Table_Field_NumericFieldOptions_reflection_ =
00228 new ::google::protobuf::internal::GeneratedMessageReflection(
00229 Table_Field_NumericFieldOptions_descriptor_,
00230 Table_Field_NumericFieldOptions::default_instance_,
00231 Table_Field_NumericFieldOptions_offsets_,
00232 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_NumericFieldOptions, _has_bits_[0]),
00233 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_NumericFieldOptions, _unknown_fields_),
00234 -1,
00235 ::google::protobuf::DescriptorPool::generated_pool(),
00236 ::google::protobuf::MessageFactory::generated_factory(),
00237 sizeof(Table_Field_NumericFieldOptions));
00238 Table_Field_StringFieldOptions_descriptor_ = Table_Field_descriptor_->nested_type(3);
00239 static const int Table_Field_StringFieldOptions_offsets_[4] = {
00240 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, is_fixed_width_),
00241 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, length_),
00242 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, collation_id_),
00243 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, collation_),
00244 };
00245 Table_Field_StringFieldOptions_reflection_ =
00246 new ::google::protobuf::internal::GeneratedMessageReflection(
00247 Table_Field_StringFieldOptions_descriptor_,
00248 Table_Field_StringFieldOptions::default_instance_,
00249 Table_Field_StringFieldOptions_offsets_,
00250 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, _has_bits_[0]),
00251 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_StringFieldOptions, _unknown_fields_),
00252 -1,
00253 ::google::protobuf::DescriptorPool::generated_pool(),
00254 ::google::protobuf::MessageFactory::generated_factory(),
00255 sizeof(Table_Field_StringFieldOptions));
00256 Table_Field_EnumerationValues_descriptor_ = Table_Field_descriptor_->nested_type(4);
00257 static const int Table_Field_EnumerationValues_offsets_[3] = {
00258 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_EnumerationValues, collation_id_),
00259 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_EnumerationValues, collation_),
00260 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_EnumerationValues, field_value_),
00261 };
00262 Table_Field_EnumerationValues_reflection_ =
00263 new ::google::protobuf::internal::GeneratedMessageReflection(
00264 Table_Field_EnumerationValues_descriptor_,
00265 Table_Field_EnumerationValues::default_instance_,
00266 Table_Field_EnumerationValues_offsets_,
00267 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_EnumerationValues, _has_bits_[0]),
00268 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_EnumerationValues, _unknown_fields_),
00269 -1,
00270 ::google::protobuf::DescriptorPool::generated_pool(),
00271 ::google::protobuf::MessageFactory::generated_factory(),
00272 sizeof(Table_Field_EnumerationValues));
00273 Table_Field_TimeFieldOptions_descriptor_ = Table_Field_descriptor_->nested_type(5);
00274 static const int Table_Field_TimeFieldOptions_offsets_[1] = {
00275 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_TimeFieldOptions, microseconds_),
00276 };
00277 Table_Field_TimeFieldOptions_reflection_ =
00278 new ::google::protobuf::internal::GeneratedMessageReflection(
00279 Table_Field_TimeFieldOptions_descriptor_,
00280 Table_Field_TimeFieldOptions::default_instance_,
00281 Table_Field_TimeFieldOptions_offsets_,
00282 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_TimeFieldOptions, _has_bits_[0]),
00283 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Field_TimeFieldOptions, _unknown_fields_),
00284 -1,
00285 ::google::protobuf::DescriptorPool::generated_pool(),
00286 ::google::protobuf::MessageFactory::generated_factory(),
00287 sizeof(Table_Field_TimeFieldOptions));
00288 Table_Field_FieldType_descriptor_ = Table_Field_descriptor_->enum_type(0);
00289 Table_Index_descriptor_ = Table_descriptor_->nested_type(3);
00290 static const int Table_Index_offsets_[8] = {
00291 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, name_),
00292 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, is_primary_),
00293 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, is_unique_),
00294 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, type_),
00295 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, key_length_),
00296 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, index_part_),
00297 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, options_),
00298 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, comment_),
00299 };
00300 Table_Index_reflection_ =
00301 new ::google::protobuf::internal::GeneratedMessageReflection(
00302 Table_Index_descriptor_,
00303 Table_Index::default_instance_,
00304 Table_Index_offsets_,
00305 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, _has_bits_[0]),
00306 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index, _unknown_fields_),
00307 -1,
00308 ::google::protobuf::DescriptorPool::generated_pool(),
00309 ::google::protobuf::MessageFactory::generated_factory(),
00310 sizeof(Table_Index));
00311 Table_Index_IndexPart_descriptor_ = Table_Index_descriptor_->nested_type(0);
00312 static const int Table_Index_IndexPart_offsets_[3] = {
00313 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_IndexPart, fieldnr_),
00314 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_IndexPart, compare_length_),
00315 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_IndexPart, in_reverse_order_),
00316 };
00317 Table_Index_IndexPart_reflection_ =
00318 new ::google::protobuf::internal::GeneratedMessageReflection(
00319 Table_Index_IndexPart_descriptor_,
00320 Table_Index_IndexPart::default_instance_,
00321 Table_Index_IndexPart_offsets_,
00322 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_IndexPart, _has_bits_[0]),
00323 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_IndexPart, _unknown_fields_),
00324 -1,
00325 ::google::protobuf::DescriptorPool::generated_pool(),
00326 ::google::protobuf::MessageFactory::generated_factory(),
00327 sizeof(Table_Index_IndexPart));
00328 Table_Index_Options_descriptor_ = Table_Index_descriptor_->nested_type(1);
00329 static const int Table_Index_Options_offsets_[7] = {
00330 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, pack_key_),
00331 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, binary_pack_key_),
00332 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, var_length_key_),
00333 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, null_part_key_),
00334 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, key_block_size_),
00335 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, has_partial_segments_),
00336 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, auto_generated_key_),
00337 };
00338 Table_Index_Options_reflection_ =
00339 new ::google::protobuf::internal::GeneratedMessageReflection(
00340 Table_Index_Options_descriptor_,
00341 Table_Index_Options::default_instance_,
00342 Table_Index_Options_offsets_,
00343 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, _has_bits_[0]),
00344 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Table_Index_Options, _unknown_fields_),
00345 -1,
00346 ::google::protobuf::DescriptorPool::generated_pool(),
00347 ::google::protobuf::MessageFactory::generated_factory(),
00348 sizeof(Table_Index_Options));
00349 Table_Index_IndexType_descriptor_ = Table_Index_descriptor_->enum_type(0);
00350 Table_TableType_descriptor_ = Table_descriptor_->enum_type(0);
00351 AlterTable_descriptor_ = file->message_type(1);
00352 static const int AlterTable_offsets_[1] = {
00353 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, added_field_),
00354 };
00355 AlterTable_reflection_ =
00356 new ::google::protobuf::internal::GeneratedMessageReflection(
00357 AlterTable_descriptor_,
00358 AlterTable::default_instance_,
00359 AlterTable_offsets_,
00360 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, _has_bits_[0]),
00361 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AlterTable, _unknown_fields_),
00362 -1,
00363 ::google::protobuf::DescriptorPool::generated_pool(),
00364 ::google::protobuf::MessageFactory::generated_factory(),
00365 sizeof(AlterTable));
00366 }
00367
00368 namespace {
00369
00370 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
00371 inline void protobuf_AssignDescriptorsOnce() {
00372 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
00373 &protobuf_AssignDesc_table_2eproto);
00374 }
00375
00376 void protobuf_RegisterTypes(const ::std::string&) {
00377 protobuf_AssignDescriptorsOnce();
00378 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00379 Table_descriptor_, &Table::default_instance());
00380 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00381 Table_TableOptions_descriptor_, &Table_TableOptions::default_instance());
00382 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00383 Table_ForeignKeyConstraint_descriptor_, &Table_ForeignKeyConstraint::default_instance());
00384 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00385 Table_Field_descriptor_, &Table_Field::default_instance());
00386 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00387 Table_Field_FieldOptions_descriptor_, &Table_Field_FieldOptions::default_instance());
00388 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00389 Table_Field_FieldConstraints_descriptor_, &Table_Field_FieldConstraints::default_instance());
00390 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00391 Table_Field_NumericFieldOptions_descriptor_, &Table_Field_NumericFieldOptions::default_instance());
00392 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00393 Table_Field_StringFieldOptions_descriptor_, &Table_Field_StringFieldOptions::default_instance());
00394 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00395 Table_Field_EnumerationValues_descriptor_, &Table_Field_EnumerationValues::default_instance());
00396 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00397 Table_Field_TimeFieldOptions_descriptor_, &Table_Field_TimeFieldOptions::default_instance());
00398 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00399 Table_Index_descriptor_, &Table_Index::default_instance());
00400 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00401 Table_Index_IndexPart_descriptor_, &Table_Index_IndexPart::default_instance());
00402 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00403 Table_Index_Options_descriptor_, &Table_Index_Options::default_instance());
00404 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00405 AlterTable_descriptor_, &AlterTable::default_instance());
00406 }
00407
00408 }
00409
00410 void protobuf_ShutdownFile_table_2eproto() {
00411 delete Table::default_instance_;
00412 delete Table_reflection_;
00413 delete Table_TableOptions::default_instance_;
00414 delete Table_TableOptions_reflection_;
00415 delete Table_ForeignKeyConstraint::default_instance_;
00416 delete Table_ForeignKeyConstraint_reflection_;
00417 delete Table_Field::default_instance_;
00418 delete Table_Field_reflection_;
00419 delete Table_Field_FieldOptions::default_instance_;
00420 delete Table_Field_FieldOptions_reflection_;
00421 delete Table_Field_FieldConstraints::default_instance_;
00422 delete Table_Field_FieldConstraints_reflection_;
00423 delete Table_Field_NumericFieldOptions::default_instance_;
00424 delete Table_Field_NumericFieldOptions_reflection_;
00425 delete Table_Field_StringFieldOptions::default_instance_;
00426 delete Table_Field_StringFieldOptions_reflection_;
00427 delete Table_Field_EnumerationValues::default_instance_;
00428 delete Table_Field_EnumerationValues_reflection_;
00429 delete Table_Field_TimeFieldOptions::default_instance_;
00430 delete Table_Field_TimeFieldOptions_reflection_;
00431 delete Table_Index::default_instance_;
00432 delete Table_Index_reflection_;
00433 delete Table_Index_IndexPart::default_instance_;
00434 delete Table_Index_IndexPart_reflection_;
00435 delete Table_Index_Options::default_instance_;
00436 delete Table_Index_Options_reflection_;
00437 delete AlterTable::default_instance_;
00438 delete AlterTable_reflection_;
00439 }
00440
00441 void protobuf_AddDesc_table_2eproto() {
00442 static bool already_here = false;
00443 if (already_here) return;
00444 already_here = true;
00445 GOOGLE_PROTOBUF_VERIFY_VERSION;
00446
00447 ::drizzled::message::protobuf_AddDesc_engine_2eproto();
00448 ::drizzled::message::protobuf_AddDesc_replication_5foptions_2eproto();
00449 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
00450 "\n\013table.proto\022\020drizzled.message\032\014engine."
00451 "proto\032\031replication_options.proto\"\217\034\n\005Tab"
00452 "le\022\014\n\004name\030\001 \002(\t\022\016\n\006schema\030\006 \002(\t\022/\n\004type"
00453 "\030\005 \002(\0162!.drizzled.message.Table.TableTyp"
00454 "e\022(\n\006engine\030\002 \002(\0132\030.drizzled.message.Eng"
00455 "ine\022,\n\005field\030\003 \003(\0132\035.drizzled.message.Ta"
00456 "ble.Field\022.\n\007indexes\030\004 \003(\0132\035.drizzled.me"
00457 "ssage.Table.Index\022C\n\rfk_constraint\030\010 \003(\013"
00458 "2,.drizzled.message.Table.ForeignKeyCons"
00459 "traint\0225\n\007options\030\t \001(\0132$.drizzled.messa"
00460 "ge.Table.TableOptions\022\035\n\022creation_timest"
00461 "amp\030\013 \002(\004:\0010\022\033\n\020update_timestamp\030\014 \002(\004:\001"
00462 "0\022\017\n\007catalog\030\r \001(\t\022\014\n\004uuid\030\016 \001(\t\022\017\n\007vers"
00463 "ion\030\017 \001(\004\022A\n\023replication_options\030\020 \001(\0132$"
00464 ".drizzled.message.ReplicationOptions\032\201\003\n"
00465 "\014TableOptions\022)\n!has_user_set_auto_incre"
00466 "ment_value\030\001 \001(\010\022\021\n\tcollation\030\002 \001(\t\022\024\n\014c"
00467 "ollation_id\030\003 \001(\r\022\026\n\016data_file_name\030\005 \001("
00468 "\t\022\027\n\017index_file_name\030\006 \001(\t\022\020\n\010max_rows\030\007"
00469 " \001(\004\022\020\n\010min_rows\030\010 \001(\004\022\034\n\024auto_increment"
00470 "_value\030\t \001(\004\022\026\n\016avg_row_length\030\013 \001(\r\022\022\n\n"
00471 "block_size\030\r \001(\r\022\017\n\007comment\030\016 \001(\t\022\023\n\013pac"
00472 "k_record\030\020 \001(\010\022\020\n\010checksum\030\021 \001(\010\022\025\n\rpage"
00473 "_checksum\030\022 \001(\010\022\027\n\017delay_key_write\030\023 \001(\010"
00474 "\022\026\n\016dont_replicate\030\024 \001(\010\032\206\005\n\024ForeignKeyC"
00475 "onstraint\022\014\n\004name\030\001 \001(\t\022\024\n\014column_names\030"
00476 "\002 \003(\t\022\035\n\025references_table_name\030\003 \002(\t\022\032\n\022"
00477 "references_columns\030\004 \003(\t\022Q\n\005match\030\005 \002(\0162"
00478 "B.drizzled.message.Table.ForeignKeyConst"
00479 "raint.ForeignKeyMatchOption\022b\n\rupdate_op"
00480 "tion\030\006 \002(\0162=.drizzled.message.Table.Fore"
00481 "ignKeyConstraint.ForeignKeyOption:\014OPTIO"
00482 "N_UNDEF\022b\n\rdelete_option\030\007 \002(\0162=.drizzle"
00483 "d.message.Table.ForeignKeyConstraint.For"
00484 "eignKeyOption:\014OPTION_UNDEF\"a\n\025ForeignKe"
00485 "yMatchOption\022\023\n\017MATCH_UNDEFINED\020\000\022\016\n\nMAT"
00486 "CH_FULL\020\001\022\021\n\rMATCH_PARTIAL\020\002\022\020\n\014MATCH_SI"
00487 "MPLE\020\003\"\220\001\n\020ForeignKeyOption\022\020\n\014OPTION_UN"
00488 "DEF\020\000\022\023\n\017OPTION_RESTRICT\020\001\022\022\n\016OPTION_CAS"
00489 "CADE\020\002\022\023\n\017OPTION_SET_NULL\020\003\022\024\n\020OPTION_NO"
00490 "_ACTION\020\004\022\026\n\022OPTION_SET_DEFAULT\020\005\032\264\n\n\005Fi"
00491 "eld\022\014\n\004name\030\001 \002(\t\0225\n\004type\030\002 \002(\0162\'.drizzl"
00492 "ed.message.Table.Field.FieldType\022;\n\007opti"
00493 "ons\030\004 \001(\0132*.drizzled.message.Table.Field"
00494 ".FieldOptions\022C\n\013constraints\030\005 \001(\0132..dri"
00495 "zzled.message.Table.Field.FieldConstrain"
00496 "ts\022J\n\017numeric_options\030\006 \001(\01321.drizzled.m"
00497 "essage.Table.Field.NumericFieldOptions\022H"
00498 "\n\016string_options\030\007 \001(\01320.drizzled.messag"
00499 "e.Table.Field.StringFieldOptions\022D\n\014time"
00500 "_options\030\010 \001(\0132..drizzled.message.Table."
00501 "Field.TimeFieldOptions\022\017\n\007comment\030\020 \001(\t\022"
00502 "K\n\022enumeration_values\030\021 \001(\0132/.drizzled.m"
00503 "essage.Table.Field.EnumerationValues\032\252\001\n"
00504 "\014FieldOptions\022\025\n\rdefault_value\030\001 \001(\t\022\024\n\014"
00505 "update_value\030\002 \001(\t\022\033\n\014default_null\030\003 \001(\010"
00506 ":\005false\022\031\n\021default_bin_value\030\004 \001(\014\022\032\n\022de"
00507 "fault_expression\030\005 \001(\t\022\031\n\021update_express"
00508 "ion\030\006 \001(\t\032\222\001\n\020FieldConstraints\022\031\n\013is_nul"
00509 "lable\030\001 \001(\010:\004true\022\032\n\013is_unsigned\030\002 \001(\010:\005"
00510 "false\022\031\n\nis_notnull\030\003 \001(\010:\005false\022\030\n\tis_u"
00511 "nique\030\004 \001(\010:\005false\022\022\n\nexpression\030\020 \003(\t\032X"
00512 "\n\023NumericFieldOptions\022\037\n\020is_autoincremen"
00513 "t\030\001 \001(\010:\005false\022\r\n\005scale\030\002 \001(\r\022\021\n\tprecisi"
00514 "on\030\003 \001(\r\032l\n\022StringFieldOptions\022\035\n\016is_fix"
00515 "ed_width\030\001 \001(\010:\005false\022\016\n\006length\030\002 \001(\r\022\024\n"
00516 "\014collation_id\030\003 \001(\r\022\021\n\tcollation\030\004 \001(\t\032Q"
00517 "\n\021EnumerationValues\022\024\n\014collation_id\030\002 \001("
00518 "\r\022\021\n\tcollation\030\003 \001(\t\022\023\n\013field_value\030\004 \003("
00519 "\t\032(\n\020TimeFieldOptions\022\024\n\014microseconds\030\001 "
00520 "\001(\010\"\242\001\n\tFieldType\022\n\n\006DOUBLE\020\000\022\013\n\007VARCHAR"
00521 "\020\001\022\010\n\004BLOB\020\002\022\010\n\004ENUM\020\003\022\013\n\007INTEGER\020\004\022\n\n\006B"
00522 "IGINT\020\005\022\013\n\007DECIMAL\020\006\022\010\n\004DATE\020\007\022\t\n\005EPOCH\020"
00523 "\t\022\014\n\010DATETIME\020\n\022\010\n\004UUID\020\013\022\010\n\004TIME\020\014\022\013\n\007B"
00524 "OOLEAN\020\r\032\371\004\n\005Index\022\014\n\004name\030\001 \002(\t\022\022\n\nis_p"
00525 "rimary\030\002 \002(\010\022\021\n\tis_unique\030\003 \002(\010\022D\n\004type\030"
00526 "\004 \002(\0162\'.drizzled.message.Table.Index.Ind"
00527 "exType:\rUNKNOWN_INDEX\022\022\n\nkey_length\030\005 \002("
00528 "\r\022;\n\nindex_part\030\006 \003(\0132\'.drizzled.message"
00529 ".Table.Index.IndexPart\0226\n\007options\030\007 \001(\0132"
00530 "%.drizzled.message.Table.Index.Options\022\017"
00531 "\n\007comment\030\010 \001(\t\032U\n\tIndexPart\022\017\n\007fieldnr\030"
00532 "\001 \002(\r\022\026\n\016compare_length\030\002 \001(\r\022\037\n\020in_reve"
00533 "rse_order\030\003 \001(\010:\005false\032\265\001\n\007Options\022\020\n\010pa"
00534 "ck_key\030\001 \001(\010\022\027\n\017binary_pack_key\030\002 \001(\010\022\026\n"
00535 "\016var_length_key\030\003 \001(\010\022\025\n\rnull_part_key\030\004"
00536 " \001(\010\022\026\n\016key_block_size\030\005 \001(\r\022\034\n\024has_part"
00537 "ial_segments\030\006 \001(\010\022\032\n\022auto_generated_key"
00538 "\030\007 \001(\010\"L\n\tIndexType\022\021\n\rUNKNOWN_INDEX\020\000\022\t"
00539 "\n\005BTREE\020\001\022\t\n\005RTREE\020\002\022\010\n\004HASH\020\003\022\014\n\010FULLTE"
00540 "XT\020\004\"D\n\tTableType\022\014\n\010STANDARD\020\000\022\r\n\tTEMPO"
00541 "RARY\020\001\022\014\n\010INTERNAL\020\002\022\014\n\010FUNCTION\020\003\"@\n\nAl"
00542 "terTable\0222\n\013added_field\030\001 \003(\0132\035.drizzled"
00543 ".message.Table.FieldB&\n\024org.drizzle.mess"
00544 "agesB\014TableMessageH\001", 3780);
00545 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
00546 "table.proto", &protobuf_RegisterTypes);
00547 Table::default_instance_ = new Table();
00548 Table_TableOptions::default_instance_ = new Table_TableOptions();
00549 Table_ForeignKeyConstraint::default_instance_ = new Table_ForeignKeyConstraint();
00550 Table_Field::default_instance_ = new Table_Field();
00551 Table_Field_FieldOptions::default_instance_ = new Table_Field_FieldOptions();
00552 Table_Field_FieldConstraints::default_instance_ = new Table_Field_FieldConstraints();
00553 Table_Field_NumericFieldOptions::default_instance_ = new Table_Field_NumericFieldOptions();
00554 Table_Field_StringFieldOptions::default_instance_ = new Table_Field_StringFieldOptions();
00555 Table_Field_EnumerationValues::default_instance_ = new Table_Field_EnumerationValues();
00556 Table_Field_TimeFieldOptions::default_instance_ = new Table_Field_TimeFieldOptions();
00557 Table_Index::default_instance_ = new Table_Index();
00558 Table_Index_IndexPart::default_instance_ = new Table_Index_IndexPart();
00559 Table_Index_Options::default_instance_ = new Table_Index_Options();
00560 AlterTable::default_instance_ = new AlterTable();
00561 Table::default_instance_->InitAsDefaultInstance();
00562 Table_TableOptions::default_instance_->InitAsDefaultInstance();
00563 Table_ForeignKeyConstraint::default_instance_->InitAsDefaultInstance();
00564 Table_Field::default_instance_->InitAsDefaultInstance();
00565 Table_Field_FieldOptions::default_instance_->InitAsDefaultInstance();
00566 Table_Field_FieldConstraints::default_instance_->InitAsDefaultInstance();
00567 Table_Field_NumericFieldOptions::default_instance_->InitAsDefaultInstance();
00568 Table_Field_StringFieldOptions::default_instance_->InitAsDefaultInstance();
00569 Table_Field_EnumerationValues::default_instance_->InitAsDefaultInstance();
00570 Table_Field_TimeFieldOptions::default_instance_->InitAsDefaultInstance();
00571 Table_Index::default_instance_->InitAsDefaultInstance();
00572 Table_Index_IndexPart::default_instance_->InitAsDefaultInstance();
00573 Table_Index_Options::default_instance_->InitAsDefaultInstance();
00574 AlterTable::default_instance_->InitAsDefaultInstance();
00575 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_table_2eproto);
00576 }
00577
00578
00579 struct StaticDescriptorInitializer_table_2eproto {
00580 StaticDescriptorInitializer_table_2eproto() {
00581 protobuf_AddDesc_table_2eproto();
00582 }
00583 } static_descriptor_initializer_table_2eproto_;
00584
00585
00586
00587
00588 const ::google::protobuf::EnumDescriptor* Table_TableType_descriptor() {
00589 protobuf_AssignDescriptorsOnce();
00590 return Table_TableType_descriptor_;
00591 }
00592 bool Table_TableType_IsValid(int value) {
00593 switch(value) {
00594 case 0:
00595 case 1:
00596 case 2:
00597 case 3:
00598 return true;
00599 default:
00600 return false;
00601 }
00602 }
00603
00604 #ifndef _MSC_VER
00605 const Table_TableType Table::STANDARD;
00606 const Table_TableType Table::TEMPORARY;
00607 const Table_TableType Table::INTERNAL;
00608 const Table_TableType Table::FUNCTION;
00609 const Table_TableType Table::TableType_MIN;
00610 const Table_TableType Table::TableType_MAX;
00611 const int Table::TableType_ARRAYSIZE;
00612 #endif // _MSC_VER
00613 #ifndef _MSC_VER
00614 const int Table_TableOptions::kHasUserSetAutoIncrementValueFieldNumber;
00615 const int Table_TableOptions::kCollationFieldNumber;
00616 const int Table_TableOptions::kCollationIdFieldNumber;
00617 const int Table_TableOptions::kDataFileNameFieldNumber;
00618 const int Table_TableOptions::kIndexFileNameFieldNumber;
00619 const int Table_TableOptions::kMaxRowsFieldNumber;
00620 const int Table_TableOptions::kMinRowsFieldNumber;
00621 const int Table_TableOptions::kAutoIncrementValueFieldNumber;
00622 const int Table_TableOptions::kAvgRowLengthFieldNumber;
00623 const int Table_TableOptions::kBlockSizeFieldNumber;
00624 const int Table_TableOptions::kCommentFieldNumber;
00625 const int Table_TableOptions::kPackRecordFieldNumber;
00626 const int Table_TableOptions::kChecksumFieldNumber;
00627 const int Table_TableOptions::kPageChecksumFieldNumber;
00628 const int Table_TableOptions::kDelayKeyWriteFieldNumber;
00629 const int Table_TableOptions::kDontReplicateFieldNumber;
00630 #endif // !_MSC_VER
00631
00632 Table_TableOptions::Table_TableOptions()
00633 : ::google::protobuf::Message() {
00634 SharedCtor();
00635 }
00636
00637 void Table_TableOptions::InitAsDefaultInstance() {
00638 }
00639
00640 Table_TableOptions::Table_TableOptions(const Table_TableOptions& from)
00641 : ::google::protobuf::Message() {
00642 SharedCtor();
00643 MergeFrom(from);
00644 }
00645
00646 void Table_TableOptions::SharedCtor() {
00647 _cached_size_ = 0;
00648 has_user_set_auto_increment_value_ = false;
00649 collation_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00650 collation_id_ = 0u;
00651 data_file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00652 index_file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00653 max_rows_ = GOOGLE_ULONGLONG(0);
00654 min_rows_ = GOOGLE_ULONGLONG(0);
00655 auto_increment_value_ = GOOGLE_ULONGLONG(0);
00656 avg_row_length_ = 0u;
00657 block_size_ = 0u;
00658 comment_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00659 pack_record_ = false;
00660 checksum_ = false;
00661 page_checksum_ = false;
00662 delay_key_write_ = false;
00663 dont_replicate_ = false;
00664 ::memset(_has_bits_, 0, sizeof(_has_bits_));
00665 }
00666
00667 Table_TableOptions::~Table_TableOptions() {
00668 SharedDtor();
00669 }
00670
00671 void Table_TableOptions::SharedDtor() {
00672 if (collation_ != &::google::protobuf::internal::kEmptyString) {
00673 delete collation_;
00674 }
00675 if (data_file_name_ != &::google::protobuf::internal::kEmptyString) {
00676 delete data_file_name_;
00677 }
00678 if (index_file_name_ != &::google::protobuf::internal::kEmptyString) {
00679 delete index_file_name_;
00680 }
00681 if (comment_ != &::google::protobuf::internal::kEmptyString) {
00682 delete comment_;
00683 }
00684 if (this != default_instance_) {
00685 }
00686 }
00687
00688 void Table_TableOptions::SetCachedSize(int size) const {
00689 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
00690 _cached_size_ = size;
00691 GOOGLE_SAFE_CONCURRENT_WRITES_END();
00692 }
00693 const ::google::protobuf::Descriptor* Table_TableOptions::descriptor() {
00694 protobuf_AssignDescriptorsOnce();
00695 return Table_TableOptions_descriptor_;
00696 }
00697
00698 const Table_TableOptions& Table_TableOptions::default_instance() {
00699 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto(); return *default_instance_;
00700 }
00701
00702 Table_TableOptions* Table_TableOptions::default_instance_ = NULL;
00703
00704 Table_TableOptions* Table_TableOptions::New() const {
00705 return new Table_TableOptions;
00706 }
00707
00708 void Table_TableOptions::Clear() {
00709 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00710 has_user_set_auto_increment_value_ = false;
00711 if (has_collation()) {
00712 if (collation_ != &::google::protobuf::internal::kEmptyString) {
00713 collation_->clear();
00714 }
00715 }
00716 collation_id_ = 0u;
00717 if (has_data_file_name()) {
00718 if (data_file_name_ != &::google::protobuf::internal::kEmptyString) {
00719 data_file_name_->clear();
00720 }
00721 }
00722 if (has_index_file_name()) {
00723 if (index_file_name_ != &::google::protobuf::internal::kEmptyString) {
00724 index_file_name_->clear();
00725 }
00726 }
00727 max_rows_ = GOOGLE_ULONGLONG(0);
00728 min_rows_ = GOOGLE_ULONGLONG(0);
00729 auto_increment_value_ = GOOGLE_ULONGLONG(0);
00730 }
00731 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
00732 avg_row_length_ = 0u;
00733 block_size_ = 0u;
00734 if (has_comment()) {
00735 if (comment_ != &::google::protobuf::internal::kEmptyString) {
00736 comment_->clear();
00737 }
00738 }
00739 pack_record_ = false;
00740 checksum_ = false;
00741 page_checksum_ = false;
00742 delay_key_write_ = false;
00743 dont_replicate_ = false;
00744 }
00745 ::memset(_has_bits_, 0, sizeof(_has_bits_));
00746 mutable_unknown_fields()->Clear();
00747 }
00748
00749 bool Table_TableOptions::MergePartialFromCodedStream(
00750 ::google::protobuf::io::CodedInputStream* input) {
00751 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
00752 ::google::protobuf::uint32 tag;
00753 while ((tag = input->ReadTag()) != 0) {
00754 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
00755
00756 case 1: {
00757 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00758 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
00759 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
00760 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
00761 input, &has_user_set_auto_increment_value_)));
00762 set_has_has_user_set_auto_increment_value();
00763 } else {
00764 goto handle_uninterpreted;
00765 }
00766 if (input->ExpectTag(18)) goto parse_collation;
00767 break;
00768 }
00769
00770
00771 case 2: {
00772 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00773 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00774 parse_collation:
00775 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
00776 input, this->mutable_collation()));
00777 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00778 this->collation().data(), this->collation().length(),
00779 ::google::protobuf::internal::WireFormat::PARSE);
00780 } else {
00781 goto handle_uninterpreted;
00782 }
00783 if (input->ExpectTag(24)) goto parse_collation_id;
00784 break;
00785 }
00786
00787
00788 case 3: {
00789 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00790 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
00791 parse_collation_id:
00792 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
00793 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
00794 input, &collation_id_)));
00795 set_has_collation_id();
00796 } else {
00797 goto handle_uninterpreted;
00798 }
00799 if (input->ExpectTag(42)) goto parse_data_file_name;
00800 break;
00801 }
00802
00803
00804 case 5: {
00805 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00806 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00807 parse_data_file_name:
00808 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
00809 input, this->mutable_data_file_name()));
00810 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00811 this->data_file_name().data(), this->data_file_name().length(),
00812 ::google::protobuf::internal::WireFormat::PARSE);
00813 } else {
00814 goto handle_uninterpreted;
00815 }
00816 if (input->ExpectTag(50)) goto parse_index_file_name;
00817 break;
00818 }
00819
00820
00821 case 6: {
00822 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00823 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00824 parse_index_file_name:
00825 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
00826 input, this->mutable_index_file_name()));
00827 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00828 this->index_file_name().data(), this->index_file_name().length(),
00829 ::google::protobuf::internal::WireFormat::PARSE);
00830 } else {
00831 goto handle_uninterpreted;
00832 }
00833 if (input->ExpectTag(56)) goto parse_max_rows;
00834 break;
00835 }
00836
00837
00838 case 7: {
00839 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00840 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
00841 parse_max_rows:
00842 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
00843 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
00844 input, &max_rows_)));
00845 set_has_max_rows();
00846 } else {
00847 goto handle_uninterpreted;
00848 }
00849 if (input->ExpectTag(64)) goto parse_min_rows;
00850 break;
00851 }
00852
00853
00854 case 8: {
00855 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00856 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
00857 parse_min_rows:
00858 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
00859 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
00860 input, &min_rows_)));
00861 set_has_min_rows();
00862 } else {
00863 goto handle_uninterpreted;
00864 }
00865 if (input->ExpectTag(72)) goto parse_auto_increment_value;
00866 break;
00867 }
00868
00869
00870 case 9: {
00871 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00872 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
00873 parse_auto_increment_value:
00874 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
00875 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
00876 input, &auto_increment_value_)));
00877 set_has_auto_increment_value();
00878 } else {
00879 goto handle_uninterpreted;
00880 }
00881 if (input->ExpectTag(88)) goto parse_avg_row_length;
00882 break;
00883 }
00884
00885
00886 case 11: {
00887 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00888 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
00889 parse_avg_row_length:
00890 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
00891 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
00892 input, &avg_row_length_)));
00893 set_has_avg_row_length();
00894 } else {
00895 goto handle_uninterpreted;
00896 }
00897 if (input->ExpectTag(104)) goto parse_block_size;
00898 break;
00899 }
00900
00901
00902 case 13: {
00903 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00904 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
00905 parse_block_size:
00906 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
00907 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
00908 input, &block_size_)));
00909 set_has_block_size();
00910 } else {
00911 goto handle_uninterpreted;
00912 }
00913 if (input->ExpectTag(114)) goto parse_comment;
00914 break;
00915 }
00916
00917
00918 case 14: {
00919 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00920 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00921 parse_comment:
00922 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
00923 input, this->mutable_comment()));
00924 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00925 this->comment().data(), this->comment().length(),
00926 ::google::protobuf::internal::WireFormat::PARSE);
00927 } else {
00928 goto handle_uninterpreted;
00929 }
00930 if (input->ExpectTag(128)) goto parse_pack_record;
00931 break;
00932 }
00933
00934
00935 case 16: {
00936 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00937 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
00938 parse_pack_record:
00939 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
00940 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
00941 input, &pack_record_)));
00942 set_has_pack_record();
00943 } else {
00944 goto handle_uninterpreted;
00945 }
00946 if (input->ExpectTag(136)) goto parse_checksum;
00947 break;
00948 }
00949
00950
00951 case 17: {
00952 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00953 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
00954 parse_checksum:
00955 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
00956 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
00957 input, &checksum_)));
00958 set_has_checksum();
00959 } else {
00960 goto handle_uninterpreted;
00961 }
00962 if (input->ExpectTag(144)) goto parse_page_checksum;
00963 break;
00964 }
00965
00966
00967 case 18: {
00968 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00969 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
00970 parse_page_checksum:
00971 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
00972 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
00973 input, &page_checksum_)));
00974 set_has_page_checksum();
00975 } else {
00976 goto handle_uninterpreted;
00977 }
00978 if (input->ExpectTag(152)) goto parse_delay_key_write;
00979 break;
00980 }
00981
00982
00983 case 19: {
00984 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00985 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
00986 parse_delay_key_write:
00987 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
00988 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
00989 input, &delay_key_write_)));
00990 set_has_delay_key_write();
00991 } else {
00992 goto handle_uninterpreted;
00993 }
00994 if (input->ExpectTag(160)) goto parse_dont_replicate;
00995 break;
00996 }
00997
00998
00999 case 20: {
01000 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01001 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
01002 parse_dont_replicate:
01003 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
01004 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
01005 input, &dont_replicate_)));
01006 set_has_dont_replicate();
01007 } else {
01008 goto handle_uninterpreted;
01009 }
01010 if (input->ExpectAtEnd()) return true;
01011 break;
01012 }
01013
01014 default: {
01015 handle_uninterpreted:
01016 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01017 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
01018 return true;
01019 }
01020 DO_(::google::protobuf::internal::WireFormat::SkipField(
01021 input, tag, mutable_unknown_fields()));
01022 break;
01023 }
01024 }
01025 }
01026 return true;
01027 #undef DO_
01028 }
01029
01030 void Table_TableOptions::SerializeWithCachedSizes(
01031 ::google::protobuf::io::CodedOutputStream* output) const {
01032
01033 if (has_has_user_set_auto_increment_value()) {
01034 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->has_user_set_auto_increment_value(), output);
01035 }
01036
01037
01038 if (has_collation()) {
01039 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01040 this->collation().data(), this->collation().length(),
01041 ::google::protobuf::internal::WireFormat::SERIALIZE);
01042 ::google::protobuf::internal::WireFormatLite::WriteString(
01043 2, this->collation(), output);
01044 }
01045
01046
01047 if (has_collation_id()) {
01048 ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->collation_id(), output);
01049 }
01050
01051
01052 if (has_data_file_name()) {
01053 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01054 this->data_file_name().data(), this->data_file_name().length(),
01055 ::google::protobuf::internal::WireFormat::SERIALIZE);
01056 ::google::protobuf::internal::WireFormatLite::WriteString(
01057 5, this->data_file_name(), output);
01058 }
01059
01060
01061 if (has_index_file_name()) {
01062 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01063 this->index_file_name().data(), this->index_file_name().length(),
01064 ::google::protobuf::internal::WireFormat::SERIALIZE);
01065 ::google::protobuf::internal::WireFormatLite::WriteString(
01066 6, this->index_file_name(), output);
01067 }
01068
01069
01070 if (has_max_rows()) {
01071 ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->max_rows(), output);
01072 }
01073
01074
01075 if (has_min_rows()) {
01076 ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->min_rows(), output);
01077 }
01078
01079
01080 if (has_auto_increment_value()) {
01081 ::google::protobuf::internal::WireFormatLite::WriteUInt64(9, this->auto_increment_value(), output);
01082 }
01083
01084
01085 if (has_avg_row_length()) {
01086 ::google::protobuf::internal::WireFormatLite::WriteUInt32(11, this->avg_row_length(), output);
01087 }
01088
01089
01090 if (has_block_size()) {
01091 ::google::protobuf::internal::WireFormatLite::WriteUInt32(13, this->block_size(), output);
01092 }
01093
01094
01095 if (has_comment()) {
01096 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01097 this->comment().data(), this->comment().length(),
01098 ::google::protobuf::internal::WireFormat::SERIALIZE);
01099 ::google::protobuf::internal::WireFormatLite::WriteString(
01100 14, this->comment(), output);
01101 }
01102
01103
01104 if (has_pack_record()) {
01105 ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->pack_record(), output);
01106 }
01107
01108
01109 if (has_checksum()) {
01110 ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->checksum(), output);
01111 }
01112
01113
01114 if (has_page_checksum()) {
01115 ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->page_checksum(), output);
01116 }
01117
01118
01119 if (has_delay_key_write()) {
01120 ::google::protobuf::internal::WireFormatLite::WriteBool(19, this->delay_key_write(), output);
01121 }
01122
01123
01124 if (has_dont_replicate()) {
01125 ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->dont_replicate(), output);
01126 }
01127
01128 if (!unknown_fields().empty()) {
01129 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
01130 unknown_fields(), output);
01131 }
01132 }
01133
01134 ::google::protobuf::uint8* Table_TableOptions::SerializeWithCachedSizesToArray(
01135 ::google::protobuf::uint8* target) const {
01136
01137 if (has_has_user_set_auto_increment_value()) {
01138 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->has_user_set_auto_increment_value(), target);
01139 }
01140
01141
01142 if (has_collation()) {
01143 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01144 this->collation().data(), this->collation().length(),
01145 ::google::protobuf::internal::WireFormat::SERIALIZE);
01146 target =
01147 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
01148 2, this->collation(), target);
01149 }
01150
01151
01152 if (has_collation_id()) {
01153 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->collation_id(), target);
01154 }
01155
01156
01157 if (has_data_file_name()) {
01158 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01159 this->data_file_name().data(), this->data_file_name().length(),
01160 ::google::protobuf::internal::WireFormat::SERIALIZE);
01161 target =
01162 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
01163 5, this->data_file_name(), target);
01164 }
01165
01166
01167 if (has_index_file_name()) {
01168 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01169 this->index_file_name().data(), this->index_file_name().length(),
01170 ::google::protobuf::internal::WireFormat::SERIALIZE);
01171 target =
01172 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
01173 6, this->index_file_name(), target);
01174 }
01175
01176
01177 if (has_max_rows()) {
01178 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->max_rows(), target);
01179 }
01180
01181
01182 if (has_min_rows()) {
01183 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->min_rows(), target);
01184 }
01185
01186
01187 if (has_auto_increment_value()) {
01188 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(9, this->auto_increment_value(), target);
01189 }
01190
01191
01192 if (has_avg_row_length()) {
01193 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(11, this->avg_row_length(), target);
01194 }
01195
01196
01197 if (has_block_size()) {
01198 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(13, this->block_size(), target);
01199 }
01200
01201
01202 if (has_comment()) {
01203 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01204 this->comment().data(), this->comment().length(),
01205 ::google::protobuf::internal::WireFormat::SERIALIZE);
01206 target =
01207 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
01208 14, this->comment(), target);
01209 }
01210
01211
01212 if (has_pack_record()) {
01213 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->pack_record(), target);
01214 }
01215
01216
01217 if (has_checksum()) {
01218 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->checksum(), target);
01219 }
01220
01221
01222 if (has_page_checksum()) {
01223 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->page_checksum(), target);
01224 }
01225
01226
01227 if (has_delay_key_write()) {
01228 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(19, this->delay_key_write(), target);
01229 }
01230
01231
01232 if (has_dont_replicate()) {
01233 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->dont_replicate(), target);
01234 }
01235
01236 if (!unknown_fields().empty()) {
01237 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
01238 unknown_fields(), target);
01239 }
01240 return target;
01241 }
01242
01243 int Table_TableOptions::ByteSize() const {
01244 int total_size = 0;
01245
01246 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
01247
01248 if (has_has_user_set_auto_increment_value()) {
01249 total_size += 1 + 1;
01250 }
01251
01252
01253 if (has_collation()) {
01254 total_size += 1 +
01255 ::google::protobuf::internal::WireFormatLite::StringSize(
01256 this->collation());
01257 }
01258
01259
01260 if (has_collation_id()) {
01261 total_size += 1 +
01262 ::google::protobuf::internal::WireFormatLite::UInt32Size(
01263 this->collation_id());
01264 }
01265
01266
01267 if (has_data_file_name()) {
01268 total_size += 1 +
01269 ::google::protobuf::internal::WireFormatLite::StringSize(
01270 this->data_file_name());
01271 }
01272
01273
01274 if (has_index_file_name()) {
01275 total_size += 1 +
01276 ::google::protobuf::internal::WireFormatLite::StringSize(
01277 this->index_file_name());
01278 }
01279
01280
01281 if (has_max_rows()) {
01282 total_size += 1 +
01283 ::google::protobuf::internal::WireFormatLite::UInt64Size(
01284 this->max_rows());
01285 }
01286
01287
01288 if (has_min_rows()) {
01289 total_size += 1 +
01290 ::google::protobuf::internal::WireFormatLite::UInt64Size(
01291 this->min_rows());
01292 }
01293
01294
01295 if (has_auto_increment_value()) {
01296 total_size += 1 +
01297 ::google::protobuf::internal::WireFormatLite::UInt64Size(
01298 this->auto_increment_value());
01299 }
01300
01301 }
01302 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
01303
01304 if (has_avg_row_length()) {
01305 total_size += 1 +
01306 ::google::protobuf::internal::WireFormatLite::UInt32Size(
01307 this->avg_row_length());
01308 }
01309
01310
01311 if (has_block_size()) {
01312 total_size += 1 +
01313 ::google::protobuf::internal::WireFormatLite::UInt32Size(
01314 this->block_size());
01315 }
01316
01317
01318 if (has_comment()) {
01319 total_size += 1 +
01320 ::google::protobuf::internal::WireFormatLite::StringSize(
01321 this->comment());
01322 }
01323
01324
01325 if (has_pack_record()) {
01326 total_size += 2 + 1;
01327 }
01328
01329
01330 if (has_checksum()) {
01331 total_size += 2 + 1;
01332 }
01333
01334
01335 if (has_page_checksum()) {
01336 total_size += 2 + 1;
01337 }
01338
01339
01340 if (has_delay_key_write()) {
01341 total_size += 2 + 1;
01342 }
01343
01344
01345 if (has_dont_replicate()) {
01346 total_size += 2 + 1;
01347 }
01348
01349 }
01350 if (!unknown_fields().empty()) {
01351 total_size +=
01352 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
01353 unknown_fields());
01354 }
01355 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
01356 _cached_size_ = total_size;
01357 GOOGLE_SAFE_CONCURRENT_WRITES_END();
01358 return total_size;
01359 }
01360
01361 void Table_TableOptions::MergeFrom(const ::google::protobuf::Message& from) {
01362 GOOGLE_CHECK_NE(&from, this);
01363 const Table_TableOptions* source =
01364 ::google::protobuf::internal::dynamic_cast_if_available<const Table_TableOptions*>(
01365 &from);
01366 if (source == NULL) {
01367 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
01368 } else {
01369 MergeFrom(*source);
01370 }
01371 }
01372
01373 void Table_TableOptions::MergeFrom(const Table_TableOptions& from) {
01374 GOOGLE_CHECK_NE(&from, this);
01375 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
01376 if (from.has_has_user_set_auto_increment_value()) {
01377 set_has_user_set_auto_increment_value(from.has_user_set_auto_increment_value());
01378 }
01379 if (from.has_collation()) {
01380 set_collation(from.collation());
01381 }
01382 if (from.has_collation_id()) {
01383 set_collation_id(from.collation_id());
01384 }
01385 if (from.has_data_file_name()) {
01386 set_data_file_name(from.data_file_name());
01387 }
01388 if (from.has_index_file_name()) {
01389 set_index_file_name(from.index_file_name());
01390 }
01391 if (from.has_max_rows()) {
01392 set_max_rows(from.max_rows());
01393 }
01394 if (from.has_min_rows()) {
01395 set_min_rows(from.min_rows());
01396 }
01397 if (from.has_auto_increment_value()) {
01398 set_auto_increment_value(from.auto_increment_value());
01399 }
01400 }
01401 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
01402 if (from.has_avg_row_length()) {
01403 set_avg_row_length(from.avg_row_length());
01404 }
01405 if (from.has_block_size()) {
01406 set_block_size(from.block_size());
01407 }
01408 if (from.has_comment()) {
01409 set_comment(from.comment());
01410 }
01411 if (from.has_pack_record()) {
01412 set_pack_record(from.pack_record());
01413 }
01414 if (from.has_checksum()) {
01415 set_checksum(from.checksum());
01416 }
01417 if (from.has_page_checksum()) {
01418 set_page_checksum(from.page_checksum());
01419 }
01420 if (from.has_delay_key_write()) {
01421 set_delay_key_write(from.delay_key_write());
01422 }
01423 if (from.has_dont_replicate()) {
01424 set_dont_replicate(from.dont_replicate());
01425 }
01426 }
01427 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
01428 }
01429
01430 void Table_TableOptions::CopyFrom(const ::google::protobuf::Message& from) {
01431 if (&from == this) return;
01432 Clear();
01433 MergeFrom(from);
01434 }
01435
01436 void Table_TableOptions::CopyFrom(const Table_TableOptions& from) {
01437 if (&from == this) return;
01438 Clear();
01439 MergeFrom(from);
01440 }
01441
01442 bool Table_TableOptions::IsInitialized() const {
01443
01444 return true;
01445 }
01446
01447 void Table_TableOptions::Swap(Table_TableOptions* other) {
01448 if (other != this) {
01449 std::swap(has_user_set_auto_increment_value_, other->has_user_set_auto_increment_value_);
01450 std::swap(collation_, other->collation_);
01451 std::swap(collation_id_, other->collation_id_);
01452 std::swap(data_file_name_, other->data_file_name_);
01453 std::swap(index_file_name_, other->index_file_name_);
01454 std::swap(max_rows_, other->max_rows_);
01455 std::swap(min_rows_, other->min_rows_);
01456 std::swap(auto_increment_value_, other->auto_increment_value_);
01457 std::swap(avg_row_length_, other->avg_row_length_);
01458 std::swap(block_size_, other->block_size_);
01459 std::swap(comment_, other->comment_);
01460 std::swap(pack_record_, other->pack_record_);
01461 std::swap(checksum_, other->checksum_);
01462 std::swap(page_checksum_, other->page_checksum_);
01463 std::swap(delay_key_write_, other->delay_key_write_);
01464 std::swap(dont_replicate_, other->dont_replicate_);
01465 std::swap(_has_bits_[0], other->_has_bits_[0]);
01466 _unknown_fields_.Swap(&other->_unknown_fields_);
01467 std::swap(_cached_size_, other->_cached_size_);
01468 }
01469 }
01470
01471 ::google::protobuf::Metadata Table_TableOptions::GetMetadata() const {
01472 protobuf_AssignDescriptorsOnce();
01473 ::google::protobuf::Metadata metadata;
01474 metadata.descriptor = Table_TableOptions_descriptor_;
01475 metadata.reflection = Table_TableOptions_reflection_;
01476 return metadata;
01477 }
01478
01479
01480
01481
01482 const ::google::protobuf::EnumDescriptor* Table_ForeignKeyConstraint_ForeignKeyMatchOption_descriptor() {
01483 protobuf_AssignDescriptorsOnce();
01484 return Table_ForeignKeyConstraint_ForeignKeyMatchOption_descriptor_;
01485 }
01486 bool Table_ForeignKeyConstraint_ForeignKeyMatchOption_IsValid(int value) {
01487 switch(value) {
01488 case 0:
01489 case 1:
01490 case 2:
01491 case 3:
01492 return true;
01493 default:
01494 return false;
01495 }
01496 }
01497
01498 #ifndef _MSC_VER
01499 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::MATCH_UNDEFINED;
01500 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::MATCH_FULL;
01501 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::MATCH_PARTIAL;
01502 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::MATCH_SIMPLE;
01503 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::ForeignKeyMatchOption_MIN;
01504 const Table_ForeignKeyConstraint_ForeignKeyMatchOption Table_ForeignKeyConstraint::ForeignKeyMatchOption_MAX;
01505 const int Table_ForeignKeyConstraint::ForeignKeyMatchOption_ARRAYSIZE;
01506 #endif // _MSC_VER
01507 const ::google::protobuf::EnumDescriptor* Table_ForeignKeyConstraint_ForeignKeyOption_descriptor() {
01508 protobuf_AssignDescriptorsOnce();
01509 return Table_ForeignKeyConstraint_ForeignKeyOption_descriptor_;
01510 }
01511 bool Table_ForeignKeyConstraint_ForeignKeyOption_IsValid(int value) {
01512 switch(value) {
01513 case 0:
01514 case 1:
01515 case 2:
01516 case 3:
01517 case 4:
01518 case 5:
01519 return true;
01520 default:
01521 return false;
01522 }
01523 }
01524
01525 #ifndef _MSC_VER
01526 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_UNDEF;
01527 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_RESTRICT;
01528 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_CASCADE;
01529 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_SET_NULL;
01530 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_NO_ACTION;
01531 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::OPTION_SET_DEFAULT;
01532 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::ForeignKeyOption_MIN;
01533 const Table_ForeignKeyConstraint_ForeignKeyOption Table_ForeignKeyConstraint::ForeignKeyOption_MAX;
01534 const int Table_ForeignKeyConstraint::ForeignKeyOption_ARRAYSIZE;
01535 #endif // _MSC_VER
01536 #ifndef _MSC_VER
01537 const int Table_ForeignKeyConstraint::kNameFieldNumber;
01538 const int Table_ForeignKeyConstraint::kColumnNamesFieldNumber;
01539 const int Table_ForeignKeyConstraint::kReferencesTableNameFieldNumber;
01540 const int Table_ForeignKeyConstraint::kReferencesColumnsFieldNumber;
01541 const int Table_ForeignKeyConstraint::kMatchFieldNumber;
01542 const int Table_ForeignKeyConstraint::kUpdateOptionFieldNumber;
01543 const int Table_ForeignKeyConstraint::kDeleteOptionFieldNumber;
01544 #endif // !_MSC_VER
01545
01546 Table_ForeignKeyConstraint::Table_ForeignKeyConstraint()
01547 : ::google::protobuf::Message() {
01548 SharedCtor();
01549 }
01550
01551 void Table_ForeignKeyConstraint::InitAsDefaultInstance() {
01552 }
01553
01554 Table_ForeignKeyConstraint::Table_ForeignKeyConstraint(const Table_ForeignKeyConstraint& from)
01555 : ::google::protobuf::Message() {
01556 SharedCtor();
01557 MergeFrom(from);
01558 }
01559
01560 void Table_ForeignKeyConstraint::SharedCtor() {
01561 _cached_size_ = 0;
01562 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
01563 references_table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
01564 match_ = 0;
01565 update_option_ = 0;
01566 delete_option_ = 0;
01567 ::memset(_has_bits_, 0, sizeof(_has_bits_));
01568 }
01569
01570 Table_ForeignKeyConstraint::~Table_ForeignKeyConstraint() {
01571 SharedDtor();
01572 }
01573
01574 void Table_ForeignKeyConstraint::SharedDtor() {
01575 if (name_ != &::google::protobuf::internal::kEmptyString) {
01576 delete name_;
01577 }
01578 if (references_table_name_ != &::google::protobuf::internal::kEmptyString) {
01579 delete references_table_name_;
01580 }
01581 if (this != default_instance_) {
01582 }
01583 }
01584
01585 void Table_ForeignKeyConstraint::SetCachedSize(int size) const {
01586 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
01587 _cached_size_ = size;
01588 GOOGLE_SAFE_CONCURRENT_WRITES_END();
01589 }
01590 const ::google::protobuf::Descriptor* Table_ForeignKeyConstraint::descriptor() {
01591 protobuf_AssignDescriptorsOnce();
01592 return Table_ForeignKeyConstraint_descriptor_;
01593 }
01594
01595 const Table_ForeignKeyConstraint& Table_ForeignKeyConstraint::default_instance() {
01596 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto(); return *default_instance_;
01597 }
01598
01599 Table_ForeignKeyConstraint* Table_ForeignKeyConstraint::default_instance_ = NULL;
01600
01601 Table_ForeignKeyConstraint* Table_ForeignKeyConstraint::New() const {
01602 return new Table_ForeignKeyConstraint;
01603 }
01604
01605 void Table_ForeignKeyConstraint::Clear() {
01606 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
01607 if (has_name()) {
01608 if (name_ != &::google::protobuf::internal::kEmptyString) {
01609 name_->clear();
01610 }
01611 }
01612 if (has_references_table_name()) {
01613 if (references_table_name_ != &::google::protobuf::internal::kEmptyString) {
01614 references_table_name_->clear();
01615 }
01616 }
01617 match_ = 0;
01618 update_option_ = 0;
01619 delete_option_ = 0;
01620 }
01621 column_names_.Clear();
01622 references_columns_.Clear();
01623 ::memset(_has_bits_, 0, sizeof(_has_bits_));
01624 mutable_unknown_fields()->Clear();
01625 }
01626
01627 bool Table_ForeignKeyConstraint::MergePartialFromCodedStream(
01628 ::google::protobuf::io::CodedInputStream* input) {
01629 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
01630 ::google::protobuf::uint32 tag;
01631 while ((tag = input->ReadTag()) != 0) {
01632 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
01633
01634 case 1: {
01635 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01636 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
01637 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
01638 input, this->mutable_name()));
01639 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01640 this->name().data(), this->name().length(),
01641 ::google::protobuf::internal::WireFormat::PARSE);
01642 } else {
01643 goto handle_uninterpreted;
01644 }
01645 if (input->ExpectTag(18)) goto parse_column_names;
01646 break;
01647 }
01648
01649
01650 case 2: {
01651 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01652 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
01653 parse_column_names:
01654 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
01655 input, this->add_column_names()));
01656 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01657 this->column_names(0).data(), this->column_names(0).length(),
01658 ::google::protobuf::internal::WireFormat::PARSE);
01659 } else {
01660 goto handle_uninterpreted;
01661 }
01662 if (input->ExpectTag(18)) goto parse_column_names;
01663 if (input->ExpectTag(26)) goto parse_references_table_name;
01664 break;
01665 }
01666
01667
01668 case 3: {
01669 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01670 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
01671 parse_references_table_name:
01672 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
01673 input, this->mutable_references_table_name()));
01674 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01675 this->references_table_name().data(), this->references_table_name().length(),
01676 ::google::protobuf::internal::WireFormat::PARSE);
01677 } else {
01678 goto handle_uninterpreted;
01679 }
01680 if (input->ExpectTag(34)) goto parse_references_columns;
01681 break;
01682 }
01683
01684
01685 case 4: {
01686 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01687 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
01688 parse_references_columns:
01689 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
01690 input, this->add_references_columns()));
01691 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01692 this->references_columns(0).data(), this->references_columns(0).length(),
01693 ::google::protobuf::internal::WireFormat::PARSE);
01694 } else {
01695 goto handle_uninterpreted;
01696 }
01697 if (input->ExpectTag(34)) goto parse_references_columns;
01698 if (input->ExpectTag(40)) goto parse_match;
01699 break;
01700 }
01701
01702
01703 case 5: {
01704 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01705 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
01706 parse_match:
01707 int value;
01708 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
01709 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
01710 input, &value)));
01711 if (::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyMatchOption_IsValid(value)) {
01712 set_match(static_cast< ::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyMatchOption >(value));
01713 } else {
01714 mutable_unknown_fields()->AddVarint(5, value);
01715 }
01716 } else {
01717 goto handle_uninterpreted;
01718 }
01719 if (input->ExpectTag(48)) goto parse_update_option;
01720 break;
01721 }
01722
01723
01724 case 6: {
01725 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01726 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
01727 parse_update_option:
01728 int value;
01729 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
01730 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
01731 input, &value)));
01732 if (::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyOption_IsValid(value)) {
01733 set_update_option(static_cast< ::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyOption >(value));
01734 } else {
01735 mutable_unknown_fields()->AddVarint(6, value);
01736 }
01737 } else {
01738 goto handle_uninterpreted;
01739 }
01740 if (input->ExpectTag(56)) goto parse_delete_option;
01741 break;
01742 }
01743
01744
01745 case 7: {
01746 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01747 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
01748 parse_delete_option:
01749 int value;
01750 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
01751 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
01752 input, &value)));
01753 if (::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyOption_IsValid(value)) {
01754 set_delete_option(static_cast< ::drizzled::message::Table_ForeignKeyConstraint_ForeignKeyOption >(value));
01755 } else {
01756 mutable_unknown_fields()->AddVarint(7, value);
01757 }
01758 } else {
01759 goto handle_uninterpreted;
01760 }
01761 if (input->ExpectAtEnd()) return true;
01762 break;
01763 }
01764
01765 default: {
01766 handle_uninterpreted:
01767 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01768 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
01769 return true;
01770 }
01771 DO_(::google::protobuf::internal::WireFormat::SkipField(
01772 input, tag, mutable_unknown_fields()));
01773 break;
01774 }
01775 }
01776 }
01777 return true;
01778 #undef DO_
01779 }
01780
01781 void Table_ForeignKeyConstraint::SerializeWithCachedSizes(
01782 ::google::protobuf::io::CodedOutputStream* output) const {
01783
01784 if (has_name()) {
01785 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01786 this->name().data(), this->name().length(),
01787 ::google::protobuf::internal::WireFormat::SERIALIZE);
01788 ::google::protobuf::internal::WireFormatLite::WriteString(
01789 1, this->name(), output);
01790 }
01791
01792
01793 for (int i = 0; i < this->column_names_size(); i++) {
01794 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01795 this->column_names(i).data(), this->column_names(i).length(),
01796 ::google::protobuf::internal::WireFormat::SERIALIZE);
01797 ::google::protobuf::internal::WireFormatLite::WriteString(
01798 2, this->column_names(i), output);
01799 }
01800
01801
01802 if (has_references_table_name()) {
01803 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01804 this->references_table_name().data(), this->references_table_name().length(),
01805 ::google::protobuf::internal::WireFormat::SERIALIZE);
01806 ::google::protobuf::internal::WireFormatLite::WriteString(
01807 3, this->references_table_name(), output);
01808 }
01809
01810
01811 for (int i = 0; i < this->references_columns_size(); i++) {
01812 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01813 this->references_columns(i).data(), this->references_columns(i).length(),
01814 ::google::protobuf::internal::WireFormat::SERIALIZE);
01815 ::google::protobuf::internal::WireFormatLite::WriteString(
01816 4, this->references_columns(i), output);
01817 }
01818
01819
01820 if (has_match()) {
01821 ::google::protobuf::internal::WireFormatLite::WriteEnum(
01822 5, this->match(), output);
01823 }
01824
01825
01826 if (has_update_option()) {
01827 ::google::protobuf::internal::WireFormatLite::WriteEnum(
01828 6, this->update_option(), output);
01829 }
01830
01831
01832 if (has_delete_option()) {
01833 ::google::protobuf::internal::WireFormatLite::WriteEnum(
01834 7, this->delete_option(), output);
01835 }
01836
01837 if (!unknown_fields().empty()) {
01838 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
01839 unknown_fields(), output);
01840 }
01841 }
01842
01843 ::google::protobuf::uint8* Table_ForeignKeyConstraint::SerializeWithCachedSizesToArray(
01844 ::google::protobuf::uint8* target) const {
01845
01846 if (has_name()) {
01847 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01848 this->name().data(), this->name().length(),
01849 ::google::protobuf::internal::WireFormat::SERIALIZE);
01850 target =
01851 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
01852 1, this->name(), target);
01853 }
01854
01855
01856 for (int i = 0; i < this->column_names_size(); i++) {
01857 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01858 this->column_names(i).data(), this->column_names(i).length(),
01859 ::google::protobuf::internal::WireFormat::SERIALIZE);
01860 target = ::google::protobuf::internal::WireFormatLite::
01861 WriteStringToArray(2, this->column_names(i), target);
01862 }
01863
01864
01865 if (has_references_table_name()) {
01866 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01867 this->references_table_name().data(), this->references_table_name().length(),
01868 ::google::protobuf::internal::WireFormat::SERIALIZE);
01869 target =
01870 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
01871 3, this->references_table_name(), target);
01872 }
01873
01874
01875 for (int i = 0; i < this->references_columns_size(); i++) {
01876 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01877 this->references_columns(i).data(), this->references_columns(i).length(),
01878 ::google::protobuf::internal::WireFormat::SERIALIZE);
01879 target = ::google::protobuf::internal::WireFormatLite::
01880 WriteStringToArray(4, this->references_columns(i), target);
01881 }
01882
01883
01884 if (has_match()) {
01885 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
01886 5, this->match(), target);
01887 }
01888
01889
01890 if (has_update_option()) {
01891 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
01892 6, this->update_option(), target);
01893 }
01894
01895
01896 if (has_delete_option()) {
01897 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
01898 7, this->delete_option(), target);
01899 }
01900
01901 if (!unknown_fields().empty()) {
01902 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
01903 unknown_fields(), target);
01904 }
01905 return target;
01906 }
01907
01908 int Table_ForeignKeyConstraint::ByteSize() const {
01909 int total_size = 0;
01910
01911 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
01912
01913 if (has_name()) {
01914 total_size += 1 +
01915 ::google::protobuf::internal::WireFormatLite::StringSize(
01916 this->name());
01917 }
01918
01919
01920 if (has_references_table_name()) {
01921 total_size += 1 +
01922 ::google::protobuf::internal::WireFormatLite::StringSize(
01923 this->references_table_name());
01924 }
01925
01926
01927 if (has_match()) {
01928 total_size += 1 +
01929 ::google::protobuf::internal::WireFormatLite::EnumSize(this->match());
01930 }
01931
01932
01933 if (has_update_option()) {
01934 total_size += 1 +
01935 ::google::protobuf::internal::WireFormatLite::EnumSize(this->update_option());
01936 }
01937
01938
01939 if (has_delete_option()) {
01940 total_size += 1 +
01941 ::google::protobuf::internal::WireFormatLite::EnumSize(this->delete_option());
01942 }
01943
01944 }
01945
01946 total_size += 1 * this->column_names_size();
01947 for (int i = 0; i < this->column_names_size(); i++) {
01948 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
01949 this->column_names(i));
01950 }
01951
01952
01953 total_size += 1 * this->references_columns_size();
01954 for (int i = 0; i < this->references_columns_size(); i++) {
01955 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
01956 this->references_columns(i));
01957 }
01958
01959 if (!unknown_fields().empty()) {
01960 total_size +=
01961 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
01962 unknown_fields());
01963 }
01964 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
01965 _cached_size_ = total_size;
01966 GOOGLE_SAFE_CONCURRENT_WRITES_END();
01967 return total_size;
01968 }
01969
01970 void Table_ForeignKeyConstraint::MergeFrom(const ::google::protobuf::Message& from) {
01971 GOOGLE_CHECK_NE(&from, this);
01972 const Table_ForeignKeyConstraint* source =
01973 ::google::protobuf::internal::dynamic_cast_if_available<const Table_ForeignKeyConstraint*>(
01974 &from);
01975 if (source == NULL) {
01976 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
01977 } else {
01978 MergeFrom(*source);
01979 }
01980 }
01981
01982 void Table_ForeignKeyConstraint::MergeFrom(const Table_ForeignKeyConstraint& from) {
01983 GOOGLE_CHECK_NE(&from, this);
01984 column_names_.MergeFrom(from.column_names_);
01985 references_columns_.MergeFrom(from.references_columns_);
01986 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
01987 if (from.has_name()) {
01988 set_name(from.name());
01989 }
01990 if (from.has_references_table_name()) {
01991 set_references_table_name(from.references_table_name());
01992 }
01993 if (from.has_match()) {
01994 set_match(from.match());
01995 }
01996 if (from.has_update_option()) {
01997 set_update_option(from.update_option());
01998 }
01999 if (from.has_delete_option()) {
02000 set_delete_option(from.delete_option());
02001 }
02002 }
02003 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
02004 }
02005
02006 void Table_ForeignKeyConstraint::CopyFrom(const ::google::protobuf::Message& from) {
02007 if (&from == this) return;
02008 Clear();
02009 MergeFrom(from);
02010 }
02011
02012 void Table_ForeignKeyConstraint::CopyFrom(const Table_ForeignKeyConstraint& from) {
02013 if (&from == this) return;
02014 Clear();
02015 MergeFrom(from);
02016 }
02017
02018 bool Table_ForeignKeyConstraint::IsInitialized() const {
02019 if ((_has_bits_[0] & 0x00000074) != 0x00000074) return false;
02020
02021 return true;
02022 }
02023
02024 void Table_ForeignKeyConstraint::Swap(Table_ForeignKeyConstraint* other) {
02025 if (other != this) {
02026 std::swap(name_, other->name_);
02027 column_names_.Swap(&other->column_names_);
02028 std::swap(references_table_name_, other->references_table_name_);
02029 references_columns_.Swap(&other->references_columns_);
02030 std::swap(match_, other->match_);
02031 std::swap(update_option_, other->update_option_);
02032 std::swap(delete_option_, other->delete_option_);
02033 std::swap(_has_bits_[0], other->_has_bits_[0]);
02034 _unknown_fields_.Swap(&other->_unknown_fields_);
02035 std::swap(_cached_size_, other->_cached_size_);
02036 }
02037 }
02038
02039 ::google::protobuf::Metadata Table_ForeignKeyConstraint::GetMetadata() const {
02040 protobuf_AssignDescriptorsOnce();
02041 ::google::protobuf::Metadata metadata;
02042 metadata.descriptor = Table_ForeignKeyConstraint_descriptor_;
02043 metadata.reflection = Table_ForeignKeyConstraint_reflection_;
02044 return metadata;
02045 }
02046
02047
02048
02049
02050 const ::google::protobuf::EnumDescriptor* Table_Field_FieldType_descriptor() {
02051 protobuf_AssignDescriptorsOnce();
02052 return Table_Field_FieldType_descriptor_;
02053 }
02054 bool Table_Field_FieldType_IsValid(int value) {
02055 switch(value) {
02056 case 0:
02057 case 1:
02058 case 2:
02059 case 3:
02060 case 4:
02061 case 5:
02062 case 6:
02063 case 7:
02064 case 9:
02065 case 10:
02066 case 11:
02067 case 12:
02068 case 13:
02069 return true;
02070 default:
02071 return false;
02072 }
02073 }
02074
02075 #ifndef _MSC_VER
02076 const Table_Field_FieldType Table_Field::DOUBLE;
02077 const Table_Field_FieldType Table_Field::VARCHAR;
02078 const Table_Field_FieldType Table_Field::BLOB;
02079 const Table_Field_FieldType Table_Field::ENUM;
02080 const Table_Field_FieldType Table_Field::INTEGER;
02081 const Table_Field_FieldType Table_Field::BIGINT;
02082 const Table_Field_FieldType Table_Field::DECIMAL;
02083 const Table_Field_FieldType Table_Field::DATE;
02084 const Table_Field_FieldType Table_Field::EPOCH;
02085 const Table_Field_FieldType Table_Field::DATETIME;
02086 const Table_Field_FieldType Table_Field::UUID;
02087 const Table_Field_FieldType Table_Field::TIME;
02088 const Table_Field_FieldType Table_Field::BOOLEAN;
02089 const Table_Field_FieldType Table_Field::FieldType_MIN;
02090 const Table_Field_FieldType Table_Field::FieldType_MAX;
02091 const int Table_Field::FieldType_ARRAYSIZE;
02092 #endif // _MSC_VER
02093 #ifndef _MSC_VER
02094 const int Table_Field_FieldOptions::kDefaultValueFieldNumber;
02095 const int Table_Field_FieldOptions::kUpdateValueFieldNumber;
02096 const int Table_Field_FieldOptions::kDefaultNullFieldNumber;
02097 const int Table_Field_FieldOptions::kDefaultBinValueFieldNumber;
02098 const int Table_Field_FieldOptions::kDefaultExpressionFieldNumber;
02099 const int Table_Field_FieldOptions::kUpdateExpressionFieldNumber;
02100 #endif // !_MSC_VER
02101
02102 Table_Field_FieldOptions::Table_Field_FieldOptions()
02103 : ::google::protobuf::Message() {
02104 SharedCtor();
02105 }
02106
02107 void Table_Field_FieldOptions::InitAsDefaultInstance() {
02108 }
02109
02110 Table_Field_FieldOptions::Table_Field_FieldOptions(const Table_Field_FieldOptions& from)
02111 : ::google::protobuf::Message() {
02112 SharedCtor();
02113 MergeFrom(from);
02114 }
02115
02116 void Table_Field_FieldOptions::SharedCtor() {
02117 _cached_size_ = 0;
02118 default_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
02119 update_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
02120 default_null_ = false;
02121 default_bin_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
02122 default_expression_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
02123 update_expression_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
02124 ::memset(_has_bits_, 0, sizeof(_has_bits_));
02125 }
02126
02127 Table_Field_FieldOptions::~Table_Field_FieldOptions() {
02128 SharedDtor();
02129 }
02130
02131 void Table_Field_FieldOptions::SharedDtor() {
02132 if (default_value_ != &::google::protobuf::internal::kEmptyString) {
02133 delete default_value_;
02134 }
02135 if (update_value_ != &::google::protobuf::internal::kEmptyString) {
02136 delete update_value_;
02137 }
02138 if (default_bin_value_ != &::google::protobuf::internal::kEmptyString) {
02139 delete default_bin_value_;
02140 }
02141 if (default_expression_ != &::google::protobuf::internal::kEmptyString) {
02142 delete default_expression_;
02143 }
02144 if (update_expression_ != &::google::protobuf::internal::kEmptyString) {
02145 delete update_expression_;
02146 }
02147 if (this != default_instance_) {
02148 }
02149 }
02150
02151 void Table_Field_FieldOptions::SetCachedSize(int size) const {
02152 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
02153 _cached_size_ = size;
02154 GOOGLE_SAFE_CONCURRENT_WRITES_END();
02155 }
02156 const ::google::protobuf::Descriptor* Table_Field_FieldOptions::descriptor() {
02157 protobuf_AssignDescriptorsOnce();
02158 return Table_Field_FieldOptions_descriptor_;
02159 }
02160
02161 const Table_Field_FieldOptions& Table_Field_FieldOptions::default_instance() {
02162 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto(); return *default_instance_;
02163 }
02164
02165 Table_Field_FieldOptions* Table_Field_FieldOptions::default_instance_ = NULL;
02166
02167 Table_Field_FieldOptions* Table_Field_FieldOptions::New() const {
02168 return new Table_Field_FieldOptions;
02169 }
02170
02171 void Table_Field_FieldOptions::Clear() {
02172 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
02173 if (has_default_value()) {
02174 if (default_value_ != &::google::protobuf::internal::kEmptyString) {
02175 default_value_->clear();
02176 }
02177 }
02178 if (has_update_value()) {
02179 if (update_value_ != &::google::protobuf::internal::kEmptyString) {
02180 update_value_->clear();
02181 }
02182 }
02183 default_null_ = false;
02184 if (has_default_bin_value()) {
02185 if (default_bin_value_ != &::google::protobuf::internal::kEmptyString) {
02186 default_bin_value_->clear();
02187 }
02188 }
02189 if (has_default_expression()) {
02190 if (default_expression_ != &::google::protobuf::internal::kEmptyString) {
02191 default_expression_->clear();
02192 }
02193 }
02194 if (has_update_expression()) {
02195 if (update_expression_ != &::google::protobuf::internal::kEmptyString) {
02196 update_expression_->clear();
02197 }
02198 }
02199 }
02200 ::memset(_has_bits_, 0, sizeof(_has_bits_));
02201 mutable_unknown_fields()->Clear();
02202 }
02203
02204 bool Table_Field_FieldOptions::MergePartialFromCodedStream(
02205 ::google::protobuf::io::CodedInputStream* input) {
02206 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
02207 ::google::protobuf::uint32 tag;
02208 while ((tag = input->ReadTag()) != 0) {
02209 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
02210
02211 case 1: {
02212 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
02213 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
02214 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
02215 input, this->mutable_default_value()));
02216 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
02217 this->default_value().data(), this->default_value().length(),
02218 ::google::protobuf::internal::WireFormat::PARSE);
02219 } else {
02220 goto handle_uninterpreted;
02221 }
02222 if (input->ExpectTag(18)) goto parse_update_value;
02223 break;
02224 }
02225
02226
02227 case 2: {
02228 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
02229 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
02230 parse_update_value:
02231 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
02232 input, this->mutable_update_value()));
02233 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
02234 this->update_value().data(), this->update_value().length(),
02235 ::google::protobuf::internal::WireFormat::PARSE);
02236 } else {
02237 goto handle_uninterpreted;
02238 }
02239 if (input->ExpectTag(24)) goto parse_default_null;
02240 break;
02241 }
02242
02243
02244 case 3: {
02245 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
02246 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
02247 parse_default_null:
02248 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
02249 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
02250 input, &default_null_)));
02251 set_has_default_null();
02252 } else {
02253 goto handle_uninterpreted;
02254 }
02255 if (input->ExpectTag(34)) goto parse_default_bin_value;
02256 break;
02257 }
02258
02259
02260 case 4: {
02261 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
02262 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
02263 parse_default_bin_value:
02264 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
02265 input, this->mutable_default_bin_value()));
02266 } else {
02267 goto handle_uninterpreted;
02268 }
02269 if (input->ExpectTag(42)) goto parse_default_expression;
02270 break;
02271 }
02272
02273
02274 case 5: {
02275 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
02276 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
02277 parse_default_expression:
02278 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
02279 input, this->mutable_default_expression()));
02280 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
02281 this->default_expression().data(), this->default_expression().length(),
02282 ::google::protobuf::internal::WireFormat::PARSE);
02283 } else {
02284 goto handle_uninterpreted;
02285 }
02286 if (input->ExpectTag(50)) goto parse_update_expression;
02287 break;
02288 }
02289
02290
02291 case 6: {
02292 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
02293 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
02294 parse_update_expression:
02295 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
02296 input, this->mutable_update_expression()));
02297 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
02298 this->update_expression().data(), this->update_expression().length(),
02299 ::google::protobuf::internal::WireFormat::PARSE);
02300 } else {
02301 goto handle_uninterpreted;
02302 }
02303 if (input->ExpectAtEnd()) return true;
02304 break;
02305 }
02306
02307 default: {
02308 handle_uninterpreted:
02309 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
02310 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
02311 return true;
02312 }
02313 DO_(::google::protobuf::internal::WireFormat::SkipField(
02314 input, tag, mutable_unknown_fields()));
02315 break;
02316 }
02317 }
02318 }
02319 return true;
02320 #undef DO_
02321 }
02322
02323 void Table_Field_FieldOptions::SerializeWithCachedSizes(
02324 ::google::protobuf::io::CodedOutputStream* output) const {
02325
02326 if (has_default_value()) {
02327 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
02328 this->default_value().data(), this->default_value().length(),
02329 ::google::protobuf::internal::WireFormat::SERIALIZE);
02330 ::google::protobuf::internal::WireFormatLite::WriteString(
02331 1, this->default_value(), output);
02332 }
02333
02334
02335 if (has_update_value()) {
02336 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
02337 this->update_value().data(), this->update_value().length(),
02338 ::google::protobuf::internal::WireFormat::SERIALIZE);
02339 ::google::protobuf::internal::WireFormatLite::WriteString(
02340 2, this->update_value(), output);
02341 }
02342
02343
02344 if (has_default_null()) {
02345 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->default_null(), output);
02346 }
02347
02348
02349 if (has_default_bin_value()) {
02350 ::google::protobuf::internal::WireFormatLite::WriteBytes(
02351 4, this->default_bin_value(), output);
02352 }
02353
02354
02355 if (has_default_expression()) {
02356 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
02357 this->default_expression().data(), this->default_expression().length(),
02358 ::google::protobuf::internal::WireFormat::SERIALIZE);
02359 ::google::protobuf::internal::WireFormatLite::WriteString(
02360 5, this->default_expression(), output);
02361 }
02362
02363
02364 if (has_update_expression()) {
02365 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
02366 this->update_expression().data(), this->update_expression().length(),
02367 ::google::protobuf::internal::WireFormat::SERIALIZE);
02368 ::google::protobuf::internal::WireFormatLite::WriteString(
02369 6, this->update_expression(), output);
02370 }
02371
02372 if (!unknown_fields().empty()) {
02373 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
02374 unknown_fields(), output);
02375 }
02376 }
02377
02378 ::google::protobuf::uint8* Table_Field_FieldOptions::SerializeWithCachedSizesToArray(
02379 ::google::protobuf::uint8* target) const {
02380
02381 if (has_default_value()) {
02382 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
02383 this->default_value().data(), this->default_value().length(),
02384 ::google::protobuf::internal::WireFormat::SERIALIZE);
02385 target =
02386 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
02387 1, this->default_value(), target);
02388 }
02389
02390
02391 if (has_update_value()) {
02392 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
02393 this->update_value().data(), this->update_value().length(),
02394 ::google::protobuf::internal::WireFormat::SERIALIZE);
02395 target =
02396 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
02397 2, this->update_value(), target);
02398 }
02399
02400
02401 if (has_default_null()) {
02402 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->default_null(), target);
02403 }
02404
02405
02406 if (has_default_bin_value()) {
02407 target =
02408 ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
02409 4, this->default_bin_value(), target);
02410 }
02411
02412
02413 if (has_default_expression()) {
02414 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
02415 this->default_expression().data(), this->default_expression().length(),
02416 ::google::protobuf::internal::WireFormat::SERIALIZE);
02417 target =
02418 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
02419 5, this->default_expression(), target);
02420 }
02421
02422
02423 if (has_update_expression()) {
02424 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
02425 this->update_expression().data(), this->update_expression().length(),
02426 ::google::protobuf::internal::WireFormat::SERIALIZE);
02427 target =
02428 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
02429 6, this->update_expression(), target);
02430 }
02431
02432 if (!unknown_fields().empty()) {
02433 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
02434 unknown_fields(), target);
02435 }
02436 return target;
02437 }
02438
02439 int Table_Field_FieldOptions::ByteSize() const {
02440 int total_size = 0;
02441
02442 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
02443
02444 if (has_default_value()) {
02445 total_size += 1 +
02446 ::google::protobuf::internal::WireFormatLite::StringSize(
02447 this->default_value());
02448 }
02449
02450
02451 if (has_update_value()) {
02452 total_size += 1 +
02453 ::google::protobuf::internal::WireFormatLite::StringSize(
02454 this->update_value());
02455 }
02456
02457
02458 if (has_default_null()) {
02459 total_size += 1 + 1;
02460 }
02461
02462
02463 if (has_default_bin_value()) {
02464 total_size += 1 +
02465 ::google::protobuf::internal::WireFormatLite::BytesSize(
02466 this->default_bin_value());
02467 }
02468
02469
02470 if (has_default_expression()) {
02471 total_size += 1 +
02472 ::google::protobuf::internal::WireFormatLite::StringSize(
02473 this->default_expression());
02474 }
02475
02476
02477 if (has_update_expression()) {
02478 total_size += 1 +
02479 ::google::protobuf::internal::WireFormatLite::StringSize(
02480 this->update_expression());
02481 }
02482
02483 }
02484 if (!unknown_fields().empty()) {
02485 total_size +=
02486 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
02487 unknown_fields());
02488 }
02489 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
02490 _cached_size_ = total_size;
02491 GOOGLE_SAFE_CONCURRENT_WRITES_END();
02492 return total_size;
02493 }
02494
02495 void Table_Field_FieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
02496 GOOGLE_CHECK_NE(&from, this);
02497 const Table_Field_FieldOptions* source =
02498 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_FieldOptions*>(
02499 &from);
02500 if (source == NULL) {
02501 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
02502 } else {
02503 MergeFrom(*source);
02504 }
02505 }
02506
02507 void Table_Field_FieldOptions::MergeFrom(const Table_Field_FieldOptions& from) {
02508 GOOGLE_CHECK_NE(&from, this);
02509 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
02510 if (from.has_default_value()) {
02511 set_default_value(from.default_value());
02512 }
02513 if (from.has_update_value()) {
02514 set_update_value(from.update_value());
02515 }
02516 if (from.has_default_null()) {
02517 set_default_null(from.default_null());
02518 }
02519 if (from.has_default_bin_value()) {
02520 set_default_bin_value(from.default_bin_value());
02521 }
02522 if (from.has_default_expression()) {
02523 set_default_expression(from.default_expression());
02524 }
02525 if (from.has_update_expression()) {
02526 set_update_expression(from.update_expression());
02527 }
02528 }
02529 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
02530 }
02531
02532 void Table_Field_FieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
02533 if (&from == this) return;
02534 Clear();
02535 MergeFrom(from);
02536 }
02537
02538 void Table_Field_FieldOptions::CopyFrom(const Table_Field_FieldOptions& from) {
02539 if (&from == this) return;
02540 Clear();
02541 MergeFrom(from);
02542 }
02543
02544 bool Table_Field_FieldOptions::IsInitialized() const {
02545
02546 return true;
02547 }
02548
02549 void Table_Field_FieldOptions::Swap(Table_Field_FieldOptions* other) {
02550 if (other != this) {
02551 std::swap(default_value_, other->default_value_);
02552 std::swap(update_value_, other->update_value_);
02553 std::swap(default_null_, other->default_null_);
02554 std::swap(default_bin_value_, other->default_bin_value_);
02555 std::swap(default_expression_, other->default_expression_);
02556 std::swap(update_expression_, other->update_expression_);
02557 std::swap(_has_bits_[0], other->_has_bits_[0]);
02558 _unknown_fields_.Swap(&other->_unknown_fields_);
02559 std::swap(_cached_size_, other->_cached_size_);
02560 }
02561 }
02562
02563 ::google::protobuf::Metadata Table_Field_FieldOptions::GetMetadata() const {
02564 protobuf_AssignDescriptorsOnce();
02565 ::google::protobuf::Metadata metadata;
02566 metadata.descriptor = Table_Field_FieldOptions_descriptor_;
02567 metadata.reflection = Table_Field_FieldOptions_reflection_;
02568 return metadata;
02569 }
02570
02571
02572
02573
02574 #ifndef _MSC_VER
02575 const int Table_Field_FieldConstraints::kIsNullableFieldNumber;
02576 const int Table_Field_FieldConstraints::kIsUnsignedFieldNumber;
02577 const int Table_Field_FieldConstraints::kIsNotnullFieldNumber;
02578 const int Table_Field_FieldConstraints::kIsUniqueFieldNumber;
02579 const int Table_Field_FieldConstraints::kExpressionFieldNumber;
02580 #endif // !_MSC_VER
02581
02582 Table_Field_FieldConstraints::Table_Field_FieldConstraints()
02583 : ::google::protobuf::Message() {
02584 SharedCtor();
02585 }
02586
02587 void Table_Field_FieldConstraints::InitAsDefaultInstance() {
02588 }
02589
02590 Table_Field_FieldConstraints::Table_Field_FieldConstraints(const Table_Field_FieldConstraints& from)
02591 : ::google::protobuf::Message() {
02592 SharedCtor();
02593 MergeFrom(from);
02594 }
02595
02596 void Table_Field_FieldConstraints::SharedCtor() {
02597 _cached_size_ = 0;
02598 is_nullable_ = true;
02599 is_unsigned_ = false;
02600 is_notnull_ = false;
02601 is_unique_ = false;
02602 ::memset(_has_bits_, 0, sizeof(_has_bits_));
02603 }
02604
02605 Table_Field_FieldConstraints::~Table_Field_FieldConstraints() {
02606 SharedDtor();
02607 }
02608
02609 void Table_Field_FieldConstraints::SharedDtor() {
02610 if (this != default_instance_) {
02611 }
02612 }
02613
02614 void Table_Field_FieldConstraints::SetCachedSize(int size) const {
02615 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
02616 _cached_size_ = size;
02617 GOOGLE_SAFE_CONCURRENT_WRITES_END();
02618 }
02619 const ::google::protobuf::Descriptor* Table_Field_FieldConstraints::descriptor() {
02620 protobuf_AssignDescriptorsOnce();
02621 return Table_Field_FieldConstraints_descriptor_;
02622 }
02623
02624 const Table_Field_FieldConstraints& Table_Field_FieldConstraints::default_instance() {
02625 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto(); return *default_instance_;
02626 }
02627
02628 Table_Field_FieldConstraints* Table_Field_FieldConstraints::default_instance_ = NULL;
02629
02630 Table_Field_FieldConstraints* Table_Field_FieldConstraints::New() const {
02631 return new Table_Field_FieldConstraints;
02632 }
02633
02634 void Table_Field_FieldConstraints::Clear() {
02635 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
02636 is_nullable_ = true;
02637 is_unsigned_ = false;
02638 is_notnull_ = false;
02639 is_unique_ = false;
02640 }
02641 expression_.Clear();
02642 ::memset(_has_bits_, 0, sizeof(_has_bits_));
02643 mutable_unknown_fields()->Clear();
02644 }
02645
02646 bool Table_Field_FieldConstraints::MergePartialFromCodedStream(
02647 ::google::protobuf::io::CodedInputStream* input) {
02648 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
02649 ::google::protobuf::uint32 tag;
02650 while ((tag = input->ReadTag()) != 0) {
02651 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
02652
02653 case 1: {
02654 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
02655 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
02656 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
02657 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
02658 input, &is_nullable_)));
02659 set_has_is_nullable();
02660 } else {
02661 goto handle_uninterpreted;
02662 }
02663 if (input->ExpectTag(16)) goto parse_is_unsigned;
02664 break;
02665 }
02666
02667
02668 case 2: {
02669 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
02670 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
02671 parse_is_unsigned:
02672 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
02673 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
02674 input, &is_unsigned_)));
02675 set_has_is_unsigned();
02676 } else {
02677 goto handle_uninterpreted;
02678 }
02679 if (input->ExpectTag(24)) goto parse_is_notnull;
02680 break;
02681 }
02682
02683
02684 case 3: {
02685 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
02686 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
02687 parse_is_notnull:
02688 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
02689 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
02690 input, &is_notnull_)));
02691 set_has_is_notnull();
02692 } else {
02693 goto handle_uninterpreted;
02694 }
02695 if (input->ExpectTag(32)) goto parse_is_unique;
02696 break;
02697 }
02698
02699
02700 case 4: {
02701 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
02702 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
02703 parse_is_unique:
02704 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
02705 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
02706 input, &is_unique_)));
02707 set_has_is_unique();
02708 } else {
02709 goto handle_uninterpreted;
02710 }
02711 if (input->ExpectTag(130)) goto parse_expression;
02712 break;
02713 }
02714
02715
02716 case 16: {
02717 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
02718 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
02719 parse_expression:
02720 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
02721 input, this->add_expression()));
02722 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
02723 this->expression(0).data(), this->expression(0).length(),
02724 ::google::protobuf::internal::WireFormat::PARSE);
02725 } else {
02726 goto handle_uninterpreted;
02727 }
02728 if (input->ExpectTag(130)) goto parse_expression;
02729 if (input->ExpectAtEnd()) return true;
02730 break;
02731 }
02732
02733 default: {
02734 handle_uninterpreted:
02735 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
02736 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
02737 return true;
02738 }
02739 DO_(::google::protobuf::internal::WireFormat::SkipField(
02740 input, tag, mutable_unknown_fields()));
02741 break;
02742 }
02743 }
02744 }
02745 return true;
02746 #undef DO_
02747 }
02748
02749 void Table_Field_FieldConstraints::SerializeWithCachedSizes(
02750 ::google::protobuf::io::CodedOutputStream* output) const {
02751
02752 if (has_is_nullable()) {
02753 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is_nullable(), output);
02754 }
02755
02756
02757 if (has_is_unsigned()) {
02758 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_unsigned(), output);
02759 }
02760
02761
02762 if (has_is_notnull()) {
02763 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->is_notnull(), output);
02764 }
02765
02766
02767 if (has_is_unique()) {
02768 ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->is_unique(), output);
02769 }
02770
02771
02772 for (int i = 0; i < this->expression_size(); i++) {
02773 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
02774 this->expression(i).data(), this->expression(i).length(),
02775 ::google::protobuf::internal::WireFormat::SERIALIZE);
02776 ::google::protobuf::internal::WireFormatLite::WriteString(
02777 16, this->expression(i), output);
02778 }
02779
02780 if (!unknown_fields().empty()) {
02781 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
02782 unknown_fields(), output);
02783 }
02784 }
02785
02786 ::google::protobuf::uint8* Table_Field_FieldConstraints::SerializeWithCachedSizesToArray(
02787 ::google::protobuf::uint8* target) const {
02788
02789 if (has_is_nullable()) {
02790 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->is_nullable(), target);
02791 }
02792
02793
02794 if (has_is_unsigned()) {
02795 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_unsigned(), target);
02796 }
02797
02798
02799 if (has_is_notnull()) {
02800 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->is_notnull(), target);
02801 }
02802
02803
02804 if (has_is_unique()) {
02805 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->is_unique(), target);
02806 }
02807
02808
02809 for (int i = 0; i < this->expression_size(); i++) {
02810 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
02811 this->expression(i).data(), this->expression(i).length(),
02812 ::google::protobuf::internal::WireFormat::SERIALIZE);
02813 target = ::google::protobuf::internal::WireFormatLite::
02814 WriteStringToArray(16, this->expression(i), target);
02815 }
02816
02817 if (!unknown_fields().empty()) {
02818 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
02819 unknown_fields(), target);
02820 }
02821 return target;
02822 }
02823
02824 int Table_Field_FieldConstraints::ByteSize() const {
02825 int total_size = 0;
02826
02827 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
02828
02829 if (has_is_nullable()) {
02830 total_size += 1 + 1;
02831 }
02832
02833
02834 if (has_is_unsigned()) {
02835 total_size += 1 + 1;
02836 }
02837
02838
02839 if (has_is_notnull()) {
02840 total_size += 1 + 1;
02841 }
02842
02843
02844 if (has_is_unique()) {
02845 total_size += 1 + 1;
02846 }
02847
02848 }
02849
02850 total_size += 2 * this->expression_size();
02851 for (int i = 0; i < this->expression_size(); i++) {
02852 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
02853 this->expression(i));
02854 }
02855
02856 if (!unknown_fields().empty()) {
02857 total_size +=
02858 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
02859 unknown_fields());
02860 }
02861 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
02862 _cached_size_ = total_size;
02863 GOOGLE_SAFE_CONCURRENT_WRITES_END();
02864 return total_size;
02865 }
02866
02867 void Table_Field_FieldConstraints::MergeFrom(const ::google::protobuf::Message& from) {
02868 GOOGLE_CHECK_NE(&from, this);
02869 const Table_Field_FieldConstraints* source =
02870 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_FieldConstraints*>(
02871 &from);
02872 if (source == NULL) {
02873 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
02874 } else {
02875 MergeFrom(*source);
02876 }
02877 }
02878
02879 void Table_Field_FieldConstraints::MergeFrom(const Table_Field_FieldConstraints& from) {
02880 GOOGLE_CHECK_NE(&from, this);
02881 expression_.MergeFrom(from.expression_);
02882 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
02883 if (from.has_is_nullable()) {
02884 set_is_nullable(from.is_nullable());
02885 }
02886 if (from.has_is_unsigned()) {
02887 set_is_unsigned(from.is_unsigned());
02888 }
02889 if (from.has_is_notnull()) {
02890 set_is_notnull(from.is_notnull());
02891 }
02892 if (from.has_is_unique()) {
02893 set_is_unique(from.is_unique());
02894 }
02895 }
02896 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
02897 }
02898
02899 void Table_Field_FieldConstraints::CopyFrom(const ::google::protobuf::Message& from) {
02900 if (&from == this) return;
02901 Clear();
02902 MergeFrom(from);
02903 }
02904
02905 void Table_Field_FieldConstraints::CopyFrom(const Table_Field_FieldConstraints& from) {
02906 if (&from == this) return;
02907 Clear();
02908 MergeFrom(from);
02909 }
02910
02911 bool Table_Field_FieldConstraints::IsInitialized() const {
02912
02913 return true;
02914 }
02915
02916 void Table_Field_FieldConstraints::Swap(Table_Field_FieldConstraints* other) {
02917 if (other != this) {
02918 std::swap(is_nullable_, other->is_nullable_);
02919 std::swap(is_unsigned_, other->is_unsigned_);
02920 std::swap(is_notnull_, other->is_notnull_);
02921 std::swap(is_unique_, other->is_unique_);
02922 expression_.Swap(&other->expression_);
02923 std::swap(_has_bits_[0], other->_has_bits_[0]);
02924 _unknown_fields_.Swap(&other->_unknown_fields_);
02925 std::swap(_cached_size_, other->_cached_size_);
02926 }
02927 }
02928
02929 ::google::protobuf::Metadata Table_Field_FieldConstraints::GetMetadata() const {
02930 protobuf_AssignDescriptorsOnce();
02931 ::google::protobuf::Metadata metadata;
02932 metadata.descriptor = Table_Field_FieldConstraints_descriptor_;
02933 metadata.reflection = Table_Field_FieldConstraints_reflection_;
02934 return metadata;
02935 }
02936
02937
02938
02939
02940 #ifndef _MSC_VER
02941 const int Table_Field_NumericFieldOptions::kIsAutoincrementFieldNumber;
02942 const int Table_Field_NumericFieldOptions::kScaleFieldNumber;
02943 const int Table_Field_NumericFieldOptions::kPrecisionFieldNumber;
02944 #endif // !_MSC_VER
02945
02946 Table_Field_NumericFieldOptions::Table_Field_NumericFieldOptions()
02947 : ::google::protobuf::Message() {
02948 SharedCtor();
02949 }
02950
02951 void Table_Field_NumericFieldOptions::InitAsDefaultInstance() {
02952 }
02953
02954 Table_Field_NumericFieldOptions::Table_Field_NumericFieldOptions(const Table_Field_NumericFieldOptions& from)
02955 : ::google::protobuf::Message() {
02956 SharedCtor();
02957 MergeFrom(from);
02958 }
02959
02960 void Table_Field_NumericFieldOptions::SharedCtor() {
02961 _cached_size_ = 0;
02962 is_autoincrement_ = false;
02963 scale_ = 0u;
02964 precision_ = 0u;
02965 ::memset(_has_bits_, 0, sizeof(_has_bits_));
02966 }
02967
02968 Table_Field_NumericFieldOptions::~Table_Field_NumericFieldOptions() {
02969 SharedDtor();
02970 }
02971
02972 void Table_Field_NumericFieldOptions::SharedDtor() {
02973 if (this != default_instance_) {
02974 }
02975 }
02976
02977 void Table_Field_NumericFieldOptions::SetCachedSize(int size) const {
02978 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
02979 _cached_size_ = size;
02980 GOOGLE_SAFE_CONCURRENT_WRITES_END();
02981 }
02982 const ::google::protobuf::Descriptor* Table_Field_NumericFieldOptions::descriptor() {
02983 protobuf_AssignDescriptorsOnce();
02984 return Table_Field_NumericFieldOptions_descriptor_;
02985 }
02986
02987 const Table_Field_NumericFieldOptions& Table_Field_NumericFieldOptions::default_instance() {
02988 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto(); return *default_instance_;
02989 }
02990
02991 Table_Field_NumericFieldOptions* Table_Field_NumericFieldOptions::default_instance_ = NULL;
02992
02993 Table_Field_NumericFieldOptions* Table_Field_NumericFieldOptions::New() const {
02994 return new Table_Field_NumericFieldOptions;
02995 }
02996
02997 void Table_Field_NumericFieldOptions::Clear() {
02998 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
02999 is_autoincrement_ = false;
03000 scale_ = 0u;
03001 precision_ = 0u;
03002 }
03003 ::memset(_has_bits_, 0, sizeof(_has_bits_));
03004 mutable_unknown_fields()->Clear();
03005 }
03006
03007 bool Table_Field_NumericFieldOptions::MergePartialFromCodedStream(
03008 ::google::protobuf::io::CodedInputStream* input) {
03009 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
03010 ::google::protobuf::uint32 tag;
03011 while ((tag = input->ReadTag()) != 0) {
03012 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
03013
03014 case 1: {
03015 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
03016 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
03017 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
03018 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
03019 input, &is_autoincrement_)));
03020 set_has_is_autoincrement();
03021 } else {
03022 goto handle_uninterpreted;
03023 }
03024 if (input->ExpectTag(16)) goto parse_scale;
03025 break;
03026 }
03027
03028
03029 case 2: {
03030 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
03031 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
03032 parse_scale:
03033 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
03034 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
03035 input, &scale_)));
03036 set_has_scale();
03037 } else {
03038 goto handle_uninterpreted;
03039 }
03040 if (input->ExpectTag(24)) goto parse_precision;
03041 break;
03042 }
03043
03044
03045 case 3: {
03046 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
03047 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
03048 parse_precision:
03049 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
03050 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
03051 input, &precision_)));
03052 set_has_precision();
03053 } else {
03054 goto handle_uninterpreted;
03055 }
03056 if (input->ExpectAtEnd()) return true;
03057 break;
03058 }
03059
03060 default: {
03061 handle_uninterpreted:
03062 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
03063 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
03064 return true;
03065 }
03066 DO_(::google::protobuf::internal::WireFormat::SkipField(
03067 input, tag, mutable_unknown_fields()));
03068 break;
03069 }
03070 }
03071 }
03072 return true;
03073 #undef DO_
03074 }
03075
03076 void Table_Field_NumericFieldOptions::SerializeWithCachedSizes(
03077 ::google::protobuf::io::CodedOutputStream* output) const {
03078
03079 if (has_is_autoincrement()) {
03080 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is_autoincrement(), output);
03081 }
03082
03083
03084 if (has_scale()) {
03085 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->scale(), output);
03086 }
03087
03088
03089 if (has_precision()) {
03090 ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->precision(), output);
03091 }
03092
03093 if (!unknown_fields().empty()) {
03094 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
03095 unknown_fields(), output);
03096 }
03097 }
03098
03099 ::google::protobuf::uint8* Table_Field_NumericFieldOptions::SerializeWithCachedSizesToArray(
03100 ::google::protobuf::uint8* target) const {
03101
03102 if (has_is_autoincrement()) {
03103 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->is_autoincrement(), target);
03104 }
03105
03106
03107 if (has_scale()) {
03108 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->scale(), target);
03109 }
03110
03111
03112 if (has_precision()) {
03113 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->precision(), target);
03114 }
03115
03116 if (!unknown_fields().empty()) {
03117 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
03118 unknown_fields(), target);
03119 }
03120 return target;
03121 }
03122
03123 int Table_Field_NumericFieldOptions::ByteSize() const {
03124 int total_size = 0;
03125
03126 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
03127
03128 if (has_is_autoincrement()) {
03129 total_size += 1 + 1;
03130 }
03131
03132
03133 if (has_scale()) {
03134 total_size += 1 +
03135 ::google::protobuf::internal::WireFormatLite::UInt32Size(
03136 this->scale());
03137 }
03138
03139
03140 if (has_precision()) {
03141 total_size += 1 +
03142 ::google::protobuf::internal::WireFormatLite::UInt32Size(
03143 this->precision());
03144 }
03145
03146 }
03147 if (!unknown_fields().empty()) {
03148 total_size +=
03149 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
03150 unknown_fields());
03151 }
03152 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
03153 _cached_size_ = total_size;
03154 GOOGLE_SAFE_CONCURRENT_WRITES_END();
03155 return total_size;
03156 }
03157
03158 void Table_Field_NumericFieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
03159 GOOGLE_CHECK_NE(&from, this);
03160 const Table_Field_NumericFieldOptions* source =
03161 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_NumericFieldOptions*>(
03162 &from);
03163 if (source == NULL) {
03164 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
03165 } else {
03166 MergeFrom(*source);
03167 }
03168 }
03169
03170 void Table_Field_NumericFieldOptions::MergeFrom(const Table_Field_NumericFieldOptions& from) {
03171 GOOGLE_CHECK_NE(&from, this);
03172 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
03173 if (from.has_is_autoincrement()) {
03174 set_is_autoincrement(from.is_autoincrement());
03175 }
03176 if (from.has_scale()) {
03177 set_scale(from.scale());
03178 }
03179 if (from.has_precision()) {
03180 set_precision(from.precision());
03181 }
03182 }
03183 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
03184 }
03185
03186 void Table_Field_NumericFieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
03187 if (&from == this) return;
03188 Clear();
03189 MergeFrom(from);
03190 }
03191
03192 void Table_Field_NumericFieldOptions::CopyFrom(const Table_Field_NumericFieldOptions& from) {
03193 if (&from == this) return;
03194 Clear();
03195 MergeFrom(from);
03196 }
03197
03198 bool Table_Field_NumericFieldOptions::IsInitialized() const {
03199
03200 return true;
03201 }
03202
03203 void Table_Field_NumericFieldOptions::Swap(Table_Field_NumericFieldOptions* other) {
03204 if (other != this) {
03205 std::swap(is_autoincrement_, other->is_autoincrement_);
03206 std::swap(scale_, other->scale_);
03207 std::swap(precision_, other->precision_);
03208 std::swap(_has_bits_[0], other->_has_bits_[0]);
03209 _unknown_fields_.Swap(&other->_unknown_fields_);
03210 std::swap(_cached_size_, other->_cached_size_);
03211 }
03212 }
03213
03214 ::google::protobuf::Metadata Table_Field_NumericFieldOptions::GetMetadata() const {
03215 protobuf_AssignDescriptorsOnce();
03216 ::google::protobuf::Metadata metadata;
03217 metadata.descriptor = Table_Field_NumericFieldOptions_descriptor_;
03218 metadata.reflection = Table_Field_NumericFieldOptions_reflection_;
03219 return metadata;
03220 }
03221
03222
03223
03224
03225 #ifndef _MSC_VER
03226 const int Table_Field_StringFieldOptions::kIsFixedWidthFieldNumber;
03227 const int Table_Field_StringFieldOptions::kLengthFieldNumber;
03228 const int Table_Field_StringFieldOptions::kCollationIdFieldNumber;
03229 const int Table_Field_StringFieldOptions::kCollationFieldNumber;
03230 #endif // !_MSC_VER
03231
03232 Table_Field_StringFieldOptions::Table_Field_StringFieldOptions()
03233 : ::google::protobuf::Message() {
03234 SharedCtor();
03235 }
03236
03237 void Table_Field_StringFieldOptions::InitAsDefaultInstance() {
03238 }
03239
03240 Table_Field_StringFieldOptions::Table_Field_StringFieldOptions(const Table_Field_StringFieldOptions& from)
03241 : ::google::protobuf::Message() {
03242 SharedCtor();
03243 MergeFrom(from);
03244 }
03245
03246 void Table_Field_StringFieldOptions::SharedCtor() {
03247 _cached_size_ = 0;
03248 is_fixed_width_ = false;
03249 length_ = 0u;
03250 collation_id_ = 0u;
03251 collation_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
03252 ::memset(_has_bits_, 0, sizeof(_has_bits_));
03253 }
03254
03255 Table_Field_StringFieldOptions::~Table_Field_StringFieldOptions() {
03256 SharedDtor();
03257 }
03258
03259 void Table_Field_StringFieldOptions::SharedDtor() {
03260 if (collation_ != &::google::protobuf::internal::kEmptyString) {
03261 delete collation_;
03262 }
03263 if (this != default_instance_) {
03264 }
03265 }
03266
03267 void Table_Field_StringFieldOptions::SetCachedSize(int size) const {
03268 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
03269 _cached_size_ = size;
03270 GOOGLE_SAFE_CONCURRENT_WRITES_END();
03271 }
03272 const ::google::protobuf::Descriptor* Table_Field_StringFieldOptions::descriptor() {
03273 protobuf_AssignDescriptorsOnce();
03274 return Table_Field_StringFieldOptions_descriptor_;
03275 }
03276
03277 const Table_Field_StringFieldOptions& Table_Field_StringFieldOptions::default_instance() {
03278 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto(); return *default_instance_;
03279 }
03280
03281 Table_Field_StringFieldOptions* Table_Field_StringFieldOptions::default_instance_ = NULL;
03282
03283 Table_Field_StringFieldOptions* Table_Field_StringFieldOptions::New() const {
03284 return new Table_Field_StringFieldOptions;
03285 }
03286
03287 void Table_Field_StringFieldOptions::Clear() {
03288 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
03289 is_fixed_width_ = false;
03290 length_ = 0u;
03291 collation_id_ = 0u;
03292 if (has_collation()) {
03293 if (collation_ != &::google::protobuf::internal::kEmptyString) {
03294 collation_->clear();
03295 }
03296 }
03297 }
03298 ::memset(_has_bits_, 0, sizeof(_has_bits_));
03299 mutable_unknown_fields()->Clear();
03300 }
03301
03302 bool Table_Field_StringFieldOptions::MergePartialFromCodedStream(
03303 ::google::protobuf::io::CodedInputStream* input) {
03304 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
03305 ::google::protobuf::uint32 tag;
03306 while ((tag = input->ReadTag()) != 0) {
03307 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
03308
03309 case 1: {
03310 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
03311 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
03312 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
03313 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
03314 input, &is_fixed_width_)));
03315 set_has_is_fixed_width();
03316 } else {
03317 goto handle_uninterpreted;
03318 }
03319 if (input->ExpectTag(16)) goto parse_length;
03320 break;
03321 }
03322
03323
03324 case 2: {
03325 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
03326 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
03327 parse_length:
03328 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
03329 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
03330 input, &length_)));
03331 set_has_length();
03332 } else {
03333 goto handle_uninterpreted;
03334 }
03335 if (input->ExpectTag(24)) goto parse_collation_id;
03336 break;
03337 }
03338
03339
03340 case 3: {
03341 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
03342 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
03343 parse_collation_id:
03344 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
03345 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
03346 input, &collation_id_)));
03347 set_has_collation_id();
03348 } else {
03349 goto handle_uninterpreted;
03350 }
03351 if (input->ExpectTag(34)) goto parse_collation;
03352 break;
03353 }
03354
03355
03356 case 4: {
03357 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
03358 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
03359 parse_collation:
03360 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
03361 input, this->mutable_collation()));
03362 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
03363 this->collation().data(), this->collation().length(),
03364 ::google::protobuf::internal::WireFormat::PARSE);
03365 } else {
03366 goto handle_uninterpreted;
03367 }
03368 if (input->ExpectAtEnd()) return true;
03369 break;
03370 }
03371
03372 default: {
03373 handle_uninterpreted:
03374 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
03375 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
03376 return true;
03377 }
03378 DO_(::google::protobuf::internal::WireFormat::SkipField(
03379 input, tag, mutable_unknown_fields()));
03380 break;
03381 }
03382 }
03383 }
03384 return true;
03385 #undef DO_
03386 }
03387
03388 void Table_Field_StringFieldOptions::SerializeWithCachedSizes(
03389 ::google::protobuf::io::CodedOutputStream* output) const {
03390
03391 if (has_is_fixed_width()) {
03392 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is_fixed_width(), output);
03393 }
03394
03395
03396 if (has_length()) {
03397 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->length(), output);
03398 }
03399
03400
03401 if (has_collation_id()) {
03402 ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->collation_id(), output);
03403 }
03404
03405
03406 if (has_collation()) {
03407 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
03408 this->collation().data(), this->collation().length(),
03409 ::google::protobuf::internal::WireFormat::SERIALIZE);
03410 ::google::protobuf::internal::WireFormatLite::WriteString(
03411 4, this->collation(), output);
03412 }
03413
03414 if (!unknown_fields().empty()) {
03415 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
03416 unknown_fields(), output);
03417 }
03418 }
03419
03420 ::google::protobuf::uint8* Table_Field_StringFieldOptions::SerializeWithCachedSizesToArray(
03421 ::google::protobuf::uint8* target) const {
03422
03423 if (has_is_fixed_width()) {
03424 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->is_fixed_width(), target);
03425 }
03426
03427
03428 if (has_length()) {
03429 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->length(), target);
03430 }
03431
03432
03433 if (has_collation_id()) {
03434 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->collation_id(), target);
03435 }
03436
03437
03438 if (has_collation()) {
03439 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
03440 this->collation().data(), this->collation().length(),
03441 ::google::protobuf::internal::WireFormat::SERIALIZE);
03442 target =
03443 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
03444 4, this->collation(), target);
03445 }
03446
03447 if (!unknown_fields().empty()) {
03448 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
03449 unknown_fields(), target);
03450 }
03451 return target;
03452 }
03453
03454 int Table_Field_StringFieldOptions::ByteSize() const {
03455 int total_size = 0;
03456
03457 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
03458
03459 if (has_is_fixed_width()) {
03460 total_size += 1 + 1;
03461 }
03462
03463
03464 if (has_length()) {
03465 total_size += 1 +
03466 ::google::protobuf::internal::WireFormatLite::UInt32Size(
03467 this->length());
03468 }
03469
03470
03471 if (has_collation_id()) {
03472 total_size += 1 +
03473 ::google::protobuf::internal::WireFormatLite::UInt32Size(
03474 this->collation_id());
03475 }
03476
03477
03478 if (has_collation()) {
03479 total_size += 1 +
03480 ::google::protobuf::internal::WireFormatLite::StringSize(
03481 this->collation());
03482 }
03483
03484 }
03485 if (!unknown_fields().empty()) {
03486 total_size +=
03487 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
03488 unknown_fields());
03489 }
03490 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
03491 _cached_size_ = total_size;
03492 GOOGLE_SAFE_CONCURRENT_WRITES_END();
03493 return total_size;
03494 }
03495
03496 void Table_Field_StringFieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
03497 GOOGLE_CHECK_NE(&from, this);
03498 const Table_Field_StringFieldOptions* source =
03499 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_StringFieldOptions*>(
03500 &from);
03501 if (source == NULL) {
03502 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
03503 } else {
03504 MergeFrom(*source);
03505 }
03506 }
03507
03508 void Table_Field_StringFieldOptions::MergeFrom(const Table_Field_StringFieldOptions& from) {
03509 GOOGLE_CHECK_NE(&from, this);
03510 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
03511 if (from.has_is_fixed_width()) {
03512 set_is_fixed_width(from.is_fixed_width());
03513 }
03514 if (from.has_length()) {
03515 set_length(from.length());
03516 }
03517 if (from.has_collation_id()) {
03518 set_collation_id(from.collation_id());
03519 }
03520 if (from.has_collation()) {
03521 set_collation(from.collation());
03522 }
03523 }
03524 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
03525 }
03526
03527 void Table_Field_StringFieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
03528 if (&from == this) return;
03529 Clear();
03530 MergeFrom(from);
03531 }
03532
03533 void Table_Field_StringFieldOptions::CopyFrom(const Table_Field_StringFieldOptions& from) {
03534 if (&from == this) return;
03535 Clear();
03536 MergeFrom(from);
03537 }
03538
03539 bool Table_Field_StringFieldOptions::IsInitialized() const {
03540
03541 return true;
03542 }
03543
03544 void Table_Field_StringFieldOptions::Swap(Table_Field_StringFieldOptions* other) {
03545 if (other != this) {
03546 std::swap(is_fixed_width_, other->is_fixed_width_);
03547 std::swap(length_, other->length_);
03548 std::swap(collation_id_, other->collation_id_);
03549 std::swap(collation_, other->collation_);
03550 std::swap(_has_bits_[0], other->_has_bits_[0]);
03551 _unknown_fields_.Swap(&other->_unknown_fields_);
03552 std::swap(_cached_size_, other->_cached_size_);
03553 }
03554 }
03555
03556 ::google::protobuf::Metadata Table_Field_StringFieldOptions::GetMetadata() const {
03557 protobuf_AssignDescriptorsOnce();
03558 ::google::protobuf::Metadata metadata;
03559 metadata.descriptor = Table_Field_StringFieldOptions_descriptor_;
03560 metadata.reflection = Table_Field_StringFieldOptions_reflection_;
03561 return metadata;
03562 }
03563
03564
03565
03566
03567 #ifndef _MSC_VER
03568 const int Table_Field_EnumerationValues::kCollationIdFieldNumber;
03569 const int Table_Field_EnumerationValues::kCollationFieldNumber;
03570 const int Table_Field_EnumerationValues::kFieldValueFieldNumber;
03571 #endif // !_MSC_VER
03572
03573 Table_Field_EnumerationValues::Table_Field_EnumerationValues()
03574 : ::google::protobuf::Message() {
03575 SharedCtor();
03576 }
03577
03578 void Table_Field_EnumerationValues::InitAsDefaultInstance() {
03579 }
03580
03581 Table_Field_EnumerationValues::Table_Field_EnumerationValues(const Table_Field_EnumerationValues& from)
03582 : ::google::protobuf::Message() {
03583 SharedCtor();
03584 MergeFrom(from);
03585 }
03586
03587 void Table_Field_EnumerationValues::SharedCtor() {
03588 _cached_size_ = 0;
03589 collation_id_ = 0u;
03590 collation_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
03591 ::memset(_has_bits_, 0, sizeof(_has_bits_));
03592 }
03593
03594 Table_Field_EnumerationValues::~Table_Field_EnumerationValues() {
03595 SharedDtor();
03596 }
03597
03598 void Table_Field_EnumerationValues::SharedDtor() {
03599 if (collation_ != &::google::protobuf::internal::kEmptyString) {
03600 delete collation_;
03601 }
03602 if (this != default_instance_) {
03603 }
03604 }
03605
03606 void Table_Field_EnumerationValues::SetCachedSize(int size) const {
03607 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
03608 _cached_size_ = size;
03609 GOOGLE_SAFE_CONCURRENT_WRITES_END();
03610 }
03611 const ::google::protobuf::Descriptor* Table_Field_EnumerationValues::descriptor() {
03612 protobuf_AssignDescriptorsOnce();
03613 return Table_Field_EnumerationValues_descriptor_;
03614 }
03615
03616 const Table_Field_EnumerationValues& Table_Field_EnumerationValues::default_instance() {
03617 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto(); return *default_instance_;
03618 }
03619
03620 Table_Field_EnumerationValues* Table_Field_EnumerationValues::default_instance_ = NULL;
03621
03622 Table_Field_EnumerationValues* Table_Field_EnumerationValues::New() const {
03623 return new Table_Field_EnumerationValues;
03624 }
03625
03626 void Table_Field_EnumerationValues::Clear() {
03627 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
03628 collation_id_ = 0u;
03629 if (has_collation()) {
03630 if (collation_ != &::google::protobuf::internal::kEmptyString) {
03631 collation_->clear();
03632 }
03633 }
03634 }
03635 field_value_.Clear();
03636 ::memset(_has_bits_, 0, sizeof(_has_bits_));
03637 mutable_unknown_fields()->Clear();
03638 }
03639
03640 bool Table_Field_EnumerationValues::MergePartialFromCodedStream(
03641 ::google::protobuf::io::CodedInputStream* input) {
03642 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
03643 ::google::protobuf::uint32 tag;
03644 while ((tag = input->ReadTag()) != 0) {
03645 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
03646
03647 case 2: {
03648 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
03649 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
03650 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
03651 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
03652 input, &collation_id_)));
03653 set_has_collation_id();
03654 } else {
03655 goto handle_uninterpreted;
03656 }
03657 if (input->ExpectTag(26)) goto parse_collation;
03658 break;
03659 }
03660
03661
03662 case 3: {
03663 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
03664 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
03665 parse_collation:
03666 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
03667 input, this->mutable_collation()));
03668 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
03669 this->collation().data(), this->collation().length(),
03670 ::google::protobuf::internal::WireFormat::PARSE);
03671 } else {
03672 goto handle_uninterpreted;
03673 }
03674 if (input->ExpectTag(34)) goto parse_field_value;
03675 break;
03676 }
03677
03678
03679 case 4: {
03680 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
03681 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
03682 parse_field_value:
03683 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
03684 input, this->add_field_value()));
03685 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
03686 this->field_value(0).data(), this->field_value(0).length(),
03687 ::google::protobuf::internal::WireFormat::PARSE);
03688 } else {
03689 goto handle_uninterpreted;
03690 }
03691 if (input->ExpectTag(34)) goto parse_field_value;
03692 if (input->ExpectAtEnd()) return true;
03693 break;
03694 }
03695
03696 default: {
03697 handle_uninterpreted:
03698 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
03699 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
03700 return true;
03701 }
03702 DO_(::google::protobuf::internal::WireFormat::SkipField(
03703 input, tag, mutable_unknown_fields()));
03704 break;
03705 }
03706 }
03707 }
03708 return true;
03709 #undef DO_
03710 }
03711
03712 void Table_Field_EnumerationValues::SerializeWithCachedSizes(
03713 ::google::protobuf::io::CodedOutputStream* output) const {
03714
03715 if (has_collation_id()) {
03716 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->collation_id(), output);
03717 }
03718
03719
03720 if (has_collation()) {
03721 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
03722 this->collation().data(), this->collation().length(),
03723 ::google::protobuf::internal::WireFormat::SERIALIZE);
03724 ::google::protobuf::internal::WireFormatLite::WriteString(
03725 3, this->collation(), output);
03726 }
03727
03728
03729 for (int i = 0; i < this->field_value_size(); i++) {
03730 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
03731 this->field_value(i).data(), this->field_value(i).length(),
03732 ::google::protobuf::internal::WireFormat::SERIALIZE);
03733 ::google::protobuf::internal::WireFormatLite::WriteString(
03734 4, this->field_value(i), output);
03735 }
03736
03737 if (!unknown_fields().empty()) {
03738 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
03739 unknown_fields(), output);
03740 }
03741 }
03742
03743 ::google::protobuf::uint8* Table_Field_EnumerationValues::SerializeWithCachedSizesToArray(
03744 ::google::protobuf::uint8* target) const {
03745
03746 if (has_collation_id()) {
03747 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->collation_id(), target);
03748 }
03749
03750
03751 if (has_collation()) {
03752 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
03753 this->collation().data(), this->collation().length(),
03754 ::google::protobuf::internal::WireFormat::SERIALIZE);
03755 target =
03756 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
03757 3, this->collation(), target);
03758 }
03759
03760
03761 for (int i = 0; i < this->field_value_size(); i++) {
03762 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
03763 this->field_value(i).data(), this->field_value(i).length(),
03764 ::google::protobuf::internal::WireFormat::SERIALIZE);
03765 target = ::google::protobuf::internal::WireFormatLite::
03766 WriteStringToArray(4, this->field_value(i), target);
03767 }
03768
03769 if (!unknown_fields().empty()) {
03770 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
03771 unknown_fields(), target);
03772 }
03773 return target;
03774 }
03775
03776 int Table_Field_EnumerationValues::ByteSize() const {
03777 int total_size = 0;
03778
03779 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
03780
03781 if (has_collation_id()) {
03782 total_size += 1 +
03783 ::google::protobuf::internal::WireFormatLite::UInt32Size(
03784 this->collation_id());
03785 }
03786
03787
03788 if (has_collation()) {
03789 total_size += 1 +
03790 ::google::protobuf::internal::WireFormatLite::StringSize(
03791 this->collation());
03792 }
03793
03794 }
03795
03796 total_size += 1 * this->field_value_size();
03797 for (int i = 0; i < this->field_value_size(); i++) {
03798 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
03799 this->field_value(i));
03800 }
03801
03802 if (!unknown_fields().empty()) {
03803 total_size +=
03804 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
03805 unknown_fields());
03806 }
03807 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
03808 _cached_size_ = total_size;
03809 GOOGLE_SAFE_CONCURRENT_WRITES_END();
03810 return total_size;
03811 }
03812
03813 void Table_Field_EnumerationValues::MergeFrom(const ::google::protobuf::Message& from) {
03814 GOOGLE_CHECK_NE(&from, this);
03815 const Table_Field_EnumerationValues* source =
03816 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_EnumerationValues*>(
03817 &from);
03818 if (source == NULL) {
03819 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
03820 } else {
03821 MergeFrom(*source);
03822 }
03823 }
03824
03825 void Table_Field_EnumerationValues::MergeFrom(const Table_Field_EnumerationValues& from) {
03826 GOOGLE_CHECK_NE(&from, this);
03827 field_value_.MergeFrom(from.field_value_);
03828 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
03829 if (from.has_collation_id()) {
03830 set_collation_id(from.collation_id());
03831 }
03832 if (from.has_collation()) {
03833 set_collation(from.collation());
03834 }
03835 }
03836 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
03837 }
03838
03839 void Table_Field_EnumerationValues::CopyFrom(const ::google::protobuf::Message& from) {
03840 if (&from == this) return;
03841 Clear();
03842 MergeFrom(from);
03843 }
03844
03845 void Table_Field_EnumerationValues::CopyFrom(const Table_Field_EnumerationValues& from) {
03846 if (&from == this) return;
03847 Clear();
03848 MergeFrom(from);
03849 }
03850
03851 bool Table_Field_EnumerationValues::IsInitialized() const {
03852
03853 return true;
03854 }
03855
03856 void Table_Field_EnumerationValues::Swap(Table_Field_EnumerationValues* other) {
03857 if (other != this) {
03858 std::swap(collation_id_, other->collation_id_);
03859 std::swap(collation_, other->collation_);
03860 field_value_.Swap(&other->field_value_);
03861 std::swap(_has_bits_[0], other->_has_bits_[0]);
03862 _unknown_fields_.Swap(&other->_unknown_fields_);
03863 std::swap(_cached_size_, other->_cached_size_);
03864 }
03865 }
03866
03867 ::google::protobuf::Metadata Table_Field_EnumerationValues::GetMetadata() const {
03868 protobuf_AssignDescriptorsOnce();
03869 ::google::protobuf::Metadata metadata;
03870 metadata.descriptor = Table_Field_EnumerationValues_descriptor_;
03871 metadata.reflection = Table_Field_EnumerationValues_reflection_;
03872 return metadata;
03873 }
03874
03875
03876
03877
03878 #ifndef _MSC_VER
03879 const int Table_Field_TimeFieldOptions::kMicrosecondsFieldNumber;
03880 #endif // !_MSC_VER
03881
03882 Table_Field_TimeFieldOptions::Table_Field_TimeFieldOptions()
03883 : ::google::protobuf::Message() {
03884 SharedCtor();
03885 }
03886
03887 void Table_Field_TimeFieldOptions::InitAsDefaultInstance() {
03888 }
03889
03890 Table_Field_TimeFieldOptions::Table_Field_TimeFieldOptions(const Table_Field_TimeFieldOptions& from)
03891 : ::google::protobuf::Message() {
03892 SharedCtor();
03893 MergeFrom(from);
03894 }
03895
03896 void Table_Field_TimeFieldOptions::SharedCtor() {
03897 _cached_size_ = 0;
03898 microseconds_ = false;
03899 ::memset(_has_bits_, 0, sizeof(_has_bits_));
03900 }
03901
03902 Table_Field_TimeFieldOptions::~Table_Field_TimeFieldOptions() {
03903 SharedDtor();
03904 }
03905
03906 void Table_Field_TimeFieldOptions::SharedDtor() {
03907 if (this != default_instance_) {
03908 }
03909 }
03910
03911 void Table_Field_TimeFieldOptions::SetCachedSize(int size) const {
03912 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
03913 _cached_size_ = size;
03914 GOOGLE_SAFE_CONCURRENT_WRITES_END();
03915 }
03916 const ::google::protobuf::Descriptor* Table_Field_TimeFieldOptions::descriptor() {
03917 protobuf_AssignDescriptorsOnce();
03918 return Table_Field_TimeFieldOptions_descriptor_;
03919 }
03920
03921 const Table_Field_TimeFieldOptions& Table_Field_TimeFieldOptions::default_instance() {
03922 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto(); return *default_instance_;
03923 }
03924
03925 Table_Field_TimeFieldOptions* Table_Field_TimeFieldOptions::default_instance_ = NULL;
03926
03927 Table_Field_TimeFieldOptions* Table_Field_TimeFieldOptions::New() const {
03928 return new Table_Field_TimeFieldOptions;
03929 }
03930
03931 void Table_Field_TimeFieldOptions::Clear() {
03932 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
03933 microseconds_ = false;
03934 }
03935 ::memset(_has_bits_, 0, sizeof(_has_bits_));
03936 mutable_unknown_fields()->Clear();
03937 }
03938
03939 bool Table_Field_TimeFieldOptions::MergePartialFromCodedStream(
03940 ::google::protobuf::io::CodedInputStream* input) {
03941 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
03942 ::google::protobuf::uint32 tag;
03943 while ((tag = input->ReadTag()) != 0) {
03944 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
03945
03946 case 1: {
03947 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
03948 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
03949 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
03950 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
03951 input, µseconds_)));
03952 set_has_microseconds();
03953 } else {
03954 goto handle_uninterpreted;
03955 }
03956 if (input->ExpectAtEnd()) return true;
03957 break;
03958 }
03959
03960 default: {
03961 handle_uninterpreted:
03962 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
03963 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
03964 return true;
03965 }
03966 DO_(::google::protobuf::internal::WireFormat::SkipField(
03967 input, tag, mutable_unknown_fields()));
03968 break;
03969 }
03970 }
03971 }
03972 return true;
03973 #undef DO_
03974 }
03975
03976 void Table_Field_TimeFieldOptions::SerializeWithCachedSizes(
03977 ::google::protobuf::io::CodedOutputStream* output) const {
03978
03979 if (has_microseconds()) {
03980 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->microseconds(), output);
03981 }
03982
03983 if (!unknown_fields().empty()) {
03984 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
03985 unknown_fields(), output);
03986 }
03987 }
03988
03989 ::google::protobuf::uint8* Table_Field_TimeFieldOptions::SerializeWithCachedSizesToArray(
03990 ::google::protobuf::uint8* target) const {
03991
03992 if (has_microseconds()) {
03993 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->microseconds(), target);
03994 }
03995
03996 if (!unknown_fields().empty()) {
03997 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
03998 unknown_fields(), target);
03999 }
04000 return target;
04001 }
04002
04003 int Table_Field_TimeFieldOptions::ByteSize() const {
04004 int total_size = 0;
04005
04006 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
04007
04008 if (has_microseconds()) {
04009 total_size += 1 + 1;
04010 }
04011
04012 }
04013 if (!unknown_fields().empty()) {
04014 total_size +=
04015 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
04016 unknown_fields());
04017 }
04018 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
04019 _cached_size_ = total_size;
04020 GOOGLE_SAFE_CONCURRENT_WRITES_END();
04021 return total_size;
04022 }
04023
04024 void Table_Field_TimeFieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
04025 GOOGLE_CHECK_NE(&from, this);
04026 const Table_Field_TimeFieldOptions* source =
04027 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field_TimeFieldOptions*>(
04028 &from);
04029 if (source == NULL) {
04030 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
04031 } else {
04032 MergeFrom(*source);
04033 }
04034 }
04035
04036 void Table_Field_TimeFieldOptions::MergeFrom(const Table_Field_TimeFieldOptions& from) {
04037 GOOGLE_CHECK_NE(&from, this);
04038 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
04039 if (from.has_microseconds()) {
04040 set_microseconds(from.microseconds());
04041 }
04042 }
04043 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
04044 }
04045
04046 void Table_Field_TimeFieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
04047 if (&from == this) return;
04048 Clear();
04049 MergeFrom(from);
04050 }
04051
04052 void Table_Field_TimeFieldOptions::CopyFrom(const Table_Field_TimeFieldOptions& from) {
04053 if (&from == this) return;
04054 Clear();
04055 MergeFrom(from);
04056 }
04057
04058 bool Table_Field_TimeFieldOptions::IsInitialized() const {
04059
04060 return true;
04061 }
04062
04063 void Table_Field_TimeFieldOptions::Swap(Table_Field_TimeFieldOptions* other) {
04064 if (other != this) {
04065 std::swap(microseconds_, other->microseconds_);
04066 std::swap(_has_bits_[0], other->_has_bits_[0]);
04067 _unknown_fields_.Swap(&other->_unknown_fields_);
04068 std::swap(_cached_size_, other->_cached_size_);
04069 }
04070 }
04071
04072 ::google::protobuf::Metadata Table_Field_TimeFieldOptions::GetMetadata() const {
04073 protobuf_AssignDescriptorsOnce();
04074 ::google::protobuf::Metadata metadata;
04075 metadata.descriptor = Table_Field_TimeFieldOptions_descriptor_;
04076 metadata.reflection = Table_Field_TimeFieldOptions_reflection_;
04077 return metadata;
04078 }
04079
04080
04081
04082
04083 #ifndef _MSC_VER
04084 const int Table_Field::kNameFieldNumber;
04085 const int Table_Field::kTypeFieldNumber;
04086 const int Table_Field::kOptionsFieldNumber;
04087 const int Table_Field::kConstraintsFieldNumber;
04088 const int Table_Field::kNumericOptionsFieldNumber;
04089 const int Table_Field::kStringOptionsFieldNumber;
04090 const int Table_Field::kTimeOptionsFieldNumber;
04091 const int Table_Field::kCommentFieldNumber;
04092 const int Table_Field::kEnumerationValuesFieldNumber;
04093 #endif // !_MSC_VER
04094
04095 Table_Field::Table_Field()
04096 : ::google::protobuf::Message() {
04097 SharedCtor();
04098 }
04099
04100 void Table_Field::InitAsDefaultInstance() {
04101 options_ = const_cast< ::drizzled::message::Table_Field_FieldOptions*>(&::drizzled::message::Table_Field_FieldOptions::default_instance());
04102 constraints_ = const_cast< ::drizzled::message::Table_Field_FieldConstraints*>(&::drizzled::message::Table_Field_FieldConstraints::default_instance());
04103 numeric_options_ = const_cast< ::drizzled::message::Table_Field_NumericFieldOptions*>(&::drizzled::message::Table_Field_NumericFieldOptions::default_instance());
04104 string_options_ = const_cast< ::drizzled::message::Table_Field_StringFieldOptions*>(&::drizzled::message::Table_Field_StringFieldOptions::default_instance());
04105 time_options_ = const_cast< ::drizzled::message::Table_Field_TimeFieldOptions*>(&::drizzled::message::Table_Field_TimeFieldOptions::default_instance());
04106 enumeration_values_ = const_cast< ::drizzled::message::Table_Field_EnumerationValues*>(&::drizzled::message::Table_Field_EnumerationValues::default_instance());
04107 }
04108
04109 Table_Field::Table_Field(const Table_Field& from)
04110 : ::google::protobuf::Message() {
04111 SharedCtor();
04112 MergeFrom(from);
04113 }
04114
04115 void Table_Field::SharedCtor() {
04116 _cached_size_ = 0;
04117 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
04118 type_ = 0;
04119 options_ = NULL;
04120 constraints_ = NULL;
04121 numeric_options_ = NULL;
04122 string_options_ = NULL;
04123 time_options_ = NULL;
04124 comment_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
04125 enumeration_values_ = NULL;
04126 ::memset(_has_bits_, 0, sizeof(_has_bits_));
04127 }
04128
04129 Table_Field::~Table_Field() {
04130 SharedDtor();
04131 }
04132
04133 void Table_Field::SharedDtor() {
04134 if (name_ != &::google::protobuf::internal::kEmptyString) {
04135 delete name_;
04136 }
04137 if (comment_ != &::google::protobuf::internal::kEmptyString) {
04138 delete comment_;
04139 }
04140 if (this != default_instance_) {
04141 delete options_;
04142 delete constraints_;
04143 delete numeric_options_;
04144 delete string_options_;
04145 delete time_options_;
04146 delete enumeration_values_;
04147 }
04148 }
04149
04150 void Table_Field::SetCachedSize(int size) const {
04151 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
04152 _cached_size_ = size;
04153 GOOGLE_SAFE_CONCURRENT_WRITES_END();
04154 }
04155 const ::google::protobuf::Descriptor* Table_Field::descriptor() {
04156 protobuf_AssignDescriptorsOnce();
04157 return Table_Field_descriptor_;
04158 }
04159
04160 const Table_Field& Table_Field::default_instance() {
04161 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto(); return *default_instance_;
04162 }
04163
04164 Table_Field* Table_Field::default_instance_ = NULL;
04165
04166 Table_Field* Table_Field::New() const {
04167 return new Table_Field;
04168 }
04169
04170 void Table_Field::Clear() {
04171 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
04172 if (has_name()) {
04173 if (name_ != &::google::protobuf::internal::kEmptyString) {
04174 name_->clear();
04175 }
04176 }
04177 type_ = 0;
04178 if (has_options()) {
04179 if (options_ != NULL) options_->::drizzled::message::Table_Field_FieldOptions::Clear();
04180 }
04181 if (has_constraints()) {
04182 if (constraints_ != NULL) constraints_->::drizzled::message::Table_Field_FieldConstraints::Clear();
04183 }
04184 if (has_numeric_options()) {
04185 if (numeric_options_ != NULL) numeric_options_->::drizzled::message::Table_Field_NumericFieldOptions::Clear();
04186 }
04187 if (has_string_options()) {
04188 if (string_options_ != NULL) string_options_->::drizzled::message::Table_Field_StringFieldOptions::Clear();
04189 }
04190 if (has_time_options()) {
04191 if (time_options_ != NULL) time_options_->::drizzled::message::Table_Field_TimeFieldOptions::Clear();
04192 }
04193 if (has_comment()) {
04194 if (comment_ != &::google::protobuf::internal::kEmptyString) {
04195 comment_->clear();
04196 }
04197 }
04198 }
04199 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
04200 if (has_enumeration_values()) {
04201 if (enumeration_values_ != NULL) enumeration_values_->::drizzled::message::Table_Field_EnumerationValues::Clear();
04202 }
04203 }
04204 ::memset(_has_bits_, 0, sizeof(_has_bits_));
04205 mutable_unknown_fields()->Clear();
04206 }
04207
04208 bool Table_Field::MergePartialFromCodedStream(
04209 ::google::protobuf::io::CodedInputStream* input) {
04210 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
04211 ::google::protobuf::uint32 tag;
04212 while ((tag = input->ReadTag()) != 0) {
04213 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
04214
04215 case 1: {
04216 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
04217 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
04218 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
04219 input, this->mutable_name()));
04220 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
04221 this->name().data(), this->name().length(),
04222 ::google::protobuf::internal::WireFormat::PARSE);
04223 } else {
04224 goto handle_uninterpreted;
04225 }
04226 if (input->ExpectTag(16)) goto parse_type;
04227 break;
04228 }
04229
04230
04231 case 2: {
04232 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
04233 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
04234 parse_type:
04235 int value;
04236 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
04237 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
04238 input, &value)));
04239 if (::drizzled::message::Table_Field_FieldType_IsValid(value)) {
04240 set_type(static_cast< ::drizzled::message::Table_Field_FieldType >(value));
04241 } else {
04242 mutable_unknown_fields()->AddVarint(2, value);
04243 }
04244 } else {
04245 goto handle_uninterpreted;
04246 }
04247 if (input->ExpectTag(34)) goto parse_options;
04248 break;
04249 }
04250
04251
04252 case 4: {
04253 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
04254 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
04255 parse_options:
04256 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
04257 input, mutable_options()));
04258 } else {
04259 goto handle_uninterpreted;
04260 }
04261 if (input->ExpectTag(42)) goto parse_constraints;
04262 break;
04263 }
04264
04265
04266 case 5: {
04267 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
04268 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
04269 parse_constraints:
04270 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
04271 input, mutable_constraints()));
04272 } else {
04273 goto handle_uninterpreted;
04274 }
04275 if (input->ExpectTag(50)) goto parse_numeric_options;
04276 break;
04277 }
04278
04279
04280 case 6: {
04281 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
04282 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
04283 parse_numeric_options:
04284 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
04285 input, mutable_numeric_options()));
04286 } else {
04287 goto handle_uninterpreted;
04288 }
04289 if (input->ExpectTag(58)) goto parse_string_options;
04290 break;
04291 }
04292
04293
04294 case 7: {
04295 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
04296 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
04297 parse_string_options:
04298 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
04299 input, mutable_string_options()));
04300 } else {
04301 goto handle_uninterpreted;
04302 }
04303 if (input->ExpectTag(66)) goto parse_time_options;
04304 break;
04305 }
04306
04307
04308 case 8: {
04309 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
04310 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
04311 parse_time_options:
04312 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
04313 input, mutable_time_options()));
04314 } else {
04315 goto handle_uninterpreted;
04316 }
04317 if (input->ExpectTag(130)) goto parse_comment;
04318 break;
04319 }
04320
04321
04322 case 16: {
04323 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
04324 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
04325 parse_comment:
04326 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
04327 input, this->mutable_comment()));
04328 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
04329 this->comment().data(), this->comment().length(),
04330 ::google::protobuf::internal::WireFormat::PARSE);
04331 } else {
04332 goto handle_uninterpreted;
04333 }
04334 if (input->ExpectTag(138)) goto parse_enumeration_values;
04335 break;
04336 }
04337
04338
04339 case 17: {
04340 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
04341 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
04342 parse_enumeration_values:
04343 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
04344 input, mutable_enumeration_values()));
04345 } else {
04346 goto handle_uninterpreted;
04347 }
04348 if (input->ExpectAtEnd()) return true;
04349 break;
04350 }
04351
04352 default: {
04353 handle_uninterpreted:
04354 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
04355 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
04356 return true;
04357 }
04358 DO_(::google::protobuf::internal::WireFormat::SkipField(
04359 input, tag, mutable_unknown_fields()));
04360 break;
04361 }
04362 }
04363 }
04364 return true;
04365 #undef DO_
04366 }
04367
04368 void Table_Field::SerializeWithCachedSizes(
04369 ::google::protobuf::io::CodedOutputStream* output) const {
04370
04371 if (has_name()) {
04372 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
04373 this->name().data(), this->name().length(),
04374 ::google::protobuf::internal::WireFormat::SERIALIZE);
04375 ::google::protobuf::internal::WireFormatLite::WriteString(
04376 1, this->name(), output);
04377 }
04378
04379
04380 if (has_type()) {
04381 ::google::protobuf::internal::WireFormatLite::WriteEnum(
04382 2, this->type(), output);
04383 }
04384
04385
04386 if (has_options()) {
04387 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
04388 4, this->options(), output);
04389 }
04390
04391
04392 if (has_constraints()) {
04393 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
04394 5, this->constraints(), output);
04395 }
04396
04397
04398 if (has_numeric_options()) {
04399 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
04400 6, this->numeric_options(), output);
04401 }
04402
04403
04404 if (has_string_options()) {
04405 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
04406 7, this->string_options(), output);
04407 }
04408
04409
04410 if (has_time_options()) {
04411 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
04412 8, this->time_options(), output);
04413 }
04414
04415
04416 if (has_comment()) {
04417 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
04418 this->comment().data(), this->comment().length(),
04419 ::google::protobuf::internal::WireFormat::SERIALIZE);
04420 ::google::protobuf::internal::WireFormatLite::WriteString(
04421 16, this->comment(), output);
04422 }
04423
04424
04425 if (has_enumeration_values()) {
04426 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
04427 17, this->enumeration_values(), output);
04428 }
04429
04430 if (!unknown_fields().empty()) {
04431 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
04432 unknown_fields(), output);
04433 }
04434 }
04435
04436 ::google::protobuf::uint8* Table_Field::SerializeWithCachedSizesToArray(
04437 ::google::protobuf::uint8* target) const {
04438
04439 if (has_name()) {
04440 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
04441 this->name().data(), this->name().length(),
04442 ::google::protobuf::internal::WireFormat::SERIALIZE);
04443 target =
04444 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
04445 1, this->name(), target);
04446 }
04447
04448
04449 if (has_type()) {
04450 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
04451 2, this->type(), target);
04452 }
04453
04454
04455 if (has_options()) {
04456 target = ::google::protobuf::internal::WireFormatLite::
04457 WriteMessageNoVirtualToArray(
04458 4, this->options(), target);
04459 }
04460
04461
04462 if (has_constraints()) {
04463 target = ::google::protobuf::internal::WireFormatLite::
04464 WriteMessageNoVirtualToArray(
04465 5, this->constraints(), target);
04466 }
04467
04468
04469 if (has_numeric_options()) {
04470 target = ::google::protobuf::internal::WireFormatLite::
04471 WriteMessageNoVirtualToArray(
04472 6, this->numeric_options(), target);
04473 }
04474
04475
04476 if (has_string_options()) {
04477 target = ::google::protobuf::internal::WireFormatLite::
04478 WriteMessageNoVirtualToArray(
04479 7, this->string_options(), target);
04480 }
04481
04482
04483 if (has_time_options()) {
04484 target = ::google::protobuf::internal::WireFormatLite::
04485 WriteMessageNoVirtualToArray(
04486 8, this->time_options(), target);
04487 }
04488
04489
04490 if (has_comment()) {
04491 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
04492 this->comment().data(), this->comment().length(),
04493 ::google::protobuf::internal::WireFormat::SERIALIZE);
04494 target =
04495 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
04496 16, this->comment(), target);
04497 }
04498
04499
04500 if (has_enumeration_values()) {
04501 target = ::google::protobuf::internal::WireFormatLite::
04502 WriteMessageNoVirtualToArray(
04503 17, this->enumeration_values(), target);
04504 }
04505
04506 if (!unknown_fields().empty()) {
04507 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
04508 unknown_fields(), target);
04509 }
04510 return target;
04511 }
04512
04513 int Table_Field::ByteSize() const {
04514 int total_size = 0;
04515
04516 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
04517
04518 if (has_name()) {
04519 total_size += 1 +
04520 ::google::protobuf::internal::WireFormatLite::StringSize(
04521 this->name());
04522 }
04523
04524
04525 if (has_type()) {
04526 total_size += 1 +
04527 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
04528 }
04529
04530
04531 if (has_options()) {
04532 total_size += 1 +
04533 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
04534 this->options());
04535 }
04536
04537
04538 if (has_constraints()) {
04539 total_size += 1 +
04540 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
04541 this->constraints());
04542 }
04543
04544
04545 if (has_numeric_options()) {
04546 total_size += 1 +
04547 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
04548 this->numeric_options());
04549 }
04550
04551
04552 if (has_string_options()) {
04553 total_size += 1 +
04554 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
04555 this->string_options());
04556 }
04557
04558
04559 if (has_time_options()) {
04560 total_size += 1 +
04561 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
04562 this->time_options());
04563 }
04564
04565
04566 if (has_comment()) {
04567 total_size += 2 +
04568 ::google::protobuf::internal::WireFormatLite::StringSize(
04569 this->comment());
04570 }
04571
04572 }
04573 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
04574
04575 if (has_enumeration_values()) {
04576 total_size += 2 +
04577 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
04578 this->enumeration_values());
04579 }
04580
04581 }
04582 if (!unknown_fields().empty()) {
04583 total_size +=
04584 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
04585 unknown_fields());
04586 }
04587 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
04588 _cached_size_ = total_size;
04589 GOOGLE_SAFE_CONCURRENT_WRITES_END();
04590 return total_size;
04591 }
04592
04593 void Table_Field::MergeFrom(const ::google::protobuf::Message& from) {
04594 GOOGLE_CHECK_NE(&from, this);
04595 const Table_Field* source =
04596 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Field*>(
04597 &from);
04598 if (source == NULL) {
04599 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
04600 } else {
04601 MergeFrom(*source);
04602 }
04603 }
04604
04605 void Table_Field::MergeFrom(const Table_Field& from) {
04606 GOOGLE_CHECK_NE(&from, this);
04607 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
04608 if (from.has_name()) {
04609 set_name(from.name());
04610 }
04611 if (from.has_type()) {
04612 set_type(from.type());
04613 }
04614 if (from.has_options()) {
04615 mutable_options()->::drizzled::message::Table_Field_FieldOptions::MergeFrom(from.options());
04616 }
04617 if (from.has_constraints()) {
04618 mutable_constraints()->::drizzled::message::Table_Field_FieldConstraints::MergeFrom(from.constraints());
04619 }
04620 if (from.has_numeric_options()) {
04621 mutable_numeric_options()->::drizzled::message::Table_Field_NumericFieldOptions::MergeFrom(from.numeric_options());
04622 }
04623 if (from.has_string_options()) {
04624 mutable_string_options()->::drizzled::message::Table_Field_StringFieldOptions::MergeFrom(from.string_options());
04625 }
04626 if (from.has_time_options()) {
04627 mutable_time_options()->::drizzled::message::Table_Field_TimeFieldOptions::MergeFrom(from.time_options());
04628 }
04629 if (from.has_comment()) {
04630 set_comment(from.comment());
04631 }
04632 }
04633 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
04634 if (from.has_enumeration_values()) {
04635 mutable_enumeration_values()->::drizzled::message::Table_Field_EnumerationValues::MergeFrom(from.enumeration_values());
04636 }
04637 }
04638 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
04639 }
04640
04641 void Table_Field::CopyFrom(const ::google::protobuf::Message& from) {
04642 if (&from == this) return;
04643 Clear();
04644 MergeFrom(from);
04645 }
04646
04647 void Table_Field::CopyFrom(const Table_Field& from) {
04648 if (&from == this) return;
04649 Clear();
04650 MergeFrom(from);
04651 }
04652
04653 bool Table_Field::IsInitialized() const {
04654 if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
04655
04656 return true;
04657 }
04658
04659 void Table_Field::Swap(Table_Field* other) {
04660 if (other != this) {
04661 std::swap(name_, other->name_);
04662 std::swap(type_, other->type_);
04663 std::swap(options_, other->options_);
04664 std::swap(constraints_, other->constraints_);
04665 std::swap(numeric_options_, other->numeric_options_);
04666 std::swap(string_options_, other->string_options_);
04667 std::swap(time_options_, other->time_options_);
04668 std::swap(comment_, other->comment_);
04669 std::swap(enumeration_values_, other->enumeration_values_);
04670 std::swap(_has_bits_[0], other->_has_bits_[0]);
04671 _unknown_fields_.Swap(&other->_unknown_fields_);
04672 std::swap(_cached_size_, other->_cached_size_);
04673 }
04674 }
04675
04676 ::google::protobuf::Metadata Table_Field::GetMetadata() const {
04677 protobuf_AssignDescriptorsOnce();
04678 ::google::protobuf::Metadata metadata;
04679 metadata.descriptor = Table_Field_descriptor_;
04680 metadata.reflection = Table_Field_reflection_;
04681 return metadata;
04682 }
04683
04684
04685
04686
04687 const ::google::protobuf::EnumDescriptor* Table_Index_IndexType_descriptor() {
04688 protobuf_AssignDescriptorsOnce();
04689 return Table_Index_IndexType_descriptor_;
04690 }
04691 bool Table_Index_IndexType_IsValid(int value) {
04692 switch(value) {
04693 case 0:
04694 case 1:
04695 case 2:
04696 case 3:
04697 case 4:
04698 return true;
04699 default:
04700 return false;
04701 }
04702 }
04703
04704 #ifndef _MSC_VER
04705 const Table_Index_IndexType Table_Index::UNKNOWN_INDEX;
04706 const Table_Index_IndexType Table_Index::BTREE;
04707 const Table_Index_IndexType Table_Index::RTREE;
04708 const Table_Index_IndexType Table_Index::HASH;
04709 const Table_Index_IndexType Table_Index::FULLTEXT;
04710 const Table_Index_IndexType Table_Index::IndexType_MIN;
04711 const Table_Index_IndexType Table_Index::IndexType_MAX;
04712 const int Table_Index::IndexType_ARRAYSIZE;
04713 #endif // _MSC_VER
04714 #ifndef _MSC_VER
04715 const int Table_Index_IndexPart::kFieldnrFieldNumber;
04716 const int Table_Index_IndexPart::kCompareLengthFieldNumber;
04717 const int Table_Index_IndexPart::kInReverseOrderFieldNumber;
04718 #endif // !_MSC_VER
04719
04720 Table_Index_IndexPart::Table_Index_IndexPart()
04721 : ::google::protobuf::Message() {
04722 SharedCtor();
04723 }
04724
04725 void Table_Index_IndexPart::InitAsDefaultInstance() {
04726 }
04727
04728 Table_Index_IndexPart::Table_Index_IndexPart(const Table_Index_IndexPart& from)
04729 : ::google::protobuf::Message() {
04730 SharedCtor();
04731 MergeFrom(from);
04732 }
04733
04734 void Table_Index_IndexPart::SharedCtor() {
04735 _cached_size_ = 0;
04736 fieldnr_ = 0u;
04737 compare_length_ = 0u;
04738 in_reverse_order_ = false;
04739 ::memset(_has_bits_, 0, sizeof(_has_bits_));
04740 }
04741
04742 Table_Index_IndexPart::~Table_Index_IndexPart() {
04743 SharedDtor();
04744 }
04745
04746 void Table_Index_IndexPart::SharedDtor() {
04747 if (this != default_instance_) {
04748 }
04749 }
04750
04751 void Table_Index_IndexPart::SetCachedSize(int size) const {
04752 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
04753 _cached_size_ = size;
04754 GOOGLE_SAFE_CONCURRENT_WRITES_END();
04755 }
04756 const ::google::protobuf::Descriptor* Table_Index_IndexPart::descriptor() {
04757 protobuf_AssignDescriptorsOnce();
04758 return Table_Index_IndexPart_descriptor_;
04759 }
04760
04761 const Table_Index_IndexPart& Table_Index_IndexPart::default_instance() {
04762 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto(); return *default_instance_;
04763 }
04764
04765 Table_Index_IndexPart* Table_Index_IndexPart::default_instance_ = NULL;
04766
04767 Table_Index_IndexPart* Table_Index_IndexPart::New() const {
04768 return new Table_Index_IndexPart;
04769 }
04770
04771 void Table_Index_IndexPart::Clear() {
04772 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
04773 fieldnr_ = 0u;
04774 compare_length_ = 0u;
04775 in_reverse_order_ = false;
04776 }
04777 ::memset(_has_bits_, 0, sizeof(_has_bits_));
04778 mutable_unknown_fields()->Clear();
04779 }
04780
04781 bool Table_Index_IndexPart::MergePartialFromCodedStream(
04782 ::google::protobuf::io::CodedInputStream* input) {
04783 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
04784 ::google::protobuf::uint32 tag;
04785 while ((tag = input->ReadTag()) != 0) {
04786 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
04787
04788 case 1: {
04789 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
04790 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
04791 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
04792 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
04793 input, &fieldnr_)));
04794 set_has_fieldnr();
04795 } else {
04796 goto handle_uninterpreted;
04797 }
04798 if (input->ExpectTag(16)) goto parse_compare_length;
04799 break;
04800 }
04801
04802
04803 case 2: {
04804 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
04805 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
04806 parse_compare_length:
04807 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
04808 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
04809 input, &compare_length_)));
04810 set_has_compare_length();
04811 } else {
04812 goto handle_uninterpreted;
04813 }
04814 if (input->ExpectTag(24)) goto parse_in_reverse_order;
04815 break;
04816 }
04817
04818
04819 case 3: {
04820 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
04821 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
04822 parse_in_reverse_order:
04823 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
04824 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
04825 input, &in_reverse_order_)));
04826 set_has_in_reverse_order();
04827 } else {
04828 goto handle_uninterpreted;
04829 }
04830 if (input->ExpectAtEnd()) return true;
04831 break;
04832 }
04833
04834 default: {
04835 handle_uninterpreted:
04836 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
04837 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
04838 return true;
04839 }
04840 DO_(::google::protobuf::internal::WireFormat::SkipField(
04841 input, tag, mutable_unknown_fields()));
04842 break;
04843 }
04844 }
04845 }
04846 return true;
04847 #undef DO_
04848 }
04849
04850 void Table_Index_IndexPart::SerializeWithCachedSizes(
04851 ::google::protobuf::io::CodedOutputStream* output) const {
04852
04853 if (has_fieldnr()) {
04854 ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->fieldnr(), output);
04855 }
04856
04857
04858 if (has_compare_length()) {
04859 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->compare_length(), output);
04860 }
04861
04862
04863 if (has_in_reverse_order()) {
04864 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->in_reverse_order(), output);
04865 }
04866
04867 if (!unknown_fields().empty()) {
04868 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
04869 unknown_fields(), output);
04870 }
04871 }
04872
04873 ::google::protobuf::uint8* Table_Index_IndexPart::SerializeWithCachedSizesToArray(
04874 ::google::protobuf::uint8* target) const {
04875
04876 if (has_fieldnr()) {
04877 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->fieldnr(), target);
04878 }
04879
04880
04881 if (has_compare_length()) {
04882 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->compare_length(), target);
04883 }
04884
04885
04886 if (has_in_reverse_order()) {
04887 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->in_reverse_order(), target);
04888 }
04889
04890 if (!unknown_fields().empty()) {
04891 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
04892 unknown_fields(), target);
04893 }
04894 return target;
04895 }
04896
04897 int Table_Index_IndexPart::ByteSize() const {
04898 int total_size = 0;
04899
04900 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
04901
04902 if (has_fieldnr()) {
04903 total_size += 1 +
04904 ::google::protobuf::internal::WireFormatLite::UInt32Size(
04905 this->fieldnr());
04906 }
04907
04908
04909 if (has_compare_length()) {
04910 total_size += 1 +
04911 ::google::protobuf::internal::WireFormatLite::UInt32Size(
04912 this->compare_length());
04913 }
04914
04915
04916 if (has_in_reverse_order()) {
04917 total_size += 1 + 1;
04918 }
04919
04920 }
04921 if (!unknown_fields().empty()) {
04922 total_size +=
04923 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
04924 unknown_fields());
04925 }
04926 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
04927 _cached_size_ = total_size;
04928 GOOGLE_SAFE_CONCURRENT_WRITES_END();
04929 return total_size;
04930 }
04931
04932 void Table_Index_IndexPart::MergeFrom(const ::google::protobuf::Message& from) {
04933 GOOGLE_CHECK_NE(&from, this);
04934 const Table_Index_IndexPart* source =
04935 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Index_IndexPart*>(
04936 &from);
04937 if (source == NULL) {
04938 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
04939 } else {
04940 MergeFrom(*source);
04941 }
04942 }
04943
04944 void Table_Index_IndexPart::MergeFrom(const Table_Index_IndexPart& from) {
04945 GOOGLE_CHECK_NE(&from, this);
04946 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
04947 if (from.has_fieldnr()) {
04948 set_fieldnr(from.fieldnr());
04949 }
04950 if (from.has_compare_length()) {
04951 set_compare_length(from.compare_length());
04952 }
04953 if (from.has_in_reverse_order()) {
04954 set_in_reverse_order(from.in_reverse_order());
04955 }
04956 }
04957 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
04958 }
04959
04960 void Table_Index_IndexPart::CopyFrom(const ::google::protobuf::Message& from) {
04961 if (&from == this) return;
04962 Clear();
04963 MergeFrom(from);
04964 }
04965
04966 void Table_Index_IndexPart::CopyFrom(const Table_Index_IndexPart& from) {
04967 if (&from == this) return;
04968 Clear();
04969 MergeFrom(from);
04970 }
04971
04972 bool Table_Index_IndexPart::IsInitialized() const {
04973 if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
04974
04975 return true;
04976 }
04977
04978 void Table_Index_IndexPart::Swap(Table_Index_IndexPart* other) {
04979 if (other != this) {
04980 std::swap(fieldnr_, other->fieldnr_);
04981 std::swap(compare_length_, other->compare_length_);
04982 std::swap(in_reverse_order_, other->in_reverse_order_);
04983 std::swap(_has_bits_[0], other->_has_bits_[0]);
04984 _unknown_fields_.Swap(&other->_unknown_fields_);
04985 std::swap(_cached_size_, other->_cached_size_);
04986 }
04987 }
04988
04989 ::google::protobuf::Metadata Table_Index_IndexPart::GetMetadata() const {
04990 protobuf_AssignDescriptorsOnce();
04991 ::google::protobuf::Metadata metadata;
04992 metadata.descriptor = Table_Index_IndexPart_descriptor_;
04993 metadata.reflection = Table_Index_IndexPart_reflection_;
04994 return metadata;
04995 }
04996
04997
04998
04999
05000 #ifndef _MSC_VER
05001 const int Table_Index_Options::kPackKeyFieldNumber;
05002 const int Table_Index_Options::kBinaryPackKeyFieldNumber;
05003 const int Table_Index_Options::kVarLengthKeyFieldNumber;
05004 const int Table_Index_Options::kNullPartKeyFieldNumber;
05005 const int Table_Index_Options::kKeyBlockSizeFieldNumber;
05006 const int Table_Index_Options::kHasPartialSegmentsFieldNumber;
05007 const int Table_Index_Options::kAutoGeneratedKeyFieldNumber;
05008 #endif // !_MSC_VER
05009
05010 Table_Index_Options::Table_Index_Options()
05011 : ::google::protobuf::Message() {
05012 SharedCtor();
05013 }
05014
05015 void Table_Index_Options::InitAsDefaultInstance() {
05016 }
05017
05018 Table_Index_Options::Table_Index_Options(const Table_Index_Options& from)
05019 : ::google::protobuf::Message() {
05020 SharedCtor();
05021 MergeFrom(from);
05022 }
05023
05024 void Table_Index_Options::SharedCtor() {
05025 _cached_size_ = 0;
05026 pack_key_ = false;
05027 binary_pack_key_ = false;
05028 var_length_key_ = false;
05029 null_part_key_ = false;
05030 key_block_size_ = 0u;
05031 has_partial_segments_ = false;
05032 auto_generated_key_ = false;
05033 ::memset(_has_bits_, 0, sizeof(_has_bits_));
05034 }
05035
05036 Table_Index_Options::~Table_Index_Options() {
05037 SharedDtor();
05038 }
05039
05040 void Table_Index_Options::SharedDtor() {
05041 if (this != default_instance_) {
05042 }
05043 }
05044
05045 void Table_Index_Options::SetCachedSize(int size) const {
05046 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
05047 _cached_size_ = size;
05048 GOOGLE_SAFE_CONCURRENT_WRITES_END();
05049 }
05050 const ::google::protobuf::Descriptor* Table_Index_Options::descriptor() {
05051 protobuf_AssignDescriptorsOnce();
05052 return Table_Index_Options_descriptor_;
05053 }
05054
05055 const Table_Index_Options& Table_Index_Options::default_instance() {
05056 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto(); return *default_instance_;
05057 }
05058
05059 Table_Index_Options* Table_Index_Options::default_instance_ = NULL;
05060
05061 Table_Index_Options* Table_Index_Options::New() const {
05062 return new Table_Index_Options;
05063 }
05064
05065 void Table_Index_Options::Clear() {
05066 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
05067 pack_key_ = false;
05068 binary_pack_key_ = false;
05069 var_length_key_ = false;
05070 null_part_key_ = false;
05071 key_block_size_ = 0u;
05072 has_partial_segments_ = false;
05073 auto_generated_key_ = false;
05074 }
05075 ::memset(_has_bits_, 0, sizeof(_has_bits_));
05076 mutable_unknown_fields()->Clear();
05077 }
05078
05079 bool Table_Index_Options::MergePartialFromCodedStream(
05080 ::google::protobuf::io::CodedInputStream* input) {
05081 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
05082 ::google::protobuf::uint32 tag;
05083 while ((tag = input->ReadTag()) != 0) {
05084 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
05085
05086 case 1: {
05087 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
05088 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
05089 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
05090 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
05091 input, &pack_key_)));
05092 set_has_pack_key();
05093 } else {
05094 goto handle_uninterpreted;
05095 }
05096 if (input->ExpectTag(16)) goto parse_binary_pack_key;
05097 break;
05098 }
05099
05100
05101 case 2: {
05102 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
05103 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
05104 parse_binary_pack_key:
05105 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
05106 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
05107 input, &binary_pack_key_)));
05108 set_has_binary_pack_key();
05109 } else {
05110 goto handle_uninterpreted;
05111 }
05112 if (input->ExpectTag(24)) goto parse_var_length_key;
05113 break;
05114 }
05115
05116
05117 case 3: {
05118 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
05119 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
05120 parse_var_length_key:
05121 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
05122 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
05123 input, &var_length_key_)));
05124 set_has_var_length_key();
05125 } else {
05126 goto handle_uninterpreted;
05127 }
05128 if (input->ExpectTag(32)) goto parse_null_part_key;
05129 break;
05130 }
05131
05132
05133 case 4: {
05134 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
05135 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
05136 parse_null_part_key:
05137 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
05138 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
05139 input, &null_part_key_)));
05140 set_has_null_part_key();
05141 } else {
05142 goto handle_uninterpreted;
05143 }
05144 if (input->ExpectTag(40)) goto parse_key_block_size;
05145 break;
05146 }
05147
05148
05149 case 5: {
05150 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
05151 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
05152 parse_key_block_size:
05153 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
05154 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
05155 input, &key_block_size_)));
05156 set_has_key_block_size();
05157 } else {
05158 goto handle_uninterpreted;
05159 }
05160 if (input->ExpectTag(48)) goto parse_has_partial_segments;
05161 break;
05162 }
05163
05164
05165 case 6: {
05166 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
05167 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
05168 parse_has_partial_segments:
05169 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
05170 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
05171 input, &has_partial_segments_)));
05172 set_has_has_partial_segments();
05173 } else {
05174 goto handle_uninterpreted;
05175 }
05176 if (input->ExpectTag(56)) goto parse_auto_generated_key;
05177 break;
05178 }
05179
05180
05181 case 7: {
05182 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
05183 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
05184 parse_auto_generated_key:
05185 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
05186 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
05187 input, &auto_generated_key_)));
05188 set_has_auto_generated_key();
05189 } else {
05190 goto handle_uninterpreted;
05191 }
05192 if (input->ExpectAtEnd()) return true;
05193 break;
05194 }
05195
05196 default: {
05197 handle_uninterpreted:
05198 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
05199 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
05200 return true;
05201 }
05202 DO_(::google::protobuf::internal::WireFormat::SkipField(
05203 input, tag, mutable_unknown_fields()));
05204 break;
05205 }
05206 }
05207 }
05208 return true;
05209 #undef DO_
05210 }
05211
05212 void Table_Index_Options::SerializeWithCachedSizes(
05213 ::google::protobuf::io::CodedOutputStream* output) const {
05214
05215 if (has_pack_key()) {
05216 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->pack_key(), output);
05217 }
05218
05219
05220 if (has_binary_pack_key()) {
05221 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->binary_pack_key(), output);
05222 }
05223
05224
05225 if (has_var_length_key()) {
05226 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->var_length_key(), output);
05227 }
05228
05229
05230 if (has_null_part_key()) {
05231 ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->null_part_key(), output);
05232 }
05233
05234
05235 if (has_key_block_size()) {
05236 ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->key_block_size(), output);
05237 }
05238
05239
05240 if (has_has_partial_segments()) {
05241 ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->has_partial_segments(), output);
05242 }
05243
05244
05245 if (has_auto_generated_key()) {
05246 ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->auto_generated_key(), output);
05247 }
05248
05249 if (!unknown_fields().empty()) {
05250 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
05251 unknown_fields(), output);
05252 }
05253 }
05254
05255 ::google::protobuf::uint8* Table_Index_Options::SerializeWithCachedSizesToArray(
05256 ::google::protobuf::uint8* target) const {
05257
05258 if (has_pack_key()) {
05259 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->pack_key(), target);
05260 }
05261
05262
05263 if (has_binary_pack_key()) {
05264 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->binary_pack_key(), target);
05265 }
05266
05267
05268 if (has_var_length_key()) {
05269 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->var_length_key(), target);
05270 }
05271
05272
05273 if (has_null_part_key()) {
05274 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->null_part_key(), target);
05275 }
05276
05277
05278 if (has_key_block_size()) {
05279 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->key_block_size(), target);
05280 }
05281
05282
05283 if (has_has_partial_segments()) {
05284 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->has_partial_segments(), target);
05285 }
05286
05287
05288 if (has_auto_generated_key()) {
05289 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->auto_generated_key(), target);
05290 }
05291
05292 if (!unknown_fields().empty()) {
05293 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
05294 unknown_fields(), target);
05295 }
05296 return target;
05297 }
05298
05299 int Table_Index_Options::ByteSize() const {
05300 int total_size = 0;
05301
05302 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
05303
05304 if (has_pack_key()) {
05305 total_size += 1 + 1;
05306 }
05307
05308
05309 if (has_binary_pack_key()) {
05310 total_size += 1 + 1;
05311 }
05312
05313
05314 if (has_var_length_key()) {
05315 total_size += 1 + 1;
05316 }
05317
05318
05319 if (has_null_part_key()) {
05320 total_size += 1 + 1;
05321 }
05322
05323
05324 if (has_key_block_size()) {
05325 total_size += 1 +
05326 ::google::protobuf::internal::WireFormatLite::UInt32Size(
05327 this->key_block_size());
05328 }
05329
05330
05331 if (has_has_partial_segments()) {
05332 total_size += 1 + 1;
05333 }
05334
05335
05336 if (has_auto_generated_key()) {
05337 total_size += 1 + 1;
05338 }
05339
05340 }
05341 if (!unknown_fields().empty()) {
05342 total_size +=
05343 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
05344 unknown_fields());
05345 }
05346 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
05347 _cached_size_ = total_size;
05348 GOOGLE_SAFE_CONCURRENT_WRITES_END();
05349 return total_size;
05350 }
05351
05352 void Table_Index_Options::MergeFrom(const ::google::protobuf::Message& from) {
05353 GOOGLE_CHECK_NE(&from, this);
05354 const Table_Index_Options* source =
05355 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Index_Options*>(
05356 &from);
05357 if (source == NULL) {
05358 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
05359 } else {
05360 MergeFrom(*source);
05361 }
05362 }
05363
05364 void Table_Index_Options::MergeFrom(const Table_Index_Options& from) {
05365 GOOGLE_CHECK_NE(&from, this);
05366 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
05367 if (from.has_pack_key()) {
05368 set_pack_key(from.pack_key());
05369 }
05370 if (from.has_binary_pack_key()) {
05371 set_binary_pack_key(from.binary_pack_key());
05372 }
05373 if (from.has_var_length_key()) {
05374 set_var_length_key(from.var_length_key());
05375 }
05376 if (from.has_null_part_key()) {
05377 set_null_part_key(from.null_part_key());
05378 }
05379 if (from.has_key_block_size()) {
05380 set_key_block_size(from.key_block_size());
05381 }
05382 if (from.has_has_partial_segments()) {
05383 set_has_partial_segments(from.has_partial_segments());
05384 }
05385 if (from.has_auto_generated_key()) {
05386 set_auto_generated_key(from.auto_generated_key());
05387 }
05388 }
05389 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
05390 }
05391
05392 void Table_Index_Options::CopyFrom(const ::google::protobuf::Message& from) {
05393 if (&from == this) return;
05394 Clear();
05395 MergeFrom(from);
05396 }
05397
05398 void Table_Index_Options::CopyFrom(const Table_Index_Options& from) {
05399 if (&from == this) return;
05400 Clear();
05401 MergeFrom(from);
05402 }
05403
05404 bool Table_Index_Options::IsInitialized() const {
05405
05406 return true;
05407 }
05408
05409 void Table_Index_Options::Swap(Table_Index_Options* other) {
05410 if (other != this) {
05411 std::swap(pack_key_, other->pack_key_);
05412 std::swap(binary_pack_key_, other->binary_pack_key_);
05413 std::swap(var_length_key_, other->var_length_key_);
05414 std::swap(null_part_key_, other->null_part_key_);
05415 std::swap(key_block_size_, other->key_block_size_);
05416 std::swap(has_partial_segments_, other->has_partial_segments_);
05417 std::swap(auto_generated_key_, other->auto_generated_key_);
05418 std::swap(_has_bits_[0], other->_has_bits_[0]);
05419 _unknown_fields_.Swap(&other->_unknown_fields_);
05420 std::swap(_cached_size_, other->_cached_size_);
05421 }
05422 }
05423
05424 ::google::protobuf::Metadata Table_Index_Options::GetMetadata() const {
05425 protobuf_AssignDescriptorsOnce();
05426 ::google::protobuf::Metadata metadata;
05427 metadata.descriptor = Table_Index_Options_descriptor_;
05428 metadata.reflection = Table_Index_Options_reflection_;
05429 return metadata;
05430 }
05431
05432
05433
05434
05435 #ifndef _MSC_VER
05436 const int Table_Index::kNameFieldNumber;
05437 const int Table_Index::kIsPrimaryFieldNumber;
05438 const int Table_Index::kIsUniqueFieldNumber;
05439 const int Table_Index::kTypeFieldNumber;
05440 const int Table_Index::kKeyLengthFieldNumber;
05441 const int Table_Index::kIndexPartFieldNumber;
05442 const int Table_Index::kOptionsFieldNumber;
05443 const int Table_Index::kCommentFieldNumber;
05444 #endif // !_MSC_VER
05445
05446 Table_Index::Table_Index()
05447 : ::google::protobuf::Message() {
05448 SharedCtor();
05449 }
05450
05451 void Table_Index::InitAsDefaultInstance() {
05452 options_ = const_cast< ::drizzled::message::Table_Index_Options*>(&::drizzled::message::Table_Index_Options::default_instance());
05453 }
05454
05455 Table_Index::Table_Index(const Table_Index& from)
05456 : ::google::protobuf::Message() {
05457 SharedCtor();
05458 MergeFrom(from);
05459 }
05460
05461 void Table_Index::SharedCtor() {
05462 _cached_size_ = 0;
05463 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
05464 is_primary_ = false;
05465 is_unique_ = false;
05466 type_ = 0;
05467 key_length_ = 0u;
05468 options_ = NULL;
05469 comment_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
05470 ::memset(_has_bits_, 0, sizeof(_has_bits_));
05471 }
05472
05473 Table_Index::~Table_Index() {
05474 SharedDtor();
05475 }
05476
05477 void Table_Index::SharedDtor() {
05478 if (name_ != &::google::protobuf::internal::kEmptyString) {
05479 delete name_;
05480 }
05481 if (comment_ != &::google::protobuf::internal::kEmptyString) {
05482 delete comment_;
05483 }
05484 if (this != default_instance_) {
05485 delete options_;
05486 }
05487 }
05488
05489 void Table_Index::SetCachedSize(int size) const {
05490 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
05491 _cached_size_ = size;
05492 GOOGLE_SAFE_CONCURRENT_WRITES_END();
05493 }
05494 const ::google::protobuf::Descriptor* Table_Index::descriptor() {
05495 protobuf_AssignDescriptorsOnce();
05496 return Table_Index_descriptor_;
05497 }
05498
05499 const Table_Index& Table_Index::default_instance() {
05500 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto(); return *default_instance_;
05501 }
05502
05503 Table_Index* Table_Index::default_instance_ = NULL;
05504
05505 Table_Index* Table_Index::New() const {
05506 return new Table_Index;
05507 }
05508
05509 void Table_Index::Clear() {
05510 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
05511 if (has_name()) {
05512 if (name_ != &::google::protobuf::internal::kEmptyString) {
05513 name_->clear();
05514 }
05515 }
05516 is_primary_ = false;
05517 is_unique_ = false;
05518 type_ = 0;
05519 key_length_ = 0u;
05520 if (has_options()) {
05521 if (options_ != NULL) options_->::drizzled::message::Table_Index_Options::Clear();
05522 }
05523 if (has_comment()) {
05524 if (comment_ != &::google::protobuf::internal::kEmptyString) {
05525 comment_->clear();
05526 }
05527 }
05528 }
05529 index_part_.Clear();
05530 ::memset(_has_bits_, 0, sizeof(_has_bits_));
05531 mutable_unknown_fields()->Clear();
05532 }
05533
05534 bool Table_Index::MergePartialFromCodedStream(
05535 ::google::protobuf::io::CodedInputStream* input) {
05536 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
05537 ::google::protobuf::uint32 tag;
05538 while ((tag = input->ReadTag()) != 0) {
05539 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
05540
05541 case 1: {
05542 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
05543 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
05544 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
05545 input, this->mutable_name()));
05546 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
05547 this->name().data(), this->name().length(),
05548 ::google::protobuf::internal::WireFormat::PARSE);
05549 } else {
05550 goto handle_uninterpreted;
05551 }
05552 if (input->ExpectTag(16)) goto parse_is_primary;
05553 break;
05554 }
05555
05556
05557 case 2: {
05558 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
05559 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
05560 parse_is_primary:
05561 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
05562 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
05563 input, &is_primary_)));
05564 set_has_is_primary();
05565 } else {
05566 goto handle_uninterpreted;
05567 }
05568 if (input->ExpectTag(24)) goto parse_is_unique;
05569 break;
05570 }
05571
05572
05573 case 3: {
05574 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
05575 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
05576 parse_is_unique:
05577 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
05578 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
05579 input, &is_unique_)));
05580 set_has_is_unique();
05581 } else {
05582 goto handle_uninterpreted;
05583 }
05584 if (input->ExpectTag(32)) goto parse_type;
05585 break;
05586 }
05587
05588
05589 case 4: {
05590 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
05591 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
05592 parse_type:
05593 int value;
05594 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
05595 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
05596 input, &value)));
05597 if (::drizzled::message::Table_Index_IndexType_IsValid(value)) {
05598 set_type(static_cast< ::drizzled::message::Table_Index_IndexType >(value));
05599 } else {
05600 mutable_unknown_fields()->AddVarint(4, value);
05601 }
05602 } else {
05603 goto handle_uninterpreted;
05604 }
05605 if (input->ExpectTag(40)) goto parse_key_length;
05606 break;
05607 }
05608
05609
05610 case 5: {
05611 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
05612 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
05613 parse_key_length:
05614 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
05615 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
05616 input, &key_length_)));
05617 set_has_key_length();
05618 } else {
05619 goto handle_uninterpreted;
05620 }
05621 if (input->ExpectTag(50)) goto parse_index_part;
05622 break;
05623 }
05624
05625
05626 case 6: {
05627 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
05628 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
05629 parse_index_part:
05630 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
05631 input, add_index_part()));
05632 } else {
05633 goto handle_uninterpreted;
05634 }
05635 if (input->ExpectTag(50)) goto parse_index_part;
05636 if (input->ExpectTag(58)) goto parse_options;
05637 break;
05638 }
05639
05640
05641 case 7: {
05642 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
05643 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
05644 parse_options:
05645 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
05646 input, mutable_options()));
05647 } else {
05648 goto handle_uninterpreted;
05649 }
05650 if (input->ExpectTag(66)) goto parse_comment;
05651 break;
05652 }
05653
05654
05655 case 8: {
05656 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
05657 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
05658 parse_comment:
05659 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
05660 input, this->mutable_comment()));
05661 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
05662 this->comment().data(), this->comment().length(),
05663 ::google::protobuf::internal::WireFormat::PARSE);
05664 } else {
05665 goto handle_uninterpreted;
05666 }
05667 if (input->ExpectAtEnd()) return true;
05668 break;
05669 }
05670
05671 default: {
05672 handle_uninterpreted:
05673 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
05674 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
05675 return true;
05676 }
05677 DO_(::google::protobuf::internal::WireFormat::SkipField(
05678 input, tag, mutable_unknown_fields()));
05679 break;
05680 }
05681 }
05682 }
05683 return true;
05684 #undef DO_
05685 }
05686
05687 void Table_Index::SerializeWithCachedSizes(
05688 ::google::protobuf::io::CodedOutputStream* output) const {
05689
05690 if (has_name()) {
05691 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
05692 this->name().data(), this->name().length(),
05693 ::google::protobuf::internal::WireFormat::SERIALIZE);
05694 ::google::protobuf::internal::WireFormatLite::WriteString(
05695 1, this->name(), output);
05696 }
05697
05698
05699 if (has_is_primary()) {
05700 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_primary(), output);
05701 }
05702
05703
05704 if (has_is_unique()) {
05705 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->is_unique(), output);
05706 }
05707
05708
05709 if (has_type()) {
05710 ::google::protobuf::internal::WireFormatLite::WriteEnum(
05711 4, this->type(), output);
05712 }
05713
05714
05715 if (has_key_length()) {
05716 ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->key_length(), output);
05717 }
05718
05719
05720 for (int i = 0; i < this->index_part_size(); i++) {
05721 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
05722 6, this->index_part(i), output);
05723 }
05724
05725
05726 if (has_options()) {
05727 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
05728 7, this->options(), output);
05729 }
05730
05731
05732 if (has_comment()) {
05733 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
05734 this->comment().data(), this->comment().length(),
05735 ::google::protobuf::internal::WireFormat::SERIALIZE);
05736 ::google::protobuf::internal::WireFormatLite::WriteString(
05737 8, this->comment(), output);
05738 }
05739
05740 if (!unknown_fields().empty()) {
05741 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
05742 unknown_fields(), output);
05743 }
05744 }
05745
05746 ::google::protobuf::uint8* Table_Index::SerializeWithCachedSizesToArray(
05747 ::google::protobuf::uint8* target) const {
05748
05749 if (has_name()) {
05750 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
05751 this->name().data(), this->name().length(),
05752 ::google::protobuf::internal::WireFormat::SERIALIZE);
05753 target =
05754 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
05755 1, this->name(), target);
05756 }
05757
05758
05759 if (has_is_primary()) {
05760 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_primary(), target);
05761 }
05762
05763
05764 if (has_is_unique()) {
05765 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->is_unique(), target);
05766 }
05767
05768
05769 if (has_type()) {
05770 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
05771 4, this->type(), target);
05772 }
05773
05774
05775 if (has_key_length()) {
05776 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->key_length(), target);
05777 }
05778
05779
05780 for (int i = 0; i < this->index_part_size(); i++) {
05781 target = ::google::protobuf::internal::WireFormatLite::
05782 WriteMessageNoVirtualToArray(
05783 6, this->index_part(i), target);
05784 }
05785
05786
05787 if (has_options()) {
05788 target = ::google::protobuf::internal::WireFormatLite::
05789 WriteMessageNoVirtualToArray(
05790 7, this->options(), target);
05791 }
05792
05793
05794 if (has_comment()) {
05795 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
05796 this->comment().data(), this->comment().length(),
05797 ::google::protobuf::internal::WireFormat::SERIALIZE);
05798 target =
05799 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
05800 8, this->comment(), target);
05801 }
05802
05803 if (!unknown_fields().empty()) {
05804 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
05805 unknown_fields(), target);
05806 }
05807 return target;
05808 }
05809
05810 int Table_Index::ByteSize() const {
05811 int total_size = 0;
05812
05813 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
05814
05815 if (has_name()) {
05816 total_size += 1 +
05817 ::google::protobuf::internal::WireFormatLite::StringSize(
05818 this->name());
05819 }
05820
05821
05822 if (has_is_primary()) {
05823 total_size += 1 + 1;
05824 }
05825
05826
05827 if (has_is_unique()) {
05828 total_size += 1 + 1;
05829 }
05830
05831
05832 if (has_type()) {
05833 total_size += 1 +
05834 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
05835 }
05836
05837
05838 if (has_key_length()) {
05839 total_size += 1 +
05840 ::google::protobuf::internal::WireFormatLite::UInt32Size(
05841 this->key_length());
05842 }
05843
05844
05845 if (has_options()) {
05846 total_size += 1 +
05847 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
05848 this->options());
05849 }
05850
05851
05852 if (has_comment()) {
05853 total_size += 1 +
05854 ::google::protobuf::internal::WireFormatLite::StringSize(
05855 this->comment());
05856 }
05857
05858 }
05859
05860 total_size += 1 * this->index_part_size();
05861 for (int i = 0; i < this->index_part_size(); i++) {
05862 total_size +=
05863 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
05864 this->index_part(i));
05865 }
05866
05867 if (!unknown_fields().empty()) {
05868 total_size +=
05869 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
05870 unknown_fields());
05871 }
05872 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
05873 _cached_size_ = total_size;
05874 GOOGLE_SAFE_CONCURRENT_WRITES_END();
05875 return total_size;
05876 }
05877
05878 void Table_Index::MergeFrom(const ::google::protobuf::Message& from) {
05879 GOOGLE_CHECK_NE(&from, this);
05880 const Table_Index* source =
05881 ::google::protobuf::internal::dynamic_cast_if_available<const Table_Index*>(
05882 &from);
05883 if (source == NULL) {
05884 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
05885 } else {
05886 MergeFrom(*source);
05887 }
05888 }
05889
05890 void Table_Index::MergeFrom(const Table_Index& from) {
05891 GOOGLE_CHECK_NE(&from, this);
05892 index_part_.MergeFrom(from.index_part_);
05893 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
05894 if (from.has_name()) {
05895 set_name(from.name());
05896 }
05897 if (from.has_is_primary()) {
05898 set_is_primary(from.is_primary());
05899 }
05900 if (from.has_is_unique()) {
05901 set_is_unique(from.is_unique());
05902 }
05903 if (from.has_type()) {
05904 set_type(from.type());
05905 }
05906 if (from.has_key_length()) {
05907 set_key_length(from.key_length());
05908 }
05909 if (from.has_options()) {
05910 mutable_options()->::drizzled::message::Table_Index_Options::MergeFrom(from.options());
05911 }
05912 if (from.has_comment()) {
05913 set_comment(from.comment());
05914 }
05915 }
05916 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
05917 }
05918
05919 void Table_Index::CopyFrom(const ::google::protobuf::Message& from) {
05920 if (&from == this) return;
05921 Clear();
05922 MergeFrom(from);
05923 }
05924
05925 void Table_Index::CopyFrom(const Table_Index& from) {
05926 if (&from == this) return;
05927 Clear();
05928 MergeFrom(from);
05929 }
05930
05931 bool Table_Index::IsInitialized() const {
05932 if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false;
05933
05934 for (int i = 0; i < index_part_size(); i++) {
05935 if (!this->index_part(i).IsInitialized()) return false;
05936 }
05937 return true;
05938 }
05939
05940 void Table_Index::Swap(Table_Index* other) {
05941 if (other != this) {
05942 std::swap(name_, other->name_);
05943 std::swap(is_primary_, other->is_primary_);
05944 std::swap(is_unique_, other->is_unique_);
05945 std::swap(type_, other->type_);
05946 std::swap(key_length_, other->key_length_);
05947 index_part_.Swap(&other->index_part_);
05948 std::swap(options_, other->options_);
05949 std::swap(comment_, other->comment_);
05950 std::swap(_has_bits_[0], other->_has_bits_[0]);
05951 _unknown_fields_.Swap(&other->_unknown_fields_);
05952 std::swap(_cached_size_, other->_cached_size_);
05953 }
05954 }
05955
05956 ::google::protobuf::Metadata Table_Index::GetMetadata() const {
05957 protobuf_AssignDescriptorsOnce();
05958 ::google::protobuf::Metadata metadata;
05959 metadata.descriptor = Table_Index_descriptor_;
05960 metadata.reflection = Table_Index_reflection_;
05961 return metadata;
05962 }
05963
05964
05965
05966
05967 #ifndef _MSC_VER
05968 const int Table::kNameFieldNumber;
05969 const int Table::kSchemaFieldNumber;
05970 const int Table::kTypeFieldNumber;
05971 const int Table::kEngineFieldNumber;
05972 const int Table::kFieldFieldNumber;
05973 const int Table::kIndexesFieldNumber;
05974 const int Table::kFkConstraintFieldNumber;
05975 const int Table::kOptionsFieldNumber;
05976 const int Table::kCreationTimestampFieldNumber;
05977 const int Table::kUpdateTimestampFieldNumber;
05978 const int Table::kCatalogFieldNumber;
05979 const int Table::kUuidFieldNumber;
05980 const int Table::kVersionFieldNumber;
05981 const int Table::kReplicationOptionsFieldNumber;
05982 #endif // !_MSC_VER
05983
05984 Table::Table()
05985 : ::google::protobuf::Message() {
05986 SharedCtor();
05987 }
05988
05989 void Table::InitAsDefaultInstance() {
05990 engine_ = const_cast< ::drizzled::message::Engine*>(&::drizzled::message::Engine::default_instance());
05991 options_ = const_cast< ::drizzled::message::Table_TableOptions*>(&::drizzled::message::Table_TableOptions::default_instance());
05992 replication_options_ = const_cast< ::drizzled::message::ReplicationOptions*>(&::drizzled::message::ReplicationOptions::default_instance());
05993 }
05994
05995 Table::Table(const Table& from)
05996 : ::google::protobuf::Message() {
05997 SharedCtor();
05998 MergeFrom(from);
05999 }
06000
06001 void Table::SharedCtor() {
06002 _cached_size_ = 0;
06003 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
06004 schema_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
06005 type_ = 0;
06006 engine_ = NULL;
06007 options_ = NULL;
06008 creation_timestamp_ = GOOGLE_ULONGLONG(0);
06009 update_timestamp_ = GOOGLE_ULONGLONG(0);
06010 catalog_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
06011 uuid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
06012 version_ = GOOGLE_ULONGLONG(0);
06013 replication_options_ = NULL;
06014 ::memset(_has_bits_, 0, sizeof(_has_bits_));
06015 }
06016
06017 Table::~Table() {
06018 SharedDtor();
06019 }
06020
06021 void Table::SharedDtor() {
06022 if (name_ != &::google::protobuf::internal::kEmptyString) {
06023 delete name_;
06024 }
06025 if (schema_ != &::google::protobuf::internal::kEmptyString) {
06026 delete schema_;
06027 }
06028 if (catalog_ != &::google::protobuf::internal::kEmptyString) {
06029 delete catalog_;
06030 }
06031 if (uuid_ != &::google::protobuf::internal::kEmptyString) {
06032 delete uuid_;
06033 }
06034 if (this != default_instance_) {
06035 delete engine_;
06036 delete options_;
06037 delete replication_options_;
06038 }
06039 }
06040
06041 void Table::SetCachedSize(int size) const {
06042 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
06043 _cached_size_ = size;
06044 GOOGLE_SAFE_CONCURRENT_WRITES_END();
06045 }
06046 const ::google::protobuf::Descriptor* Table::descriptor() {
06047 protobuf_AssignDescriptorsOnce();
06048 return Table_descriptor_;
06049 }
06050
06051 const Table& Table::default_instance() {
06052 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto(); return *default_instance_;
06053 }
06054
06055 Table* Table::default_instance_ = NULL;
06056
06057 Table* Table::New() const {
06058 return new Table;
06059 }
06060
06061 void Table::Clear() {
06062 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
06063 if (has_name()) {
06064 if (name_ != &::google::protobuf::internal::kEmptyString) {
06065 name_->clear();
06066 }
06067 }
06068 if (has_schema()) {
06069 if (schema_ != &::google::protobuf::internal::kEmptyString) {
06070 schema_->clear();
06071 }
06072 }
06073 type_ = 0;
06074 if (has_engine()) {
06075 if (engine_ != NULL) engine_->::drizzled::message::Engine::Clear();
06076 }
06077 if (has_options()) {
06078 if (options_ != NULL) options_->::drizzled::message::Table_TableOptions::Clear();
06079 }
06080 }
06081 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
06082 creation_timestamp_ = GOOGLE_ULONGLONG(0);
06083 update_timestamp_ = GOOGLE_ULONGLONG(0);
06084 if (has_catalog()) {
06085 if (catalog_ != &::google::protobuf::internal::kEmptyString) {
06086 catalog_->clear();
06087 }
06088 }
06089 if (has_uuid()) {
06090 if (uuid_ != &::google::protobuf::internal::kEmptyString) {
06091 uuid_->clear();
06092 }
06093 }
06094 version_ = GOOGLE_ULONGLONG(0);
06095 if (has_replication_options()) {
06096 if (replication_options_ != NULL) replication_options_->::drizzled::message::ReplicationOptions::Clear();
06097 }
06098 }
06099 field_.Clear();
06100 indexes_.Clear();
06101 fk_constraint_.Clear();
06102 ::memset(_has_bits_, 0, sizeof(_has_bits_));
06103 mutable_unknown_fields()->Clear();
06104 }
06105
06106 bool Table::MergePartialFromCodedStream(
06107 ::google::protobuf::io::CodedInputStream* input) {
06108 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
06109 ::google::protobuf::uint32 tag;
06110 while ((tag = input->ReadTag()) != 0) {
06111 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
06112
06113 case 1: {
06114 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
06115 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
06116 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
06117 input, this->mutable_name()));
06118 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
06119 this->name().data(), this->name().length(),
06120 ::google::protobuf::internal::WireFormat::PARSE);
06121 } else {
06122 goto handle_uninterpreted;
06123 }
06124 if (input->ExpectTag(18)) goto parse_engine;
06125 break;
06126 }
06127
06128
06129 case 2: {
06130 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
06131 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
06132 parse_engine:
06133 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
06134 input, mutable_engine()));
06135 } else {
06136 goto handle_uninterpreted;
06137 }
06138 if (input->ExpectTag(26)) goto parse_field;
06139 break;
06140 }
06141
06142
06143 case 3: {
06144 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
06145 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
06146 parse_field:
06147 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
06148 input, add_field()));
06149 } else {
06150 goto handle_uninterpreted;
06151 }
06152 if (input->ExpectTag(26)) goto parse_field;
06153 if (input->ExpectTag(34)) goto parse_indexes;
06154 break;
06155 }
06156
06157
06158 case 4: {
06159 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
06160 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
06161 parse_indexes:
06162 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
06163 input, add_indexes()));
06164 } else {
06165 goto handle_uninterpreted;
06166 }
06167 if (input->ExpectTag(34)) goto parse_indexes;
06168 if (input->ExpectTag(40)) goto parse_type;
06169 break;
06170 }
06171
06172
06173 case 5: {
06174 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
06175 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
06176 parse_type:
06177 int value;
06178 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
06179 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
06180 input, &value)));
06181 if (::drizzled::message::Table_TableType_IsValid(value)) {
06182 set_type(static_cast< ::drizzled::message::Table_TableType >(value));
06183 } else {
06184 mutable_unknown_fields()->AddVarint(5, value);
06185 }
06186 } else {
06187 goto handle_uninterpreted;
06188 }
06189 if (input->ExpectTag(50)) goto parse_schema;
06190 break;
06191 }
06192
06193
06194 case 6: {
06195 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
06196 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
06197 parse_schema:
06198 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
06199 input, this->mutable_schema()));
06200 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
06201 this->schema().data(), this->schema().length(),
06202 ::google::protobuf::internal::WireFormat::PARSE);
06203 } else {
06204 goto handle_uninterpreted;
06205 }
06206 if (input->ExpectTag(66)) goto parse_fk_constraint;
06207 break;
06208 }
06209
06210
06211 case 8: {
06212 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
06213 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
06214 parse_fk_constraint:
06215 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
06216 input, add_fk_constraint()));
06217 } else {
06218 goto handle_uninterpreted;
06219 }
06220 if (input->ExpectTag(66)) goto parse_fk_constraint;
06221 if (input->ExpectTag(74)) goto parse_options;
06222 break;
06223 }
06224
06225
06226 case 9: {
06227 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
06228 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
06229 parse_options:
06230 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
06231 input, mutable_options()));
06232 } else {
06233 goto handle_uninterpreted;
06234 }
06235 if (input->ExpectTag(88)) goto parse_creation_timestamp;
06236 break;
06237 }
06238
06239
06240 case 11: {
06241 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
06242 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
06243 parse_creation_timestamp:
06244 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
06245 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
06246 input, &creation_timestamp_)));
06247 set_has_creation_timestamp();
06248 } else {
06249 goto handle_uninterpreted;
06250 }
06251 if (input->ExpectTag(96)) goto parse_update_timestamp;
06252 break;
06253 }
06254
06255
06256 case 12: {
06257 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
06258 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
06259 parse_update_timestamp:
06260 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
06261 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
06262 input, &update_timestamp_)));
06263 set_has_update_timestamp();
06264 } else {
06265 goto handle_uninterpreted;
06266 }
06267 if (input->ExpectTag(106)) goto parse_catalog;
06268 break;
06269 }
06270
06271
06272 case 13: {
06273 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
06274 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
06275 parse_catalog:
06276 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
06277 input, this->mutable_catalog()));
06278 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
06279 this->catalog().data(), this->catalog().length(),
06280 ::google::protobuf::internal::WireFormat::PARSE);
06281 } else {
06282 goto handle_uninterpreted;
06283 }
06284 if (input->ExpectTag(114)) goto parse_uuid;
06285 break;
06286 }
06287
06288
06289 case 14: {
06290 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
06291 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
06292 parse_uuid:
06293 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
06294 input, this->mutable_uuid()));
06295 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
06296 this->uuid().data(), this->uuid().length(),
06297 ::google::protobuf::internal::WireFormat::PARSE);
06298 } else {
06299 goto handle_uninterpreted;
06300 }
06301 if (input->ExpectTag(120)) goto parse_version;
06302 break;
06303 }
06304
06305
06306 case 15: {
06307 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
06308 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
06309 parse_version:
06310 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
06311 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
06312 input, &version_)));
06313 set_has_version();
06314 } else {
06315 goto handle_uninterpreted;
06316 }
06317 if (input->ExpectTag(130)) goto parse_replication_options;
06318 break;
06319 }
06320
06321
06322 case 16: {
06323 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
06324 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
06325 parse_replication_options:
06326 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
06327 input, mutable_replication_options()));
06328 } else {
06329 goto handle_uninterpreted;
06330 }
06331 if (input->ExpectAtEnd()) return true;
06332 break;
06333 }
06334
06335 default: {
06336 handle_uninterpreted:
06337 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
06338 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
06339 return true;
06340 }
06341 DO_(::google::protobuf::internal::WireFormat::SkipField(
06342 input, tag, mutable_unknown_fields()));
06343 break;
06344 }
06345 }
06346 }
06347 return true;
06348 #undef DO_
06349 }
06350
06351 void Table::SerializeWithCachedSizes(
06352 ::google::protobuf::io::CodedOutputStream* output) const {
06353
06354 if (has_name()) {
06355 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
06356 this->name().data(), this->name().length(),
06357 ::google::protobuf::internal::WireFormat::SERIALIZE);
06358 ::google::protobuf::internal::WireFormatLite::WriteString(
06359 1, this->name(), output);
06360 }
06361
06362
06363 if (has_engine()) {
06364 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
06365 2, this->engine(), output);
06366 }
06367
06368
06369 for (int i = 0; i < this->field_size(); i++) {
06370 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
06371 3, this->field(i), output);
06372 }
06373
06374
06375 for (int i = 0; i < this->indexes_size(); i++) {
06376 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
06377 4, this->indexes(i), output);
06378 }
06379
06380
06381 if (has_type()) {
06382 ::google::protobuf::internal::WireFormatLite::WriteEnum(
06383 5, this->type(), output);
06384 }
06385
06386
06387 if (has_schema()) {
06388 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
06389 this->schema().data(), this->schema().length(),
06390 ::google::protobuf::internal::WireFormat::SERIALIZE);
06391 ::google::protobuf::internal::WireFormatLite::WriteString(
06392 6, this->schema(), output);
06393 }
06394
06395
06396 for (int i = 0; i < this->fk_constraint_size(); i++) {
06397 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
06398 8, this->fk_constraint(i), output);
06399 }
06400
06401
06402 if (has_options()) {
06403 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
06404 9, this->options(), output);
06405 }
06406
06407
06408 if (has_creation_timestamp()) {
06409 ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->creation_timestamp(), output);
06410 }
06411
06412
06413 if (has_update_timestamp()) {
06414 ::google::protobuf::internal::WireFormatLite::WriteUInt64(12, this->update_timestamp(), output);
06415 }
06416
06417
06418 if (has_catalog()) {
06419 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
06420 this->catalog().data(), this->catalog().length(),
06421 ::google::protobuf::internal::WireFormat::SERIALIZE);
06422 ::google::protobuf::internal::WireFormatLite::WriteString(
06423 13, this->catalog(), output);
06424 }
06425
06426
06427 if (has_uuid()) {
06428 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
06429 this->uuid().data(), this->uuid().length(),
06430 ::google::protobuf::internal::WireFormat::SERIALIZE);
06431 ::google::protobuf::internal::WireFormatLite::WriteString(
06432 14, this->uuid(), output);
06433 }
06434
06435
06436 if (has_version()) {
06437 ::google::protobuf::internal::WireFormatLite::WriteUInt64(15, this->version(), output);
06438 }
06439
06440
06441 if (has_replication_options()) {
06442 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
06443 16, this->replication_options(), output);
06444 }
06445
06446 if (!unknown_fields().empty()) {
06447 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
06448 unknown_fields(), output);
06449 }
06450 }
06451
06452 ::google::protobuf::uint8* Table::SerializeWithCachedSizesToArray(
06453 ::google::protobuf::uint8* target) const {
06454
06455 if (has_name()) {
06456 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
06457 this->name().data(), this->name().length(),
06458 ::google::protobuf::internal::WireFormat::SERIALIZE);
06459 target =
06460 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
06461 1, this->name(), target);
06462 }
06463
06464
06465 if (has_engine()) {
06466 target = ::google::protobuf::internal::WireFormatLite::
06467 WriteMessageNoVirtualToArray(
06468 2, this->engine(), target);
06469 }
06470
06471
06472 for (int i = 0; i < this->field_size(); i++) {
06473 target = ::google::protobuf::internal::WireFormatLite::
06474 WriteMessageNoVirtualToArray(
06475 3, this->field(i), target);
06476 }
06477
06478
06479 for (int i = 0; i < this->indexes_size(); i++) {
06480 target = ::google::protobuf::internal::WireFormatLite::
06481 WriteMessageNoVirtualToArray(
06482 4, this->indexes(i), target);
06483 }
06484
06485
06486 if (has_type()) {
06487 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
06488 5, this->type(), target);
06489 }
06490
06491
06492 if (has_schema()) {
06493 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
06494 this->schema().data(), this->schema().length(),
06495 ::google::protobuf::internal::WireFormat::SERIALIZE);
06496 target =
06497 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
06498 6, this->schema(), target);
06499 }
06500
06501
06502 for (int i = 0; i < this->fk_constraint_size(); i++) {
06503 target = ::google::protobuf::internal::WireFormatLite::
06504 WriteMessageNoVirtualToArray(
06505 8, this->fk_constraint(i), target);
06506 }
06507
06508
06509 if (has_options()) {
06510 target = ::google::protobuf::internal::WireFormatLite::
06511 WriteMessageNoVirtualToArray(
06512 9, this->options(), target);
06513 }
06514
06515
06516 if (has_creation_timestamp()) {
06517 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->creation_timestamp(), target);
06518 }
06519
06520
06521 if (has_update_timestamp()) {
06522 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(12, this->update_timestamp(), target);
06523 }
06524
06525
06526 if (has_catalog()) {
06527 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
06528 this->catalog().data(), this->catalog().length(),
06529 ::google::protobuf::internal::WireFormat::SERIALIZE);
06530 target =
06531 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
06532 13, this->catalog(), target);
06533 }
06534
06535
06536 if (has_uuid()) {
06537 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
06538 this->uuid().data(), this->uuid().length(),
06539 ::google::protobuf::internal::WireFormat::SERIALIZE);
06540 target =
06541 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
06542 14, this->uuid(), target);
06543 }
06544
06545
06546 if (has_version()) {
06547 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(15, this->version(), target);
06548 }
06549
06550
06551 if (has_replication_options()) {
06552 target = ::google::protobuf::internal::WireFormatLite::
06553 WriteMessageNoVirtualToArray(
06554 16, this->replication_options(), target);
06555 }
06556
06557 if (!unknown_fields().empty()) {
06558 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
06559 unknown_fields(), target);
06560 }
06561 return target;
06562 }
06563
06564 int Table::ByteSize() const {
06565 int total_size = 0;
06566
06567 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
06568
06569 if (has_name()) {
06570 total_size += 1 +
06571 ::google::protobuf::internal::WireFormatLite::StringSize(
06572 this->name());
06573 }
06574
06575
06576 if (has_schema()) {
06577 total_size += 1 +
06578 ::google::protobuf::internal::WireFormatLite::StringSize(
06579 this->schema());
06580 }
06581
06582
06583 if (has_type()) {
06584 total_size += 1 +
06585 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
06586 }
06587
06588
06589 if (has_engine()) {
06590 total_size += 1 +
06591 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
06592 this->engine());
06593 }
06594
06595
06596 if (has_options()) {
06597 total_size += 1 +
06598 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
06599 this->options());
06600 }
06601
06602 }
06603 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
06604
06605 if (has_creation_timestamp()) {
06606 total_size += 1 +
06607 ::google::protobuf::internal::WireFormatLite::UInt64Size(
06608 this->creation_timestamp());
06609 }
06610
06611
06612 if (has_update_timestamp()) {
06613 total_size += 1 +
06614 ::google::protobuf::internal::WireFormatLite::UInt64Size(
06615 this->update_timestamp());
06616 }
06617
06618
06619 if (has_catalog()) {
06620 total_size += 1 +
06621 ::google::protobuf::internal::WireFormatLite::StringSize(
06622 this->catalog());
06623 }
06624
06625
06626 if (has_uuid()) {
06627 total_size += 1 +
06628 ::google::protobuf::internal::WireFormatLite::StringSize(
06629 this->uuid());
06630 }
06631
06632
06633 if (has_version()) {
06634 total_size += 1 +
06635 ::google::protobuf::internal::WireFormatLite::UInt64Size(
06636 this->version());
06637 }
06638
06639
06640 if (has_replication_options()) {
06641 total_size += 2 +
06642 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
06643 this->replication_options());
06644 }
06645
06646 }
06647
06648 total_size += 1 * this->field_size();
06649 for (int i = 0; i < this->field_size(); i++) {
06650 total_size +=
06651 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
06652 this->field(i));
06653 }
06654
06655
06656 total_size += 1 * this->indexes_size();
06657 for (int i = 0; i < this->indexes_size(); i++) {
06658 total_size +=
06659 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
06660 this->indexes(i));
06661 }
06662
06663
06664 total_size += 1 * this->fk_constraint_size();
06665 for (int i = 0; i < this->fk_constraint_size(); i++) {
06666 total_size +=
06667 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
06668 this->fk_constraint(i));
06669 }
06670
06671 if (!unknown_fields().empty()) {
06672 total_size +=
06673 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
06674 unknown_fields());
06675 }
06676 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
06677 _cached_size_ = total_size;
06678 GOOGLE_SAFE_CONCURRENT_WRITES_END();
06679 return total_size;
06680 }
06681
06682 void Table::MergeFrom(const ::google::protobuf::Message& from) {
06683 GOOGLE_CHECK_NE(&from, this);
06684 const Table* source =
06685 ::google::protobuf::internal::dynamic_cast_if_available<const Table*>(
06686 &from);
06687 if (source == NULL) {
06688 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
06689 } else {
06690 MergeFrom(*source);
06691 }
06692 }
06693
06694 void Table::MergeFrom(const Table& from) {
06695 GOOGLE_CHECK_NE(&from, this);
06696 field_.MergeFrom(from.field_);
06697 indexes_.MergeFrom(from.indexes_);
06698 fk_constraint_.MergeFrom(from.fk_constraint_);
06699 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
06700 if (from.has_name()) {
06701 set_name(from.name());
06702 }
06703 if (from.has_schema()) {
06704 set_schema(from.schema());
06705 }
06706 if (from.has_type()) {
06707 set_type(from.type());
06708 }
06709 if (from.has_engine()) {
06710 mutable_engine()->::drizzled::message::Engine::MergeFrom(from.engine());
06711 }
06712 if (from.has_options()) {
06713 mutable_options()->::drizzled::message::Table_TableOptions::MergeFrom(from.options());
06714 }
06715 }
06716 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
06717 if (from.has_creation_timestamp()) {
06718 set_creation_timestamp(from.creation_timestamp());
06719 }
06720 if (from.has_update_timestamp()) {
06721 set_update_timestamp(from.update_timestamp());
06722 }
06723 if (from.has_catalog()) {
06724 set_catalog(from.catalog());
06725 }
06726 if (from.has_uuid()) {
06727 set_uuid(from.uuid());
06728 }
06729 if (from.has_version()) {
06730 set_version(from.version());
06731 }
06732 if (from.has_replication_options()) {
06733 mutable_replication_options()->::drizzled::message::ReplicationOptions::MergeFrom(from.replication_options());
06734 }
06735 }
06736 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
06737 }
06738
06739 void Table::CopyFrom(const ::google::protobuf::Message& from) {
06740 if (&from == this) return;
06741 Clear();
06742 MergeFrom(from);
06743 }
06744
06745 void Table::CopyFrom(const Table& from) {
06746 if (&from == this) return;
06747 Clear();
06748 MergeFrom(from);
06749 }
06750
06751 bool Table::IsInitialized() const {
06752 if ((_has_bits_[0] & 0x0000030f) != 0x0000030f) return false;
06753
06754 if (has_engine()) {
06755 if (!this->engine().IsInitialized()) return false;
06756 }
06757 for (int i = 0; i < field_size(); i++) {
06758 if (!this->field(i).IsInitialized()) return false;
06759 }
06760 for (int i = 0; i < indexes_size(); i++) {
06761 if (!this->indexes(i).IsInitialized()) return false;
06762 }
06763 for (int i = 0; i < fk_constraint_size(); i++) {
06764 if (!this->fk_constraint(i).IsInitialized()) return false;
06765 }
06766 return true;
06767 }
06768
06769 void Table::Swap(Table* other) {
06770 if (other != this) {
06771 std::swap(name_, other->name_);
06772 std::swap(schema_, other->schema_);
06773 std::swap(type_, other->type_);
06774 std::swap(engine_, other->engine_);
06775 field_.Swap(&other->field_);
06776 indexes_.Swap(&other->indexes_);
06777 fk_constraint_.Swap(&other->fk_constraint_);
06778 std::swap(options_, other->options_);
06779 std::swap(creation_timestamp_, other->creation_timestamp_);
06780 std::swap(update_timestamp_, other->update_timestamp_);
06781 std::swap(catalog_, other->catalog_);
06782 std::swap(uuid_, other->uuid_);
06783 std::swap(version_, other->version_);
06784 std::swap(replication_options_, other->replication_options_);
06785 std::swap(_has_bits_[0], other->_has_bits_[0]);
06786 _unknown_fields_.Swap(&other->_unknown_fields_);
06787 std::swap(_cached_size_, other->_cached_size_);
06788 }
06789 }
06790
06791 ::google::protobuf::Metadata Table::GetMetadata() const {
06792 protobuf_AssignDescriptorsOnce();
06793 ::google::protobuf::Metadata metadata;
06794 metadata.descriptor = Table_descriptor_;
06795 metadata.reflection = Table_reflection_;
06796 return metadata;
06797 }
06798
06799
06800
06801
06802 #ifndef _MSC_VER
06803 const int AlterTable::kAddedFieldFieldNumber;
06804 #endif // !_MSC_VER
06805
06806 AlterTable::AlterTable()
06807 : ::google::protobuf::Message() {
06808 SharedCtor();
06809 }
06810
06811 void AlterTable::InitAsDefaultInstance() {
06812 }
06813
06814 AlterTable::AlterTable(const AlterTable& from)
06815 : ::google::protobuf::Message() {
06816 SharedCtor();
06817 MergeFrom(from);
06818 }
06819
06820 void AlterTable::SharedCtor() {
06821 _cached_size_ = 0;
06822 ::memset(_has_bits_, 0, sizeof(_has_bits_));
06823 }
06824
06825 AlterTable::~AlterTable() {
06826 SharedDtor();
06827 }
06828
06829 void AlterTable::SharedDtor() {
06830 if (this != default_instance_) {
06831 }
06832 }
06833
06834 void AlterTable::SetCachedSize(int size) const {
06835 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
06836 _cached_size_ = size;
06837 GOOGLE_SAFE_CONCURRENT_WRITES_END();
06838 }
06839 const ::google::protobuf::Descriptor* AlterTable::descriptor() {
06840 protobuf_AssignDescriptorsOnce();
06841 return AlterTable_descriptor_;
06842 }
06843
06844 const AlterTable& AlterTable::default_instance() {
06845 if (default_instance_ == NULL) protobuf_AddDesc_table_2eproto(); return *default_instance_;
06846 }
06847
06848 AlterTable* AlterTable::default_instance_ = NULL;
06849
06850 AlterTable* AlterTable::New() const {
06851 return new AlterTable;
06852 }
06853
06854 void AlterTable::Clear() {
06855 added_field_.Clear();
06856 ::memset(_has_bits_, 0, sizeof(_has_bits_));
06857 mutable_unknown_fields()->Clear();
06858 }
06859
06860 bool AlterTable::MergePartialFromCodedStream(
06861 ::google::protobuf::io::CodedInputStream* input) {
06862 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
06863 ::google::protobuf::uint32 tag;
06864 while ((tag = input->ReadTag()) != 0) {
06865 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
06866
06867 case 1: {
06868 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
06869 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
06870 parse_added_field:
06871 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
06872 input, add_added_field()));
06873 } else {
06874 goto handle_uninterpreted;
06875 }
06876 if (input->ExpectTag(10)) goto parse_added_field;
06877 if (input->ExpectAtEnd()) return true;
06878 break;
06879 }
06880
06881 default: {
06882 handle_uninterpreted:
06883 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
06884 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
06885 return true;
06886 }
06887 DO_(::google::protobuf::internal::WireFormat::SkipField(
06888 input, tag, mutable_unknown_fields()));
06889 break;
06890 }
06891 }
06892 }
06893 return true;
06894 #undef DO_
06895 }
06896
06897 void AlterTable::SerializeWithCachedSizes(
06898 ::google::protobuf::io::CodedOutputStream* output) const {
06899
06900 for (int i = 0; i < this->added_field_size(); i++) {
06901 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
06902 1, this->added_field(i), output);
06903 }
06904
06905 if (!unknown_fields().empty()) {
06906 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
06907 unknown_fields(), output);
06908 }
06909 }
06910
06911 ::google::protobuf::uint8* AlterTable::SerializeWithCachedSizesToArray(
06912 ::google::protobuf::uint8* target) const {
06913
06914 for (int i = 0; i < this->added_field_size(); i++) {
06915 target = ::google::protobuf::internal::WireFormatLite::
06916 WriteMessageNoVirtualToArray(
06917 1, this->added_field(i), target);
06918 }
06919
06920 if (!unknown_fields().empty()) {
06921 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
06922 unknown_fields(), target);
06923 }
06924 return target;
06925 }
06926
06927 int AlterTable::ByteSize() const {
06928 int total_size = 0;
06929
06930
06931 total_size += 1 * this->added_field_size();
06932 for (int i = 0; i < this->added_field_size(); i++) {
06933 total_size +=
06934 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
06935 this->added_field(i));
06936 }
06937
06938 if (!unknown_fields().empty()) {
06939 total_size +=
06940 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
06941 unknown_fields());
06942 }
06943 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
06944 _cached_size_ = total_size;
06945 GOOGLE_SAFE_CONCURRENT_WRITES_END();
06946 return total_size;
06947 }
06948
06949 void AlterTable::MergeFrom(const ::google::protobuf::Message& from) {
06950 GOOGLE_CHECK_NE(&from, this);
06951 const AlterTable* source =
06952 ::google::protobuf::internal::dynamic_cast_if_available<const AlterTable*>(
06953 &from);
06954 if (source == NULL) {
06955 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
06956 } else {
06957 MergeFrom(*source);
06958 }
06959 }
06960
06961 void AlterTable::MergeFrom(const AlterTable& from) {
06962 GOOGLE_CHECK_NE(&from, this);
06963 added_field_.MergeFrom(from.added_field_);
06964 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
06965 }
06966
06967 void AlterTable::CopyFrom(const ::google::protobuf::Message& from) {
06968 if (&from == this) return;
06969 Clear();
06970 MergeFrom(from);
06971 }
06972
06973 void AlterTable::CopyFrom(const AlterTable& from) {
06974 if (&from == this) return;
06975 Clear();
06976 MergeFrom(from);
06977 }
06978
06979 bool AlterTable::IsInitialized() const {
06980
06981 for (int i = 0; i < added_field_size(); i++) {
06982 if (!this->added_field(i).IsInitialized()) return false;
06983 }
06984 return true;
06985 }
06986
06987 void AlterTable::Swap(AlterTable* other) {
06988 if (other != this) {
06989 added_field_.Swap(&other->added_field_);
06990 std::swap(_has_bits_[0], other->_has_bits_[0]);
06991 _unknown_fields_.Swap(&other->_unknown_fields_);
06992 std::swap(_cached_size_, other->_cached_size_);
06993 }
06994 }
06995
06996 ::google::protobuf::Metadata AlterTable::GetMetadata() const {
06997 protobuf_AssignDescriptorsOnce();
06998 ::google::protobuf::Metadata metadata;
06999 metadata.descriptor = AlterTable_descriptor_;
07000 metadata.reflection = AlterTable_reflection_;
07001 return metadata;
07002 }
07003
07004
07005
07006
07007 }
07008 }
07009
07010