Drizzled Public API Documentation

resultset.pb.cc
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 
3 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
4 #include "resultset.pb.h"
5 
6 #include <algorithm>
7 
8 #include <google/protobuf/stubs/once.h>
9 #include <google/protobuf/io/coded_stream.h>
10 #include <google/protobuf/wire_format_lite_inl.h>
11 #include <google/protobuf/descriptor.h>
12 #include <google/protobuf/reflection_ops.h>
13 #include <google/protobuf/wire_format.h>
14 // @@protoc_insertion_point(includes)
15 
16 namespace drizzled {
17 namespace message {
18 
19 namespace {
20 
21 const ::google::protobuf::Descriptor* FieldMeta_descriptor_ = NULL;
22 const ::google::protobuf::internal::GeneratedMessageReflection*
23  FieldMeta_reflection_ = NULL;
24 const ::google::protobuf::Descriptor* TableMeta_descriptor_ = NULL;
25 const ::google::protobuf::internal::GeneratedMessageReflection*
26  TableMeta_reflection_ = NULL;
27 const ::google::protobuf::Descriptor* SelectRecord_descriptor_ = NULL;
28 const ::google::protobuf::internal::GeneratedMessageReflection*
29  SelectRecord_reflection_ = NULL;
30 const ::google::protobuf::Descriptor* SelectHeader_descriptor_ = NULL;
31 const ::google::protobuf::internal::GeneratedMessageReflection*
32  SelectHeader_reflection_ = NULL;
33 const ::google::protobuf::Descriptor* SelectData_descriptor_ = NULL;
34 const ::google::protobuf::internal::GeneratedMessageReflection*
35  SelectData_reflection_ = NULL;
36 const ::google::protobuf::Descriptor* Resultset_descriptor_ = NULL;
37 const ::google::protobuf::internal::GeneratedMessageReflection*
38  Resultset_reflection_ = NULL;
39 
40 } // namespace
41 
42 
43 void protobuf_AssignDesc_resultset_2eproto() {
44  protobuf_AddDesc_resultset_2eproto();
45  const ::google::protobuf::FileDescriptor* file =
46  ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
47  "resultset.proto");
48  GOOGLE_CHECK(file != NULL);
49  FieldMeta_descriptor_ = file->message_type(0);
50  static const int FieldMeta_offsets_[5] = {
51  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, field_name_),
52  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, field_alias_),
53  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, table_name_),
54  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, table_alias_),
55  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, schema_name_),
56  };
57  FieldMeta_reflection_ =
58  new ::google::protobuf::internal::GeneratedMessageReflection(
59  FieldMeta_descriptor_,
60  FieldMeta::default_instance_,
61  FieldMeta_offsets_,
62  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, _has_bits_[0]),
63  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, _unknown_fields_),
64  -1,
65  ::google::protobuf::DescriptorPool::generated_pool(),
66  ::google::protobuf::MessageFactory::generated_factory(),
67  sizeof(FieldMeta));
68  TableMeta_descriptor_ = file->message_type(1);
69  static const int TableMeta_offsets_[3] = {
70  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableMeta, schema_name_),
71  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableMeta, table_name_),
72  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableMeta, table_alias_),
73  };
74  TableMeta_reflection_ =
75  new ::google::protobuf::internal::GeneratedMessageReflection(
76  TableMeta_descriptor_,
77  TableMeta::default_instance_,
78  TableMeta_offsets_,
79  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableMeta, _has_bits_[0]),
80  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableMeta, _unknown_fields_),
81  -1,
82  ::google::protobuf::DescriptorPool::generated_pool(),
83  ::google::protobuf::MessageFactory::generated_factory(),
84  sizeof(TableMeta));
85  SelectRecord_descriptor_ = file->message_type(2);
86  static const int SelectRecord_offsets_[2] = {
87  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectRecord, record_value_),
88  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectRecord, is_null_),
89  };
90  SelectRecord_reflection_ =
91  new ::google::protobuf::internal::GeneratedMessageReflection(
92  SelectRecord_descriptor_,
93  SelectRecord::default_instance_,
94  SelectRecord_offsets_,
95  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectRecord, _has_bits_[0]),
96  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectRecord, _unknown_fields_),
97  -1,
98  ::google::protobuf::DescriptorPool::generated_pool(),
99  ::google::protobuf::MessageFactory::generated_factory(),
100  sizeof(SelectRecord));
101  SelectHeader_descriptor_ = file->message_type(3);
102  static const int SelectHeader_offsets_[2] = {
103  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectHeader, table_meta_),
104  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectHeader, field_meta_),
105  };
106  SelectHeader_reflection_ =
107  new ::google::protobuf::internal::GeneratedMessageReflection(
108  SelectHeader_descriptor_,
109  SelectHeader::default_instance_,
110  SelectHeader_offsets_,
111  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectHeader, _has_bits_[0]),
112  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectHeader, _unknown_fields_),
113  -1,
114  ::google::protobuf::DescriptorPool::generated_pool(),
115  ::google::protobuf::MessageFactory::generated_factory(),
116  sizeof(SelectHeader));
117  SelectData_descriptor_ = file->message_type(4);
118  static const int SelectData_offsets_[3] = {
119  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectData, segment_id_),
120  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectData, end_segment_),
121  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectData, record_),
122  };
123  SelectData_reflection_ =
124  new ::google::protobuf::internal::GeneratedMessageReflection(
125  SelectData_descriptor_,
126  SelectData::default_instance_,
127  SelectData_offsets_,
128  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectData, _has_bits_[0]),
129  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectData, _unknown_fields_),
130  -1,
131  ::google::protobuf::DescriptorPool::generated_pool(),
132  ::google::protobuf::MessageFactory::generated_factory(),
133  sizeof(SelectData));
134  Resultset_descriptor_ = file->message_type(5);
135  static const int Resultset_offsets_[5] = {
136  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Resultset, key_),
137  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Resultset, schema_),
138  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Resultset, sql_),
139  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Resultset, select_header_),
140  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Resultset, select_data_),
141  };
142  Resultset_reflection_ =
143  new ::google::protobuf::internal::GeneratedMessageReflection(
144  Resultset_descriptor_,
145  Resultset::default_instance_,
146  Resultset_offsets_,
147  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Resultset, _has_bits_[0]),
148  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Resultset, _unknown_fields_),
149  -1,
150  ::google::protobuf::DescriptorPool::generated_pool(),
151  ::google::protobuf::MessageFactory::generated_factory(),
152  sizeof(Resultset));
153 }
154 
155 namespace {
156 
157 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
158 inline void protobuf_AssignDescriptorsOnce() {
159  ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
160  &protobuf_AssignDesc_resultset_2eproto);
161 }
162 
163 void protobuf_RegisterTypes(const ::std::string&) {
164  protobuf_AssignDescriptorsOnce();
165  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
166  FieldMeta_descriptor_, &FieldMeta::default_instance());
167  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
168  TableMeta_descriptor_, &TableMeta::default_instance());
169  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
170  SelectRecord_descriptor_, &SelectRecord::default_instance());
171  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
172  SelectHeader_descriptor_, &SelectHeader::default_instance());
173  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
174  SelectData_descriptor_, &SelectData::default_instance());
175  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
176  Resultset_descriptor_, &Resultset::default_instance());
177 }
178 
179 } // namespace
180 
181 void protobuf_ShutdownFile_resultset_2eproto() {
182  delete FieldMeta::default_instance_;
183  delete FieldMeta_reflection_;
184  delete TableMeta::default_instance_;
185  delete TableMeta_reflection_;
186  delete SelectRecord::default_instance_;
187  delete SelectRecord_reflection_;
188  delete SelectHeader::default_instance_;
189  delete SelectHeader_reflection_;
190  delete SelectData::default_instance_;
191  delete SelectData_reflection_;
192  delete Resultset::default_instance_;
193  delete Resultset_reflection_;
194 }
195 
196 void protobuf_AddDesc_resultset_2eproto() {
197  static bool already_here = false;
198  if (already_here) return;
199  already_here = true;
200  GOOGLE_PROTOBUF_VERIFY_VERSION;
201 
202  ::drizzled::message::protobuf_AddDesc_table_2eproto();
203  ::drizzled::message::protobuf_AddDesc_schema_2eproto();
204  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
205  "\n\017resultset.proto\022\020drizzled.message\032\013tab"
206  "le.proto\032\014schema.proto\"r\n\tFieldMeta\022\022\n\nf"
207  "ield_name\030\001 \002(\t\022\023\n\013field_alias\030\002 \001(\t\022\022\n\n"
208  "table_name\030\003 \002(\t\022\023\n\013table_alias\030\004 \001(\t\022\023\n"
209  "\013schema_name\030\005 \002(\t\"I\n\tTableMeta\022\023\n\013schem"
210  "a_name\030\001 \002(\t\022\022\n\ntable_name\030\002 \002(\t\022\023\n\013tabl"
211  "e_alias\030\003 \001(\t\"5\n\014SelectRecord\022\024\n\014record_"
212  "value\030\001 \003(\014\022\017\n\007is_null\030\002 \003(\010\"p\n\014SelectHe"
213  "ader\022/\n\ntable_meta\030\001 \003(\0132\033.drizzled.mess"
214  "age.TableMeta\022/\n\nfield_meta\030\002 \003(\0132\033.driz"
215  "zled.message.FieldMeta\"e\n\nSelectData\022\022\n\n"
216  "segment_id\030\001 \002(\r\022\023\n\013end_segment\030\002 \002(\010\022.\n"
217  "\006record\030\003 \003(\0132\036.drizzled.message.SelectR"
218  "ecord\"\237\001\n\tResultset\022\013\n\003key\030\001 \002(\t\022\016\n\006sche"
219  "ma\030\002 \002(\t\022\013\n\003sql\030\003 \001(\t\0225\n\rselect_header\030\004"
220  " \001(\0132\036.drizzled.message.SelectHeader\0221\n\013"
221  "select_data\030\005 \001(\0132\034.drizzled.message.Sel"
222  "ectDataB*\n\024org.drizzle.messagesB\020ResultS"
223  "etMessageH\001", 731);
224  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
225  "resultset.proto", &protobuf_RegisterTypes);
226  FieldMeta::default_instance_ = new FieldMeta();
227  TableMeta::default_instance_ = new TableMeta();
228  SelectRecord::default_instance_ = new SelectRecord();
229  SelectHeader::default_instance_ = new SelectHeader();
230  SelectData::default_instance_ = new SelectData();
231  Resultset::default_instance_ = new Resultset();
232  FieldMeta::default_instance_->InitAsDefaultInstance();
233  TableMeta::default_instance_->InitAsDefaultInstance();
234  SelectRecord::default_instance_->InitAsDefaultInstance();
235  SelectHeader::default_instance_->InitAsDefaultInstance();
236  SelectData::default_instance_->InitAsDefaultInstance();
237  Resultset::default_instance_->InitAsDefaultInstance();
238  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_resultset_2eproto);
239 }
240 
241 // Force AddDescriptors() to be called at static initialization time.
244  protobuf_AddDesc_resultset_2eproto();
245  }
246 } static_descriptor_initializer_resultset_2eproto_;
247 
248 
249 // ===================================================================
250 
251 #ifndef _MSC_VER
252 const int FieldMeta::kFieldNameFieldNumber;
253 const int FieldMeta::kFieldAliasFieldNumber;
254 const int FieldMeta::kTableNameFieldNumber;
255 const int FieldMeta::kTableAliasFieldNumber;
256 const int FieldMeta::kSchemaNameFieldNumber;
257 #endif // !_MSC_VER
258 
259 FieldMeta::FieldMeta()
260  : ::google::protobuf::Message() {
261  SharedCtor();
262 }
263 
264 void FieldMeta::InitAsDefaultInstance() {
265 }
266 
267 FieldMeta::FieldMeta(const FieldMeta& from)
268  : ::google::protobuf::Message() {
269  SharedCtor();
270  MergeFrom(from);
271 }
272 
273 void FieldMeta::SharedCtor() {
274  _cached_size_ = 0;
275  field_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
276  field_alias_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
277  table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
278  table_alias_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
279  schema_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
280  ::memset(_has_bits_, 0, sizeof(_has_bits_));
281 }
282 
283 FieldMeta::~FieldMeta() {
284  SharedDtor();
285 }
286 
287 void FieldMeta::SharedDtor() {
288  if (field_name_ != &::google::protobuf::internal::kEmptyString) {
289  delete field_name_;
290  }
291  if (field_alias_ != &::google::protobuf::internal::kEmptyString) {
292  delete field_alias_;
293  }
294  if (table_name_ != &::google::protobuf::internal::kEmptyString) {
295  delete table_name_;
296  }
297  if (table_alias_ != &::google::protobuf::internal::kEmptyString) {
298  delete table_alias_;
299  }
300  if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
301  delete schema_name_;
302  }
303  if (this != default_instance_) {
304  }
305 }
306 
307 void FieldMeta::SetCachedSize(int size) const {
308  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
309  _cached_size_ = size;
310  GOOGLE_SAFE_CONCURRENT_WRITES_END();
311 }
312 const ::google::protobuf::Descriptor* FieldMeta::descriptor() {
313  protobuf_AssignDescriptorsOnce();
314  return FieldMeta_descriptor_;
315 }
316 
317 const FieldMeta& FieldMeta::default_instance() {
318  if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto(); return *default_instance_;
319 }
320 
321 FieldMeta* FieldMeta::default_instance_ = NULL;
322 
323 FieldMeta* FieldMeta::New() const {
324  return new FieldMeta;
325 }
326 
327 void FieldMeta::Clear() {
328  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
329  if (has_field_name()) {
330  if (field_name_ != &::google::protobuf::internal::kEmptyString) {
331  field_name_->clear();
332  }
333  }
334  if (has_field_alias()) {
335  if (field_alias_ != &::google::protobuf::internal::kEmptyString) {
336  field_alias_->clear();
337  }
338  }
339  if (has_table_name()) {
340  if (table_name_ != &::google::protobuf::internal::kEmptyString) {
341  table_name_->clear();
342  }
343  }
344  if (has_table_alias()) {
345  if (table_alias_ != &::google::protobuf::internal::kEmptyString) {
346  table_alias_->clear();
347  }
348  }
349  if (has_schema_name()) {
350  if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
351  schema_name_->clear();
352  }
353  }
354  }
355  ::memset(_has_bits_, 0, sizeof(_has_bits_));
356  mutable_unknown_fields()->Clear();
357 }
358 
359 bool FieldMeta::MergePartialFromCodedStream(
360  ::google::protobuf::io::CodedInputStream* input) {
361 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
362  ::google::protobuf::uint32 tag;
363  while ((tag = input->ReadTag()) != 0) {
364  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
365  // required string field_name = 1;
366  case 1: {
367  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
368  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
369  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
370  input, this->mutable_field_name()));
371  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
372  this->field_name().data(), this->field_name().length(),
373  ::google::protobuf::internal::WireFormat::PARSE);
374  } else {
375  goto handle_uninterpreted;
376  }
377  if (input->ExpectTag(18)) goto parse_field_alias;
378  break;
379  }
380 
381  // optional string field_alias = 2;
382  case 2: {
383  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
384  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
385  parse_field_alias:
386  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
387  input, this->mutable_field_alias()));
388  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
389  this->field_alias().data(), this->field_alias().length(),
390  ::google::protobuf::internal::WireFormat::PARSE);
391  } else {
392  goto handle_uninterpreted;
393  }
394  if (input->ExpectTag(26)) goto parse_table_name;
395  break;
396  }
397 
398  // required string table_name = 3;
399  case 3: {
400  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
401  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
402  parse_table_name:
403  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
404  input, this->mutable_table_name()));
405  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
406  this->table_name().data(), this->table_name().length(),
407  ::google::protobuf::internal::WireFormat::PARSE);
408  } else {
409  goto handle_uninterpreted;
410  }
411  if (input->ExpectTag(34)) goto parse_table_alias;
412  break;
413  }
414 
415  // optional string table_alias = 4;
416  case 4: {
417  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
418  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
419  parse_table_alias:
420  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
421  input, this->mutable_table_alias()));
422  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
423  this->table_alias().data(), this->table_alias().length(),
424  ::google::protobuf::internal::WireFormat::PARSE);
425  } else {
426  goto handle_uninterpreted;
427  }
428  if (input->ExpectTag(42)) goto parse_schema_name;
429  break;
430  }
431 
432  // required string schema_name = 5;
433  case 5: {
434  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
435  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
436  parse_schema_name:
437  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
438  input, this->mutable_schema_name()));
439  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
440  this->schema_name().data(), this->schema_name().length(),
441  ::google::protobuf::internal::WireFormat::PARSE);
442  } else {
443  goto handle_uninterpreted;
444  }
445  if (input->ExpectAtEnd()) return true;
446  break;
447  }
448 
449  default: {
450  handle_uninterpreted:
451  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
452  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
453  return true;
454  }
455  DO_(::google::protobuf::internal::WireFormat::SkipField(
456  input, tag, mutable_unknown_fields()));
457  break;
458  }
459  }
460  }
461  return true;
462 #undef DO_
463 }
464 
465 void FieldMeta::SerializeWithCachedSizes(
466  ::google::protobuf::io::CodedOutputStream* output) const {
467  // required string field_name = 1;
468  if (has_field_name()) {
469  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
470  this->field_name().data(), this->field_name().length(),
471  ::google::protobuf::internal::WireFormat::SERIALIZE);
472  ::google::protobuf::internal::WireFormatLite::WriteString(
473  1, this->field_name(), output);
474  }
475 
476  // optional string field_alias = 2;
477  if (has_field_alias()) {
478  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
479  this->field_alias().data(), this->field_alias().length(),
480  ::google::protobuf::internal::WireFormat::SERIALIZE);
481  ::google::protobuf::internal::WireFormatLite::WriteString(
482  2, this->field_alias(), output);
483  }
484 
485  // required string table_name = 3;
486  if (has_table_name()) {
487  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
488  this->table_name().data(), this->table_name().length(),
489  ::google::protobuf::internal::WireFormat::SERIALIZE);
490  ::google::protobuf::internal::WireFormatLite::WriteString(
491  3, this->table_name(), output);
492  }
493 
494  // optional string table_alias = 4;
495  if (has_table_alias()) {
496  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
497  this->table_alias().data(), this->table_alias().length(),
498  ::google::protobuf::internal::WireFormat::SERIALIZE);
499  ::google::protobuf::internal::WireFormatLite::WriteString(
500  4, this->table_alias(), output);
501  }
502 
503  // required string schema_name = 5;
504  if (has_schema_name()) {
505  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
506  this->schema_name().data(), this->schema_name().length(),
507  ::google::protobuf::internal::WireFormat::SERIALIZE);
508  ::google::protobuf::internal::WireFormatLite::WriteString(
509  5, this->schema_name(), output);
510  }
511 
512  if (!unknown_fields().empty()) {
513  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
514  unknown_fields(), output);
515  }
516 }
517 
518 ::google::protobuf::uint8* FieldMeta::SerializeWithCachedSizesToArray(
519  ::google::protobuf::uint8* target) const {
520  // required string field_name = 1;
521  if (has_field_name()) {
522  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
523  this->field_name().data(), this->field_name().length(),
524  ::google::protobuf::internal::WireFormat::SERIALIZE);
525  target =
526  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
527  1, this->field_name(), target);
528  }
529 
530  // optional string field_alias = 2;
531  if (has_field_alias()) {
532  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
533  this->field_alias().data(), this->field_alias().length(),
534  ::google::protobuf::internal::WireFormat::SERIALIZE);
535  target =
536  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
537  2, this->field_alias(), target);
538  }
539 
540  // required string table_name = 3;
541  if (has_table_name()) {
542  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
543  this->table_name().data(), this->table_name().length(),
544  ::google::protobuf::internal::WireFormat::SERIALIZE);
545  target =
546  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
547  3, this->table_name(), target);
548  }
549 
550  // optional string table_alias = 4;
551  if (has_table_alias()) {
552  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
553  this->table_alias().data(), this->table_alias().length(),
554  ::google::protobuf::internal::WireFormat::SERIALIZE);
555  target =
556  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
557  4, this->table_alias(), target);
558  }
559 
560  // required string schema_name = 5;
561  if (has_schema_name()) {
562  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
563  this->schema_name().data(), this->schema_name().length(),
564  ::google::protobuf::internal::WireFormat::SERIALIZE);
565  target =
566  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
567  5, this->schema_name(), target);
568  }
569 
570  if (!unknown_fields().empty()) {
571  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
572  unknown_fields(), target);
573  }
574  return target;
575 }
576 
577 int FieldMeta::ByteSize() const {
578  int total_size = 0;
579 
580  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
581  // required string field_name = 1;
582  if (has_field_name()) {
583  total_size += 1 +
584  ::google::protobuf::internal::WireFormatLite::StringSize(
585  this->field_name());
586  }
587 
588  // optional string field_alias = 2;
589  if (has_field_alias()) {
590  total_size += 1 +
591  ::google::protobuf::internal::WireFormatLite::StringSize(
592  this->field_alias());
593  }
594 
595  // required string table_name = 3;
596  if (has_table_name()) {
597  total_size += 1 +
598  ::google::protobuf::internal::WireFormatLite::StringSize(
599  this->table_name());
600  }
601 
602  // optional string table_alias = 4;
603  if (has_table_alias()) {
604  total_size += 1 +
605  ::google::protobuf::internal::WireFormatLite::StringSize(
606  this->table_alias());
607  }
608 
609  // required string schema_name = 5;
610  if (has_schema_name()) {
611  total_size += 1 +
612  ::google::protobuf::internal::WireFormatLite::StringSize(
613  this->schema_name());
614  }
615 
616  }
617  if (!unknown_fields().empty()) {
618  total_size +=
619  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
620  unknown_fields());
621  }
622  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
623  _cached_size_ = total_size;
624  GOOGLE_SAFE_CONCURRENT_WRITES_END();
625  return total_size;
626 }
627 
628 void FieldMeta::MergeFrom(const ::google::protobuf::Message& from) {
629  GOOGLE_CHECK_NE(&from, this);
630  const FieldMeta* source =
631  ::google::protobuf::internal::dynamic_cast_if_available<const FieldMeta*>(
632  &from);
633  if (source == NULL) {
634  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
635  } else {
636  MergeFrom(*source);
637  }
638 }
639 
640 void FieldMeta::MergeFrom(const FieldMeta& from) {
641  GOOGLE_CHECK_NE(&from, this);
642  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
643  if (from.has_field_name()) {
644  set_field_name(from.field_name());
645  }
646  if (from.has_field_alias()) {
647  set_field_alias(from.field_alias());
648  }
649  if (from.has_table_name()) {
650  set_table_name(from.table_name());
651  }
652  if (from.has_table_alias()) {
653  set_table_alias(from.table_alias());
654  }
655  if (from.has_schema_name()) {
656  set_schema_name(from.schema_name());
657  }
658  }
659  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
660 }
661 
662 void FieldMeta::CopyFrom(const ::google::protobuf::Message& from) {
663  if (&from == this) return;
664  Clear();
665  MergeFrom(from);
666 }
667 
668 void FieldMeta::CopyFrom(const FieldMeta& from) {
669  if (&from == this) return;
670  Clear();
671  MergeFrom(from);
672 }
673 
674 bool FieldMeta::IsInitialized() const {
675  if ((_has_bits_[0] & 0x00000015) != 0x00000015) return false;
676 
677  return true;
678 }
679 
680 void FieldMeta::Swap(FieldMeta* other) {
681  if (other != this) {
682  std::swap(field_name_, other->field_name_);
683  std::swap(field_alias_, other->field_alias_);
684  std::swap(table_name_, other->table_name_);
685  std::swap(table_alias_, other->table_alias_);
686  std::swap(schema_name_, other->schema_name_);
687  std::swap(_has_bits_[0], other->_has_bits_[0]);
688  _unknown_fields_.Swap(&other->_unknown_fields_);
689  std::swap(_cached_size_, other->_cached_size_);
690  }
691 }
692 
693 ::google::protobuf::Metadata FieldMeta::GetMetadata() const {
694  protobuf_AssignDescriptorsOnce();
695  ::google::protobuf::Metadata metadata;
696  metadata.descriptor = FieldMeta_descriptor_;
697  metadata.reflection = FieldMeta_reflection_;
698  return metadata;
699 }
700 
701 
702 // ===================================================================
703 
704 #ifndef _MSC_VER
705 const int TableMeta::kSchemaNameFieldNumber;
706 const int TableMeta::kTableNameFieldNumber;
707 const int TableMeta::kTableAliasFieldNumber;
708 #endif // !_MSC_VER
709 
710 TableMeta::TableMeta()
711  : ::google::protobuf::Message() {
712  SharedCtor();
713 }
714 
715 void TableMeta::InitAsDefaultInstance() {
716 }
717 
718 TableMeta::TableMeta(const TableMeta& from)
719  : ::google::protobuf::Message() {
720  SharedCtor();
721  MergeFrom(from);
722 }
723 
724 void TableMeta::SharedCtor() {
725  _cached_size_ = 0;
726  schema_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
727  table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
728  table_alias_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
729  ::memset(_has_bits_, 0, sizeof(_has_bits_));
730 }
731 
732 TableMeta::~TableMeta() {
733  SharedDtor();
734 }
735 
736 void TableMeta::SharedDtor() {
737  if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
738  delete schema_name_;
739  }
740  if (table_name_ != &::google::protobuf::internal::kEmptyString) {
741  delete table_name_;
742  }
743  if (table_alias_ != &::google::protobuf::internal::kEmptyString) {
744  delete table_alias_;
745  }
746  if (this != default_instance_) {
747  }
748 }
749 
750 void TableMeta::SetCachedSize(int size) const {
751  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
752  _cached_size_ = size;
753  GOOGLE_SAFE_CONCURRENT_WRITES_END();
754 }
755 const ::google::protobuf::Descriptor* TableMeta::descriptor() {
756  protobuf_AssignDescriptorsOnce();
757  return TableMeta_descriptor_;
758 }
759 
760 const TableMeta& TableMeta::default_instance() {
761  if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto(); return *default_instance_;
762 }
763 
764 TableMeta* TableMeta::default_instance_ = NULL;
765 
766 TableMeta* TableMeta::New() const {
767  return new TableMeta;
768 }
769 
770 void TableMeta::Clear() {
771  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
772  if (has_schema_name()) {
773  if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
774  schema_name_->clear();
775  }
776  }
777  if (has_table_name()) {
778  if (table_name_ != &::google::protobuf::internal::kEmptyString) {
779  table_name_->clear();
780  }
781  }
782  if (has_table_alias()) {
783  if (table_alias_ != &::google::protobuf::internal::kEmptyString) {
784  table_alias_->clear();
785  }
786  }
787  }
788  ::memset(_has_bits_, 0, sizeof(_has_bits_));
789  mutable_unknown_fields()->Clear();
790 }
791 
792 bool TableMeta::MergePartialFromCodedStream(
793  ::google::protobuf::io::CodedInputStream* input) {
794 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
795  ::google::protobuf::uint32 tag;
796  while ((tag = input->ReadTag()) != 0) {
797  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
798  // required string schema_name = 1;
799  case 1: {
800  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
801  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
802  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
803  input, this->mutable_schema_name()));
804  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
805  this->schema_name().data(), this->schema_name().length(),
806  ::google::protobuf::internal::WireFormat::PARSE);
807  } else {
808  goto handle_uninterpreted;
809  }
810  if (input->ExpectTag(18)) goto parse_table_name;
811  break;
812  }
813 
814  // required string table_name = 2;
815  case 2: {
816  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
817  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
818  parse_table_name:
819  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
820  input, this->mutable_table_name()));
821  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
822  this->table_name().data(), this->table_name().length(),
823  ::google::protobuf::internal::WireFormat::PARSE);
824  } else {
825  goto handle_uninterpreted;
826  }
827  if (input->ExpectTag(26)) goto parse_table_alias;
828  break;
829  }
830 
831  // optional string table_alias = 3;
832  case 3: {
833  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
834  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
835  parse_table_alias:
836  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
837  input, this->mutable_table_alias()));
838  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
839  this->table_alias().data(), this->table_alias().length(),
840  ::google::protobuf::internal::WireFormat::PARSE);
841  } else {
842  goto handle_uninterpreted;
843  }
844  if (input->ExpectAtEnd()) return true;
845  break;
846  }
847 
848  default: {
849  handle_uninterpreted:
850  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
851  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
852  return true;
853  }
854  DO_(::google::protobuf::internal::WireFormat::SkipField(
855  input, tag, mutable_unknown_fields()));
856  break;
857  }
858  }
859  }
860  return true;
861 #undef DO_
862 }
863 
864 void TableMeta::SerializeWithCachedSizes(
865  ::google::protobuf::io::CodedOutputStream* output) const {
866  // required string schema_name = 1;
867  if (has_schema_name()) {
868  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
869  this->schema_name().data(), this->schema_name().length(),
870  ::google::protobuf::internal::WireFormat::SERIALIZE);
871  ::google::protobuf::internal::WireFormatLite::WriteString(
872  1, this->schema_name(), output);
873  }
874 
875  // required string table_name = 2;
876  if (has_table_name()) {
877  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
878  this->table_name().data(), this->table_name().length(),
879  ::google::protobuf::internal::WireFormat::SERIALIZE);
880  ::google::protobuf::internal::WireFormatLite::WriteString(
881  2, this->table_name(), output);
882  }
883 
884  // optional string table_alias = 3;
885  if (has_table_alias()) {
886  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
887  this->table_alias().data(), this->table_alias().length(),
888  ::google::protobuf::internal::WireFormat::SERIALIZE);
889  ::google::protobuf::internal::WireFormatLite::WriteString(
890  3, this->table_alias(), output);
891  }
892 
893  if (!unknown_fields().empty()) {
894  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
895  unknown_fields(), output);
896  }
897 }
898 
899 ::google::protobuf::uint8* TableMeta::SerializeWithCachedSizesToArray(
900  ::google::protobuf::uint8* target) const {
901  // required string schema_name = 1;
902  if (has_schema_name()) {
903  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
904  this->schema_name().data(), this->schema_name().length(),
905  ::google::protobuf::internal::WireFormat::SERIALIZE);
906  target =
907  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
908  1, this->schema_name(), target);
909  }
910 
911  // required string table_name = 2;
912  if (has_table_name()) {
913  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
914  this->table_name().data(), this->table_name().length(),
915  ::google::protobuf::internal::WireFormat::SERIALIZE);
916  target =
917  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
918  2, this->table_name(), target);
919  }
920 
921  // optional string table_alias = 3;
922  if (has_table_alias()) {
923  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
924  this->table_alias().data(), this->table_alias().length(),
925  ::google::protobuf::internal::WireFormat::SERIALIZE);
926  target =
927  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
928  3, this->table_alias(), target);
929  }
930 
931  if (!unknown_fields().empty()) {
932  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
933  unknown_fields(), target);
934  }
935  return target;
936 }
937 
938 int TableMeta::ByteSize() const {
939  int total_size = 0;
940 
941  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
942  // required string schema_name = 1;
943  if (has_schema_name()) {
944  total_size += 1 +
945  ::google::protobuf::internal::WireFormatLite::StringSize(
946  this->schema_name());
947  }
948 
949  // required string table_name = 2;
950  if (has_table_name()) {
951  total_size += 1 +
952  ::google::protobuf::internal::WireFormatLite::StringSize(
953  this->table_name());
954  }
955 
956  // optional string table_alias = 3;
957  if (has_table_alias()) {
958  total_size += 1 +
959  ::google::protobuf::internal::WireFormatLite::StringSize(
960  this->table_alias());
961  }
962 
963  }
964  if (!unknown_fields().empty()) {
965  total_size +=
966  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
967  unknown_fields());
968  }
969  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
970  _cached_size_ = total_size;
971  GOOGLE_SAFE_CONCURRENT_WRITES_END();
972  return total_size;
973 }
974 
975 void TableMeta::MergeFrom(const ::google::protobuf::Message& from) {
976  GOOGLE_CHECK_NE(&from, this);
977  const TableMeta* source =
978  ::google::protobuf::internal::dynamic_cast_if_available<const TableMeta*>(
979  &from);
980  if (source == NULL) {
981  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
982  } else {
983  MergeFrom(*source);
984  }
985 }
986 
987 void TableMeta::MergeFrom(const TableMeta& from) {
988  GOOGLE_CHECK_NE(&from, this);
989  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
990  if (from.has_schema_name()) {
991  set_schema_name(from.schema_name());
992  }
993  if (from.has_table_name()) {
994  set_table_name(from.table_name());
995  }
996  if (from.has_table_alias()) {
997  set_table_alias(from.table_alias());
998  }
999  }
1000  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1001 }
1002 
1003 void TableMeta::CopyFrom(const ::google::protobuf::Message& from) {
1004  if (&from == this) return;
1005  Clear();
1006  MergeFrom(from);
1007 }
1008 
1009 void TableMeta::CopyFrom(const TableMeta& from) {
1010  if (&from == this) return;
1011  Clear();
1012  MergeFrom(from);
1013 }
1014 
1015 bool TableMeta::IsInitialized() const {
1016  if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
1017 
1018  return true;
1019 }
1020 
1021 void TableMeta::Swap(TableMeta* other) {
1022  if (other != this) {
1023  std::swap(schema_name_, other->schema_name_);
1024  std::swap(table_name_, other->table_name_);
1025  std::swap(table_alias_, other->table_alias_);
1026  std::swap(_has_bits_[0], other->_has_bits_[0]);
1027  _unknown_fields_.Swap(&other->_unknown_fields_);
1028  std::swap(_cached_size_, other->_cached_size_);
1029  }
1030 }
1031 
1032 ::google::protobuf::Metadata TableMeta::GetMetadata() const {
1033  protobuf_AssignDescriptorsOnce();
1034  ::google::protobuf::Metadata metadata;
1035  metadata.descriptor = TableMeta_descriptor_;
1036  metadata.reflection = TableMeta_reflection_;
1037  return metadata;
1038 }
1039 
1040 
1041 // ===================================================================
1042 
1043 #ifndef _MSC_VER
1044 const int SelectRecord::kRecordValueFieldNumber;
1045 const int SelectRecord::kIsNullFieldNumber;
1046 #endif // !_MSC_VER
1047 
1048 SelectRecord::SelectRecord()
1049  : ::google::protobuf::Message() {
1050  SharedCtor();
1051 }
1052 
1053 void SelectRecord::InitAsDefaultInstance() {
1054 }
1055 
1056 SelectRecord::SelectRecord(const SelectRecord& from)
1057  : ::google::protobuf::Message() {
1058  SharedCtor();
1059  MergeFrom(from);
1060 }
1061 
1062 void SelectRecord::SharedCtor() {
1063  _cached_size_ = 0;
1064  ::memset(_has_bits_, 0, sizeof(_has_bits_));
1065 }
1066 
1067 SelectRecord::~SelectRecord() {
1068  SharedDtor();
1069 }
1070 
1071 void SelectRecord::SharedDtor() {
1072  if (this != default_instance_) {
1073  }
1074 }
1075 
1076 void SelectRecord::SetCachedSize(int size) const {
1077  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1078  _cached_size_ = size;
1079  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1080 }
1081 const ::google::protobuf::Descriptor* SelectRecord::descriptor() {
1082  protobuf_AssignDescriptorsOnce();
1083  return SelectRecord_descriptor_;
1084 }
1085 
1086 const SelectRecord& SelectRecord::default_instance() {
1087  if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto(); return *default_instance_;
1088 }
1089 
1090 SelectRecord* SelectRecord::default_instance_ = NULL;
1091 
1092 SelectRecord* SelectRecord::New() const {
1093  return new SelectRecord;
1094 }
1095 
1096 void SelectRecord::Clear() {
1097  record_value_.Clear();
1098  is_null_.Clear();
1099  ::memset(_has_bits_, 0, sizeof(_has_bits_));
1100  mutable_unknown_fields()->Clear();
1101 }
1102 
1103 bool SelectRecord::MergePartialFromCodedStream(
1104  ::google::protobuf::io::CodedInputStream* input) {
1105 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1106  ::google::protobuf::uint32 tag;
1107  while ((tag = input->ReadTag()) != 0) {
1108  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1109  // repeated bytes record_value = 1;
1110  case 1: {
1111  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1112  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1113  parse_record_value:
1114  DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1115  input, this->add_record_value()));
1116  } else {
1117  goto handle_uninterpreted;
1118  }
1119  if (input->ExpectTag(10)) goto parse_record_value;
1120  if (input->ExpectTag(16)) goto parse_is_null;
1121  break;
1122  }
1123 
1124  // repeated bool is_null = 2;
1125  case 2: {
1126  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1127  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1128  parse_is_null:
1129  DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
1130  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1131  1, 16, input, this->mutable_is_null())));
1132  } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
1133  == ::google::protobuf::internal::WireFormatLite::
1134  WIRETYPE_LENGTH_DELIMITED) {
1135  DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
1136  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1137  input, this->mutable_is_null())));
1138  } else {
1139  goto handle_uninterpreted;
1140  }
1141  if (input->ExpectTag(16)) goto parse_is_null;
1142  if (input->ExpectAtEnd()) return true;
1143  break;
1144  }
1145 
1146  default: {
1147  handle_uninterpreted:
1148  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1149  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1150  return true;
1151  }
1152  DO_(::google::protobuf::internal::WireFormat::SkipField(
1153  input, tag, mutable_unknown_fields()));
1154  break;
1155  }
1156  }
1157  }
1158  return true;
1159 #undef DO_
1160 }
1161 
1162 void SelectRecord::SerializeWithCachedSizes(
1163  ::google::protobuf::io::CodedOutputStream* output) const {
1164  // repeated bytes record_value = 1;
1165  for (int i = 0; i < this->record_value_size(); i++) {
1166  ::google::protobuf::internal::WireFormatLite::WriteBytes(
1167  1, this->record_value(i), output);
1168  }
1169 
1170  // repeated bool is_null = 2;
1171  for (int i = 0; i < this->is_null_size(); i++) {
1172  ::google::protobuf::internal::WireFormatLite::WriteBool(
1173  2, this->is_null(i), output);
1174  }
1175 
1176  if (!unknown_fields().empty()) {
1177  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1178  unknown_fields(), output);
1179  }
1180 }
1181 
1182 ::google::protobuf::uint8* SelectRecord::SerializeWithCachedSizesToArray(
1183  ::google::protobuf::uint8* target) const {
1184  // repeated bytes record_value = 1;
1185  for (int i = 0; i < this->record_value_size(); i++) {
1186  target = ::google::protobuf::internal::WireFormatLite::
1187  WriteBytesToArray(1, this->record_value(i), target);
1188  }
1189 
1190  // repeated bool is_null = 2;
1191  for (int i = 0; i < this->is_null_size(); i++) {
1192  target = ::google::protobuf::internal::WireFormatLite::
1193  WriteBoolToArray(2, this->is_null(i), target);
1194  }
1195 
1196  if (!unknown_fields().empty()) {
1197  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1198  unknown_fields(), target);
1199  }
1200  return target;
1201 }
1202 
1203 int SelectRecord::ByteSize() const {
1204  int total_size = 0;
1205 
1206  // repeated bytes record_value = 1;
1207  total_size += 1 * this->record_value_size();
1208  for (int i = 0; i < this->record_value_size(); i++) {
1209  total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
1210  this->record_value(i));
1211  }
1212 
1213  // repeated bool is_null = 2;
1214  {
1215  int data_size = 0;
1216  data_size = 1 * this->is_null_size();
1217  total_size += 1 * this->is_null_size() + data_size;
1218  }
1219 
1220  if (!unknown_fields().empty()) {
1221  total_size +=
1222  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1223  unknown_fields());
1224  }
1225  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1226  _cached_size_ = total_size;
1227  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1228  return total_size;
1229 }
1230 
1231 void SelectRecord::MergeFrom(const ::google::protobuf::Message& from) {
1232  GOOGLE_CHECK_NE(&from, this);
1233  const SelectRecord* source =
1234  ::google::protobuf::internal::dynamic_cast_if_available<const SelectRecord*>(
1235  &from);
1236  if (source == NULL) {
1237  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1238  } else {
1239  MergeFrom(*source);
1240  }
1241 }
1242 
1243 void SelectRecord::MergeFrom(const SelectRecord& from) {
1244  GOOGLE_CHECK_NE(&from, this);
1245  record_value_.MergeFrom(from.record_value_);
1246  is_null_.MergeFrom(from.is_null_);
1247  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1248 }
1249 
1250 void SelectRecord::CopyFrom(const ::google::protobuf::Message& from) {
1251  if (&from == this) return;
1252  Clear();
1253  MergeFrom(from);
1254 }
1255 
1256 void SelectRecord::CopyFrom(const SelectRecord& from) {
1257  if (&from == this) return;
1258  Clear();
1259  MergeFrom(from);
1260 }
1261 
1262 bool SelectRecord::IsInitialized() const {
1263 
1264  return true;
1265 }
1266 
1267 void SelectRecord::Swap(SelectRecord* other) {
1268  if (other != this) {
1269  record_value_.Swap(&other->record_value_);
1270  is_null_.Swap(&other->is_null_);
1271  std::swap(_has_bits_[0], other->_has_bits_[0]);
1272  _unknown_fields_.Swap(&other->_unknown_fields_);
1273  std::swap(_cached_size_, other->_cached_size_);
1274  }
1275 }
1276 
1277 ::google::protobuf::Metadata SelectRecord::GetMetadata() const {
1278  protobuf_AssignDescriptorsOnce();
1279  ::google::protobuf::Metadata metadata;
1280  metadata.descriptor = SelectRecord_descriptor_;
1281  metadata.reflection = SelectRecord_reflection_;
1282  return metadata;
1283 }
1284 
1285 
1286 // ===================================================================
1287 
1288 #ifndef _MSC_VER
1289 const int SelectHeader::kTableMetaFieldNumber;
1290 const int SelectHeader::kFieldMetaFieldNumber;
1291 #endif // !_MSC_VER
1292 
1293 SelectHeader::SelectHeader()
1294  : ::google::protobuf::Message() {
1295  SharedCtor();
1296 }
1297 
1298 void SelectHeader::InitAsDefaultInstance() {
1299 }
1300 
1301 SelectHeader::SelectHeader(const SelectHeader& from)
1302  : ::google::protobuf::Message() {
1303  SharedCtor();
1304  MergeFrom(from);
1305 }
1306 
1307 void SelectHeader::SharedCtor() {
1308  _cached_size_ = 0;
1309  ::memset(_has_bits_, 0, sizeof(_has_bits_));
1310 }
1311 
1312 SelectHeader::~SelectHeader() {
1313  SharedDtor();
1314 }
1315 
1316 void SelectHeader::SharedDtor() {
1317  if (this != default_instance_) {
1318  }
1319 }
1320 
1321 void SelectHeader::SetCachedSize(int size) const {
1322  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1323  _cached_size_ = size;
1324  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1325 }
1326 const ::google::protobuf::Descriptor* SelectHeader::descriptor() {
1327  protobuf_AssignDescriptorsOnce();
1328  return SelectHeader_descriptor_;
1329 }
1330 
1331 const SelectHeader& SelectHeader::default_instance() {
1332  if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto(); return *default_instance_;
1333 }
1334 
1335 SelectHeader* SelectHeader::default_instance_ = NULL;
1336 
1337 SelectHeader* SelectHeader::New() const {
1338  return new SelectHeader;
1339 }
1340 
1341 void SelectHeader::Clear() {
1342  table_meta_.Clear();
1343  field_meta_.Clear();
1344  ::memset(_has_bits_, 0, sizeof(_has_bits_));
1345  mutable_unknown_fields()->Clear();
1346 }
1347 
1348 bool SelectHeader::MergePartialFromCodedStream(
1349  ::google::protobuf::io::CodedInputStream* input) {
1350 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1351  ::google::protobuf::uint32 tag;
1352  while ((tag = input->ReadTag()) != 0) {
1353  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1354  // repeated .drizzled.message.TableMeta table_meta = 1;
1355  case 1: {
1356  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1357  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1358  parse_table_meta:
1359  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1360  input, add_table_meta()));
1361  } else {
1362  goto handle_uninterpreted;
1363  }
1364  if (input->ExpectTag(10)) goto parse_table_meta;
1365  if (input->ExpectTag(18)) goto parse_field_meta;
1366  break;
1367  }
1368 
1369  // repeated .drizzled.message.FieldMeta field_meta = 2;
1370  case 2: {
1371  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1372  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1373  parse_field_meta:
1374  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1375  input, add_field_meta()));
1376  } else {
1377  goto handle_uninterpreted;
1378  }
1379  if (input->ExpectTag(18)) goto parse_field_meta;
1380  if (input->ExpectAtEnd()) return true;
1381  break;
1382  }
1383 
1384  default: {
1385  handle_uninterpreted:
1386  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1387  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1388  return true;
1389  }
1390  DO_(::google::protobuf::internal::WireFormat::SkipField(
1391  input, tag, mutable_unknown_fields()));
1392  break;
1393  }
1394  }
1395  }
1396  return true;
1397 #undef DO_
1398 }
1399 
1400 void SelectHeader::SerializeWithCachedSizes(
1401  ::google::protobuf::io::CodedOutputStream* output) const {
1402  // repeated .drizzled.message.TableMeta table_meta = 1;
1403  for (int i = 0; i < this->table_meta_size(); i++) {
1404  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1405  1, this->table_meta(i), output);
1406  }
1407 
1408  // repeated .drizzled.message.FieldMeta field_meta = 2;
1409  for (int i = 0; i < this->field_meta_size(); i++) {
1410  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1411  2, this->field_meta(i), output);
1412  }
1413 
1414  if (!unknown_fields().empty()) {
1415  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1416  unknown_fields(), output);
1417  }
1418 }
1419 
1420 ::google::protobuf::uint8* SelectHeader::SerializeWithCachedSizesToArray(
1421  ::google::protobuf::uint8* target) const {
1422  // repeated .drizzled.message.TableMeta table_meta = 1;
1423  for (int i = 0; i < this->table_meta_size(); i++) {
1424  target = ::google::protobuf::internal::WireFormatLite::
1425  WriteMessageNoVirtualToArray(
1426  1, this->table_meta(i), target);
1427  }
1428 
1429  // repeated .drizzled.message.FieldMeta field_meta = 2;
1430  for (int i = 0; i < this->field_meta_size(); i++) {
1431  target = ::google::protobuf::internal::WireFormatLite::
1432  WriteMessageNoVirtualToArray(
1433  2, this->field_meta(i), target);
1434  }
1435 
1436  if (!unknown_fields().empty()) {
1437  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1438  unknown_fields(), target);
1439  }
1440  return target;
1441 }
1442 
1443 int SelectHeader::ByteSize() const {
1444  int total_size = 0;
1445 
1446  // repeated .drizzled.message.TableMeta table_meta = 1;
1447  total_size += 1 * this->table_meta_size();
1448  for (int i = 0; i < this->table_meta_size(); i++) {
1449  total_size +=
1450  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1451  this->table_meta(i));
1452  }
1453 
1454  // repeated .drizzled.message.FieldMeta field_meta = 2;
1455  total_size += 1 * this->field_meta_size();
1456  for (int i = 0; i < this->field_meta_size(); i++) {
1457  total_size +=
1458  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1459  this->field_meta(i));
1460  }
1461 
1462  if (!unknown_fields().empty()) {
1463  total_size +=
1464  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1465  unknown_fields());
1466  }
1467  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1468  _cached_size_ = total_size;
1469  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1470  return total_size;
1471 }
1472 
1473 void SelectHeader::MergeFrom(const ::google::protobuf::Message& from) {
1474  GOOGLE_CHECK_NE(&from, this);
1475  const SelectHeader* source =
1476  ::google::protobuf::internal::dynamic_cast_if_available<const SelectHeader*>(
1477  &from);
1478  if (source == NULL) {
1479  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1480  } else {
1481  MergeFrom(*source);
1482  }
1483 }
1484 
1485 void SelectHeader::MergeFrom(const SelectHeader& from) {
1486  GOOGLE_CHECK_NE(&from, this);
1487  table_meta_.MergeFrom(from.table_meta_);
1488  field_meta_.MergeFrom(from.field_meta_);
1489  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1490 }
1491 
1492 void SelectHeader::CopyFrom(const ::google::protobuf::Message& from) {
1493  if (&from == this) return;
1494  Clear();
1495  MergeFrom(from);
1496 }
1497 
1498 void SelectHeader::CopyFrom(const SelectHeader& from) {
1499  if (&from == this) return;
1500  Clear();
1501  MergeFrom(from);
1502 }
1503 
1504 bool SelectHeader::IsInitialized() const {
1505 
1506  for (int i = 0; i < table_meta_size(); i++) {
1507  if (!this->table_meta(i).IsInitialized()) return false;
1508  }
1509  for (int i = 0; i < field_meta_size(); i++) {
1510  if (!this->field_meta(i).IsInitialized()) return false;
1511  }
1512  return true;
1513 }
1514 
1515 void SelectHeader::Swap(SelectHeader* other) {
1516  if (other != this) {
1517  table_meta_.Swap(&other->table_meta_);
1518  field_meta_.Swap(&other->field_meta_);
1519  std::swap(_has_bits_[0], other->_has_bits_[0]);
1520  _unknown_fields_.Swap(&other->_unknown_fields_);
1521  std::swap(_cached_size_, other->_cached_size_);
1522  }
1523 }
1524 
1525 ::google::protobuf::Metadata SelectHeader::GetMetadata() const {
1526  protobuf_AssignDescriptorsOnce();
1527  ::google::protobuf::Metadata metadata;
1528  metadata.descriptor = SelectHeader_descriptor_;
1529  metadata.reflection = SelectHeader_reflection_;
1530  return metadata;
1531 }
1532 
1533 
1534 // ===================================================================
1535 
1536 #ifndef _MSC_VER
1537 const int SelectData::kSegmentIdFieldNumber;
1538 const int SelectData::kEndSegmentFieldNumber;
1539 const int SelectData::kRecordFieldNumber;
1540 #endif // !_MSC_VER
1541 
1542 SelectData::SelectData()
1543  : ::google::protobuf::Message() {
1544  SharedCtor();
1545 }
1546 
1547 void SelectData::InitAsDefaultInstance() {
1548 }
1549 
1550 SelectData::SelectData(const SelectData& from)
1551  : ::google::protobuf::Message() {
1552  SharedCtor();
1553  MergeFrom(from);
1554 }
1555 
1556 void SelectData::SharedCtor() {
1557  _cached_size_ = 0;
1558  segment_id_ = 0u;
1559  end_segment_ = false;
1560  ::memset(_has_bits_, 0, sizeof(_has_bits_));
1561 }
1562 
1563 SelectData::~SelectData() {
1564  SharedDtor();
1565 }
1566 
1567 void SelectData::SharedDtor() {
1568  if (this != default_instance_) {
1569  }
1570 }
1571 
1572 void SelectData::SetCachedSize(int size) const {
1573  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1574  _cached_size_ = size;
1575  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1576 }
1577 const ::google::protobuf::Descriptor* SelectData::descriptor() {
1578  protobuf_AssignDescriptorsOnce();
1579  return SelectData_descriptor_;
1580 }
1581 
1582 const SelectData& SelectData::default_instance() {
1583  if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto(); return *default_instance_;
1584 }
1585 
1586 SelectData* SelectData::default_instance_ = NULL;
1587 
1588 SelectData* SelectData::New() const {
1589  return new SelectData;
1590 }
1591 
1592 void SelectData::Clear() {
1593  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1594  segment_id_ = 0u;
1595  end_segment_ = false;
1596  }
1597  record_.Clear();
1598  ::memset(_has_bits_, 0, sizeof(_has_bits_));
1599  mutable_unknown_fields()->Clear();
1600 }
1601 
1602 bool SelectData::MergePartialFromCodedStream(
1603  ::google::protobuf::io::CodedInputStream* input) {
1604 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1605  ::google::protobuf::uint32 tag;
1606  while ((tag = input->ReadTag()) != 0) {
1607  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1608  // required uint32 segment_id = 1;
1609  case 1: {
1610  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1611  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1612  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1613  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1614  input, &segment_id_)));
1615  set_has_segment_id();
1616  } else {
1617  goto handle_uninterpreted;
1618  }
1619  if (input->ExpectTag(16)) goto parse_end_segment;
1620  break;
1621  }
1622 
1623  // required bool end_segment = 2;
1624  case 2: {
1625  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1626  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1627  parse_end_segment:
1628  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1629  bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1630  input, &end_segment_)));
1631  set_has_end_segment();
1632  } else {
1633  goto handle_uninterpreted;
1634  }
1635  if (input->ExpectTag(26)) goto parse_record;
1636  break;
1637  }
1638 
1639  // repeated .drizzled.message.SelectRecord record = 3;
1640  case 3: {
1641  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1642  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1643  parse_record:
1644  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1645  input, add_record()));
1646  } else {
1647  goto handle_uninterpreted;
1648  }
1649  if (input->ExpectTag(26)) goto parse_record;
1650  if (input->ExpectAtEnd()) return true;
1651  break;
1652  }
1653 
1654  default: {
1655  handle_uninterpreted:
1656  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1657  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1658  return true;
1659  }
1660  DO_(::google::protobuf::internal::WireFormat::SkipField(
1661  input, tag, mutable_unknown_fields()));
1662  break;
1663  }
1664  }
1665  }
1666  return true;
1667 #undef DO_
1668 }
1669 
1670 void SelectData::SerializeWithCachedSizes(
1671  ::google::protobuf::io::CodedOutputStream* output) const {
1672  // required uint32 segment_id = 1;
1673  if (has_segment_id()) {
1674  ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->segment_id(), output);
1675  }
1676 
1677  // required bool end_segment = 2;
1678  if (has_end_segment()) {
1679  ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->end_segment(), output);
1680  }
1681 
1682  // repeated .drizzled.message.SelectRecord record = 3;
1683  for (int i = 0; i < this->record_size(); i++) {
1684  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1685  3, this->record(i), output);
1686  }
1687 
1688  if (!unknown_fields().empty()) {
1689  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1690  unknown_fields(), output);
1691  }
1692 }
1693 
1694 ::google::protobuf::uint8* SelectData::SerializeWithCachedSizesToArray(
1695  ::google::protobuf::uint8* target) const {
1696  // required uint32 segment_id = 1;
1697  if (has_segment_id()) {
1698  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->segment_id(), target);
1699  }
1700 
1701  // required bool end_segment = 2;
1702  if (has_end_segment()) {
1703  target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->end_segment(), target);
1704  }
1705 
1706  // repeated .drizzled.message.SelectRecord record = 3;
1707  for (int i = 0; i < this->record_size(); i++) {
1708  target = ::google::protobuf::internal::WireFormatLite::
1709  WriteMessageNoVirtualToArray(
1710  3, this->record(i), target);
1711  }
1712 
1713  if (!unknown_fields().empty()) {
1714  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1715  unknown_fields(), target);
1716  }
1717  return target;
1718 }
1719 
1720 int SelectData::ByteSize() const {
1721  int total_size = 0;
1722 
1723  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1724  // required uint32 segment_id = 1;
1725  if (has_segment_id()) {
1726  total_size += 1 +
1727  ::google::protobuf::internal::WireFormatLite::UInt32Size(
1728  this->segment_id());
1729  }
1730 
1731  // required bool end_segment = 2;
1732  if (has_end_segment()) {
1733  total_size += 1 + 1;
1734  }
1735 
1736  }
1737  // repeated .drizzled.message.SelectRecord record = 3;
1738  total_size += 1 * this->record_size();
1739  for (int i = 0; i < this->record_size(); i++) {
1740  total_size +=
1741  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1742  this->record(i));
1743  }
1744 
1745  if (!unknown_fields().empty()) {
1746  total_size +=
1747  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1748  unknown_fields());
1749  }
1750  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1751  _cached_size_ = total_size;
1752  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1753  return total_size;
1754 }
1755 
1756 void SelectData::MergeFrom(const ::google::protobuf::Message& from) {
1757  GOOGLE_CHECK_NE(&from, this);
1758  const SelectData* source =
1759  ::google::protobuf::internal::dynamic_cast_if_available<const SelectData*>(
1760  &from);
1761  if (source == NULL) {
1762  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1763  } else {
1764  MergeFrom(*source);
1765  }
1766 }
1767 
1768 void SelectData::MergeFrom(const SelectData& from) {
1769  GOOGLE_CHECK_NE(&from, this);
1770  record_.MergeFrom(from.record_);
1771  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1772  if (from.has_segment_id()) {
1773  set_segment_id(from.segment_id());
1774  }
1775  if (from.has_end_segment()) {
1776  set_end_segment(from.end_segment());
1777  }
1778  }
1779  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1780 }
1781 
1782 void SelectData::CopyFrom(const ::google::protobuf::Message& from) {
1783  if (&from == this) return;
1784  Clear();
1785  MergeFrom(from);
1786 }
1787 
1788 void SelectData::CopyFrom(const SelectData& from) {
1789  if (&from == this) return;
1790  Clear();
1791  MergeFrom(from);
1792 }
1793 
1794 bool SelectData::IsInitialized() const {
1795  if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
1796 
1797  return true;
1798 }
1799 
1800 void SelectData::Swap(SelectData* other) {
1801  if (other != this) {
1802  std::swap(segment_id_, other->segment_id_);
1803  std::swap(end_segment_, other->end_segment_);
1804  record_.Swap(&other->record_);
1805  std::swap(_has_bits_[0], other->_has_bits_[0]);
1806  _unknown_fields_.Swap(&other->_unknown_fields_);
1807  std::swap(_cached_size_, other->_cached_size_);
1808  }
1809 }
1810 
1811 ::google::protobuf::Metadata SelectData::GetMetadata() const {
1812  protobuf_AssignDescriptorsOnce();
1813  ::google::protobuf::Metadata metadata;
1814  metadata.descriptor = SelectData_descriptor_;
1815  metadata.reflection = SelectData_reflection_;
1816  return metadata;
1817 }
1818 
1819 
1820 // ===================================================================
1821 
1822 #ifndef _MSC_VER
1823 const int Resultset::kKeyFieldNumber;
1824 const int Resultset::kSchemaFieldNumber;
1825 const int Resultset::kSqlFieldNumber;
1826 const int Resultset::kSelectHeaderFieldNumber;
1827 const int Resultset::kSelectDataFieldNumber;
1828 #endif // !_MSC_VER
1829 
1830 Resultset::Resultset()
1831  : ::google::protobuf::Message() {
1832  SharedCtor();
1833 }
1834 
1835 void Resultset::InitAsDefaultInstance() {
1836  select_header_ = const_cast< ::drizzled::message::SelectHeader*>(&::drizzled::message::SelectHeader::default_instance());
1837  select_data_ = const_cast< ::drizzled::message::SelectData*>(&::drizzled::message::SelectData::default_instance());
1838 }
1839 
1840 Resultset::Resultset(const Resultset& from)
1841  : ::google::protobuf::Message() {
1842  SharedCtor();
1843  MergeFrom(from);
1844 }
1845 
1846 void Resultset::SharedCtor() {
1847  _cached_size_ = 0;
1848  key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1849  schema_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1850  sql_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1851  select_header_ = NULL;
1852  select_data_ = NULL;
1853  ::memset(_has_bits_, 0, sizeof(_has_bits_));
1854 }
1855 
1856 Resultset::~Resultset() {
1857  SharedDtor();
1858 }
1859 
1860 void Resultset::SharedDtor() {
1861  if (key_ != &::google::protobuf::internal::kEmptyString) {
1862  delete key_;
1863  }
1864  if (schema_ != &::google::protobuf::internal::kEmptyString) {
1865  delete schema_;
1866  }
1867  if (sql_ != &::google::protobuf::internal::kEmptyString) {
1868  delete sql_;
1869  }
1870  if (this != default_instance_) {
1871  delete select_header_;
1872  delete select_data_;
1873  }
1874 }
1875 
1876 void Resultset::SetCachedSize(int size) const {
1877  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1878  _cached_size_ = size;
1879  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1880 }
1881 const ::google::protobuf::Descriptor* Resultset::descriptor() {
1882  protobuf_AssignDescriptorsOnce();
1883  return Resultset_descriptor_;
1884 }
1885 
1886 const Resultset& Resultset::default_instance() {
1887  if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto(); return *default_instance_;
1888 }
1889 
1890 Resultset* Resultset::default_instance_ = NULL;
1891 
1892 Resultset* Resultset::New() const {
1893  return new Resultset;
1894 }
1895 
1896 void Resultset::Clear() {
1897  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1898  if (has_key()) {
1899  if (key_ != &::google::protobuf::internal::kEmptyString) {
1900  key_->clear();
1901  }
1902  }
1903  if (has_schema()) {
1904  if (schema_ != &::google::protobuf::internal::kEmptyString) {
1905  schema_->clear();
1906  }
1907  }
1908  if (has_sql()) {
1909  if (sql_ != &::google::protobuf::internal::kEmptyString) {
1910  sql_->clear();
1911  }
1912  }
1913  if (has_select_header()) {
1914  if (select_header_ != NULL) select_header_->::drizzled::message::SelectHeader::Clear();
1915  }
1916  if (has_select_data()) {
1917  if (select_data_ != NULL) select_data_->::drizzled::message::SelectData::Clear();
1918  }
1919  }
1920  ::memset(_has_bits_, 0, sizeof(_has_bits_));
1921  mutable_unknown_fields()->Clear();
1922 }
1923 
1924 bool Resultset::MergePartialFromCodedStream(
1925  ::google::protobuf::io::CodedInputStream* input) {
1926 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1927  ::google::protobuf::uint32 tag;
1928  while ((tag = input->ReadTag()) != 0) {
1929  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1930  // required string key = 1;
1931  case 1: {
1932  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1933  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1934  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1935  input, this->mutable_key()));
1936  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1937  this->key().data(), this->key().length(),
1938  ::google::protobuf::internal::WireFormat::PARSE);
1939  } else {
1940  goto handle_uninterpreted;
1941  }
1942  if (input->ExpectTag(18)) goto parse_schema;
1943  break;
1944  }
1945 
1946  // required string schema = 2;
1947  case 2: {
1948  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1949  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1950  parse_schema:
1951  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1952  input, this->mutable_schema()));
1953  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1954  this->schema().data(), this->schema().length(),
1955  ::google::protobuf::internal::WireFormat::PARSE);
1956  } else {
1957  goto handle_uninterpreted;
1958  }
1959  if (input->ExpectTag(26)) goto parse_sql;
1960  break;
1961  }
1962 
1963  // optional string sql = 3;
1964  case 3: {
1965  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1966  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1967  parse_sql:
1968  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1969  input, this->mutable_sql()));
1970  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1971  this->sql().data(), this->sql().length(),
1972  ::google::protobuf::internal::WireFormat::PARSE);
1973  } else {
1974  goto handle_uninterpreted;
1975  }
1976  if (input->ExpectTag(34)) goto parse_select_header;
1977  break;
1978  }
1979 
1980  // optional .drizzled.message.SelectHeader select_header = 4;
1981  case 4: {
1982  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1983  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1984  parse_select_header:
1985  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1986  input, mutable_select_header()));
1987  } else {
1988  goto handle_uninterpreted;
1989  }
1990  if (input->ExpectTag(42)) goto parse_select_data;
1991  break;
1992  }
1993 
1994  // optional .drizzled.message.SelectData select_data = 5;
1995  case 5: {
1996  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1997  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1998  parse_select_data:
1999  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2000  input, mutable_select_data()));
2001  } else {
2002  goto handle_uninterpreted;
2003  }
2004  if (input->ExpectAtEnd()) return true;
2005  break;
2006  }
2007 
2008  default: {
2009  handle_uninterpreted:
2010  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2011  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2012  return true;
2013  }
2014  DO_(::google::protobuf::internal::WireFormat::SkipField(
2015  input, tag, mutable_unknown_fields()));
2016  break;
2017  }
2018  }
2019  }
2020  return true;
2021 #undef DO_
2022 }
2023 
2024 void Resultset::SerializeWithCachedSizes(
2025  ::google::protobuf::io::CodedOutputStream* output) const {
2026  // required string key = 1;
2027  if (has_key()) {
2028  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2029  this->key().data(), this->key().length(),
2030  ::google::protobuf::internal::WireFormat::SERIALIZE);
2031  ::google::protobuf::internal::WireFormatLite::WriteString(
2032  1, this->key(), output);
2033  }
2034 
2035  // required string schema = 2;
2036  if (has_schema()) {
2037  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2038  this->schema().data(), this->schema().length(),
2039  ::google::protobuf::internal::WireFormat::SERIALIZE);
2040  ::google::protobuf::internal::WireFormatLite::WriteString(
2041  2, this->schema(), output);
2042  }
2043 
2044  // optional string sql = 3;
2045  if (has_sql()) {
2046  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2047  this->sql().data(), this->sql().length(),
2048  ::google::protobuf::internal::WireFormat::SERIALIZE);
2049  ::google::protobuf::internal::WireFormatLite::WriteString(
2050  3, this->sql(), output);
2051  }
2052 
2053  // optional .drizzled.message.SelectHeader select_header = 4;
2054  if (has_select_header()) {
2055  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2056  4, this->select_header(), output);
2057  }
2058 
2059  // optional .drizzled.message.SelectData select_data = 5;
2060  if (has_select_data()) {
2061  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2062  5, this->select_data(), output);
2063  }
2064 
2065  if (!unknown_fields().empty()) {
2066  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2067  unknown_fields(), output);
2068  }
2069 }
2070 
2071 ::google::protobuf::uint8* Resultset::SerializeWithCachedSizesToArray(
2072  ::google::protobuf::uint8* target) const {
2073  // required string key = 1;
2074  if (has_key()) {
2075  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2076  this->key().data(), this->key().length(),
2077  ::google::protobuf::internal::WireFormat::SERIALIZE);
2078  target =
2079  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2080  1, this->key(), target);
2081  }
2082 
2083  // required string schema = 2;
2084  if (has_schema()) {
2085  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2086  this->schema().data(), this->schema().length(),
2087  ::google::protobuf::internal::WireFormat::SERIALIZE);
2088  target =
2089  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2090  2, this->schema(), target);
2091  }
2092 
2093  // optional string sql = 3;
2094  if (has_sql()) {
2095  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2096  this->sql().data(), this->sql().length(),
2097  ::google::protobuf::internal::WireFormat::SERIALIZE);
2098  target =
2099  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2100  3, this->sql(), target);
2101  }
2102 
2103  // optional .drizzled.message.SelectHeader select_header = 4;
2104  if (has_select_header()) {
2105  target = ::google::protobuf::internal::WireFormatLite::
2106  WriteMessageNoVirtualToArray(
2107  4, this->select_header(), target);
2108  }
2109 
2110  // optional .drizzled.message.SelectData select_data = 5;
2111  if (has_select_data()) {
2112  target = ::google::protobuf::internal::WireFormatLite::
2113  WriteMessageNoVirtualToArray(
2114  5, this->select_data(), target);
2115  }
2116 
2117  if (!unknown_fields().empty()) {
2118  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2119  unknown_fields(), target);
2120  }
2121  return target;
2122 }
2123 
2124 int Resultset::ByteSize() const {
2125  int total_size = 0;
2126 
2127  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2128  // required string key = 1;
2129  if (has_key()) {
2130  total_size += 1 +
2131  ::google::protobuf::internal::WireFormatLite::StringSize(
2132  this->key());
2133  }
2134 
2135  // required string schema = 2;
2136  if (has_schema()) {
2137  total_size += 1 +
2138  ::google::protobuf::internal::WireFormatLite::StringSize(
2139  this->schema());
2140  }
2141 
2142  // optional string sql = 3;
2143  if (has_sql()) {
2144  total_size += 1 +
2145  ::google::protobuf::internal::WireFormatLite::StringSize(
2146  this->sql());
2147  }
2148 
2149  // optional .drizzled.message.SelectHeader select_header = 4;
2150  if (has_select_header()) {
2151  total_size += 1 +
2152  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2153  this->select_header());
2154  }
2155 
2156  // optional .drizzled.message.SelectData select_data = 5;
2157  if (has_select_data()) {
2158  total_size += 1 +
2159  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2160  this->select_data());
2161  }
2162 
2163  }
2164  if (!unknown_fields().empty()) {
2165  total_size +=
2166  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2167  unknown_fields());
2168  }
2169  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2170  _cached_size_ = total_size;
2171  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2172  return total_size;
2173 }
2174 
2175 void Resultset::MergeFrom(const ::google::protobuf::Message& from) {
2176  GOOGLE_CHECK_NE(&from, this);
2177  const Resultset* source =
2178  ::google::protobuf::internal::dynamic_cast_if_available<const Resultset*>(
2179  &from);
2180  if (source == NULL) {
2181  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2182  } else {
2183  MergeFrom(*source);
2184  }
2185 }
2186 
2187 void Resultset::MergeFrom(const Resultset& from) {
2188  GOOGLE_CHECK_NE(&from, this);
2189  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2190  if (from.has_key()) {
2191  set_key(from.key());
2192  }
2193  if (from.has_schema()) {
2194  set_schema(from.schema());
2195  }
2196  if (from.has_sql()) {
2197  set_sql(from.sql());
2198  }
2199  if (from.has_select_header()) {
2200  mutable_select_header()->::drizzled::message::SelectHeader::MergeFrom(from.select_header());
2201  }
2202  if (from.has_select_data()) {
2203  mutable_select_data()->::drizzled::message::SelectData::MergeFrom(from.select_data());
2204  }
2205  }
2206  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2207 }
2208 
2209 void Resultset::CopyFrom(const ::google::protobuf::Message& from) {
2210  if (&from == this) return;
2211  Clear();
2212  MergeFrom(from);
2213 }
2214 
2215 void Resultset::CopyFrom(const Resultset& from) {
2216  if (&from == this) return;
2217  Clear();
2218  MergeFrom(from);
2219 }
2220 
2221 bool Resultset::IsInitialized() const {
2222  if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
2223 
2224  if (has_select_header()) {
2225  if (!this->select_header().IsInitialized()) return false;
2226  }
2227  if (has_select_data()) {
2228  if (!this->select_data().IsInitialized()) return false;
2229  }
2230  return true;
2231 }
2232 
2233 void Resultset::Swap(Resultset* other) {
2234  if (other != this) {
2235  std::swap(key_, other->key_);
2236  std::swap(schema_, other->schema_);
2237  std::swap(sql_, other->sql_);
2238  std::swap(select_header_, other->select_header_);
2239  std::swap(select_data_, other->select_data_);
2240  std::swap(_has_bits_[0], other->_has_bits_[0]);
2241  _unknown_fields_.Swap(&other->_unknown_fields_);
2242  std::swap(_cached_size_, other->_cached_size_);
2243  }
2244 }
2245 
2246 ::google::protobuf::Metadata Resultset::GetMetadata() const {
2247  protobuf_AssignDescriptorsOnce();
2248  ::google::protobuf::Metadata metadata;
2249  metadata.descriptor = Resultset_descriptor_;
2250  metadata.reflection = Resultset_reflection_;
2251  return metadata;
2252 }
2253 
2254 
2255 // @@protoc_insertion_point(namespace_scope)
2256 
2257 } // namespace message
2258 } // namespace drizzled
2259 
2260 // @@protoc_insertion_point(global_scope)