3 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
4 #include "resultset.pb.h"
8 #include <google/protobuf/stubs/once.h>
9 #include <google/protobuf/io/coded_stream.h>
10 #include <google/protobuf/wire_format_lite_inl.h>
11 #include <google/protobuf/descriptor.h>
12 #include <google/protobuf/reflection_ops.h>
13 #include <google/protobuf/wire_format.h>
21 const ::google::protobuf::Descriptor* FieldMeta_descriptor_ = NULL;
22 const ::google::protobuf::internal::GeneratedMessageReflection*
23 FieldMeta_reflection_ = NULL;
24 const ::google::protobuf::Descriptor* TableMeta_descriptor_ = NULL;
25 const ::google::protobuf::internal::GeneratedMessageReflection*
26 TableMeta_reflection_ = NULL;
27 const ::google::protobuf::Descriptor* SelectRecord_descriptor_ = NULL;
28 const ::google::protobuf::internal::GeneratedMessageReflection*
29 SelectRecord_reflection_ = NULL;
30 const ::google::protobuf::Descriptor* SelectHeader_descriptor_ = NULL;
31 const ::google::protobuf::internal::GeneratedMessageReflection*
32 SelectHeader_reflection_ = NULL;
33 const ::google::protobuf::Descriptor* SelectData_descriptor_ = NULL;
34 const ::google::protobuf::internal::GeneratedMessageReflection*
35 SelectData_reflection_ = NULL;
36 const ::google::protobuf::Descriptor* Resultset_descriptor_ = NULL;
37 const ::google::protobuf::internal::GeneratedMessageReflection*
38 Resultset_reflection_ = NULL;
43 void protobuf_AssignDesc_resultset_2eproto() {
44 protobuf_AddDesc_resultset_2eproto();
45 const ::google::protobuf::FileDescriptor* file =
46 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
48 GOOGLE_CHECK(file != NULL);
49 FieldMeta_descriptor_ = file->message_type(0);
50 static const int FieldMeta_offsets_[5] = {
51 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, field_name_),
52 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, field_alias_),
53 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, table_name_),
54 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, table_alias_),
55 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, schema_name_),
57 FieldMeta_reflection_ =
58 new ::google::protobuf::internal::GeneratedMessageReflection(
59 FieldMeta_descriptor_,
60 FieldMeta::default_instance_,
62 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, _has_bits_[0]),
63 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldMeta, _unknown_fields_),
65 ::google::protobuf::DescriptorPool::generated_pool(),
66 ::google::protobuf::MessageFactory::generated_factory(),
68 TableMeta_descriptor_ = file->message_type(1);
69 static const int TableMeta_offsets_[3] = {
70 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableMeta, schema_name_),
71 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableMeta, table_name_),
72 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableMeta, table_alias_),
74 TableMeta_reflection_ =
75 new ::google::protobuf::internal::GeneratedMessageReflection(
76 TableMeta_descriptor_,
77 TableMeta::default_instance_,
79 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableMeta, _has_bits_[0]),
80 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableMeta, _unknown_fields_),
82 ::google::protobuf::DescriptorPool::generated_pool(),
83 ::google::protobuf::MessageFactory::generated_factory(),
85 SelectRecord_descriptor_ = file->message_type(2);
86 static const int SelectRecord_offsets_[2] = {
87 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectRecord, record_value_),
88 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectRecord, is_null_),
90 SelectRecord_reflection_ =
91 new ::google::protobuf::internal::GeneratedMessageReflection(
92 SelectRecord_descriptor_,
93 SelectRecord::default_instance_,
94 SelectRecord_offsets_,
95 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectRecord, _has_bits_[0]),
96 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectRecord, _unknown_fields_),
98 ::google::protobuf::DescriptorPool::generated_pool(),
99 ::google::protobuf::MessageFactory::generated_factory(),
100 sizeof(SelectRecord));
101 SelectHeader_descriptor_ = file->message_type(3);
102 static const int SelectHeader_offsets_[2] = {
103 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectHeader, table_meta_),
104 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectHeader, field_meta_),
106 SelectHeader_reflection_ =
107 new ::google::protobuf::internal::GeneratedMessageReflection(
108 SelectHeader_descriptor_,
109 SelectHeader::default_instance_,
110 SelectHeader_offsets_,
111 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectHeader, _has_bits_[0]),
112 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectHeader, _unknown_fields_),
114 ::google::protobuf::DescriptorPool::generated_pool(),
115 ::google::protobuf::MessageFactory::generated_factory(),
116 sizeof(SelectHeader));
117 SelectData_descriptor_ = file->message_type(4);
118 static const int SelectData_offsets_[3] = {
119 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectData, segment_id_),
120 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectData, end_segment_),
121 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectData, record_),
123 SelectData_reflection_ =
124 new ::google::protobuf::internal::GeneratedMessageReflection(
125 SelectData_descriptor_,
126 SelectData::default_instance_,
128 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectData, _has_bits_[0]),
129 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectData, _unknown_fields_),
131 ::google::protobuf::DescriptorPool::generated_pool(),
132 ::google::protobuf::MessageFactory::generated_factory(),
134 Resultset_descriptor_ = file->message_type(5);
135 static const int Resultset_offsets_[5] = {
136 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Resultset, key_),
137 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Resultset, schema_),
138 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Resultset, sql_),
139 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Resultset, select_header_),
140 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Resultset, select_data_),
142 Resultset_reflection_ =
143 new ::google::protobuf::internal::GeneratedMessageReflection(
144 Resultset_descriptor_,
145 Resultset::default_instance_,
147 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Resultset, _has_bits_[0]),
148 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Resultset, _unknown_fields_),
150 ::google::protobuf::DescriptorPool::generated_pool(),
151 ::google::protobuf::MessageFactory::generated_factory(),
157 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
158 inline void protobuf_AssignDescriptorsOnce() {
159 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
160 &protobuf_AssignDesc_resultset_2eproto);
163 void protobuf_RegisterTypes(const ::std::string&) {
164 protobuf_AssignDescriptorsOnce();
165 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
166 FieldMeta_descriptor_, &FieldMeta::default_instance());
167 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
168 TableMeta_descriptor_, &TableMeta::default_instance());
169 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
170 SelectRecord_descriptor_, &SelectRecord::default_instance());
171 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
172 SelectHeader_descriptor_, &SelectHeader::default_instance());
173 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
174 SelectData_descriptor_, &SelectData::default_instance());
175 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
176 Resultset_descriptor_, &Resultset::default_instance());
181 void protobuf_ShutdownFile_resultset_2eproto() {
182 delete FieldMeta::default_instance_;
183 delete FieldMeta_reflection_;
184 delete TableMeta::default_instance_;
185 delete TableMeta_reflection_;
186 delete SelectRecord::default_instance_;
187 delete SelectRecord_reflection_;
188 delete SelectHeader::default_instance_;
189 delete SelectHeader_reflection_;
190 delete SelectData::default_instance_;
191 delete SelectData_reflection_;
192 delete Resultset::default_instance_;
193 delete Resultset_reflection_;
196 void protobuf_AddDesc_resultset_2eproto() {
197 static bool already_here =
false;
198 if (already_here)
return;
200 GOOGLE_PROTOBUF_VERIFY_VERSION;
202 ::drizzled::message::protobuf_AddDesc_table_2eproto();
203 ::drizzled::message::protobuf_AddDesc_schema_2eproto();
204 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
205 "\n\017resultset.proto\022\020drizzled.message\032\013tab"
206 "le.proto\032\014schema.proto\"r\n\tFieldMeta\022\022\n\nf"
207 "ield_name\030\001 \002(\t\022\023\n\013field_alias\030\002 \001(\t\022\022\n\n"
208 "table_name\030\003 \002(\t\022\023\n\013table_alias\030\004 \001(\t\022\023\n"
209 "\013schema_name\030\005 \002(\t\"I\n\tTableMeta\022\023\n\013schem"
210 "a_name\030\001 \002(\t\022\022\n\ntable_name\030\002 \002(\t\022\023\n\013tabl"
211 "e_alias\030\003 \001(\t\"5\n\014SelectRecord\022\024\n\014record_"
212 "value\030\001 \003(\014\022\017\n\007is_null\030\002 \003(\010\"p\n\014SelectHe"
213 "ader\022/\n\ntable_meta\030\001 \003(\0132\033.drizzled.mess"
214 "age.TableMeta\022/\n\nfield_meta\030\002 \003(\0132\033.driz"
215 "zled.message.FieldMeta\"e\n\nSelectData\022\022\n\n"
216 "segment_id\030\001 \002(\r\022\023\n\013end_segment\030\002 \002(\010\022.\n"
217 "\006record\030\003 \003(\0132\036.drizzled.message.SelectR"
218 "ecord\"\237\001\n\tResultset\022\013\n\003key\030\001 \002(\t\022\016\n\006sche"
219 "ma\030\002 \002(\t\022\013\n\003sql\030\003 \001(\t\0225\n\rselect_header\030\004"
220 " \001(\0132\036.drizzled.message.SelectHeader\0221\n\013"
221 "select_data\030\005 \001(\0132\034.drizzled.message.Sel"
222 "ectDataB*\n\024org.drizzle.messagesB\020ResultS"
223 "etMessageH\001", 731);
224 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
225 "resultset.proto", &protobuf_RegisterTypes);
226 FieldMeta::default_instance_ =
new FieldMeta();
227 TableMeta::default_instance_ =
new TableMeta();
228 SelectRecord::default_instance_ =
new SelectRecord();
229 SelectHeader::default_instance_ =
new SelectHeader();
230 SelectData::default_instance_ =
new SelectData();
231 Resultset::default_instance_ =
new Resultset();
232 FieldMeta::default_instance_->InitAsDefaultInstance();
233 TableMeta::default_instance_->InitAsDefaultInstance();
234 SelectRecord::default_instance_->InitAsDefaultInstance();
235 SelectHeader::default_instance_->InitAsDefaultInstance();
236 SelectData::default_instance_->InitAsDefaultInstance();
237 Resultset::default_instance_->InitAsDefaultInstance();
238 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_resultset_2eproto);
244 protobuf_AddDesc_resultset_2eproto();
246 } static_descriptor_initializer_resultset_2eproto_;
252 const int FieldMeta::kFieldNameFieldNumber;
253 const int FieldMeta::kFieldAliasFieldNumber;
254 const int FieldMeta::kTableNameFieldNumber;
255 const int FieldMeta::kTableAliasFieldNumber;
256 const int FieldMeta::kSchemaNameFieldNumber;
259 FieldMeta::FieldMeta()
260 : ::google::protobuf::Message() {
264 void FieldMeta::InitAsDefaultInstance() {
267 FieldMeta::FieldMeta(
const FieldMeta& from)
268 : ::google::protobuf::Message() {
273 void FieldMeta::SharedCtor() {
275 field_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
276 field_alias_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
277 table_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
278 table_alias_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
279 schema_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
280 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
283 FieldMeta::~FieldMeta() {
287 void FieldMeta::SharedDtor() {
288 if (field_name_ != &::google::protobuf::internal::kEmptyString) {
291 if (field_alias_ != &::google::protobuf::internal::kEmptyString) {
294 if (table_name_ != &::google::protobuf::internal::kEmptyString) {
297 if (table_alias_ != &::google::protobuf::internal::kEmptyString) {
300 if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
303 if (
this != default_instance_) {
307 void FieldMeta::SetCachedSize(
int size)
const {
308 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
309 _cached_size_ = size;
310 GOOGLE_SAFE_CONCURRENT_WRITES_END();
312 const ::google::protobuf::Descriptor* FieldMeta::descriptor() {
313 protobuf_AssignDescriptorsOnce();
314 return FieldMeta_descriptor_;
317 const FieldMeta& FieldMeta::default_instance() {
318 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto();
return *default_instance_;
321 FieldMeta* FieldMeta::default_instance_ = NULL;
323 FieldMeta* FieldMeta::New()
const {
324 return new FieldMeta;
327 void FieldMeta::Clear() {
328 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
329 if (has_field_name()) {
330 if (field_name_ != &::google::protobuf::internal::kEmptyString) {
331 field_name_->clear();
334 if (has_field_alias()) {
335 if (field_alias_ != &::google::protobuf::internal::kEmptyString) {
336 field_alias_->clear();
339 if (has_table_name()) {
340 if (table_name_ != &::google::protobuf::internal::kEmptyString) {
341 table_name_->clear();
344 if (has_table_alias()) {
345 if (table_alias_ != &::google::protobuf::internal::kEmptyString) {
346 table_alias_->clear();
349 if (has_schema_name()) {
350 if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
351 schema_name_->clear();
355 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
356 mutable_unknown_fields()->Clear();
359 bool FieldMeta::MergePartialFromCodedStream(
360 ::google::protobuf::io::CodedInputStream* input) {
361 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
362 ::google::protobuf::uint32 tag;
363 while ((tag = input->ReadTag()) != 0) {
364 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
367 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
368 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
369 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
370 input, this->mutable_field_name()));
371 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
372 this->field_name().data(), this->field_name().length(),
373 ::google::protobuf::internal::WireFormat::PARSE);
375 goto handle_uninterpreted;
377 if (input->ExpectTag(18))
goto parse_field_alias;
383 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
384 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
386 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
387 input, this->mutable_field_alias()));
388 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
389 this->field_alias().data(), this->field_alias().length(),
390 ::google::protobuf::internal::WireFormat::PARSE);
392 goto handle_uninterpreted;
394 if (input->ExpectTag(26))
goto parse_table_name;
400 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
401 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
403 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
404 input, this->mutable_table_name()));
405 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
406 this->table_name().data(), this->table_name().length(),
407 ::google::protobuf::internal::WireFormat::PARSE);
409 goto handle_uninterpreted;
411 if (input->ExpectTag(34))
goto parse_table_alias;
417 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
418 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
420 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
421 input, this->mutable_table_alias()));
422 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
423 this->table_alias().data(), this->table_alias().length(),
424 ::google::protobuf::internal::WireFormat::PARSE);
426 goto handle_uninterpreted;
428 if (input->ExpectTag(42))
goto parse_schema_name;
434 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
435 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
437 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
438 input, this->mutable_schema_name()));
439 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
440 this->schema_name().data(), this->schema_name().length(),
441 ::google::protobuf::internal::WireFormat::PARSE);
443 goto handle_uninterpreted;
445 if (input->ExpectAtEnd())
return true;
450 handle_uninterpreted:
451 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
452 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
455 DO_(::google::protobuf::internal::WireFormat::SkipField(
456 input, tag, mutable_unknown_fields()));
465 void FieldMeta::SerializeWithCachedSizes(
466 ::google::protobuf::io::CodedOutputStream* output)
const {
468 if (has_field_name()) {
469 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
470 this->field_name().data(), this->field_name().length(),
471 ::google::protobuf::internal::WireFormat::SERIALIZE);
472 ::google::protobuf::internal::WireFormatLite::WriteString(
473 1, this->field_name(), output);
477 if (has_field_alias()) {
478 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
479 this->field_alias().data(), this->field_alias().length(),
480 ::google::protobuf::internal::WireFormat::SERIALIZE);
481 ::google::protobuf::internal::WireFormatLite::WriteString(
482 2, this->field_alias(), output);
486 if (has_table_name()) {
487 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
488 this->table_name().data(), this->table_name().length(),
489 ::google::protobuf::internal::WireFormat::SERIALIZE);
490 ::google::protobuf::internal::WireFormatLite::WriteString(
491 3, this->table_name(), output);
495 if (has_table_alias()) {
496 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
497 this->table_alias().data(), this->table_alias().length(),
498 ::google::protobuf::internal::WireFormat::SERIALIZE);
499 ::google::protobuf::internal::WireFormatLite::WriteString(
500 4, this->table_alias(), output);
504 if (has_schema_name()) {
505 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
506 this->schema_name().data(), this->schema_name().length(),
507 ::google::protobuf::internal::WireFormat::SERIALIZE);
508 ::google::protobuf::internal::WireFormatLite::WriteString(
509 5, this->schema_name(), output);
512 if (!unknown_fields().empty()) {
513 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
514 unknown_fields(), output);
518 ::google::protobuf::uint8* FieldMeta::SerializeWithCachedSizesToArray(
519 ::google::protobuf::uint8* target)
const {
521 if (has_field_name()) {
522 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
523 this->field_name().data(), this->field_name().length(),
524 ::google::protobuf::internal::WireFormat::SERIALIZE);
526 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
527 1, this->field_name(), target);
531 if (has_field_alias()) {
532 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
533 this->field_alias().data(), this->field_alias().length(),
534 ::google::protobuf::internal::WireFormat::SERIALIZE);
536 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
537 2, this->field_alias(), target);
541 if (has_table_name()) {
542 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
543 this->table_name().data(), this->table_name().length(),
544 ::google::protobuf::internal::WireFormat::SERIALIZE);
546 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
547 3, this->table_name(), target);
551 if (has_table_alias()) {
552 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
553 this->table_alias().data(), this->table_alias().length(),
554 ::google::protobuf::internal::WireFormat::SERIALIZE);
556 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
557 4, this->table_alias(), target);
561 if (has_schema_name()) {
562 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
563 this->schema_name().data(), this->schema_name().length(),
564 ::google::protobuf::internal::WireFormat::SERIALIZE);
566 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
567 5, this->schema_name(), target);
570 if (!unknown_fields().empty()) {
571 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
572 unknown_fields(), target);
577 int FieldMeta::ByteSize()
const {
580 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
582 if (has_field_name()) {
584 ::google::protobuf::internal::WireFormatLite::StringSize(
589 if (has_field_alias()) {
591 ::google::protobuf::internal::WireFormatLite::StringSize(
592 this->field_alias());
596 if (has_table_name()) {
598 ::google::protobuf::internal::WireFormatLite::StringSize(
603 if (has_table_alias()) {
605 ::google::protobuf::internal::WireFormatLite::StringSize(
606 this->table_alias());
610 if (has_schema_name()) {
612 ::google::protobuf::internal::WireFormatLite::StringSize(
613 this->schema_name());
617 if (!unknown_fields().empty()) {
619 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
622 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
623 _cached_size_ = total_size;
624 GOOGLE_SAFE_CONCURRENT_WRITES_END();
628 void FieldMeta::MergeFrom(const ::google::protobuf::Message& from) {
629 GOOGLE_CHECK_NE(&from,
this);
630 const FieldMeta* source =
631 ::google::protobuf::internal::dynamic_cast_if_available<const FieldMeta*>(
633 if (source == NULL) {
634 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
640 void FieldMeta::MergeFrom(
const FieldMeta& from) {
641 GOOGLE_CHECK_NE(&from,
this);
642 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
643 if (from.has_field_name()) {
644 set_field_name(from.field_name());
646 if (from.has_field_alias()) {
647 set_field_alias(from.field_alias());
649 if (from.has_table_name()) {
650 set_table_name(from.table_name());
652 if (from.has_table_alias()) {
653 set_table_alias(from.table_alias());
655 if (from.has_schema_name()) {
656 set_schema_name(from.schema_name());
659 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
662 void FieldMeta::CopyFrom(const ::google::protobuf::Message& from) {
663 if (&from ==
this)
return;
668 void FieldMeta::CopyFrom(
const FieldMeta& from) {
669 if (&from ==
this)
return;
674 bool FieldMeta::IsInitialized()
const {
675 if ((_has_bits_[0] & 0x00000015) != 0x00000015)
return false;
680 void FieldMeta::Swap(FieldMeta* other) {
682 std::swap(field_name_, other->field_name_);
683 std::swap(field_alias_, other->field_alias_);
684 std::swap(table_name_, other->table_name_);
685 std::swap(table_alias_, other->table_alias_);
686 std::swap(schema_name_, other->schema_name_);
687 std::swap(_has_bits_[0], other->_has_bits_[0]);
688 _unknown_fields_.Swap(&other->_unknown_fields_);
689 std::swap(_cached_size_, other->_cached_size_);
693 ::google::protobuf::Metadata FieldMeta::GetMetadata()
const {
694 protobuf_AssignDescriptorsOnce();
695 ::google::protobuf::Metadata metadata;
696 metadata.descriptor = FieldMeta_descriptor_;
697 metadata.reflection = FieldMeta_reflection_;
705 const int TableMeta::kSchemaNameFieldNumber;
706 const int TableMeta::kTableNameFieldNumber;
707 const int TableMeta::kTableAliasFieldNumber;
710 TableMeta::TableMeta()
711 : ::google::protobuf::Message() {
715 void TableMeta::InitAsDefaultInstance() {
718 TableMeta::TableMeta(
const TableMeta& from)
719 : ::google::protobuf::Message() {
724 void TableMeta::SharedCtor() {
726 schema_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
727 table_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
728 table_alias_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
729 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
732 TableMeta::~TableMeta() {
736 void TableMeta::SharedDtor() {
737 if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
740 if (table_name_ != &::google::protobuf::internal::kEmptyString) {
743 if (table_alias_ != &::google::protobuf::internal::kEmptyString) {
746 if (
this != default_instance_) {
750 void TableMeta::SetCachedSize(
int size)
const {
751 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
752 _cached_size_ = size;
753 GOOGLE_SAFE_CONCURRENT_WRITES_END();
755 const ::google::protobuf::Descriptor* TableMeta::descriptor() {
756 protobuf_AssignDescriptorsOnce();
757 return TableMeta_descriptor_;
760 const TableMeta& TableMeta::default_instance() {
761 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto();
return *default_instance_;
764 TableMeta* TableMeta::default_instance_ = NULL;
766 TableMeta* TableMeta::New()
const {
767 return new TableMeta;
770 void TableMeta::Clear() {
771 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
772 if (has_schema_name()) {
773 if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
774 schema_name_->clear();
777 if (has_table_name()) {
778 if (table_name_ != &::google::protobuf::internal::kEmptyString) {
779 table_name_->clear();
782 if (has_table_alias()) {
783 if (table_alias_ != &::google::protobuf::internal::kEmptyString) {
784 table_alias_->clear();
788 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
789 mutable_unknown_fields()->Clear();
792 bool TableMeta::MergePartialFromCodedStream(
793 ::google::protobuf::io::CodedInputStream* input) {
794 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
795 ::google::protobuf::uint32 tag;
796 while ((tag = input->ReadTag()) != 0) {
797 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
800 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
801 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
802 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
803 input, this->mutable_schema_name()));
804 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
805 this->schema_name().data(), this->schema_name().length(),
806 ::google::protobuf::internal::WireFormat::PARSE);
808 goto handle_uninterpreted;
810 if (input->ExpectTag(18))
goto parse_table_name;
816 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
817 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
819 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
820 input, this->mutable_table_name()));
821 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
822 this->table_name().data(), this->table_name().length(),
823 ::google::protobuf::internal::WireFormat::PARSE);
825 goto handle_uninterpreted;
827 if (input->ExpectTag(26))
goto parse_table_alias;
833 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
834 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
836 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
837 input, this->mutable_table_alias()));
838 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
839 this->table_alias().data(), this->table_alias().length(),
840 ::google::protobuf::internal::WireFormat::PARSE);
842 goto handle_uninterpreted;
844 if (input->ExpectAtEnd())
return true;
849 handle_uninterpreted:
850 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
851 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
854 DO_(::google::protobuf::internal::WireFormat::SkipField(
855 input, tag, mutable_unknown_fields()));
864 void TableMeta::SerializeWithCachedSizes(
865 ::google::protobuf::io::CodedOutputStream* output)
const {
867 if (has_schema_name()) {
868 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
869 this->schema_name().data(), this->schema_name().length(),
870 ::google::protobuf::internal::WireFormat::SERIALIZE);
871 ::google::protobuf::internal::WireFormatLite::WriteString(
872 1, this->schema_name(), output);
876 if (has_table_name()) {
877 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
878 this->table_name().data(), this->table_name().length(),
879 ::google::protobuf::internal::WireFormat::SERIALIZE);
880 ::google::protobuf::internal::WireFormatLite::WriteString(
881 2, this->table_name(), output);
885 if (has_table_alias()) {
886 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
887 this->table_alias().data(), this->table_alias().length(),
888 ::google::protobuf::internal::WireFormat::SERIALIZE);
889 ::google::protobuf::internal::WireFormatLite::WriteString(
890 3, this->table_alias(), output);
893 if (!unknown_fields().empty()) {
894 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
895 unknown_fields(), output);
899 ::google::protobuf::uint8* TableMeta::SerializeWithCachedSizesToArray(
900 ::google::protobuf::uint8* target)
const {
902 if (has_schema_name()) {
903 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
904 this->schema_name().data(), this->schema_name().length(),
905 ::google::protobuf::internal::WireFormat::SERIALIZE);
907 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
908 1, this->schema_name(), target);
912 if (has_table_name()) {
913 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
914 this->table_name().data(), this->table_name().length(),
915 ::google::protobuf::internal::WireFormat::SERIALIZE);
917 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
918 2, this->table_name(), target);
922 if (has_table_alias()) {
923 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
924 this->table_alias().data(), this->table_alias().length(),
925 ::google::protobuf::internal::WireFormat::SERIALIZE);
927 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
928 3, this->table_alias(), target);
931 if (!unknown_fields().empty()) {
932 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
933 unknown_fields(), target);
938 int TableMeta::ByteSize()
const {
941 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
943 if (has_schema_name()) {
945 ::google::protobuf::internal::WireFormatLite::StringSize(
946 this->schema_name());
950 if (has_table_name()) {
952 ::google::protobuf::internal::WireFormatLite::StringSize(
957 if (has_table_alias()) {
959 ::google::protobuf::internal::WireFormatLite::StringSize(
960 this->table_alias());
964 if (!unknown_fields().empty()) {
966 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
969 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
970 _cached_size_ = total_size;
971 GOOGLE_SAFE_CONCURRENT_WRITES_END();
975 void TableMeta::MergeFrom(const ::google::protobuf::Message& from) {
976 GOOGLE_CHECK_NE(&from,
this);
977 const TableMeta* source =
978 ::google::protobuf::internal::dynamic_cast_if_available<const TableMeta*>(
980 if (source == NULL) {
981 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
987 void TableMeta::MergeFrom(
const TableMeta& from) {
988 GOOGLE_CHECK_NE(&from,
this);
989 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
990 if (from.has_schema_name()) {
991 set_schema_name(from.schema_name());
993 if (from.has_table_name()) {
994 set_table_name(from.table_name());
996 if (from.has_table_alias()) {
997 set_table_alias(from.table_alias());
1000 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1003 void TableMeta::CopyFrom(const ::google::protobuf::Message& from) {
1004 if (&from ==
this)
return;
1009 void TableMeta::CopyFrom(
const TableMeta& from) {
1010 if (&from ==
this)
return;
1015 bool TableMeta::IsInitialized()
const {
1016 if ((_has_bits_[0] & 0x00000003) != 0x00000003)
return false;
1021 void TableMeta::Swap(TableMeta* other) {
1022 if (other !=
this) {
1023 std::swap(schema_name_, other->schema_name_);
1024 std::swap(table_name_, other->table_name_);
1025 std::swap(table_alias_, other->table_alias_);
1026 std::swap(_has_bits_[0], other->_has_bits_[0]);
1027 _unknown_fields_.Swap(&other->_unknown_fields_);
1028 std::swap(_cached_size_, other->_cached_size_);
1032 ::google::protobuf::Metadata TableMeta::GetMetadata()
const {
1033 protobuf_AssignDescriptorsOnce();
1034 ::google::protobuf::Metadata metadata;
1035 metadata.descriptor = TableMeta_descriptor_;
1036 metadata.reflection = TableMeta_reflection_;
1044 const int SelectRecord::kRecordValueFieldNumber;
1045 const int SelectRecord::kIsNullFieldNumber;
1048 SelectRecord::SelectRecord()
1049 : ::google::protobuf::Message() {
1053 void SelectRecord::InitAsDefaultInstance() {
1056 SelectRecord::SelectRecord(
const SelectRecord& from)
1057 : ::google::protobuf::Message() {
1062 void SelectRecord::SharedCtor() {
1064 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1067 SelectRecord::~SelectRecord() {
1071 void SelectRecord::SharedDtor() {
1072 if (
this != default_instance_) {
1076 void SelectRecord::SetCachedSize(
int size)
const {
1077 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1078 _cached_size_ = size;
1079 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1081 const ::google::protobuf::Descriptor* SelectRecord::descriptor() {
1082 protobuf_AssignDescriptorsOnce();
1083 return SelectRecord_descriptor_;
1086 const SelectRecord& SelectRecord::default_instance() {
1087 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto();
return *default_instance_;
1090 SelectRecord* SelectRecord::default_instance_ = NULL;
1092 SelectRecord* SelectRecord::New()
const {
1093 return new SelectRecord;
1096 void SelectRecord::Clear() {
1097 record_value_.Clear();
1099 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1100 mutable_unknown_fields()->Clear();
1103 bool SelectRecord::MergePartialFromCodedStream(
1104 ::google::protobuf::io::CodedInputStream* input) {
1105 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1106 ::google::protobuf::uint32 tag;
1107 while ((tag = input->ReadTag()) != 0) {
1108 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1111 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1112 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1114 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1115 input, this->add_record_value()));
1117 goto handle_uninterpreted;
1119 if (input->ExpectTag(10))
goto parse_record_value;
1120 if (input->ExpectTag(16))
goto parse_is_null;
1126 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1127 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1129 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
1130 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1131 1, 16, input, this->mutable_is_null())));
1132 }
else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
1133 == ::google::protobuf::internal::WireFormatLite::
1134 WIRETYPE_LENGTH_DELIMITED) {
1135 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
1136 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1137 input, this->mutable_is_null())));
1139 goto handle_uninterpreted;
1141 if (input->ExpectTag(16))
goto parse_is_null;
1142 if (input->ExpectAtEnd())
return true;
1147 handle_uninterpreted:
1148 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1149 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1152 DO_(::google::protobuf::internal::WireFormat::SkipField(
1153 input, tag, mutable_unknown_fields()));
1162 void SelectRecord::SerializeWithCachedSizes(
1163 ::google::protobuf::io::CodedOutputStream* output)
const {
1165 for (
int i = 0; i < this->record_value_size(); i++) {
1166 ::google::protobuf::internal::WireFormatLite::WriteBytes(
1167 1, this->record_value(i), output);
1171 for (
int i = 0; i < this->is_null_size(); i++) {
1172 ::google::protobuf::internal::WireFormatLite::WriteBool(
1173 2, this->is_null(i), output);
1176 if (!unknown_fields().empty()) {
1177 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1178 unknown_fields(), output);
1182 ::google::protobuf::uint8* SelectRecord::SerializeWithCachedSizesToArray(
1183 ::google::protobuf::uint8* target)
const {
1185 for (
int i = 0; i < this->record_value_size(); i++) {
1186 target = ::google::protobuf::internal::WireFormatLite::
1187 WriteBytesToArray(1, this->record_value(i), target);
1191 for (
int i = 0; i < this->is_null_size(); i++) {
1192 target = ::google::protobuf::internal::WireFormatLite::
1193 WriteBoolToArray(2, this->is_null(i), target);
1196 if (!unknown_fields().empty()) {
1197 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1198 unknown_fields(), target);
1203 int SelectRecord::ByteSize()
const {
1207 total_size += 1 * this->record_value_size();
1208 for (
int i = 0; i < this->record_value_size(); i++) {
1209 total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
1210 this->record_value(i));
1216 data_size = 1 * this->is_null_size();
1217 total_size += 1 * this->is_null_size() + data_size;
1220 if (!unknown_fields().empty()) {
1222 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1225 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1226 _cached_size_ = total_size;
1227 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1231 void SelectRecord::MergeFrom(const ::google::protobuf::Message& from) {
1232 GOOGLE_CHECK_NE(&from,
this);
1233 const SelectRecord* source =
1234 ::google::protobuf::internal::dynamic_cast_if_available<const SelectRecord*>(
1236 if (source == NULL) {
1237 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
1243 void SelectRecord::MergeFrom(
const SelectRecord& from) {
1244 GOOGLE_CHECK_NE(&from,
this);
1245 record_value_.MergeFrom(from.record_value_);
1246 is_null_.MergeFrom(from.is_null_);
1247 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1250 void SelectRecord::CopyFrom(const ::google::protobuf::Message& from) {
1251 if (&from ==
this)
return;
1256 void SelectRecord::CopyFrom(
const SelectRecord& from) {
1257 if (&from ==
this)
return;
1262 bool SelectRecord::IsInitialized()
const {
1267 void SelectRecord::Swap(SelectRecord* other) {
1268 if (other !=
this) {
1269 record_value_.Swap(&other->record_value_);
1270 is_null_.Swap(&other->is_null_);
1271 std::swap(_has_bits_[0], other->_has_bits_[0]);
1272 _unknown_fields_.Swap(&other->_unknown_fields_);
1273 std::swap(_cached_size_, other->_cached_size_);
1277 ::google::protobuf::Metadata SelectRecord::GetMetadata()
const {
1278 protobuf_AssignDescriptorsOnce();
1279 ::google::protobuf::Metadata metadata;
1280 metadata.descriptor = SelectRecord_descriptor_;
1281 metadata.reflection = SelectRecord_reflection_;
1289 const int SelectHeader::kTableMetaFieldNumber;
1290 const int SelectHeader::kFieldMetaFieldNumber;
1293 SelectHeader::SelectHeader()
1294 : ::google::protobuf::Message() {
1298 void SelectHeader::InitAsDefaultInstance() {
1301 SelectHeader::SelectHeader(
const SelectHeader& from)
1302 : ::google::protobuf::Message() {
1307 void SelectHeader::SharedCtor() {
1309 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1312 SelectHeader::~SelectHeader() {
1316 void SelectHeader::SharedDtor() {
1317 if (
this != default_instance_) {
1321 void SelectHeader::SetCachedSize(
int size)
const {
1322 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1323 _cached_size_ = size;
1324 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1326 const ::google::protobuf::Descriptor* SelectHeader::descriptor() {
1327 protobuf_AssignDescriptorsOnce();
1328 return SelectHeader_descriptor_;
1331 const SelectHeader& SelectHeader::default_instance() {
1332 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto();
return *default_instance_;
1335 SelectHeader* SelectHeader::default_instance_ = NULL;
1337 SelectHeader* SelectHeader::New()
const {
1338 return new SelectHeader;
1341 void SelectHeader::Clear() {
1342 table_meta_.Clear();
1343 field_meta_.Clear();
1344 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1345 mutable_unknown_fields()->Clear();
1348 bool SelectHeader::MergePartialFromCodedStream(
1349 ::google::protobuf::io::CodedInputStream* input) {
1350 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1351 ::google::protobuf::uint32 tag;
1352 while ((tag = input->ReadTag()) != 0) {
1353 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1356 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1357 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1359 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1360 input, add_table_meta()));
1362 goto handle_uninterpreted;
1364 if (input->ExpectTag(10))
goto parse_table_meta;
1365 if (input->ExpectTag(18))
goto parse_field_meta;
1371 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1372 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1374 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1375 input, add_field_meta()));
1377 goto handle_uninterpreted;
1379 if (input->ExpectTag(18))
goto parse_field_meta;
1380 if (input->ExpectAtEnd())
return true;
1385 handle_uninterpreted:
1386 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1387 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1390 DO_(::google::protobuf::internal::WireFormat::SkipField(
1391 input, tag, mutable_unknown_fields()));
1400 void SelectHeader::SerializeWithCachedSizes(
1401 ::google::protobuf::io::CodedOutputStream* output)
const {
1403 for (
int i = 0; i < this->table_meta_size(); i++) {
1404 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1405 1, this->table_meta(i), output);
1409 for (
int i = 0; i < this->field_meta_size(); i++) {
1410 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1411 2, this->field_meta(i), output);
1414 if (!unknown_fields().empty()) {
1415 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1416 unknown_fields(), output);
1420 ::google::protobuf::uint8* SelectHeader::SerializeWithCachedSizesToArray(
1421 ::google::protobuf::uint8* target)
const {
1423 for (
int i = 0; i < this->table_meta_size(); i++) {
1424 target = ::google::protobuf::internal::WireFormatLite::
1425 WriteMessageNoVirtualToArray(
1426 1, this->table_meta(i), target);
1430 for (
int i = 0; i < this->field_meta_size(); i++) {
1431 target = ::google::protobuf::internal::WireFormatLite::
1432 WriteMessageNoVirtualToArray(
1433 2, this->field_meta(i), target);
1436 if (!unknown_fields().empty()) {
1437 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1438 unknown_fields(), target);
1443 int SelectHeader::ByteSize()
const {
1447 total_size += 1 * this->table_meta_size();
1448 for (
int i = 0; i < this->table_meta_size(); i++) {
1450 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1451 this->table_meta(i));
1455 total_size += 1 * this->field_meta_size();
1456 for (
int i = 0; i < this->field_meta_size(); i++) {
1458 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1459 this->field_meta(i));
1462 if (!unknown_fields().empty()) {
1464 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1467 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1468 _cached_size_ = total_size;
1469 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1473 void SelectHeader::MergeFrom(const ::google::protobuf::Message& from) {
1474 GOOGLE_CHECK_NE(&from,
this);
1475 const SelectHeader* source =
1476 ::google::protobuf::internal::dynamic_cast_if_available<const SelectHeader*>(
1478 if (source == NULL) {
1479 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
1485 void SelectHeader::MergeFrom(
const SelectHeader& from) {
1486 GOOGLE_CHECK_NE(&from,
this);
1487 table_meta_.MergeFrom(from.table_meta_);
1488 field_meta_.MergeFrom(from.field_meta_);
1489 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1492 void SelectHeader::CopyFrom(const ::google::protobuf::Message& from) {
1493 if (&from ==
this)
return;
1498 void SelectHeader::CopyFrom(
const SelectHeader& from) {
1499 if (&from ==
this)
return;
1504 bool SelectHeader::IsInitialized()
const {
1506 for (
int i = 0; i < table_meta_size(); i++) {
1507 if (!this->table_meta(i).IsInitialized())
return false;
1509 for (
int i = 0; i < field_meta_size(); i++) {
1510 if (!this->field_meta(i).IsInitialized())
return false;
1515 void SelectHeader::Swap(SelectHeader* other) {
1516 if (other !=
this) {
1517 table_meta_.Swap(&other->table_meta_);
1518 field_meta_.Swap(&other->field_meta_);
1519 std::swap(_has_bits_[0], other->_has_bits_[0]);
1520 _unknown_fields_.Swap(&other->_unknown_fields_);
1521 std::swap(_cached_size_, other->_cached_size_);
1525 ::google::protobuf::Metadata SelectHeader::GetMetadata()
const {
1526 protobuf_AssignDescriptorsOnce();
1527 ::google::protobuf::Metadata metadata;
1528 metadata.descriptor = SelectHeader_descriptor_;
1529 metadata.reflection = SelectHeader_reflection_;
1537 const int SelectData::kSegmentIdFieldNumber;
1538 const int SelectData::kEndSegmentFieldNumber;
1539 const int SelectData::kRecordFieldNumber;
1542 SelectData::SelectData()
1543 : ::google::protobuf::Message() {
1547 void SelectData::InitAsDefaultInstance() {
1550 SelectData::SelectData(
const SelectData& from)
1551 : ::google::protobuf::Message() {
1556 void SelectData::SharedCtor() {
1559 end_segment_ =
false;
1560 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1563 SelectData::~SelectData() {
1567 void SelectData::SharedDtor() {
1568 if (
this != default_instance_) {
1572 void SelectData::SetCachedSize(
int size)
const {
1573 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1574 _cached_size_ = size;
1575 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1577 const ::google::protobuf::Descriptor* SelectData::descriptor() {
1578 protobuf_AssignDescriptorsOnce();
1579 return SelectData_descriptor_;
1582 const SelectData& SelectData::default_instance() {
1583 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto();
return *default_instance_;
1586 SelectData* SelectData::default_instance_ = NULL;
1588 SelectData* SelectData::New()
const {
1589 return new SelectData;
1592 void SelectData::Clear() {
1593 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1595 end_segment_ =
false;
1598 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1599 mutable_unknown_fields()->Clear();
1602 bool SelectData::MergePartialFromCodedStream(
1603 ::google::protobuf::io::CodedInputStream* input) {
1604 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1605 ::google::protobuf::uint32 tag;
1606 while ((tag = input->ReadTag()) != 0) {
1607 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1610 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1611 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1612 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1613 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1614 input, &segment_id_)));
1615 set_has_segment_id();
1617 goto handle_uninterpreted;
1619 if (input->ExpectTag(16))
goto parse_end_segment;
1625 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1626 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1628 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1629 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1630 input, &end_segment_)));
1631 set_has_end_segment();
1633 goto handle_uninterpreted;
1635 if (input->ExpectTag(26))
goto parse_record;
1641 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1642 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1644 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1645 input, add_record()));
1647 goto handle_uninterpreted;
1649 if (input->ExpectTag(26))
goto parse_record;
1650 if (input->ExpectAtEnd())
return true;
1655 handle_uninterpreted:
1656 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1657 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1660 DO_(::google::protobuf::internal::WireFormat::SkipField(
1661 input, tag, mutable_unknown_fields()));
1670 void SelectData::SerializeWithCachedSizes(
1671 ::google::protobuf::io::CodedOutputStream* output)
const {
1673 if (has_segment_id()) {
1674 ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->segment_id(), output);
1678 if (has_end_segment()) {
1679 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->end_segment(), output);
1683 for (
int i = 0; i < this->record_size(); i++) {
1684 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1685 3, this->record(i), output);
1688 if (!unknown_fields().empty()) {
1689 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1690 unknown_fields(), output);
1694 ::google::protobuf::uint8* SelectData::SerializeWithCachedSizesToArray(
1695 ::google::protobuf::uint8* target)
const {
1697 if (has_segment_id()) {
1698 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->segment_id(), target);
1702 if (has_end_segment()) {
1703 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->end_segment(), target);
1707 for (
int i = 0; i < this->record_size(); i++) {
1708 target = ::google::protobuf::internal::WireFormatLite::
1709 WriteMessageNoVirtualToArray(
1710 3, this->record(i), target);
1713 if (!unknown_fields().empty()) {
1714 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1715 unknown_fields(), target);
1720 int SelectData::ByteSize()
const {
1723 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1725 if (has_segment_id()) {
1727 ::google::protobuf::internal::WireFormatLite::UInt32Size(
1728 this->segment_id());
1732 if (has_end_segment()) {
1733 total_size += 1 + 1;
1738 total_size += 1 * this->record_size();
1739 for (
int i = 0; i < this->record_size(); i++) {
1741 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1745 if (!unknown_fields().empty()) {
1747 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1750 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1751 _cached_size_ = total_size;
1752 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1756 void SelectData::MergeFrom(const ::google::protobuf::Message& from) {
1757 GOOGLE_CHECK_NE(&from,
this);
1758 const SelectData* source =
1759 ::google::protobuf::internal::dynamic_cast_if_available<const SelectData*>(
1761 if (source == NULL) {
1762 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
1768 void SelectData::MergeFrom(
const SelectData& from) {
1769 GOOGLE_CHECK_NE(&from,
this);
1770 record_.MergeFrom(from.record_);
1771 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1772 if (from.has_segment_id()) {
1773 set_segment_id(from.segment_id());
1775 if (from.has_end_segment()) {
1776 set_end_segment(from.end_segment());
1779 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1782 void SelectData::CopyFrom(const ::google::protobuf::Message& from) {
1783 if (&from ==
this)
return;
1788 void SelectData::CopyFrom(
const SelectData& from) {
1789 if (&from ==
this)
return;
1794 bool SelectData::IsInitialized()
const {
1795 if ((_has_bits_[0] & 0x00000003) != 0x00000003)
return false;
1800 void SelectData::Swap(SelectData* other) {
1801 if (other !=
this) {
1802 std::swap(segment_id_, other->segment_id_);
1803 std::swap(end_segment_, other->end_segment_);
1804 record_.Swap(&other->record_);
1805 std::swap(_has_bits_[0], other->_has_bits_[0]);
1806 _unknown_fields_.Swap(&other->_unknown_fields_);
1807 std::swap(_cached_size_, other->_cached_size_);
1811 ::google::protobuf::Metadata SelectData::GetMetadata()
const {
1812 protobuf_AssignDescriptorsOnce();
1813 ::google::protobuf::Metadata metadata;
1814 metadata.descriptor = SelectData_descriptor_;
1815 metadata.reflection = SelectData_reflection_;
1823 const int Resultset::kKeyFieldNumber;
1824 const int Resultset::kSchemaFieldNumber;
1825 const int Resultset::kSqlFieldNumber;
1826 const int Resultset::kSelectHeaderFieldNumber;
1827 const int Resultset::kSelectDataFieldNumber;
1830 Resultset::Resultset()
1831 : ::google::protobuf::Message() {
1835 void Resultset::InitAsDefaultInstance() {
1840 Resultset::Resultset(
const Resultset& from)
1841 : ::google::protobuf::Message() {
1846 void Resultset::SharedCtor() {
1848 key_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
1849 schema_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
1850 sql_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
1851 select_header_ = NULL;
1852 select_data_ = NULL;
1853 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1856 Resultset::~Resultset() {
1860 void Resultset::SharedDtor() {
1861 if (key_ != &::google::protobuf::internal::kEmptyString) {
1864 if (schema_ != &::google::protobuf::internal::kEmptyString) {
1867 if (sql_ != &::google::protobuf::internal::kEmptyString) {
1870 if (
this != default_instance_) {
1871 delete select_header_;
1872 delete select_data_;
1876 void Resultset::SetCachedSize(
int size)
const {
1877 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1878 _cached_size_ = size;
1879 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1881 const ::google::protobuf::Descriptor* Resultset::descriptor() {
1882 protobuf_AssignDescriptorsOnce();
1883 return Resultset_descriptor_;
1886 const Resultset& Resultset::default_instance() {
1887 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto();
return *default_instance_;
1890 Resultset* Resultset::default_instance_ = NULL;
1892 Resultset* Resultset::New()
const {
1893 return new Resultset;
1896 void Resultset::Clear() {
1897 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1899 if (key_ != &::google::protobuf::internal::kEmptyString) {
1904 if (schema_ != &::google::protobuf::internal::kEmptyString) {
1909 if (sql_ != &::google::protobuf::internal::kEmptyString) {
1913 if (has_select_header()) {
1914 if (select_header_ != NULL) select_header_->::drizzled::message::SelectHeader::Clear();
1916 if (has_select_data()) {
1917 if (select_data_ != NULL) select_data_->::drizzled::message::SelectData::Clear();
1920 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1921 mutable_unknown_fields()->Clear();
1924 bool Resultset::MergePartialFromCodedStream(
1925 ::google::protobuf::io::CodedInputStream* input) {
1926 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1927 ::google::protobuf::uint32 tag;
1928 while ((tag = input->ReadTag()) != 0) {
1929 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1932 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1933 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1934 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1935 input, this->mutable_key()));
1936 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1937 this->key().data(), this->key().length(),
1938 ::google::protobuf::internal::WireFormat::PARSE);
1940 goto handle_uninterpreted;
1942 if (input->ExpectTag(18))
goto parse_schema;
1948 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1949 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1951 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1952 input, this->mutable_schema()));
1953 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1954 this->schema().data(), this->schema().length(),
1955 ::google::protobuf::internal::WireFormat::PARSE);
1957 goto handle_uninterpreted;
1959 if (input->ExpectTag(26))
goto parse_sql;
1965 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1966 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1968 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1969 input, this->mutable_sql()));
1970 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1971 this->sql().data(), this->sql().length(),
1972 ::google::protobuf::internal::WireFormat::PARSE);
1974 goto handle_uninterpreted;
1976 if (input->ExpectTag(34))
goto parse_select_header;
1982 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1983 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1984 parse_select_header:
1985 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1986 input, mutable_select_header()));
1988 goto handle_uninterpreted;
1990 if (input->ExpectTag(42))
goto parse_select_data;
1996 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1997 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1999 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2000 input, mutable_select_data()));
2002 goto handle_uninterpreted;
2004 if (input->ExpectAtEnd())
return true;
2009 handle_uninterpreted:
2010 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2011 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2014 DO_(::google::protobuf::internal::WireFormat::SkipField(
2015 input, tag, mutable_unknown_fields()));
2024 void Resultset::SerializeWithCachedSizes(
2025 ::google::protobuf::io::CodedOutputStream* output)
const {
2028 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2029 this->key().data(), this->key().length(),
2030 ::google::protobuf::internal::WireFormat::SERIALIZE);
2031 ::google::protobuf::internal::WireFormatLite::WriteString(
2032 1, this->key(), output);
2037 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2038 this->schema().data(), this->schema().length(),
2039 ::google::protobuf::internal::WireFormat::SERIALIZE);
2040 ::google::protobuf::internal::WireFormatLite::WriteString(
2041 2, this->schema(), output);
2046 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2047 this->sql().data(), this->sql().length(),
2048 ::google::protobuf::internal::WireFormat::SERIALIZE);
2049 ::google::protobuf::internal::WireFormatLite::WriteString(
2050 3, this->sql(), output);
2054 if (has_select_header()) {
2055 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2056 4, this->select_header(), output);
2060 if (has_select_data()) {
2061 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2062 5, this->select_data(), output);
2065 if (!unknown_fields().empty()) {
2066 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2067 unknown_fields(), output);
2071 ::google::protobuf::uint8* Resultset::SerializeWithCachedSizesToArray(
2072 ::google::protobuf::uint8* target)
const {
2075 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2076 this->key().data(), this->key().length(),
2077 ::google::protobuf::internal::WireFormat::SERIALIZE);
2079 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2080 1, this->key(), target);
2085 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2086 this->schema().data(), this->schema().length(),
2087 ::google::protobuf::internal::WireFormat::SERIALIZE);
2089 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2090 2, this->schema(), target);
2095 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2096 this->sql().data(), this->sql().length(),
2097 ::google::protobuf::internal::WireFormat::SERIALIZE);
2099 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2100 3, this->sql(), target);
2104 if (has_select_header()) {
2105 target = ::google::protobuf::internal::WireFormatLite::
2106 WriteMessageNoVirtualToArray(
2107 4, this->select_header(), target);
2111 if (has_select_data()) {
2112 target = ::google::protobuf::internal::WireFormatLite::
2113 WriteMessageNoVirtualToArray(
2114 5, this->select_data(), target);
2117 if (!unknown_fields().empty()) {
2118 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2119 unknown_fields(), target);
2124 int Resultset::ByteSize()
const {
2127 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2131 ::google::protobuf::internal::WireFormatLite::StringSize(
2138 ::google::protobuf::internal::WireFormatLite::StringSize(
2145 ::google::protobuf::internal::WireFormatLite::StringSize(
2150 if (has_select_header()) {
2152 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2153 this->select_header());
2157 if (has_select_data()) {
2159 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2160 this->select_data());
2164 if (!unknown_fields().empty()) {
2166 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2169 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2170 _cached_size_ = total_size;
2171 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2175 void Resultset::MergeFrom(const ::google::protobuf::Message& from) {
2176 GOOGLE_CHECK_NE(&from,
this);
2177 const Resultset* source =
2178 ::google::protobuf::internal::dynamic_cast_if_available<const Resultset*>(
2180 if (source == NULL) {
2181 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
2187 void Resultset::MergeFrom(
const Resultset& from) {
2188 GOOGLE_CHECK_NE(&from,
this);
2189 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2190 if (from.has_key()) {
2191 set_key(from.key());
2193 if (from.has_schema()) {
2194 set_schema(from.schema());
2196 if (from.has_sql()) {
2197 set_sql(from.sql());
2199 if (from.has_select_header()) {
2200 mutable_select_header()->::drizzled::message::SelectHeader::MergeFrom(from.select_header());
2202 if (from.has_select_data()) {
2203 mutable_select_data()->::drizzled::message::SelectData::MergeFrom(from.select_data());
2206 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2209 void Resultset::CopyFrom(const ::google::protobuf::Message& from) {
2210 if (&from ==
this)
return;
2215 void Resultset::CopyFrom(
const Resultset& from) {
2216 if (&from ==
this)
return;
2221 bool Resultset::IsInitialized()
const {
2222 if ((_has_bits_[0] & 0x00000003) != 0x00000003)
return false;
2224 if (has_select_header()) {
2225 if (!this->select_header().IsInitialized())
return false;
2227 if (has_select_data()) {
2228 if (!this->select_data().IsInitialized())
return false;
2233 void Resultset::Swap(Resultset* other) {
2234 if (other !=
this) {
2235 std::swap(key_, other->key_);
2236 std::swap(schema_, other->schema_);
2237 std::swap(sql_, other->sql_);
2238 std::swap(select_header_, other->select_header_);
2239 std::swap(select_data_, other->select_data_);
2240 std::swap(_has_bits_[0], other->_has_bits_[0]);
2241 _unknown_fields_.Swap(&other->_unknown_fields_);
2242 std::swap(_cached_size_, other->_cached_size_);
2246 ::google::protobuf::Metadata Resultset::GetMetadata()
const {
2247 protobuf_AssignDescriptorsOnce();
2248 ::google::protobuf::Metadata metadata;
2249 metadata.descriptor = Resultset_descriptor_;
2250 metadata.reflection = Resultset_reflection_;