Drizzled Public API Documentation

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