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