00001
00002
00003 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
00004 #include "resultset.pb.h"
00005
00006 #include <algorithm>
00007
00008 #include <google/protobuf/stubs/once.h>
00009 #include <google/protobuf/io/coded_stream.h>
00010 #include <google/protobuf/wire_format_lite_inl.h>
00011 #include <google/protobuf/descriptor.h>
00012 #include <google/protobuf/reflection_ops.h>
00013 #include <google/protobuf/wire_format.h>
00014
00015
00016 namespace drizzled {
00017 namespace message {
00018
00019 namespace {
00020
00021 const ::google::protobuf::Descriptor* FieldMeta_descriptor_ = NULL;
00022 const ::google::protobuf::internal::GeneratedMessageReflection*
00023 FieldMeta_reflection_ = NULL;
00024 const ::google::protobuf::Descriptor* TableMeta_descriptor_ = NULL;
00025 const ::google::protobuf::internal::GeneratedMessageReflection*
00026 TableMeta_reflection_ = NULL;
00027 const ::google::protobuf::Descriptor* SelectRecord_descriptor_ = NULL;
00028 const ::google::protobuf::internal::GeneratedMessageReflection*
00029 SelectRecord_reflection_ = NULL;
00030 const ::google::protobuf::Descriptor* SelectHeader_descriptor_ = NULL;
00031 const ::google::protobuf::internal::GeneratedMessageReflection*
00032 SelectHeader_reflection_ = NULL;
00033 const ::google::protobuf::Descriptor* SelectData_descriptor_ = NULL;
00034 const ::google::protobuf::internal::GeneratedMessageReflection*
00035 SelectData_reflection_ = NULL;
00036 const ::google::protobuf::Descriptor* Resultset_descriptor_ = NULL;
00037 const ::google::protobuf::internal::GeneratedMessageReflection*
00038 Resultset_reflection_ = NULL;
00039
00040 }
00041
00042
00043 void protobuf_AssignDesc_resultset_2eproto() {
00044 protobuf_AddDesc_resultset_2eproto();
00045 const ::google::protobuf::FileDescriptor* file =
00046 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
00047 "resultset.proto");
00048 GOOGLE_CHECK(file != NULL);
00049 FieldMeta_descriptor_ = file->message_type(0);
00050 static const int FieldMeta_offsets_[5] = {
00051 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, field_name_),
00052 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, field_alias_),
00053 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, table_name_),
00054 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, table_alias_),
00055 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, schema_name_),
00056 };
00057 FieldMeta_reflection_ =
00058 new ::google::protobuf::internal::GeneratedMessageReflection(
00059 FieldMeta_descriptor_,
00060 FieldMeta::default_instance_,
00061 FieldMeta_offsets_,
00062 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, _has_bits_[0]),
00063 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, _unknown_fields_),
00064 -1,
00065 ::google::protobuf::DescriptorPool::generated_pool(),
00066 ::google::protobuf::MessageFactory::generated_factory(),
00067 sizeof(FieldMeta));
00068 TableMeta_descriptor_ = file->message_type(1);
00069 static const int TableMeta_offsets_[3] = {
00070 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableMeta, schema_name_),
00071 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableMeta, table_name_),
00072 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableMeta, table_alias_),
00073 };
00074 TableMeta_reflection_ =
00075 new ::google::protobuf::internal::GeneratedMessageReflection(
00076 TableMeta_descriptor_,
00077 TableMeta::default_instance_,
00078 TableMeta_offsets_,
00079 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableMeta, _has_bits_[0]),
00080 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableMeta, _unknown_fields_),
00081 -1,
00082 ::google::protobuf::DescriptorPool::generated_pool(),
00083 ::google::protobuf::MessageFactory::generated_factory(),
00084 sizeof(TableMeta));
00085 SelectRecord_descriptor_ = file->message_type(2);
00086 static const int SelectRecord_offsets_[2] = {
00087 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectRecord, record_value_),
00088 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectRecord, is_null_),
00089 };
00090 SelectRecord_reflection_ =
00091 new ::google::protobuf::internal::GeneratedMessageReflection(
00092 SelectRecord_descriptor_,
00093 SelectRecord::default_instance_,
00094 SelectRecord_offsets_,
00095 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectRecord, _has_bits_[0]),
00096 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectRecord, _unknown_fields_),
00097 -1,
00098 ::google::protobuf::DescriptorPool::generated_pool(),
00099 ::google::protobuf::MessageFactory::generated_factory(),
00100 sizeof(SelectRecord));
00101 SelectHeader_descriptor_ = file->message_type(3);
00102 static const int SelectHeader_offsets_[2] = {
00103 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectHeader, table_meta_),
00104 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectHeader, field_meta_),
00105 };
00106 SelectHeader_reflection_ =
00107 new ::google::protobuf::internal::GeneratedMessageReflection(
00108 SelectHeader_descriptor_,
00109 SelectHeader::default_instance_,
00110 SelectHeader_offsets_,
00111 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectHeader, _has_bits_[0]),
00112 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectHeader, _unknown_fields_),
00113 -1,
00114 ::google::protobuf::DescriptorPool::generated_pool(),
00115 ::google::protobuf::MessageFactory::generated_factory(),
00116 sizeof(SelectHeader));
00117 SelectData_descriptor_ = file->message_type(4);
00118 static const int SelectData_offsets_[3] = {
00119 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectData, segment_id_),
00120 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectData, end_segment_),
00121 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectData, record_),
00122 };
00123 SelectData_reflection_ =
00124 new ::google::protobuf::internal::GeneratedMessageReflection(
00125 SelectData_descriptor_,
00126 SelectData::default_instance_,
00127 SelectData_offsets_,
00128 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectData, _has_bits_[0]),
00129 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectData, _unknown_fields_),
00130 -1,
00131 ::google::protobuf::DescriptorPool::generated_pool(),
00132 ::google::protobuf::MessageFactory::generated_factory(),
00133 sizeof(SelectData));
00134 Resultset_descriptor_ = file->message_type(5);
00135 static const int Resultset_offsets_[5] = {
00136 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Resultset, key_),
00137 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Resultset, schema_),
00138 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Resultset, sql_),
00139 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Resultset, select_header_),
00140 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Resultset, select_data_),
00141 };
00142 Resultset_reflection_ =
00143 new ::google::protobuf::internal::GeneratedMessageReflection(
00144 Resultset_descriptor_,
00145 Resultset::default_instance_,
00146 Resultset_offsets_,
00147 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Resultset, _has_bits_[0]),
00148 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Resultset, _unknown_fields_),
00149 -1,
00150 ::google::protobuf::DescriptorPool::generated_pool(),
00151 ::google::protobuf::MessageFactory::generated_factory(),
00152 sizeof(Resultset));
00153 }
00154
00155 namespace {
00156
00157 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
00158 inline void protobuf_AssignDescriptorsOnce() {
00159 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
00160 &protobuf_AssignDesc_resultset_2eproto);
00161 }
00162
00163 void protobuf_RegisterTypes(const ::std::string&) {
00164 protobuf_AssignDescriptorsOnce();
00165 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00166 FieldMeta_descriptor_, &FieldMeta::default_instance());
00167 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00168 TableMeta_descriptor_, &TableMeta::default_instance());
00169 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00170 SelectRecord_descriptor_, &SelectRecord::default_instance());
00171 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00172 SelectHeader_descriptor_, &SelectHeader::default_instance());
00173 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00174 SelectData_descriptor_, &SelectData::default_instance());
00175 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00176 Resultset_descriptor_, &Resultset::default_instance());
00177 }
00178
00179 }
00180
00181 void protobuf_ShutdownFile_resultset_2eproto() {
00182 delete FieldMeta::default_instance_;
00183 delete FieldMeta_reflection_;
00184 delete TableMeta::default_instance_;
00185 delete TableMeta_reflection_;
00186 delete SelectRecord::default_instance_;
00187 delete SelectRecord_reflection_;
00188 delete SelectHeader::default_instance_;
00189 delete SelectHeader_reflection_;
00190 delete SelectData::default_instance_;
00191 delete SelectData_reflection_;
00192 delete Resultset::default_instance_;
00193 delete Resultset_reflection_;
00194 }
00195
00196 void protobuf_AddDesc_resultset_2eproto() {
00197 static bool already_here = false;
00198 if (already_here) return;
00199 already_here = true;
00200 GOOGLE_PROTOBUF_VERIFY_VERSION;
00201
00202 ::drizzled::message::protobuf_AddDesc_table_2eproto();
00203 ::drizzled::message::protobuf_AddDesc_schema_2eproto();
00204 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
00205 "\n\017resultset.proto\022\020drizzled.message\032\013tab"
00206 "le.proto\032\014schema.proto\"r\n\tFieldMeta\022\022\n\nf"
00207 "ield_name\030\001 \002(\t\022\023\n\013field_alias\030\002 \001(\t\022\022\n\n"
00208 "table_name\030\003 \002(\t\022\023\n\013table_alias\030\004 \001(\t\022\023\n"
00209 "\013schema_name\030\005 \002(\t\"I\n\tTableMeta\022\023\n\013schem"
00210 "a_name\030\001 \002(\t\022\022\n\ntable_name\030\002 \002(\t\022\023\n\013tabl"
00211 "e_alias\030\003 \001(\t\"5\n\014SelectRecord\022\024\n\014record_"
00212 "value\030\001 \003(\014\022\017\n\007is_null\030\002 \003(\010\"p\n\014SelectHe"
00213 "ader\022/\n\ntable_meta\030\001 \003(\0132\033.drizzled.mess"
00214 "age.TableMeta\022/\n\nfield_meta\030\002 \003(\0132\033.driz"
00215 "zled.message.FieldMeta\"e\n\nSelectData\022\022\n\n"
00216 "segment_id\030\001 \002(\r\022\023\n\013end_segment\030\002 \002(\010\022.\n"
00217 "\006record\030\003 \003(\0132\036.drizzled.message.SelectR"
00218 "ecord\"\237\001\n\tResultset\022\013\n\003key\030\001 \002(\t\022\016\n\006sche"
00219 "ma\030\002 \002(\t\022\013\n\003sql\030\003 \001(\t\0225\n\rselect_header\030\004"
00220 " \001(\0132\036.drizzled.message.SelectHeader\0221\n\013"
00221 "select_data\030\005 \001(\0132\034.drizzled.message.Sel"
00222 "ectDataB*\n\024org.drizzle.messagesB\020ResultS"
00223 "etMessageH\001", 731);
00224 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
00225 "resultset.proto", &protobuf_RegisterTypes);
00226 FieldMeta::default_instance_ = new FieldMeta();
00227 TableMeta::default_instance_ = new TableMeta();
00228 SelectRecord::default_instance_ = new SelectRecord();
00229 SelectHeader::default_instance_ = new SelectHeader();
00230 SelectData::default_instance_ = new SelectData();
00231 Resultset::default_instance_ = new Resultset();
00232 FieldMeta::default_instance_->InitAsDefaultInstance();
00233 TableMeta::default_instance_->InitAsDefaultInstance();
00234 SelectRecord::default_instance_->InitAsDefaultInstance();
00235 SelectHeader::default_instance_->InitAsDefaultInstance();
00236 SelectData::default_instance_->InitAsDefaultInstance();
00237 Resultset::default_instance_->InitAsDefaultInstance();
00238 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_resultset_2eproto);
00239 }
00240
00241
00242 struct StaticDescriptorInitializer_resultset_2eproto {
00243 StaticDescriptorInitializer_resultset_2eproto() {
00244 protobuf_AddDesc_resultset_2eproto();
00245 }
00246 } static_descriptor_initializer_resultset_2eproto_;
00247
00248
00249
00250
00251 #ifndef _MSC_VER
00252 const int FieldMeta::kFieldNameFieldNumber;
00253 const int FieldMeta::kFieldAliasFieldNumber;
00254 const int FieldMeta::kTableNameFieldNumber;
00255 const int FieldMeta::kTableAliasFieldNumber;
00256 const int FieldMeta::kSchemaNameFieldNumber;
00257 #endif // !_MSC_VER
00258
00259 FieldMeta::FieldMeta()
00260 : ::google::protobuf::Message() {
00261 SharedCtor();
00262 }
00263
00264 void FieldMeta::InitAsDefaultInstance() {
00265 }
00266
00267 FieldMeta::FieldMeta(const FieldMeta& from)
00268 : ::google::protobuf::Message() {
00269 SharedCtor();
00270 MergeFrom(from);
00271 }
00272
00273 void FieldMeta::SharedCtor() {
00274 _cached_size_ = 0;
00275 field_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00276 field_alias_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00277 table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00278 table_alias_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00279 schema_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00280 ::memset(_has_bits_, 0, sizeof(_has_bits_));
00281 }
00282
00283 FieldMeta::~FieldMeta() {
00284 SharedDtor();
00285 }
00286
00287 void FieldMeta::SharedDtor() {
00288 if (field_name_ != &::google::protobuf::internal::kEmptyString) {
00289 delete field_name_;
00290 }
00291 if (field_alias_ != &::google::protobuf::internal::kEmptyString) {
00292 delete field_alias_;
00293 }
00294 if (table_name_ != &::google::protobuf::internal::kEmptyString) {
00295 delete table_name_;
00296 }
00297 if (table_alias_ != &::google::protobuf::internal::kEmptyString) {
00298 delete table_alias_;
00299 }
00300 if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
00301 delete schema_name_;
00302 }
00303 if (this != default_instance_) {
00304 }
00305 }
00306
00307 void FieldMeta::SetCachedSize(int size) const {
00308 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
00309 _cached_size_ = size;
00310 GOOGLE_SAFE_CONCURRENT_WRITES_END();
00311 }
00312 const ::google::protobuf::Descriptor* FieldMeta::descriptor() {
00313 protobuf_AssignDescriptorsOnce();
00314 return FieldMeta_descriptor_;
00315 }
00316
00317 const FieldMeta& FieldMeta::default_instance() {
00318 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto(); return *default_instance_;
00319 }
00320
00321 FieldMeta* FieldMeta::default_instance_ = NULL;
00322
00323 FieldMeta* FieldMeta::New() const {
00324 return new FieldMeta;
00325 }
00326
00327 void FieldMeta::Clear() {
00328 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00329 if (has_field_name()) {
00330 if (field_name_ != &::google::protobuf::internal::kEmptyString) {
00331 field_name_->clear();
00332 }
00333 }
00334 if (has_field_alias()) {
00335 if (field_alias_ != &::google::protobuf::internal::kEmptyString) {
00336 field_alias_->clear();
00337 }
00338 }
00339 if (has_table_name()) {
00340 if (table_name_ != &::google::protobuf::internal::kEmptyString) {
00341 table_name_->clear();
00342 }
00343 }
00344 if (has_table_alias()) {
00345 if (table_alias_ != &::google::protobuf::internal::kEmptyString) {
00346 table_alias_->clear();
00347 }
00348 }
00349 if (has_schema_name()) {
00350 if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
00351 schema_name_->clear();
00352 }
00353 }
00354 }
00355 ::memset(_has_bits_, 0, sizeof(_has_bits_));
00356 mutable_unknown_fields()->Clear();
00357 }
00358
00359 bool FieldMeta::MergePartialFromCodedStream(
00360 ::google::protobuf::io::CodedInputStream* input) {
00361 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
00362 ::google::protobuf::uint32 tag;
00363 while ((tag = input->ReadTag()) != 0) {
00364 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
00365
00366 case 1: {
00367 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00368 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00369 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
00370 input, this->mutable_field_name()));
00371 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00372 this->field_name().data(), this->field_name().length(),
00373 ::google::protobuf::internal::WireFormat::PARSE);
00374 } else {
00375 goto handle_uninterpreted;
00376 }
00377 if (input->ExpectTag(18)) goto parse_field_alias;
00378 break;
00379 }
00380
00381
00382 case 2: {
00383 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00384 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00385 parse_field_alias:
00386 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
00387 input, this->mutable_field_alias()));
00388 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00389 this->field_alias().data(), this->field_alias().length(),
00390 ::google::protobuf::internal::WireFormat::PARSE);
00391 } else {
00392 goto handle_uninterpreted;
00393 }
00394 if (input->ExpectTag(26)) goto parse_table_name;
00395 break;
00396 }
00397
00398
00399 case 3: {
00400 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00401 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00402 parse_table_name:
00403 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
00404 input, this->mutable_table_name()));
00405 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00406 this->table_name().data(), this->table_name().length(),
00407 ::google::protobuf::internal::WireFormat::PARSE);
00408 } else {
00409 goto handle_uninterpreted;
00410 }
00411 if (input->ExpectTag(34)) goto parse_table_alias;
00412 break;
00413 }
00414
00415
00416 case 4: {
00417 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00418 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00419 parse_table_alias:
00420 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
00421 input, this->mutable_table_alias()));
00422 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00423 this->table_alias().data(), this->table_alias().length(),
00424 ::google::protobuf::internal::WireFormat::PARSE);
00425 } else {
00426 goto handle_uninterpreted;
00427 }
00428 if (input->ExpectTag(42)) goto parse_schema_name;
00429 break;
00430 }
00431
00432
00433 case 5: {
00434 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00435 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00436 parse_schema_name:
00437 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
00438 input, this->mutable_schema_name()));
00439 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00440 this->schema_name().data(), this->schema_name().length(),
00441 ::google::protobuf::internal::WireFormat::PARSE);
00442 } else {
00443 goto handle_uninterpreted;
00444 }
00445 if (input->ExpectAtEnd()) return true;
00446 break;
00447 }
00448
00449 default: {
00450 handle_uninterpreted:
00451 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00452 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
00453 return true;
00454 }
00455 DO_(::google::protobuf::internal::WireFormat::SkipField(
00456 input, tag, mutable_unknown_fields()));
00457 break;
00458 }
00459 }
00460 }
00461 return true;
00462 #undef DO_
00463 }
00464
00465 void FieldMeta::SerializeWithCachedSizes(
00466 ::google::protobuf::io::CodedOutputStream* output) const {
00467
00468 if (has_field_name()) {
00469 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00470 this->field_name().data(), this->field_name().length(),
00471 ::google::protobuf::internal::WireFormat::SERIALIZE);
00472 ::google::protobuf::internal::WireFormatLite::WriteString(
00473 1, this->field_name(), output);
00474 }
00475
00476
00477 if (has_field_alias()) {
00478 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00479 this->field_alias().data(), this->field_alias().length(),
00480 ::google::protobuf::internal::WireFormat::SERIALIZE);
00481 ::google::protobuf::internal::WireFormatLite::WriteString(
00482 2, this->field_alias(), output);
00483 }
00484
00485
00486 if (has_table_name()) {
00487 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00488 this->table_name().data(), this->table_name().length(),
00489 ::google::protobuf::internal::WireFormat::SERIALIZE);
00490 ::google::protobuf::internal::WireFormatLite::WriteString(
00491 3, this->table_name(), output);
00492 }
00493
00494
00495 if (has_table_alias()) {
00496 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00497 this->table_alias().data(), this->table_alias().length(),
00498 ::google::protobuf::internal::WireFormat::SERIALIZE);
00499 ::google::protobuf::internal::WireFormatLite::WriteString(
00500 4, this->table_alias(), output);
00501 }
00502
00503
00504 if (has_schema_name()) {
00505 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00506 this->schema_name().data(), this->schema_name().length(),
00507 ::google::protobuf::internal::WireFormat::SERIALIZE);
00508 ::google::protobuf::internal::WireFormatLite::WriteString(
00509 5, this->schema_name(), output);
00510 }
00511
00512 if (!unknown_fields().empty()) {
00513 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
00514 unknown_fields(), output);
00515 }
00516 }
00517
00518 ::google::protobuf::uint8* FieldMeta::SerializeWithCachedSizesToArray(
00519 ::google::protobuf::uint8* target) const {
00520
00521 if (has_field_name()) {
00522 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00523 this->field_name().data(), this->field_name().length(),
00524 ::google::protobuf::internal::WireFormat::SERIALIZE);
00525 target =
00526 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
00527 1, this->field_name(), target);
00528 }
00529
00530
00531 if (has_field_alias()) {
00532 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00533 this->field_alias().data(), this->field_alias().length(),
00534 ::google::protobuf::internal::WireFormat::SERIALIZE);
00535 target =
00536 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
00537 2, this->field_alias(), target);
00538 }
00539
00540
00541 if (has_table_name()) {
00542 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00543 this->table_name().data(), this->table_name().length(),
00544 ::google::protobuf::internal::WireFormat::SERIALIZE);
00545 target =
00546 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
00547 3, this->table_name(), target);
00548 }
00549
00550
00551 if (has_table_alias()) {
00552 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00553 this->table_alias().data(), this->table_alias().length(),
00554 ::google::protobuf::internal::WireFormat::SERIALIZE);
00555 target =
00556 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
00557 4, this->table_alias(), target);
00558 }
00559
00560
00561 if (has_schema_name()) {
00562 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00563 this->schema_name().data(), this->schema_name().length(),
00564 ::google::protobuf::internal::WireFormat::SERIALIZE);
00565 target =
00566 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
00567 5, this->schema_name(), target);
00568 }
00569
00570 if (!unknown_fields().empty()) {
00571 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
00572 unknown_fields(), target);
00573 }
00574 return target;
00575 }
00576
00577 int FieldMeta::ByteSize() const {
00578 int total_size = 0;
00579
00580 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00581
00582 if (has_field_name()) {
00583 total_size += 1 +
00584 ::google::protobuf::internal::WireFormatLite::StringSize(
00585 this->field_name());
00586 }
00587
00588
00589 if (has_field_alias()) {
00590 total_size += 1 +
00591 ::google::protobuf::internal::WireFormatLite::StringSize(
00592 this->field_alias());
00593 }
00594
00595
00596 if (has_table_name()) {
00597 total_size += 1 +
00598 ::google::protobuf::internal::WireFormatLite::StringSize(
00599 this->table_name());
00600 }
00601
00602
00603 if (has_table_alias()) {
00604 total_size += 1 +
00605 ::google::protobuf::internal::WireFormatLite::StringSize(
00606 this->table_alias());
00607 }
00608
00609
00610 if (has_schema_name()) {
00611 total_size += 1 +
00612 ::google::protobuf::internal::WireFormatLite::StringSize(
00613 this->schema_name());
00614 }
00615
00616 }
00617 if (!unknown_fields().empty()) {
00618 total_size +=
00619 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
00620 unknown_fields());
00621 }
00622 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
00623 _cached_size_ = total_size;
00624 GOOGLE_SAFE_CONCURRENT_WRITES_END();
00625 return total_size;
00626 }
00627
00628 void FieldMeta::MergeFrom(const ::google::protobuf::Message& from) {
00629 GOOGLE_CHECK_NE(&from, this);
00630 const FieldMeta* source =
00631 ::google::protobuf::internal::dynamic_cast_if_available<const FieldMeta*>(
00632 &from);
00633 if (source == NULL) {
00634 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
00635 } else {
00636 MergeFrom(*source);
00637 }
00638 }
00639
00640 void FieldMeta::MergeFrom(const FieldMeta& from) {
00641 GOOGLE_CHECK_NE(&from, this);
00642 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00643 if (from.has_field_name()) {
00644 set_field_name(from.field_name());
00645 }
00646 if (from.has_field_alias()) {
00647 set_field_alias(from.field_alias());
00648 }
00649 if (from.has_table_name()) {
00650 set_table_name(from.table_name());
00651 }
00652 if (from.has_table_alias()) {
00653 set_table_alias(from.table_alias());
00654 }
00655 if (from.has_schema_name()) {
00656 set_schema_name(from.schema_name());
00657 }
00658 }
00659 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
00660 }
00661
00662 void FieldMeta::CopyFrom(const ::google::protobuf::Message& from) {
00663 if (&from == this) return;
00664 Clear();
00665 MergeFrom(from);
00666 }
00667
00668 void FieldMeta::CopyFrom(const FieldMeta& from) {
00669 if (&from == this) return;
00670 Clear();
00671 MergeFrom(from);
00672 }
00673
00674 bool FieldMeta::IsInitialized() const {
00675 if ((_has_bits_[0] & 0x00000015) != 0x00000015) return false;
00676
00677 return true;
00678 }
00679
00680 void FieldMeta::Swap(FieldMeta* other) {
00681 if (other != this) {
00682 std::swap(field_name_, other->field_name_);
00683 std::swap(field_alias_, other->field_alias_);
00684 std::swap(table_name_, other->table_name_);
00685 std::swap(table_alias_, other->table_alias_);
00686 std::swap(schema_name_, other->schema_name_);
00687 std::swap(_has_bits_[0], other->_has_bits_[0]);
00688 _unknown_fields_.Swap(&other->_unknown_fields_);
00689 std::swap(_cached_size_, other->_cached_size_);
00690 }
00691 }
00692
00693 ::google::protobuf::Metadata FieldMeta::GetMetadata() const {
00694 protobuf_AssignDescriptorsOnce();
00695 ::google::protobuf::Metadata metadata;
00696 metadata.descriptor = FieldMeta_descriptor_;
00697 metadata.reflection = FieldMeta_reflection_;
00698 return metadata;
00699 }
00700
00701
00702
00703
00704 #ifndef _MSC_VER
00705 const int TableMeta::kSchemaNameFieldNumber;
00706 const int TableMeta::kTableNameFieldNumber;
00707 const int TableMeta::kTableAliasFieldNumber;
00708 #endif // !_MSC_VER
00709
00710 TableMeta::TableMeta()
00711 : ::google::protobuf::Message() {
00712 SharedCtor();
00713 }
00714
00715 void TableMeta::InitAsDefaultInstance() {
00716 }
00717
00718 TableMeta::TableMeta(const TableMeta& from)
00719 : ::google::protobuf::Message() {
00720 SharedCtor();
00721 MergeFrom(from);
00722 }
00723
00724 void TableMeta::SharedCtor() {
00725 _cached_size_ = 0;
00726 schema_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00727 table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00728 table_alias_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00729 ::memset(_has_bits_, 0, sizeof(_has_bits_));
00730 }
00731
00732 TableMeta::~TableMeta() {
00733 SharedDtor();
00734 }
00735
00736 void TableMeta::SharedDtor() {
00737 if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
00738 delete schema_name_;
00739 }
00740 if (table_name_ != &::google::protobuf::internal::kEmptyString) {
00741 delete table_name_;
00742 }
00743 if (table_alias_ != &::google::protobuf::internal::kEmptyString) {
00744 delete table_alias_;
00745 }
00746 if (this != default_instance_) {
00747 }
00748 }
00749
00750 void TableMeta::SetCachedSize(int size) const {
00751 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
00752 _cached_size_ = size;
00753 GOOGLE_SAFE_CONCURRENT_WRITES_END();
00754 }
00755 const ::google::protobuf::Descriptor* TableMeta::descriptor() {
00756 protobuf_AssignDescriptorsOnce();
00757 return TableMeta_descriptor_;
00758 }
00759
00760 const TableMeta& TableMeta::default_instance() {
00761 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto(); return *default_instance_;
00762 }
00763
00764 TableMeta* TableMeta::default_instance_ = NULL;
00765
00766 TableMeta* TableMeta::New() const {
00767 return new TableMeta;
00768 }
00769
00770 void TableMeta::Clear() {
00771 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00772 if (has_schema_name()) {
00773 if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
00774 schema_name_->clear();
00775 }
00776 }
00777 if (has_table_name()) {
00778 if (table_name_ != &::google::protobuf::internal::kEmptyString) {
00779 table_name_->clear();
00780 }
00781 }
00782 if (has_table_alias()) {
00783 if (table_alias_ != &::google::protobuf::internal::kEmptyString) {
00784 table_alias_->clear();
00785 }
00786 }
00787 }
00788 ::memset(_has_bits_, 0, sizeof(_has_bits_));
00789 mutable_unknown_fields()->Clear();
00790 }
00791
00792 bool TableMeta::MergePartialFromCodedStream(
00793 ::google::protobuf::io::CodedInputStream* input) {
00794 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
00795 ::google::protobuf::uint32 tag;
00796 while ((tag = input->ReadTag()) != 0) {
00797 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
00798
00799 case 1: {
00800 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00801 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00802 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
00803 input, this->mutable_schema_name()));
00804 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00805 this->schema_name().data(), this->schema_name().length(),
00806 ::google::protobuf::internal::WireFormat::PARSE);
00807 } else {
00808 goto handle_uninterpreted;
00809 }
00810 if (input->ExpectTag(18)) goto parse_table_name;
00811 break;
00812 }
00813
00814
00815 case 2: {
00816 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00817 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00818 parse_table_name:
00819 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
00820 input, this->mutable_table_name()));
00821 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00822 this->table_name().data(), this->table_name().length(),
00823 ::google::protobuf::internal::WireFormat::PARSE);
00824 } else {
00825 goto handle_uninterpreted;
00826 }
00827 if (input->ExpectTag(26)) goto parse_table_alias;
00828 break;
00829 }
00830
00831
00832 case 3: {
00833 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00834 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00835 parse_table_alias:
00836 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
00837 input, this->mutable_table_alias()));
00838 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00839 this->table_alias().data(), this->table_alias().length(),
00840 ::google::protobuf::internal::WireFormat::PARSE);
00841 } else {
00842 goto handle_uninterpreted;
00843 }
00844 if (input->ExpectAtEnd()) return true;
00845 break;
00846 }
00847
00848 default: {
00849 handle_uninterpreted:
00850 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00851 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
00852 return true;
00853 }
00854 DO_(::google::protobuf::internal::WireFormat::SkipField(
00855 input, tag, mutable_unknown_fields()));
00856 break;
00857 }
00858 }
00859 }
00860 return true;
00861 #undef DO_
00862 }
00863
00864 void TableMeta::SerializeWithCachedSizes(
00865 ::google::protobuf::io::CodedOutputStream* output) const {
00866
00867 if (has_schema_name()) {
00868 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00869 this->schema_name().data(), this->schema_name().length(),
00870 ::google::protobuf::internal::WireFormat::SERIALIZE);
00871 ::google::protobuf::internal::WireFormatLite::WriteString(
00872 1, this->schema_name(), output);
00873 }
00874
00875
00876 if (has_table_name()) {
00877 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00878 this->table_name().data(), this->table_name().length(),
00879 ::google::protobuf::internal::WireFormat::SERIALIZE);
00880 ::google::protobuf::internal::WireFormatLite::WriteString(
00881 2, this->table_name(), output);
00882 }
00883
00884
00885 if (has_table_alias()) {
00886 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00887 this->table_alias().data(), this->table_alias().length(),
00888 ::google::protobuf::internal::WireFormat::SERIALIZE);
00889 ::google::protobuf::internal::WireFormatLite::WriteString(
00890 3, this->table_alias(), output);
00891 }
00892
00893 if (!unknown_fields().empty()) {
00894 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
00895 unknown_fields(), output);
00896 }
00897 }
00898
00899 ::google::protobuf::uint8* TableMeta::SerializeWithCachedSizesToArray(
00900 ::google::protobuf::uint8* target) const {
00901
00902 if (has_schema_name()) {
00903 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00904 this->schema_name().data(), this->schema_name().length(),
00905 ::google::protobuf::internal::WireFormat::SERIALIZE);
00906 target =
00907 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
00908 1, this->schema_name(), target);
00909 }
00910
00911
00912 if (has_table_name()) {
00913 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00914 this->table_name().data(), this->table_name().length(),
00915 ::google::protobuf::internal::WireFormat::SERIALIZE);
00916 target =
00917 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
00918 2, this->table_name(), target);
00919 }
00920
00921
00922 if (has_table_alias()) {
00923 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00924 this->table_alias().data(), this->table_alias().length(),
00925 ::google::protobuf::internal::WireFormat::SERIALIZE);
00926 target =
00927 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
00928 3, this->table_alias(), target);
00929 }
00930
00931 if (!unknown_fields().empty()) {
00932 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
00933 unknown_fields(), target);
00934 }
00935 return target;
00936 }
00937
00938 int TableMeta::ByteSize() const {
00939 int total_size = 0;
00940
00941 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00942
00943 if (has_schema_name()) {
00944 total_size += 1 +
00945 ::google::protobuf::internal::WireFormatLite::StringSize(
00946 this->schema_name());
00947 }
00948
00949
00950 if (has_table_name()) {
00951 total_size += 1 +
00952 ::google::protobuf::internal::WireFormatLite::StringSize(
00953 this->table_name());
00954 }
00955
00956
00957 if (has_table_alias()) {
00958 total_size += 1 +
00959 ::google::protobuf::internal::WireFormatLite::StringSize(
00960 this->table_alias());
00961 }
00962
00963 }
00964 if (!unknown_fields().empty()) {
00965 total_size +=
00966 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
00967 unknown_fields());
00968 }
00969 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
00970 _cached_size_ = total_size;
00971 GOOGLE_SAFE_CONCURRENT_WRITES_END();
00972 return total_size;
00973 }
00974
00975 void TableMeta::MergeFrom(const ::google::protobuf::Message& from) {
00976 GOOGLE_CHECK_NE(&from, this);
00977 const TableMeta* source =
00978 ::google::protobuf::internal::dynamic_cast_if_available<const TableMeta*>(
00979 &from);
00980 if (source == NULL) {
00981 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
00982 } else {
00983 MergeFrom(*source);
00984 }
00985 }
00986
00987 void TableMeta::MergeFrom(const TableMeta& from) {
00988 GOOGLE_CHECK_NE(&from, this);
00989 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00990 if (from.has_schema_name()) {
00991 set_schema_name(from.schema_name());
00992 }
00993 if (from.has_table_name()) {
00994 set_table_name(from.table_name());
00995 }
00996 if (from.has_table_alias()) {
00997 set_table_alias(from.table_alias());
00998 }
00999 }
01000 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
01001 }
01002
01003 void TableMeta::CopyFrom(const ::google::protobuf::Message& from) {
01004 if (&from == this) return;
01005 Clear();
01006 MergeFrom(from);
01007 }
01008
01009 void TableMeta::CopyFrom(const TableMeta& from) {
01010 if (&from == this) return;
01011 Clear();
01012 MergeFrom(from);
01013 }
01014
01015 bool TableMeta::IsInitialized() const {
01016 if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
01017
01018 return true;
01019 }
01020
01021 void TableMeta::Swap(TableMeta* other) {
01022 if (other != this) {
01023 std::swap(schema_name_, other->schema_name_);
01024 std::swap(table_name_, other->table_name_);
01025 std::swap(table_alias_, other->table_alias_);
01026 std::swap(_has_bits_[0], other->_has_bits_[0]);
01027 _unknown_fields_.Swap(&other->_unknown_fields_);
01028 std::swap(_cached_size_, other->_cached_size_);
01029 }
01030 }
01031
01032 ::google::protobuf::Metadata TableMeta::GetMetadata() const {
01033 protobuf_AssignDescriptorsOnce();
01034 ::google::protobuf::Metadata metadata;
01035 metadata.descriptor = TableMeta_descriptor_;
01036 metadata.reflection = TableMeta_reflection_;
01037 return metadata;
01038 }
01039
01040
01041
01042
01043 #ifndef _MSC_VER
01044 const int SelectRecord::kRecordValueFieldNumber;
01045 const int SelectRecord::kIsNullFieldNumber;
01046 #endif // !_MSC_VER
01047
01048 SelectRecord::SelectRecord()
01049 : ::google::protobuf::Message() {
01050 SharedCtor();
01051 }
01052
01053 void SelectRecord::InitAsDefaultInstance() {
01054 }
01055
01056 SelectRecord::SelectRecord(const SelectRecord& from)
01057 : ::google::protobuf::Message() {
01058 SharedCtor();
01059 MergeFrom(from);
01060 }
01061
01062 void SelectRecord::SharedCtor() {
01063 _cached_size_ = 0;
01064 ::memset(_has_bits_, 0, sizeof(_has_bits_));
01065 }
01066
01067 SelectRecord::~SelectRecord() {
01068 SharedDtor();
01069 }
01070
01071 void SelectRecord::SharedDtor() {
01072 if (this != default_instance_) {
01073 }
01074 }
01075
01076 void SelectRecord::SetCachedSize(int size) const {
01077 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
01078 _cached_size_ = size;
01079 GOOGLE_SAFE_CONCURRENT_WRITES_END();
01080 }
01081 const ::google::protobuf::Descriptor* SelectRecord::descriptor() {
01082 protobuf_AssignDescriptorsOnce();
01083 return SelectRecord_descriptor_;
01084 }
01085
01086 const SelectRecord& SelectRecord::default_instance() {
01087 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto(); return *default_instance_;
01088 }
01089
01090 SelectRecord* SelectRecord::default_instance_ = NULL;
01091
01092 SelectRecord* SelectRecord::New() const {
01093 return new SelectRecord;
01094 }
01095
01096 void SelectRecord::Clear() {
01097 record_value_.Clear();
01098 is_null_.Clear();
01099 ::memset(_has_bits_, 0, sizeof(_has_bits_));
01100 mutable_unknown_fields()->Clear();
01101 }
01102
01103 bool SelectRecord::MergePartialFromCodedStream(
01104 ::google::protobuf::io::CodedInputStream* input) {
01105 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
01106 ::google::protobuf::uint32 tag;
01107 while ((tag = input->ReadTag()) != 0) {
01108 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
01109
01110 case 1: {
01111 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01112 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
01113 parse_record_value:
01114 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
01115 input, this->add_record_value()));
01116 } else {
01117 goto handle_uninterpreted;
01118 }
01119 if (input->ExpectTag(10)) goto parse_record_value;
01120 if (input->ExpectTag(16)) goto parse_is_null;
01121 break;
01122 }
01123
01124
01125 case 2: {
01126 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01127 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
01128 parse_is_null:
01129 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
01130 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
01131 1, 16, input, this->mutable_is_null())));
01132 } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
01133 == ::google::protobuf::internal::WireFormatLite::
01134 WIRETYPE_LENGTH_DELIMITED) {
01135 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
01136 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
01137 input, this->mutable_is_null())));
01138 } else {
01139 goto handle_uninterpreted;
01140 }
01141 if (input->ExpectTag(16)) goto parse_is_null;
01142 if (input->ExpectAtEnd()) return true;
01143 break;
01144 }
01145
01146 default: {
01147 handle_uninterpreted:
01148 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01149 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
01150 return true;
01151 }
01152 DO_(::google::protobuf::internal::WireFormat::SkipField(
01153 input, tag, mutable_unknown_fields()));
01154 break;
01155 }
01156 }
01157 }
01158 return true;
01159 #undef DO_
01160 }
01161
01162 void SelectRecord::SerializeWithCachedSizes(
01163 ::google::protobuf::io::CodedOutputStream* output) const {
01164
01165 for (int i = 0; i < this->record_value_size(); i++) {
01166 ::google::protobuf::internal::WireFormatLite::WriteBytes(
01167 1, this->record_value(i), output);
01168 }
01169
01170
01171 for (int i = 0; i < this->is_null_size(); i++) {
01172 ::google::protobuf::internal::WireFormatLite::WriteBool(
01173 2, this->is_null(i), output);
01174 }
01175
01176 if (!unknown_fields().empty()) {
01177 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
01178 unknown_fields(), output);
01179 }
01180 }
01181
01182 ::google::protobuf::uint8* SelectRecord::SerializeWithCachedSizesToArray(
01183 ::google::protobuf::uint8* target) const {
01184
01185 for (int i = 0; i < this->record_value_size(); i++) {
01186 target = ::google::protobuf::internal::WireFormatLite::
01187 WriteBytesToArray(1, this->record_value(i), target);
01188 }
01189
01190
01191 for (int i = 0; i < this->is_null_size(); i++) {
01192 target = ::google::protobuf::internal::WireFormatLite::
01193 WriteBoolToArray(2, this->is_null(i), target);
01194 }
01195
01196 if (!unknown_fields().empty()) {
01197 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
01198 unknown_fields(), target);
01199 }
01200 return target;
01201 }
01202
01203 int SelectRecord::ByteSize() const {
01204 int total_size = 0;
01205
01206
01207 total_size += 1 * this->record_value_size();
01208 for (int i = 0; i < this->record_value_size(); i++) {
01209 total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
01210 this->record_value(i));
01211 }
01212
01213
01214 {
01215 int data_size = 0;
01216 data_size = 1 * this->is_null_size();
01217 total_size += 1 * this->is_null_size() + data_size;
01218 }
01219
01220 if (!unknown_fields().empty()) {
01221 total_size +=
01222 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
01223 unknown_fields());
01224 }
01225 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
01226 _cached_size_ = total_size;
01227 GOOGLE_SAFE_CONCURRENT_WRITES_END();
01228 return total_size;
01229 }
01230
01231 void SelectRecord::MergeFrom(const ::google::protobuf::Message& from) {
01232 GOOGLE_CHECK_NE(&from, this);
01233 const SelectRecord* source =
01234 ::google::protobuf::internal::dynamic_cast_if_available<const SelectRecord*>(
01235 &from);
01236 if (source == NULL) {
01237 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
01238 } else {
01239 MergeFrom(*source);
01240 }
01241 }
01242
01243 void SelectRecord::MergeFrom(const SelectRecord& from) {
01244 GOOGLE_CHECK_NE(&from, this);
01245 record_value_.MergeFrom(from.record_value_);
01246 is_null_.MergeFrom(from.is_null_);
01247 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
01248 }
01249
01250 void SelectRecord::CopyFrom(const ::google::protobuf::Message& from) {
01251 if (&from == this) return;
01252 Clear();
01253 MergeFrom(from);
01254 }
01255
01256 void SelectRecord::CopyFrom(const SelectRecord& from) {
01257 if (&from == this) return;
01258 Clear();
01259 MergeFrom(from);
01260 }
01261
01262 bool SelectRecord::IsInitialized() const {
01263
01264 return true;
01265 }
01266
01267 void SelectRecord::Swap(SelectRecord* other) {
01268 if (other != this) {
01269 record_value_.Swap(&other->record_value_);
01270 is_null_.Swap(&other->is_null_);
01271 std::swap(_has_bits_[0], other->_has_bits_[0]);
01272 _unknown_fields_.Swap(&other->_unknown_fields_);
01273 std::swap(_cached_size_, other->_cached_size_);
01274 }
01275 }
01276
01277 ::google::protobuf::Metadata SelectRecord::GetMetadata() const {
01278 protobuf_AssignDescriptorsOnce();
01279 ::google::protobuf::Metadata metadata;
01280 metadata.descriptor = SelectRecord_descriptor_;
01281 metadata.reflection = SelectRecord_reflection_;
01282 return metadata;
01283 }
01284
01285
01286
01287
01288 #ifndef _MSC_VER
01289 const int SelectHeader::kTableMetaFieldNumber;
01290 const int SelectHeader::kFieldMetaFieldNumber;
01291 #endif // !_MSC_VER
01292
01293 SelectHeader::SelectHeader()
01294 : ::google::protobuf::Message() {
01295 SharedCtor();
01296 }
01297
01298 void SelectHeader::InitAsDefaultInstance() {
01299 }
01300
01301 SelectHeader::SelectHeader(const SelectHeader& from)
01302 : ::google::protobuf::Message() {
01303 SharedCtor();
01304 MergeFrom(from);
01305 }
01306
01307 void SelectHeader::SharedCtor() {
01308 _cached_size_ = 0;
01309 ::memset(_has_bits_, 0, sizeof(_has_bits_));
01310 }
01311
01312 SelectHeader::~SelectHeader() {
01313 SharedDtor();
01314 }
01315
01316 void SelectHeader::SharedDtor() {
01317 if (this != default_instance_) {
01318 }
01319 }
01320
01321 void SelectHeader::SetCachedSize(int size) const {
01322 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
01323 _cached_size_ = size;
01324 GOOGLE_SAFE_CONCURRENT_WRITES_END();
01325 }
01326 const ::google::protobuf::Descriptor* SelectHeader::descriptor() {
01327 protobuf_AssignDescriptorsOnce();
01328 return SelectHeader_descriptor_;
01329 }
01330
01331 const SelectHeader& SelectHeader::default_instance() {
01332 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto(); return *default_instance_;
01333 }
01334
01335 SelectHeader* SelectHeader::default_instance_ = NULL;
01336
01337 SelectHeader* SelectHeader::New() const {
01338 return new SelectHeader;
01339 }
01340
01341 void SelectHeader::Clear() {
01342 table_meta_.Clear();
01343 field_meta_.Clear();
01344 ::memset(_has_bits_, 0, sizeof(_has_bits_));
01345 mutable_unknown_fields()->Clear();
01346 }
01347
01348 bool SelectHeader::MergePartialFromCodedStream(
01349 ::google::protobuf::io::CodedInputStream* input) {
01350 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
01351 ::google::protobuf::uint32 tag;
01352 while ((tag = input->ReadTag()) != 0) {
01353 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
01354
01355 case 1: {
01356 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01357 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
01358 parse_table_meta:
01359 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
01360 input, add_table_meta()));
01361 } else {
01362 goto handle_uninterpreted;
01363 }
01364 if (input->ExpectTag(10)) goto parse_table_meta;
01365 if (input->ExpectTag(18)) goto parse_field_meta;
01366 break;
01367 }
01368
01369
01370 case 2: {
01371 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01372 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
01373 parse_field_meta:
01374 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
01375 input, add_field_meta()));
01376 } else {
01377 goto handle_uninterpreted;
01378 }
01379 if (input->ExpectTag(18)) goto parse_field_meta;
01380 if (input->ExpectAtEnd()) return true;
01381 break;
01382 }
01383
01384 default: {
01385 handle_uninterpreted:
01386 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01387 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
01388 return true;
01389 }
01390 DO_(::google::protobuf::internal::WireFormat::SkipField(
01391 input, tag, mutable_unknown_fields()));
01392 break;
01393 }
01394 }
01395 }
01396 return true;
01397 #undef DO_
01398 }
01399
01400 void SelectHeader::SerializeWithCachedSizes(
01401 ::google::protobuf::io::CodedOutputStream* output) const {
01402
01403 for (int i = 0; i < this->table_meta_size(); i++) {
01404 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
01405 1, this->table_meta(i), output);
01406 }
01407
01408
01409 for (int i = 0; i < this->field_meta_size(); i++) {
01410 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
01411 2, this->field_meta(i), output);
01412 }
01413
01414 if (!unknown_fields().empty()) {
01415 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
01416 unknown_fields(), output);
01417 }
01418 }
01419
01420 ::google::protobuf::uint8* SelectHeader::SerializeWithCachedSizesToArray(
01421 ::google::protobuf::uint8* target) const {
01422
01423 for (int i = 0; i < this->table_meta_size(); i++) {
01424 target = ::google::protobuf::internal::WireFormatLite::
01425 WriteMessageNoVirtualToArray(
01426 1, this->table_meta(i), target);
01427 }
01428
01429
01430 for (int i = 0; i < this->field_meta_size(); i++) {
01431 target = ::google::protobuf::internal::WireFormatLite::
01432 WriteMessageNoVirtualToArray(
01433 2, this->field_meta(i), target);
01434 }
01435
01436 if (!unknown_fields().empty()) {
01437 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
01438 unknown_fields(), target);
01439 }
01440 return target;
01441 }
01442
01443 int SelectHeader::ByteSize() const {
01444 int total_size = 0;
01445
01446
01447 total_size += 1 * this->table_meta_size();
01448 for (int i = 0; i < this->table_meta_size(); i++) {
01449 total_size +=
01450 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
01451 this->table_meta(i));
01452 }
01453
01454
01455 total_size += 1 * this->field_meta_size();
01456 for (int i = 0; i < this->field_meta_size(); i++) {
01457 total_size +=
01458 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
01459 this->field_meta(i));
01460 }
01461
01462 if (!unknown_fields().empty()) {
01463 total_size +=
01464 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
01465 unknown_fields());
01466 }
01467 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
01468 _cached_size_ = total_size;
01469 GOOGLE_SAFE_CONCURRENT_WRITES_END();
01470 return total_size;
01471 }
01472
01473 void SelectHeader::MergeFrom(const ::google::protobuf::Message& from) {
01474 GOOGLE_CHECK_NE(&from, this);
01475 const SelectHeader* source =
01476 ::google::protobuf::internal::dynamic_cast_if_available<const SelectHeader*>(
01477 &from);
01478 if (source == NULL) {
01479 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
01480 } else {
01481 MergeFrom(*source);
01482 }
01483 }
01484
01485 void SelectHeader::MergeFrom(const SelectHeader& from) {
01486 GOOGLE_CHECK_NE(&from, this);
01487 table_meta_.MergeFrom(from.table_meta_);
01488 field_meta_.MergeFrom(from.field_meta_);
01489 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
01490 }
01491
01492 void SelectHeader::CopyFrom(const ::google::protobuf::Message& from) {
01493 if (&from == this) return;
01494 Clear();
01495 MergeFrom(from);
01496 }
01497
01498 void SelectHeader::CopyFrom(const SelectHeader& from) {
01499 if (&from == this) return;
01500 Clear();
01501 MergeFrom(from);
01502 }
01503
01504 bool SelectHeader::IsInitialized() const {
01505
01506 for (int i = 0; i < table_meta_size(); i++) {
01507 if (!this->table_meta(i).IsInitialized()) return false;
01508 }
01509 for (int i = 0; i < field_meta_size(); i++) {
01510 if (!this->field_meta(i).IsInitialized()) return false;
01511 }
01512 return true;
01513 }
01514
01515 void SelectHeader::Swap(SelectHeader* other) {
01516 if (other != this) {
01517 table_meta_.Swap(&other->table_meta_);
01518 field_meta_.Swap(&other->field_meta_);
01519 std::swap(_has_bits_[0], other->_has_bits_[0]);
01520 _unknown_fields_.Swap(&other->_unknown_fields_);
01521 std::swap(_cached_size_, other->_cached_size_);
01522 }
01523 }
01524
01525 ::google::protobuf::Metadata SelectHeader::GetMetadata() const {
01526 protobuf_AssignDescriptorsOnce();
01527 ::google::protobuf::Metadata metadata;
01528 metadata.descriptor = SelectHeader_descriptor_;
01529 metadata.reflection = SelectHeader_reflection_;
01530 return metadata;
01531 }
01532
01533
01534
01535
01536 #ifndef _MSC_VER
01537 const int SelectData::kSegmentIdFieldNumber;
01538 const int SelectData::kEndSegmentFieldNumber;
01539 const int SelectData::kRecordFieldNumber;
01540 #endif // !_MSC_VER
01541
01542 SelectData::SelectData()
01543 : ::google::protobuf::Message() {
01544 SharedCtor();
01545 }
01546
01547 void SelectData::InitAsDefaultInstance() {
01548 }
01549
01550 SelectData::SelectData(const SelectData& from)
01551 : ::google::protobuf::Message() {
01552 SharedCtor();
01553 MergeFrom(from);
01554 }
01555
01556 void SelectData::SharedCtor() {
01557 _cached_size_ = 0;
01558 segment_id_ = 0u;
01559 end_segment_ = false;
01560 ::memset(_has_bits_, 0, sizeof(_has_bits_));
01561 }
01562
01563 SelectData::~SelectData() {
01564 SharedDtor();
01565 }
01566
01567 void SelectData::SharedDtor() {
01568 if (this != default_instance_) {
01569 }
01570 }
01571
01572 void SelectData::SetCachedSize(int size) const {
01573 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
01574 _cached_size_ = size;
01575 GOOGLE_SAFE_CONCURRENT_WRITES_END();
01576 }
01577 const ::google::protobuf::Descriptor* SelectData::descriptor() {
01578 protobuf_AssignDescriptorsOnce();
01579 return SelectData_descriptor_;
01580 }
01581
01582 const SelectData& SelectData::default_instance() {
01583 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto(); return *default_instance_;
01584 }
01585
01586 SelectData* SelectData::default_instance_ = NULL;
01587
01588 SelectData* SelectData::New() const {
01589 return new SelectData;
01590 }
01591
01592 void SelectData::Clear() {
01593 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
01594 segment_id_ = 0u;
01595 end_segment_ = false;
01596 }
01597 record_.Clear();
01598 ::memset(_has_bits_, 0, sizeof(_has_bits_));
01599 mutable_unknown_fields()->Clear();
01600 }
01601
01602 bool SelectData::MergePartialFromCodedStream(
01603 ::google::protobuf::io::CodedInputStream* input) {
01604 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
01605 ::google::protobuf::uint32 tag;
01606 while ((tag = input->ReadTag()) != 0) {
01607 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
01608
01609 case 1: {
01610 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01611 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
01612 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
01613 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
01614 input, &segment_id_)));
01615 set_has_segment_id();
01616 } else {
01617 goto handle_uninterpreted;
01618 }
01619 if (input->ExpectTag(16)) goto parse_end_segment;
01620 break;
01621 }
01622
01623
01624 case 2: {
01625 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01626 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
01627 parse_end_segment:
01628 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
01629 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
01630 input, &end_segment_)));
01631 set_has_end_segment();
01632 } else {
01633 goto handle_uninterpreted;
01634 }
01635 if (input->ExpectTag(26)) goto parse_record;
01636 break;
01637 }
01638
01639
01640 case 3: {
01641 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01642 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
01643 parse_record:
01644 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
01645 input, add_record()));
01646 } else {
01647 goto handle_uninterpreted;
01648 }
01649 if (input->ExpectTag(26)) goto parse_record;
01650 if (input->ExpectAtEnd()) return true;
01651 break;
01652 }
01653
01654 default: {
01655 handle_uninterpreted:
01656 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01657 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
01658 return true;
01659 }
01660 DO_(::google::protobuf::internal::WireFormat::SkipField(
01661 input, tag, mutable_unknown_fields()));
01662 break;
01663 }
01664 }
01665 }
01666 return true;
01667 #undef DO_
01668 }
01669
01670 void SelectData::SerializeWithCachedSizes(
01671 ::google::protobuf::io::CodedOutputStream* output) const {
01672
01673 if (has_segment_id()) {
01674 ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->segment_id(), output);
01675 }
01676
01677
01678 if (has_end_segment()) {
01679 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->end_segment(), output);
01680 }
01681
01682
01683 for (int i = 0; i < this->record_size(); i++) {
01684 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
01685 3, this->record(i), output);
01686 }
01687
01688 if (!unknown_fields().empty()) {
01689 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
01690 unknown_fields(), output);
01691 }
01692 }
01693
01694 ::google::protobuf::uint8* SelectData::SerializeWithCachedSizesToArray(
01695 ::google::protobuf::uint8* target) const {
01696
01697 if (has_segment_id()) {
01698 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->segment_id(), target);
01699 }
01700
01701
01702 if (has_end_segment()) {
01703 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->end_segment(), target);
01704 }
01705
01706
01707 for (int i = 0; i < this->record_size(); i++) {
01708 target = ::google::protobuf::internal::WireFormatLite::
01709 WriteMessageNoVirtualToArray(
01710 3, this->record(i), target);
01711 }
01712
01713 if (!unknown_fields().empty()) {
01714 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
01715 unknown_fields(), target);
01716 }
01717 return target;
01718 }
01719
01720 int SelectData::ByteSize() const {
01721 int total_size = 0;
01722
01723 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
01724
01725 if (has_segment_id()) {
01726 total_size += 1 +
01727 ::google::protobuf::internal::WireFormatLite::UInt32Size(
01728 this->segment_id());
01729 }
01730
01731
01732 if (has_end_segment()) {
01733 total_size += 1 + 1;
01734 }
01735
01736 }
01737
01738 total_size += 1 * this->record_size();
01739 for (int i = 0; i < this->record_size(); i++) {
01740 total_size +=
01741 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
01742 this->record(i));
01743 }
01744
01745 if (!unknown_fields().empty()) {
01746 total_size +=
01747 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
01748 unknown_fields());
01749 }
01750 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
01751 _cached_size_ = total_size;
01752 GOOGLE_SAFE_CONCURRENT_WRITES_END();
01753 return total_size;
01754 }
01755
01756 void SelectData::MergeFrom(const ::google::protobuf::Message& from) {
01757 GOOGLE_CHECK_NE(&from, this);
01758 const SelectData* source =
01759 ::google::protobuf::internal::dynamic_cast_if_available<const SelectData*>(
01760 &from);
01761 if (source == NULL) {
01762 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
01763 } else {
01764 MergeFrom(*source);
01765 }
01766 }
01767
01768 void SelectData::MergeFrom(const SelectData& from) {
01769 GOOGLE_CHECK_NE(&from, this);
01770 record_.MergeFrom(from.record_);
01771 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
01772 if (from.has_segment_id()) {
01773 set_segment_id(from.segment_id());
01774 }
01775 if (from.has_end_segment()) {
01776 set_end_segment(from.end_segment());
01777 }
01778 }
01779 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
01780 }
01781
01782 void SelectData::CopyFrom(const ::google::protobuf::Message& from) {
01783 if (&from == this) return;
01784 Clear();
01785 MergeFrom(from);
01786 }
01787
01788 void SelectData::CopyFrom(const SelectData& from) {
01789 if (&from == this) return;
01790 Clear();
01791 MergeFrom(from);
01792 }
01793
01794 bool SelectData::IsInitialized() const {
01795 if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
01796
01797 return true;
01798 }
01799
01800 void SelectData::Swap(SelectData* other) {
01801 if (other != this) {
01802 std::swap(segment_id_, other->segment_id_);
01803 std::swap(end_segment_, other->end_segment_);
01804 record_.Swap(&other->record_);
01805 std::swap(_has_bits_[0], other->_has_bits_[0]);
01806 _unknown_fields_.Swap(&other->_unknown_fields_);
01807 std::swap(_cached_size_, other->_cached_size_);
01808 }
01809 }
01810
01811 ::google::protobuf::Metadata SelectData::GetMetadata() const {
01812 protobuf_AssignDescriptorsOnce();
01813 ::google::protobuf::Metadata metadata;
01814 metadata.descriptor = SelectData_descriptor_;
01815 metadata.reflection = SelectData_reflection_;
01816 return metadata;
01817 }
01818
01819
01820
01821
01822 #ifndef _MSC_VER
01823 const int Resultset::kKeyFieldNumber;
01824 const int Resultset::kSchemaFieldNumber;
01825 const int Resultset::kSqlFieldNumber;
01826 const int Resultset::kSelectHeaderFieldNumber;
01827 const int Resultset::kSelectDataFieldNumber;
01828 #endif // !_MSC_VER
01829
01830 Resultset::Resultset()
01831 : ::google::protobuf::Message() {
01832 SharedCtor();
01833 }
01834
01835 void Resultset::InitAsDefaultInstance() {
01836 select_header_ = const_cast< ::drizzled::message::SelectHeader*>(&::drizzled::message::SelectHeader::default_instance());
01837 select_data_ = const_cast< ::drizzled::message::SelectData*>(&::drizzled::message::SelectData::default_instance());
01838 }
01839
01840 Resultset::Resultset(const Resultset& from)
01841 : ::google::protobuf::Message() {
01842 SharedCtor();
01843 MergeFrom(from);
01844 }
01845
01846 void Resultset::SharedCtor() {
01847 _cached_size_ = 0;
01848 key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
01849 schema_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
01850 sql_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
01851 select_header_ = NULL;
01852 select_data_ = NULL;
01853 ::memset(_has_bits_, 0, sizeof(_has_bits_));
01854 }
01855
01856 Resultset::~Resultset() {
01857 SharedDtor();
01858 }
01859
01860 void Resultset::SharedDtor() {
01861 if (key_ != &::google::protobuf::internal::kEmptyString) {
01862 delete key_;
01863 }
01864 if (schema_ != &::google::protobuf::internal::kEmptyString) {
01865 delete schema_;
01866 }
01867 if (sql_ != &::google::protobuf::internal::kEmptyString) {
01868 delete sql_;
01869 }
01870 if (this != default_instance_) {
01871 delete select_header_;
01872 delete select_data_;
01873 }
01874 }
01875
01876 void Resultset::SetCachedSize(int size) const {
01877 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
01878 _cached_size_ = size;
01879 GOOGLE_SAFE_CONCURRENT_WRITES_END();
01880 }
01881 const ::google::protobuf::Descriptor* Resultset::descriptor() {
01882 protobuf_AssignDescriptorsOnce();
01883 return Resultset_descriptor_;
01884 }
01885
01886 const Resultset& Resultset::default_instance() {
01887 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto(); return *default_instance_;
01888 }
01889
01890 Resultset* Resultset::default_instance_ = NULL;
01891
01892 Resultset* Resultset::New() const {
01893 return new Resultset;
01894 }
01895
01896 void Resultset::Clear() {
01897 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
01898 if (has_key()) {
01899 if (key_ != &::google::protobuf::internal::kEmptyString) {
01900 key_->clear();
01901 }
01902 }
01903 if (has_schema()) {
01904 if (schema_ != &::google::protobuf::internal::kEmptyString) {
01905 schema_->clear();
01906 }
01907 }
01908 if (has_sql()) {
01909 if (sql_ != &::google::protobuf::internal::kEmptyString) {
01910 sql_->clear();
01911 }
01912 }
01913 if (has_select_header()) {
01914 if (select_header_ != NULL) select_header_->::drizzled::message::SelectHeader::Clear();
01915 }
01916 if (has_select_data()) {
01917 if (select_data_ != NULL) select_data_->::drizzled::message::SelectData::Clear();
01918 }
01919 }
01920 ::memset(_has_bits_, 0, sizeof(_has_bits_));
01921 mutable_unknown_fields()->Clear();
01922 }
01923
01924 bool Resultset::MergePartialFromCodedStream(
01925 ::google::protobuf::io::CodedInputStream* input) {
01926 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
01927 ::google::protobuf::uint32 tag;
01928 while ((tag = input->ReadTag()) != 0) {
01929 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
01930
01931 case 1: {
01932 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01933 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
01934 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
01935 input, this->mutable_key()));
01936 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01937 this->key().data(), this->key().length(),
01938 ::google::protobuf::internal::WireFormat::PARSE);
01939 } else {
01940 goto handle_uninterpreted;
01941 }
01942 if (input->ExpectTag(18)) goto parse_schema;
01943 break;
01944 }
01945
01946
01947 case 2: {
01948 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01949 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
01950 parse_schema:
01951 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
01952 input, this->mutable_schema()));
01953 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01954 this->schema().data(), this->schema().length(),
01955 ::google::protobuf::internal::WireFormat::PARSE);
01956 } else {
01957 goto handle_uninterpreted;
01958 }
01959 if (input->ExpectTag(26)) goto parse_sql;
01960 break;
01961 }
01962
01963
01964 case 3: {
01965 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01966 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
01967 parse_sql:
01968 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
01969 input, this->mutable_sql()));
01970 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
01971 this->sql().data(), this->sql().length(),
01972 ::google::protobuf::internal::WireFormat::PARSE);
01973 } else {
01974 goto handle_uninterpreted;
01975 }
01976 if (input->ExpectTag(34)) goto parse_select_header;
01977 break;
01978 }
01979
01980
01981 case 4: {
01982 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01983 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
01984 parse_select_header:
01985 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
01986 input, mutable_select_header()));
01987 } else {
01988 goto handle_uninterpreted;
01989 }
01990 if (input->ExpectTag(42)) goto parse_select_data;
01991 break;
01992 }
01993
01994
01995 case 5: {
01996 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
01997 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
01998 parse_select_data:
01999 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
02000 input, mutable_select_data()));
02001 } else {
02002 goto handle_uninterpreted;
02003 }
02004 if (input->ExpectAtEnd()) return true;
02005 break;
02006 }
02007
02008 default: {
02009 handle_uninterpreted:
02010 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
02011 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
02012 return true;
02013 }
02014 DO_(::google::protobuf::internal::WireFormat::SkipField(
02015 input, tag, mutable_unknown_fields()));
02016 break;
02017 }
02018 }
02019 }
02020 return true;
02021 #undef DO_
02022 }
02023
02024 void Resultset::SerializeWithCachedSizes(
02025 ::google::protobuf::io::CodedOutputStream* output) const {
02026
02027 if (has_key()) {
02028 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
02029 this->key().data(), this->key().length(),
02030 ::google::protobuf::internal::WireFormat::SERIALIZE);
02031 ::google::protobuf::internal::WireFormatLite::WriteString(
02032 1, this->key(), output);
02033 }
02034
02035
02036 if (has_schema()) {
02037 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
02038 this->schema().data(), this->schema().length(),
02039 ::google::protobuf::internal::WireFormat::SERIALIZE);
02040 ::google::protobuf::internal::WireFormatLite::WriteString(
02041 2, this->schema(), output);
02042 }
02043
02044
02045 if (has_sql()) {
02046 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
02047 this->sql().data(), this->sql().length(),
02048 ::google::protobuf::internal::WireFormat::SERIALIZE);
02049 ::google::protobuf::internal::WireFormatLite::WriteString(
02050 3, this->sql(), output);
02051 }
02052
02053
02054 if (has_select_header()) {
02055 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
02056 4, this->select_header(), output);
02057 }
02058
02059
02060 if (has_select_data()) {
02061 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
02062 5, this->select_data(), output);
02063 }
02064
02065 if (!unknown_fields().empty()) {
02066 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
02067 unknown_fields(), output);
02068 }
02069 }
02070
02071 ::google::protobuf::uint8* Resultset::SerializeWithCachedSizesToArray(
02072 ::google::protobuf::uint8* target) const {
02073
02074 if (has_key()) {
02075 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
02076 this->key().data(), this->key().length(),
02077 ::google::protobuf::internal::WireFormat::SERIALIZE);
02078 target =
02079 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
02080 1, this->key(), target);
02081 }
02082
02083
02084 if (has_schema()) {
02085 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
02086 this->schema().data(), this->schema().length(),
02087 ::google::protobuf::internal::WireFormat::SERIALIZE);
02088 target =
02089 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
02090 2, this->schema(), target);
02091 }
02092
02093
02094 if (has_sql()) {
02095 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
02096 this->sql().data(), this->sql().length(),
02097 ::google::protobuf::internal::WireFormat::SERIALIZE);
02098 target =
02099 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
02100 3, this->sql(), target);
02101 }
02102
02103
02104 if (has_select_header()) {
02105 target = ::google::protobuf::internal::WireFormatLite::
02106 WriteMessageNoVirtualToArray(
02107 4, this->select_header(), target);
02108 }
02109
02110
02111 if (has_select_data()) {
02112 target = ::google::protobuf::internal::WireFormatLite::
02113 WriteMessageNoVirtualToArray(
02114 5, this->select_data(), target);
02115 }
02116
02117 if (!unknown_fields().empty()) {
02118 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
02119 unknown_fields(), target);
02120 }
02121 return target;
02122 }
02123
02124 int Resultset::ByteSize() const {
02125 int total_size = 0;
02126
02127 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
02128
02129 if (has_key()) {
02130 total_size += 1 +
02131 ::google::protobuf::internal::WireFormatLite::StringSize(
02132 this->key());
02133 }
02134
02135
02136 if (has_schema()) {
02137 total_size += 1 +
02138 ::google::protobuf::internal::WireFormatLite::StringSize(
02139 this->schema());
02140 }
02141
02142
02143 if (has_sql()) {
02144 total_size += 1 +
02145 ::google::protobuf::internal::WireFormatLite::StringSize(
02146 this->sql());
02147 }
02148
02149
02150 if (has_select_header()) {
02151 total_size += 1 +
02152 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
02153 this->select_header());
02154 }
02155
02156
02157 if (has_select_data()) {
02158 total_size += 1 +
02159 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
02160 this->select_data());
02161 }
02162
02163 }
02164 if (!unknown_fields().empty()) {
02165 total_size +=
02166 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
02167 unknown_fields());
02168 }
02169 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
02170 _cached_size_ = total_size;
02171 GOOGLE_SAFE_CONCURRENT_WRITES_END();
02172 return total_size;
02173 }
02174
02175 void Resultset::MergeFrom(const ::google::protobuf::Message& from) {
02176 GOOGLE_CHECK_NE(&from, this);
02177 const Resultset* source =
02178 ::google::protobuf::internal::dynamic_cast_if_available<const Resultset*>(
02179 &from);
02180 if (source == NULL) {
02181 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
02182 } else {
02183 MergeFrom(*source);
02184 }
02185 }
02186
02187 void Resultset::MergeFrom(const Resultset& from) {
02188 GOOGLE_CHECK_NE(&from, this);
02189 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
02190 if (from.has_key()) {
02191 set_key(from.key());
02192 }
02193 if (from.has_schema()) {
02194 set_schema(from.schema());
02195 }
02196 if (from.has_sql()) {
02197 set_sql(from.sql());
02198 }
02199 if (from.has_select_header()) {
02200 mutable_select_header()->::drizzled::message::SelectHeader::MergeFrom(from.select_header());
02201 }
02202 if (from.has_select_data()) {
02203 mutable_select_data()->::drizzled::message::SelectData::MergeFrom(from.select_data());
02204 }
02205 }
02206 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
02207 }
02208
02209 void Resultset::CopyFrom(const ::google::protobuf::Message& from) {
02210 if (&from == this) return;
02211 Clear();
02212 MergeFrom(from);
02213 }
02214
02215 void Resultset::CopyFrom(const Resultset& from) {
02216 if (&from == this) return;
02217 Clear();
02218 MergeFrom(from);
02219 }
02220
02221 bool Resultset::IsInitialized() const {
02222 if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
02223
02224 if (has_select_header()) {
02225 if (!this->select_header().IsInitialized()) return false;
02226 }
02227 if (has_select_data()) {
02228 if (!this->select_data().IsInitialized()) return false;
02229 }
02230 return true;
02231 }
02232
02233 void Resultset::Swap(Resultset* other) {
02234 if (other != this) {
02235 std::swap(key_, other->key_);
02236 std::swap(schema_, other->schema_);
02237 std::swap(sql_, other->sql_);
02238 std::swap(select_header_, other->select_header_);
02239 std::swap(select_data_, other->select_data_);
02240 std::swap(_has_bits_[0], other->_has_bits_[0]);
02241 _unknown_fields_.Swap(&other->_unknown_fields_);
02242 std::swap(_cached_size_, other->_cached_size_);
02243 }
02244 }
02245
02246 ::google::protobuf::Metadata Resultset::GetMetadata() const {
02247 protobuf_AssignDescriptorsOnce();
02248 ::google::protobuf::Metadata metadata;
02249 metadata.descriptor = Resultset_descriptor_;
02250 metadata.reflection = Resultset_reflection_;
02251 return metadata;
02252 }
02253
02254
02255
02256
02257 }
02258 }
02259
02260