4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 #include "resultset.pb.h"
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>
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;
46 void protobuf_AssignDesc_resultset_2eproto() {
47 protobuf_AddDesc_resultset_2eproto();
48 const ::google::protobuf::FileDescriptor* file =
49 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
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_),
60 FieldMeta_reflection_ =
61 new ::google::protobuf::internal::GeneratedMessageReflection(
62 FieldMeta_descriptor_,
63 FieldMeta::default_instance_,
65 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, _has_bits_[0]),
66 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, _unknown_fields_),
68 ::google::protobuf::DescriptorPool::generated_pool(),
69 ::google::protobuf::MessageFactory::generated_factory(),
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_),
77 TableMeta_reflection_ =
78 new ::google::protobuf::internal::GeneratedMessageReflection(
79 TableMeta_descriptor_,
80 TableMeta::default_instance_,
82 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableMeta, _has_bits_[0]),
83 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableMeta, _unknown_fields_),
85 ::google::protobuf::DescriptorPool::generated_pool(),
86 ::google::protobuf::MessageFactory::generated_factory(),
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_),
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_),
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_),
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_),
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_),
126 SelectData_reflection_ =
127 new ::google::protobuf::internal::GeneratedMessageReflection(
128 SelectData_descriptor_,
129 SelectData::default_instance_,
131 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectData, _has_bits_[0]),
132 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectData, _unknown_fields_),
134 ::google::protobuf::DescriptorPool::generated_pool(),
135 ::google::protobuf::MessageFactory::generated_factory(),
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_),
145 Resultset_reflection_ =
146 new ::google::protobuf::internal::GeneratedMessageReflection(
147 Resultset_descriptor_,
148 Resultset::default_instance_,
150 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Resultset, _has_bits_[0]),
151 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Resultset, _unknown_fields_),
153 ::google::protobuf::DescriptorPool::generated_pool(),
154 ::google::protobuf::MessageFactory::generated_factory(),
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);
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());
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_;
199 void protobuf_AddDesc_resultset_2eproto() {
200 static bool already_here =
false;
201 if (already_here)
return;
203 GOOGLE_PROTOBUF_VERIFY_VERSION;
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);
247 protobuf_AddDesc_resultset_2eproto();
249 } static_descriptor_initializer_resultset_2eproto_;
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;
261 FieldMeta::FieldMeta()
262 : ::google::protobuf::Message() {
266 void FieldMeta::InitAsDefaultInstance() {
269 FieldMeta::FieldMeta(
const FieldMeta& from)
270 : ::google::protobuf::Message() {
275 void FieldMeta::SharedCtor() {
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_));
285 FieldMeta::~FieldMeta() {
289 void FieldMeta::SharedDtor() {
290 if (field_name_ != &::google::protobuf::internal::kEmptyString) {
293 if (field_alias_ != &::google::protobuf::internal::kEmptyString) {
296 if (table_name_ != &::google::protobuf::internal::kEmptyString) {
299 if (table_alias_ != &::google::protobuf::internal::kEmptyString) {
302 if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
305 if (
this != default_instance_) {
309 void FieldMeta::SetCachedSize(
int size)
const {
310 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
311 _cached_size_ = size;
312 GOOGLE_SAFE_CONCURRENT_WRITES_END();
314 const ::google::protobuf::Descriptor* FieldMeta::descriptor() {
315 protobuf_AssignDescriptorsOnce();
316 return FieldMeta_descriptor_;
319 const FieldMeta& FieldMeta::default_instance() {
320 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto();
321 return *default_instance_;
324 FieldMeta* FieldMeta::default_instance_ = NULL;
326 FieldMeta* FieldMeta::New()
const {
327 return new FieldMeta;
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();
337 if (has_field_alias()) {
338 if (field_alias_ != &::google::protobuf::internal::kEmptyString) {
339 field_alias_->clear();
342 if (has_table_name()) {
343 if (table_name_ != &::google::protobuf::internal::kEmptyString) {
344 table_name_->clear();
347 if (has_table_alias()) {
348 if (table_alias_ != &::google::protobuf::internal::kEmptyString) {
349 table_alias_->clear();
352 if (has_schema_name()) {
353 if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
354 schema_name_->clear();
358 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
359 mutable_unknown_fields()->Clear();
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)) {
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);
378 goto handle_uninterpreted;
380 if (input->ExpectTag(18))
goto parse_field_alias;
386 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
387 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
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);
395 goto handle_uninterpreted;
397 if (input->ExpectTag(26))
goto parse_table_name;
403 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
404 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
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);
412 goto handle_uninterpreted;
414 if (input->ExpectTag(34))
goto parse_table_alias;
420 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
421 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
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);
429 goto handle_uninterpreted;
431 if (input->ExpectTag(42))
goto parse_schema_name;
437 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
438 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
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);
446 goto handle_uninterpreted;
448 if (input->ExpectAtEnd())
return true;
453 handle_uninterpreted:
454 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
455 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
458 DO_(::google::protobuf::internal::WireFormat::SkipField(
459 input, tag, mutable_unknown_fields()));
468 void FieldMeta::SerializeWithCachedSizes(
469 ::google::protobuf::io::CodedOutputStream* output)
const {
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);
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);
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);
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);
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);
515 if (!unknown_fields().empty()) {
516 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
517 unknown_fields(), output);
521 ::google::protobuf::uint8* FieldMeta::SerializeWithCachedSizesToArray(
522 ::google::protobuf::uint8* target)
const {
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);
529 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
530 1, this->field_name(), target);
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);
539 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
540 2, this->field_alias(), target);
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);
549 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
550 3, this->table_name(), target);
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);
559 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
560 4, this->table_alias(), target);
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);
569 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
570 5, this->schema_name(), target);
573 if (!unknown_fields().empty()) {
574 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
575 unknown_fields(), target);
580 int FieldMeta::ByteSize()
const {
583 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
585 if (has_field_name()) {
587 ::google::protobuf::internal::WireFormatLite::StringSize(
592 if (has_field_alias()) {
594 ::google::protobuf::internal::WireFormatLite::StringSize(
595 this->field_alias());
599 if (has_table_name()) {
601 ::google::protobuf::internal::WireFormatLite::StringSize(
606 if (has_table_alias()) {
608 ::google::protobuf::internal::WireFormatLite::StringSize(
609 this->table_alias());
613 if (has_schema_name()) {
615 ::google::protobuf::internal::WireFormatLite::StringSize(
616 this->schema_name());
620 if (!unknown_fields().empty()) {
622 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
625 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
626 _cached_size_ = total_size;
627 GOOGLE_SAFE_CONCURRENT_WRITES_END();
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*>(
636 if (source == NULL) {
637 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
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());
649 if (from.has_field_alias()) {
650 set_field_alias(from.field_alias());
652 if (from.has_table_name()) {
653 set_table_name(from.table_name());
655 if (from.has_table_alias()) {
656 set_table_alias(from.table_alias());
658 if (from.has_schema_name()) {
659 set_schema_name(from.schema_name());
662 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
665 void FieldMeta::CopyFrom(const ::google::protobuf::Message& from) {
666 if (&from ==
this)
return;
671 void FieldMeta::CopyFrom(
const FieldMeta& from) {
672 if (&from ==
this)
return;
677 bool FieldMeta::IsInitialized()
const {
678 if ((_has_bits_[0] & 0x00000015) != 0x00000015)
return false;
683 void FieldMeta::Swap(FieldMeta* other) {
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_);
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_;
708 const int TableMeta::kSchemaNameFieldNumber;
709 const int TableMeta::kTableNameFieldNumber;
710 const int TableMeta::kTableAliasFieldNumber;
713 TableMeta::TableMeta()
714 : ::google::protobuf::Message() {
718 void TableMeta::InitAsDefaultInstance() {
721 TableMeta::TableMeta(
const TableMeta& from)
722 : ::google::protobuf::Message() {
727 void TableMeta::SharedCtor() {
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_));
735 TableMeta::~TableMeta() {
739 void TableMeta::SharedDtor() {
740 if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
743 if (table_name_ != &::google::protobuf::internal::kEmptyString) {
746 if (table_alias_ != &::google::protobuf::internal::kEmptyString) {
749 if (
this != default_instance_) {
753 void TableMeta::SetCachedSize(
int size)
const {
754 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
755 _cached_size_ = size;
756 GOOGLE_SAFE_CONCURRENT_WRITES_END();
758 const ::google::protobuf::Descriptor* TableMeta::descriptor() {
759 protobuf_AssignDescriptorsOnce();
760 return TableMeta_descriptor_;
763 const TableMeta& TableMeta::default_instance() {
764 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto();
765 return *default_instance_;
768 TableMeta* TableMeta::default_instance_ = NULL;
770 TableMeta* TableMeta::New()
const {
771 return new TableMeta;
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();
781 if (has_table_name()) {
782 if (table_name_ != &::google::protobuf::internal::kEmptyString) {
783 table_name_->clear();
786 if (has_table_alias()) {
787 if (table_alias_ != &::google::protobuf::internal::kEmptyString) {
788 table_alias_->clear();
792 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
793 mutable_unknown_fields()->Clear();
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)) {
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);
812 goto handle_uninterpreted;
814 if (input->ExpectTag(18))
goto parse_table_name;
820 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
821 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
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);
829 goto handle_uninterpreted;
831 if (input->ExpectTag(26))
goto parse_table_alias;
837 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
838 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
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);
846 goto handle_uninterpreted;
848 if (input->ExpectAtEnd())
return true;
853 handle_uninterpreted:
854 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
855 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
858 DO_(::google::protobuf::internal::WireFormat::SkipField(
859 input, tag, mutable_unknown_fields()));
868 void TableMeta::SerializeWithCachedSizes(
869 ::google::protobuf::io::CodedOutputStream* output)
const {
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);
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);
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);
897 if (!unknown_fields().empty()) {
898 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
899 unknown_fields(), output);
903 ::google::protobuf::uint8* TableMeta::SerializeWithCachedSizesToArray(
904 ::google::protobuf::uint8* target)
const {
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);
911 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
912 1, this->schema_name(), target);
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);
921 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
922 2, this->table_name(), target);
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);
931 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
932 3, this->table_alias(), target);
935 if (!unknown_fields().empty()) {
936 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
937 unknown_fields(), target);
942 int TableMeta::ByteSize()
const {
945 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
947 if (has_schema_name()) {
949 ::google::protobuf::internal::WireFormatLite::StringSize(
950 this->schema_name());
954 if (has_table_name()) {
956 ::google::protobuf::internal::WireFormatLite::StringSize(
961 if (has_table_alias()) {
963 ::google::protobuf::internal::WireFormatLite::StringSize(
964 this->table_alias());
968 if (!unknown_fields().empty()) {
970 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
973 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
974 _cached_size_ = total_size;
975 GOOGLE_SAFE_CONCURRENT_WRITES_END();
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*>(
984 if (source == NULL) {
985 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
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());
997 if (from.has_table_name()) {
998 set_table_name(from.table_name());
1000 if (from.has_table_alias()) {
1001 set_table_alias(from.table_alias());
1004 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1007 void TableMeta::CopyFrom(const ::google::protobuf::Message& from) {
1008 if (&from ==
this)
return;
1013 void TableMeta::CopyFrom(
const TableMeta& from) {
1014 if (&from ==
this)
return;
1019 bool TableMeta::IsInitialized()
const {
1020 if ((_has_bits_[0] & 0x00000003) != 0x00000003)
return false;
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_);
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_;
1048 const int SelectRecord::kRecordValueFieldNumber;
1049 const int SelectRecord::kIsNullFieldNumber;
1052 SelectRecord::SelectRecord()
1053 : ::google::protobuf::Message() {
1057 void SelectRecord::InitAsDefaultInstance() {
1060 SelectRecord::SelectRecord(
const SelectRecord& from)
1061 : ::google::protobuf::Message() {
1066 void SelectRecord::SharedCtor() {
1068 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1071 SelectRecord::~SelectRecord() {
1075 void SelectRecord::SharedDtor() {
1076 if (
this != default_instance_) {
1080 void SelectRecord::SetCachedSize(
int size)
const {
1081 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1082 _cached_size_ = size;
1083 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1085 const ::google::protobuf::Descriptor* SelectRecord::descriptor() {
1086 protobuf_AssignDescriptorsOnce();
1087 return SelectRecord_descriptor_;
1090 const SelectRecord& SelectRecord::default_instance() {
1091 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto();
1092 return *default_instance_;
1095 SelectRecord* SelectRecord::default_instance_ = NULL;
1097 SelectRecord* SelectRecord::New()
const {
1098 return new SelectRecord;
1101 void SelectRecord::Clear() {
1102 record_value_.Clear();
1104 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1105 mutable_unknown_fields()->Clear();
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)) {
1116 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1117 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1119 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1120 input, this->add_record_value()));
1122 goto handle_uninterpreted;
1124 if (input->ExpectTag(10))
goto parse_record_value;
1125 if (input->ExpectTag(16))
goto parse_is_null;
1131 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1132 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
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())));
1144 goto handle_uninterpreted;
1146 if (input->ExpectTag(16))
goto parse_is_null;
1147 if (input->ExpectAtEnd())
return true;
1152 handle_uninterpreted:
1153 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1154 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1157 DO_(::google::protobuf::internal::WireFormat::SkipField(
1158 input, tag, mutable_unknown_fields()));
1167 void SelectRecord::SerializeWithCachedSizes(
1168 ::google::protobuf::io::CodedOutputStream* output)
const {
1170 for (
int i = 0; i < this->record_value_size(); i++) {
1171 ::google::protobuf::internal::WireFormatLite::WriteBytes(
1172 1, this->record_value(i), output);
1176 for (
int i = 0; i < this->is_null_size(); i++) {
1177 ::google::protobuf::internal::WireFormatLite::WriteBool(
1178 2, this->is_null(i), output);
1181 if (!unknown_fields().empty()) {
1182 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1183 unknown_fields(), output);
1187 ::google::protobuf::uint8* SelectRecord::SerializeWithCachedSizesToArray(
1188 ::google::protobuf::uint8* target)
const {
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);
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);
1201 if (!unknown_fields().empty()) {
1202 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1203 unknown_fields(), target);
1208 int SelectRecord::ByteSize()
const {
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));
1221 data_size = 1 * this->is_null_size();
1222 total_size += 1 * this->is_null_size() + data_size;
1225 if (!unknown_fields().empty()) {
1227 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1230 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1231 _cached_size_ = total_size;
1232 GOOGLE_SAFE_CONCURRENT_WRITES_END();
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*>(
1241 if (source == NULL) {
1242 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
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());
1255 void SelectRecord::CopyFrom(const ::google::protobuf::Message& from) {
1256 if (&from ==
this)
return;
1261 void SelectRecord::CopyFrom(
const SelectRecord& from) {
1262 if (&from ==
this)
return;
1267 bool SelectRecord::IsInitialized()
const {
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_);
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_;
1294 const int SelectHeader::kTableMetaFieldNumber;
1295 const int SelectHeader::kFieldMetaFieldNumber;
1298 SelectHeader::SelectHeader()
1299 : ::google::protobuf::Message() {
1303 void SelectHeader::InitAsDefaultInstance() {
1306 SelectHeader::SelectHeader(
const SelectHeader& from)
1307 : ::google::protobuf::Message() {
1312 void SelectHeader::SharedCtor() {
1314 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1317 SelectHeader::~SelectHeader() {
1321 void SelectHeader::SharedDtor() {
1322 if (
this != default_instance_) {
1326 void SelectHeader::SetCachedSize(
int size)
const {
1327 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1328 _cached_size_ = size;
1329 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1331 const ::google::protobuf::Descriptor* SelectHeader::descriptor() {
1332 protobuf_AssignDescriptorsOnce();
1333 return SelectHeader_descriptor_;
1336 const SelectHeader& SelectHeader::default_instance() {
1337 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto();
1338 return *default_instance_;
1341 SelectHeader* SelectHeader::default_instance_ = NULL;
1343 SelectHeader* SelectHeader::New()
const {
1344 return new SelectHeader;
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();
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)) {
1362 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1363 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1365 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1366 input, add_table_meta()));
1368 goto handle_uninterpreted;
1370 if (input->ExpectTag(10))
goto parse_table_meta;
1371 if (input->ExpectTag(18))
goto parse_field_meta;
1377 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1378 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1380 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1381 input, add_field_meta()));
1383 goto handle_uninterpreted;
1385 if (input->ExpectTag(18))
goto parse_field_meta;
1386 if (input->ExpectAtEnd())
return true;
1391 handle_uninterpreted:
1392 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1393 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1396 DO_(::google::protobuf::internal::WireFormat::SkipField(
1397 input, tag, mutable_unknown_fields()));
1406 void SelectHeader::SerializeWithCachedSizes(
1407 ::google::protobuf::io::CodedOutputStream* output)
const {
1409 for (
int i = 0; i < this->table_meta_size(); i++) {
1410 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1411 1, this->table_meta(i), output);
1415 for (
int i = 0; i < this->field_meta_size(); i++) {
1416 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1417 2, this->field_meta(i), output);
1420 if (!unknown_fields().empty()) {
1421 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1422 unknown_fields(), output);
1426 ::google::protobuf::uint8* SelectHeader::SerializeWithCachedSizesToArray(
1427 ::google::protobuf::uint8* target)
const {
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);
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);
1442 if (!unknown_fields().empty()) {
1443 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1444 unknown_fields(), target);
1449 int SelectHeader::ByteSize()
const {
1453 total_size += 1 * this->table_meta_size();
1454 for (
int i = 0; i < this->table_meta_size(); i++) {
1456 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1457 this->table_meta(i));
1461 total_size += 1 * this->field_meta_size();
1462 for (
int i = 0; i < this->field_meta_size(); i++) {
1464 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1465 this->field_meta(i));
1468 if (!unknown_fields().empty()) {
1470 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1473 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1474 _cached_size_ = total_size;
1475 GOOGLE_SAFE_CONCURRENT_WRITES_END();
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*>(
1484 if (source == NULL) {
1485 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
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());
1498 void SelectHeader::CopyFrom(const ::google::protobuf::Message& from) {
1499 if (&from ==
this)
return;
1504 void SelectHeader::CopyFrom(
const SelectHeader& from) {
1505 if (&from ==
this)
return;
1510 bool SelectHeader::IsInitialized()
const {
1512 for (
int i = 0; i < table_meta_size(); i++) {
1513 if (!this->table_meta(i).IsInitialized())
return false;
1515 for (
int i = 0; i < field_meta_size(); i++) {
1516 if (!this->field_meta(i).IsInitialized())
return false;
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_);
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_;
1543 const int SelectData::kSegmentIdFieldNumber;
1544 const int SelectData::kEndSegmentFieldNumber;
1545 const int SelectData::kRecordFieldNumber;
1548 SelectData::SelectData()
1549 : ::google::protobuf::Message() {
1553 void SelectData::InitAsDefaultInstance() {
1556 SelectData::SelectData(
const SelectData& from)
1557 : ::google::protobuf::Message() {
1562 void SelectData::SharedCtor() {
1565 end_segment_ =
false;
1566 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1569 SelectData::~SelectData() {
1573 void SelectData::SharedDtor() {
1574 if (
this != default_instance_) {
1578 void SelectData::SetCachedSize(
int size)
const {
1579 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1580 _cached_size_ = size;
1581 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1583 const ::google::protobuf::Descriptor* SelectData::descriptor() {
1584 protobuf_AssignDescriptorsOnce();
1585 return SelectData_descriptor_;
1588 const SelectData& SelectData::default_instance() {
1589 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto();
1590 return *default_instance_;
1593 SelectData* SelectData::default_instance_ = NULL;
1595 SelectData* SelectData::New()
const {
1596 return new SelectData;
1599 void SelectData::Clear() {
1600 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1602 end_segment_ =
false;
1605 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1606 mutable_unknown_fields()->Clear();
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)) {
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();
1624 goto handle_uninterpreted;
1626 if (input->ExpectTag(16))
goto parse_end_segment;
1632 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1633 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1635 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1636 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1637 input, &end_segment_)));
1638 set_has_end_segment();
1640 goto handle_uninterpreted;
1642 if (input->ExpectTag(26))
goto parse_record;
1648 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1649 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1651 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1652 input, add_record()));
1654 goto handle_uninterpreted;
1656 if (input->ExpectTag(26))
goto parse_record;
1657 if (input->ExpectAtEnd())
return true;
1662 handle_uninterpreted:
1663 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1664 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1667 DO_(::google::protobuf::internal::WireFormat::SkipField(
1668 input, tag, mutable_unknown_fields()));
1677 void SelectData::SerializeWithCachedSizes(
1678 ::google::protobuf::io::CodedOutputStream* output)
const {
1680 if (has_segment_id()) {
1681 ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->segment_id(), output);
1685 if (has_end_segment()) {
1686 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->end_segment(), output);
1690 for (
int i = 0; i < this->record_size(); i++) {
1691 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1692 3, this->record(i), output);
1695 if (!unknown_fields().empty()) {
1696 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1697 unknown_fields(), output);
1701 ::google::protobuf::uint8* SelectData::SerializeWithCachedSizesToArray(
1702 ::google::protobuf::uint8* target)
const {
1704 if (has_segment_id()) {
1705 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->segment_id(), target);
1709 if (has_end_segment()) {
1710 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->end_segment(), target);
1714 for (
int i = 0; i < this->record_size(); i++) {
1715 target = ::google::protobuf::internal::WireFormatLite::
1716 WriteMessageNoVirtualToArray(
1717 3, this->record(i), target);
1720 if (!unknown_fields().empty()) {
1721 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1722 unknown_fields(), target);
1727 int SelectData::ByteSize()
const {
1730 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1732 if (has_segment_id()) {
1734 ::google::protobuf::internal::WireFormatLite::UInt32Size(
1735 this->segment_id());
1739 if (has_end_segment()) {
1740 total_size += 1 + 1;
1745 total_size += 1 * this->record_size();
1746 for (
int i = 0; i < this->record_size(); i++) {
1748 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1752 if (!unknown_fields().empty()) {
1754 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1757 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1758 _cached_size_ = total_size;
1759 GOOGLE_SAFE_CONCURRENT_WRITES_END();
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*>(
1768 if (source == NULL) {
1769 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
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());
1782 if (from.has_end_segment()) {
1783 set_end_segment(from.end_segment());
1786 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1789 void SelectData::CopyFrom(const ::google::protobuf::Message& from) {
1790 if (&from ==
this)
return;
1795 void SelectData::CopyFrom(
const SelectData& from) {
1796 if (&from ==
this)
return;
1801 bool SelectData::IsInitialized()
const {
1802 if ((_has_bits_[0] & 0x00000003) != 0x00000003)
return false;
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_);
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_;
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;
1837 Resultset::Resultset()
1838 : ::google::protobuf::Message() {
1842 void Resultset::InitAsDefaultInstance() {
1847 Resultset::Resultset(
const Resultset& from)
1848 : ::google::protobuf::Message() {
1853 void Resultset::SharedCtor() {
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_));
1863 Resultset::~Resultset() {
1867 void Resultset::SharedDtor() {
1868 if (key_ != &::google::protobuf::internal::kEmptyString) {
1871 if (schema_ != &::google::protobuf::internal::kEmptyString) {
1874 if (sql_ != &::google::protobuf::internal::kEmptyString) {
1877 if (
this != default_instance_) {
1878 delete select_header_;
1879 delete select_data_;
1883 void Resultset::SetCachedSize(
int size)
const {
1884 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1885 _cached_size_ = size;
1886 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1888 const ::google::protobuf::Descriptor* Resultset::descriptor() {
1889 protobuf_AssignDescriptorsOnce();
1890 return Resultset_descriptor_;
1893 const Resultset& Resultset::default_instance() {
1894 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto();
1895 return *default_instance_;
1898 Resultset* Resultset::default_instance_ = NULL;
1900 Resultset* Resultset::New()
const {
1901 return new Resultset;
1904 void Resultset::Clear() {
1905 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1907 if (key_ != &::google::protobuf::internal::kEmptyString) {
1912 if (schema_ != &::google::protobuf::internal::kEmptyString) {
1917 if (sql_ != &::google::protobuf::internal::kEmptyString) {
1921 if (has_select_header()) {
1922 if (select_header_ != NULL) select_header_->::drizzled::message::SelectHeader::Clear();
1924 if (has_select_data()) {
1925 if (select_data_ != NULL) select_data_->::drizzled::message::SelectData::Clear();
1928 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1929 mutable_unknown_fields()->Clear();
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)) {
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);
1948 goto handle_uninterpreted;
1950 if (input->ExpectTag(18))
goto parse_schema;
1956 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1957 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
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);
1965 goto handle_uninterpreted;
1967 if (input->ExpectTag(26))
goto parse_sql;
1973 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1974 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
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);
1982 goto handle_uninterpreted;
1984 if (input->ExpectTag(34))
goto parse_select_header;
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()));
1996 goto handle_uninterpreted;
1998 if (input->ExpectTag(42))
goto parse_select_data;
2004 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2005 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2007 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2008 input, mutable_select_data()));
2010 goto handle_uninterpreted;
2012 if (input->ExpectAtEnd())
return true;
2017 handle_uninterpreted:
2018 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2019 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2022 DO_(::google::protobuf::internal::WireFormat::SkipField(
2023 input, tag, mutable_unknown_fields()));
2032 void Resultset::SerializeWithCachedSizes(
2033 ::google::protobuf::io::CodedOutputStream* output)
const {
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);
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);
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);
2062 if (has_select_header()) {
2063 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2064 4, this->select_header(), output);
2068 if (has_select_data()) {
2069 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2070 5, this->select_data(), output);
2073 if (!unknown_fields().empty()) {
2074 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2075 unknown_fields(), output);
2079 ::google::protobuf::uint8* Resultset::SerializeWithCachedSizesToArray(
2080 ::google::protobuf::uint8* target)
const {
2083 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2084 this->key().data(), this->key().length(),
2085 ::google::protobuf::internal::WireFormat::SERIALIZE);
2087 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2088 1, this->key(), target);
2093 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2094 this->schema().data(), this->schema().length(),
2095 ::google::protobuf::internal::WireFormat::SERIALIZE);
2097 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2098 2, this->schema(), target);
2103 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2104 this->sql().data(), this->sql().length(),
2105 ::google::protobuf::internal::WireFormat::SERIALIZE);
2107 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2108 3, this->sql(), target);
2112 if (has_select_header()) {
2113 target = ::google::protobuf::internal::WireFormatLite::
2114 WriteMessageNoVirtualToArray(
2115 4, this->select_header(), target);
2119 if (has_select_data()) {
2120 target = ::google::protobuf::internal::WireFormatLite::
2121 WriteMessageNoVirtualToArray(
2122 5, this->select_data(), target);
2125 if (!unknown_fields().empty()) {
2126 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2127 unknown_fields(), target);
2132 int Resultset::ByteSize()
const {
2135 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2139 ::google::protobuf::internal::WireFormatLite::StringSize(
2146 ::google::protobuf::internal::WireFormatLite::StringSize(
2153 ::google::protobuf::internal::WireFormatLite::StringSize(
2158 if (has_select_header()) {
2160 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2161 this->select_header());
2165 if (has_select_data()) {
2167 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2168 this->select_data());
2172 if (!unknown_fields().empty()) {
2174 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2177 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2178 _cached_size_ = total_size;
2179 GOOGLE_SAFE_CONCURRENT_WRITES_END();
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*>(
2188 if (source == NULL) {
2189 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
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());
2201 if (from.has_schema()) {
2202 set_schema(from.schema());
2204 if (from.has_sql()) {
2205 set_sql(from.sql());
2207 if (from.has_select_header()) {
2208 mutable_select_header()->::drizzled::message::SelectHeader::MergeFrom(from.select_header());
2210 if (from.has_select_data()) {
2211 mutable_select_data()->::drizzled::message::SelectData::MergeFrom(from.select_data());
2214 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2217 void Resultset::CopyFrom(const ::google::protobuf::Message& from) {
2218 if (&from ==
this)
return;
2223 void Resultset::CopyFrom(
const Resultset& from) {
2224 if (&from ==
this)
return;
2229 bool Resultset::IsInitialized()
const {
2230 if ((_has_bits_[0] & 0x00000003) != 0x00000003)
return false;
2232 if (has_select_header()) {
2233 if (!this->select_header().IsInitialized())
return false;
2235 if (has_select_data()) {
2236 if (!this->select_data().IsInitialized())
return false;
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_);
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_;
static bool parse_sql(Session *session, Lex_input_stream *lip)