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() {
267 void FieldMeta::InitAsDefaultInstance() {
270 FieldMeta::FieldMeta(
const FieldMeta& from)
271 : ::
google::protobuf::Message() {
277 void FieldMeta::SharedCtor() {
278 ::google::protobuf::internal::GetEmptyString();
280 field_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
281 field_alias_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
282 table_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
283 table_alias_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
284 schema_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
285 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
288 FieldMeta::~FieldMeta() {
293 void FieldMeta::SharedDtor() {
294 if (field_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
297 if (field_alias_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
300 if (table_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
303 if (table_alias_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
306 if (schema_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
309 if (
this != default_instance_) {
313 void FieldMeta::SetCachedSize(
int size)
const {
314 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
315 _cached_size_ = size;
316 GOOGLE_SAFE_CONCURRENT_WRITES_END();
318 const ::google::protobuf::Descriptor* FieldMeta::descriptor() {
319 protobuf_AssignDescriptorsOnce();
320 return FieldMeta_descriptor_;
323 const FieldMeta& FieldMeta::default_instance() {
324 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto();
325 return *default_instance_;
328 FieldMeta* FieldMeta::default_instance_ = NULL;
330 FieldMeta* FieldMeta::New()
const {
331 return new FieldMeta;
334 void FieldMeta::Clear() {
335 if (_has_bits_[0 / 32] & 31) {
336 if (has_field_name()) {
337 if (field_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
338 field_name_->clear();
341 if (has_field_alias()) {
342 if (field_alias_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
343 field_alias_->clear();
346 if (has_table_name()) {
347 if (table_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
348 table_name_->clear();
351 if (has_table_alias()) {
352 if (table_alias_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
353 table_alias_->clear();
356 if (has_schema_name()) {
357 if (schema_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
358 schema_name_->clear();
362 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
363 mutable_unknown_fields()->Clear();
366 bool FieldMeta::MergePartialFromCodedStream(
367 ::google::protobuf::io::CodedInputStream* input) {
368 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
369 ::google::protobuf::uint32 tag;
372 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
374 if (!p.second)
goto handle_unusual;
375 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
379 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
380 input, this->mutable_field_name()));
381 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
382 this->field_name().data(), this->field_name().length(),
383 ::google::protobuf::internal::WireFormat::PARSE,
388 if (input->ExpectTag(18))
goto parse_field_alias;
396 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
397 input, this->mutable_field_alias()));
398 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
399 this->field_alias().data(), this->field_alias().length(),
400 ::google::protobuf::internal::WireFormat::PARSE,
405 if (input->ExpectTag(26))
goto parse_table_name;
413 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
414 input, this->mutable_table_name()));
415 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
416 this->table_name().data(), this->table_name().length(),
417 ::google::protobuf::internal::WireFormat::PARSE,
422 if (input->ExpectTag(34))
goto parse_table_alias;
430 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
431 input, this->mutable_table_alias()));
432 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
433 this->table_alias().data(), this->table_alias().length(),
434 ::google::protobuf::internal::WireFormat::PARSE,
439 if (input->ExpectTag(42))
goto parse_schema_name;
447 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
448 input, this->mutable_schema_name()));
449 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
450 this->schema_name().data(), this->schema_name().length(),
451 ::google::protobuf::internal::WireFormat::PARSE,
456 if (input->ExpectAtEnd())
goto success;
463 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
464 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
467 DO_(::google::protobuf::internal::WireFormat::SkipField(
468 input, tag, mutable_unknown_fields()));
482 void FieldMeta::SerializeWithCachedSizes(
483 ::google::protobuf::io::CodedOutputStream* output)
const {
486 if (has_field_name()) {
487 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
488 this->field_name().data(), this->field_name().length(),
489 ::google::protobuf::internal::WireFormat::SERIALIZE,
491 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
492 1, this->field_name(), output);
496 if (has_field_alias()) {
497 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
498 this->field_alias().data(), this->field_alias().length(),
499 ::google::protobuf::internal::WireFormat::SERIALIZE,
501 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
502 2, this->field_alias(), output);
506 if (has_table_name()) {
507 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
508 this->table_name().data(), this->table_name().length(),
509 ::google::protobuf::internal::WireFormat::SERIALIZE,
511 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
512 3, this->table_name(), output);
516 if (has_table_alias()) {
517 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
518 this->table_alias().data(), this->table_alias().length(),
519 ::google::protobuf::internal::WireFormat::SERIALIZE,
521 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
522 4, this->table_alias(), output);
526 if (has_schema_name()) {
527 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
528 this->schema_name().data(), this->schema_name().length(),
529 ::google::protobuf::internal::WireFormat::SERIALIZE,
531 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
532 5, this->schema_name(), output);
535 if (!unknown_fields().empty()) {
536 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
537 unknown_fields(), output);
542 ::google::protobuf::uint8* FieldMeta::SerializeWithCachedSizesToArray(
543 ::google::protobuf::uint8* target)
const {
546 if (has_field_name()) {
547 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
548 this->field_name().data(), this->field_name().length(),
549 ::google::protobuf::internal::WireFormat::SERIALIZE,
552 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
553 1, this->field_name(), target);
557 if (has_field_alias()) {
558 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
559 this->field_alias().data(), this->field_alias().length(),
560 ::google::protobuf::internal::WireFormat::SERIALIZE,
563 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
564 2, this->field_alias(), target);
568 if (has_table_name()) {
569 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
570 this->table_name().data(), this->table_name().length(),
571 ::google::protobuf::internal::WireFormat::SERIALIZE,
574 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
575 3, this->table_name(), target);
579 if (has_table_alias()) {
580 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
581 this->table_alias().data(), this->table_alias().length(),
582 ::google::protobuf::internal::WireFormat::SERIALIZE,
585 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
586 4, this->table_alias(), target);
590 if (has_schema_name()) {
591 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
592 this->schema_name().data(), this->schema_name().length(),
593 ::google::protobuf::internal::WireFormat::SERIALIZE,
596 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
597 5, this->schema_name(), target);
600 if (!unknown_fields().empty()) {
601 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
602 unknown_fields(), target);
608 int FieldMeta::ByteSize()
const {
611 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
613 if (has_field_name()) {
615 ::google::protobuf::internal::WireFormatLite::StringSize(
620 if (has_field_alias()) {
622 ::google::protobuf::internal::WireFormatLite::StringSize(
623 this->field_alias());
627 if (has_table_name()) {
629 ::google::protobuf::internal::WireFormatLite::StringSize(
634 if (has_table_alias()) {
636 ::google::protobuf::internal::WireFormatLite::StringSize(
637 this->table_alias());
641 if (has_schema_name()) {
643 ::google::protobuf::internal::WireFormatLite::StringSize(
644 this->schema_name());
648 if (!unknown_fields().empty()) {
650 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
653 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
654 _cached_size_ = total_size;
655 GOOGLE_SAFE_CONCURRENT_WRITES_END();
659 void FieldMeta::MergeFrom(const ::google::protobuf::Message& from) {
660 GOOGLE_CHECK_NE(&from,
this);
661 const FieldMeta* source =
662 ::google::protobuf::internal::dynamic_cast_if_available<const FieldMeta*>(
664 if (source == NULL) {
665 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
671 void FieldMeta::MergeFrom(
const FieldMeta& from) {
672 GOOGLE_CHECK_NE(&from,
this);
673 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
674 if (from.has_field_name()) {
675 set_field_name(from.field_name());
677 if (from.has_field_alias()) {
678 set_field_alias(from.field_alias());
680 if (from.has_table_name()) {
681 set_table_name(from.table_name());
683 if (from.has_table_alias()) {
684 set_table_alias(from.table_alias());
686 if (from.has_schema_name()) {
687 set_schema_name(from.schema_name());
690 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
693 void FieldMeta::CopyFrom(const ::google::protobuf::Message& from) {
694 if (&from ==
this)
return;
699 void FieldMeta::CopyFrom(
const FieldMeta& from) {
700 if (&from ==
this)
return;
705 bool FieldMeta::IsInitialized()
const {
706 if ((_has_bits_[0] & 0x00000015) != 0x00000015)
return false;
711 void FieldMeta::Swap(FieldMeta* other) {
713 std::swap(field_name_, other->field_name_);
714 std::swap(field_alias_, other->field_alias_);
715 std::swap(table_name_, other->table_name_);
716 std::swap(table_alias_, other->table_alias_);
717 std::swap(schema_name_, other->schema_name_);
718 std::swap(_has_bits_[0], other->_has_bits_[0]);
719 _unknown_fields_.Swap(&other->_unknown_fields_);
720 std::swap(_cached_size_, other->_cached_size_);
724 ::google::protobuf::Metadata FieldMeta::GetMetadata()
const {
725 protobuf_AssignDescriptorsOnce();
726 ::google::protobuf::Metadata metadata;
727 metadata.descriptor = FieldMeta_descriptor_;
728 metadata.reflection = FieldMeta_reflection_;
736 const int TableMeta::kSchemaNameFieldNumber;
737 const int TableMeta::kTableNameFieldNumber;
738 const int TableMeta::kTableAliasFieldNumber;
741 TableMeta::TableMeta()
742 : ::
google::protobuf::Message() {
747 void TableMeta::InitAsDefaultInstance() {
750 TableMeta::TableMeta(
const TableMeta& from)
751 : ::
google::protobuf::Message() {
757 void TableMeta::SharedCtor() {
758 ::google::protobuf::internal::GetEmptyString();
760 schema_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
761 table_name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
762 table_alias_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
763 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
766 TableMeta::~TableMeta() {
771 void TableMeta::SharedDtor() {
772 if (schema_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
775 if (table_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
778 if (table_alias_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
781 if (
this != default_instance_) {
785 void TableMeta::SetCachedSize(
int size)
const {
786 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
787 _cached_size_ = size;
788 GOOGLE_SAFE_CONCURRENT_WRITES_END();
790 const ::google::protobuf::Descriptor* TableMeta::descriptor() {
791 protobuf_AssignDescriptorsOnce();
792 return TableMeta_descriptor_;
795 const TableMeta& TableMeta::default_instance() {
796 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto();
797 return *default_instance_;
800 TableMeta* TableMeta::default_instance_ = NULL;
802 TableMeta* TableMeta::New()
const {
803 return new TableMeta;
806 void TableMeta::Clear() {
807 if (_has_bits_[0 / 32] & 7) {
808 if (has_schema_name()) {
809 if (schema_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
810 schema_name_->clear();
813 if (has_table_name()) {
814 if (table_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
815 table_name_->clear();
818 if (has_table_alias()) {
819 if (table_alias_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
820 table_alias_->clear();
824 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
825 mutable_unknown_fields()->Clear();
828 bool TableMeta::MergePartialFromCodedStream(
829 ::google::protobuf::io::CodedInputStream* input) {
830 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
831 ::google::protobuf::uint32 tag;
834 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
836 if (!p.second)
goto handle_unusual;
837 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
841 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
842 input, this->mutable_schema_name()));
843 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
844 this->schema_name().data(), this->schema_name().length(),
845 ::google::protobuf::internal::WireFormat::PARSE,
850 if (input->ExpectTag(18))
goto parse_table_name;
858 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
859 input, this->mutable_table_name()));
860 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
861 this->table_name().data(), this->table_name().length(),
862 ::google::protobuf::internal::WireFormat::PARSE,
867 if (input->ExpectTag(26))
goto parse_table_alias;
875 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
876 input, this->mutable_table_alias()));
877 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
878 this->table_alias().data(), this->table_alias().length(),
879 ::google::protobuf::internal::WireFormat::PARSE,
884 if (input->ExpectAtEnd())
goto success;
891 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
892 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
895 DO_(::google::protobuf::internal::WireFormat::SkipField(
896 input, tag, mutable_unknown_fields()));
910 void TableMeta::SerializeWithCachedSizes(
911 ::google::protobuf::io::CodedOutputStream* output)
const {
914 if (has_schema_name()) {
915 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
916 this->schema_name().data(), this->schema_name().length(),
917 ::google::protobuf::internal::WireFormat::SERIALIZE,
919 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
920 1, this->schema_name(), output);
924 if (has_table_name()) {
925 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
926 this->table_name().data(), this->table_name().length(),
927 ::google::protobuf::internal::WireFormat::SERIALIZE,
929 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
930 2, this->table_name(), output);
934 if (has_table_alias()) {
935 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
936 this->table_alias().data(), this->table_alias().length(),
937 ::google::protobuf::internal::WireFormat::SERIALIZE,
939 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
940 3, this->table_alias(), output);
943 if (!unknown_fields().empty()) {
944 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
945 unknown_fields(), output);
950 ::google::protobuf::uint8* TableMeta::SerializeWithCachedSizesToArray(
951 ::google::protobuf::uint8* target)
const {
954 if (has_schema_name()) {
955 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
956 this->schema_name().data(), this->schema_name().length(),
957 ::google::protobuf::internal::WireFormat::SERIALIZE,
960 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
961 1, this->schema_name(), target);
965 if (has_table_name()) {
966 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
967 this->table_name().data(), this->table_name().length(),
968 ::google::protobuf::internal::WireFormat::SERIALIZE,
971 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
972 2, this->table_name(), target);
976 if (has_table_alias()) {
977 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
978 this->table_alias().data(), this->table_alias().length(),
979 ::google::protobuf::internal::WireFormat::SERIALIZE,
982 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
983 3, this->table_alias(), target);
986 if (!unknown_fields().empty()) {
987 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
988 unknown_fields(), target);
994 int TableMeta::ByteSize()
const {
997 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
999 if (has_schema_name()) {
1001 ::google::protobuf::internal::WireFormatLite::StringSize(
1002 this->schema_name());
1006 if (has_table_name()) {
1008 ::google::protobuf::internal::WireFormatLite::StringSize(
1009 this->table_name());
1013 if (has_table_alias()) {
1015 ::google::protobuf::internal::WireFormatLite::StringSize(
1016 this->table_alias());
1020 if (!unknown_fields().empty()) {
1022 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1025 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1026 _cached_size_ = total_size;
1027 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1031 void TableMeta::MergeFrom(const ::google::protobuf::Message& from) {
1032 GOOGLE_CHECK_NE(&from,
this);
1033 const TableMeta* source =
1034 ::google::protobuf::internal::dynamic_cast_if_available<const TableMeta*>(
1036 if (source == NULL) {
1037 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
1043 void TableMeta::MergeFrom(
const TableMeta& from) {
1044 GOOGLE_CHECK_NE(&from,
this);
1045 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1046 if (from.has_schema_name()) {
1047 set_schema_name(from.schema_name());
1049 if (from.has_table_name()) {
1050 set_table_name(from.table_name());
1052 if (from.has_table_alias()) {
1053 set_table_alias(from.table_alias());
1056 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1059 void TableMeta::CopyFrom(const ::google::protobuf::Message& from) {
1060 if (&from ==
this)
return;
1065 void TableMeta::CopyFrom(
const TableMeta& from) {
1066 if (&from ==
this)
return;
1071 bool TableMeta::IsInitialized()
const {
1072 if ((_has_bits_[0] & 0x00000003) != 0x00000003)
return false;
1077 void TableMeta::Swap(TableMeta* other) {
1078 if (other !=
this) {
1079 std::swap(schema_name_, other->schema_name_);
1080 std::swap(table_name_, other->table_name_);
1081 std::swap(table_alias_, other->table_alias_);
1082 std::swap(_has_bits_[0], other->_has_bits_[0]);
1083 _unknown_fields_.Swap(&other->_unknown_fields_);
1084 std::swap(_cached_size_, other->_cached_size_);
1088 ::google::protobuf::Metadata TableMeta::GetMetadata()
const {
1089 protobuf_AssignDescriptorsOnce();
1090 ::google::protobuf::Metadata metadata;
1091 metadata.descriptor = TableMeta_descriptor_;
1092 metadata.reflection = TableMeta_reflection_;
1100 const int SelectRecord::kRecordValueFieldNumber;
1101 const int SelectRecord::kIsNullFieldNumber;
1104 SelectRecord::SelectRecord()
1105 : ::
google::protobuf::Message() {
1110 void SelectRecord::InitAsDefaultInstance() {
1113 SelectRecord::SelectRecord(
const SelectRecord& from)
1114 : ::
google::protobuf::Message() {
1120 void SelectRecord::SharedCtor() {
1121 ::google::protobuf::internal::GetEmptyString();
1123 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1126 SelectRecord::~SelectRecord() {
1131 void SelectRecord::SharedDtor() {
1132 if (
this != default_instance_) {
1136 void SelectRecord::SetCachedSize(
int size)
const {
1137 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1138 _cached_size_ = size;
1139 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1141 const ::google::protobuf::Descriptor* SelectRecord::descriptor() {
1142 protobuf_AssignDescriptorsOnce();
1143 return SelectRecord_descriptor_;
1146 const SelectRecord& SelectRecord::default_instance() {
1147 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto();
1148 return *default_instance_;
1151 SelectRecord* SelectRecord::default_instance_ = NULL;
1153 SelectRecord* SelectRecord::New()
const {
1154 return new SelectRecord;
1157 void SelectRecord::Clear() {
1158 record_value_.Clear();
1160 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1161 mutable_unknown_fields()->Clear();
1164 bool SelectRecord::MergePartialFromCodedStream(
1165 ::google::protobuf::io::CodedInputStream* input) {
1166 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1167 ::google::protobuf::uint32 tag;
1170 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1172 if (!p.second)
goto handle_unusual;
1173 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1178 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1179 input, this->add_record_value()));
1181 goto handle_unusual;
1183 if (input->ExpectTag(10))
goto parse_record_value;
1184 if (input->ExpectTag(16))
goto parse_is_null;
1192 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
1193 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1194 1, 16, input, this->mutable_is_null())));
1195 }
else if (tag == 18) {
1196 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
1197 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1198 input, this->mutable_is_null())));
1200 goto handle_unusual;
1202 if (input->ExpectTag(16))
goto parse_is_null;
1203 if (input->ExpectAtEnd())
goto success;
1210 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1211 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1214 DO_(::google::protobuf::internal::WireFormat::SkipField(
1215 input, tag, mutable_unknown_fields()));
1229 void SelectRecord::SerializeWithCachedSizes(
1230 ::google::protobuf::io::CodedOutputStream* output)
const {
1233 for (
int i = 0; i < this->record_value_size(); i++) {
1234 ::google::protobuf::internal::WireFormatLite::WriteBytes(
1235 1, this->record_value(i), output);
1239 for (
int i = 0; i < this->is_null_size(); i++) {
1240 ::google::protobuf::internal::WireFormatLite::WriteBool(
1241 2, this->is_null(i), output);
1244 if (!unknown_fields().empty()) {
1245 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1246 unknown_fields(), output);
1251 ::google::protobuf::uint8* SelectRecord::SerializeWithCachedSizesToArray(
1252 ::google::protobuf::uint8* target)
const {
1255 for (
int i = 0; i < this->record_value_size(); i++) {
1256 target = ::google::protobuf::internal::WireFormatLite::
1257 WriteBytesToArray(1, this->record_value(i), target);
1261 for (
int i = 0; i < this->is_null_size(); i++) {
1262 target = ::google::protobuf::internal::WireFormatLite::
1263 WriteBoolToArray(2, this->is_null(i), target);
1266 if (!unknown_fields().empty()) {
1267 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1268 unknown_fields(), target);
1274 int SelectRecord::ByteSize()
const {
1278 total_size += 1 * this->record_value_size();
1279 for (
int i = 0; i < this->record_value_size(); i++) {
1280 total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
1281 this->record_value(i));
1287 data_size = 1 * this->is_null_size();
1288 total_size += 1 * this->is_null_size() + data_size;
1291 if (!unknown_fields().empty()) {
1293 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1296 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1297 _cached_size_ = total_size;
1298 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1302 void SelectRecord::MergeFrom(const ::google::protobuf::Message& from) {
1303 GOOGLE_CHECK_NE(&from,
this);
1304 const SelectRecord* source =
1305 ::google::protobuf::internal::dynamic_cast_if_available<const SelectRecord*>(
1307 if (source == NULL) {
1308 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
1314 void SelectRecord::MergeFrom(
const SelectRecord& from) {
1315 GOOGLE_CHECK_NE(&from,
this);
1316 record_value_.MergeFrom(from.record_value_);
1317 is_null_.MergeFrom(from.is_null_);
1318 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1321 void SelectRecord::CopyFrom(const ::google::protobuf::Message& from) {
1322 if (&from ==
this)
return;
1327 void SelectRecord::CopyFrom(
const SelectRecord& from) {
1328 if (&from ==
this)
return;
1333 bool SelectRecord::IsInitialized()
const {
1338 void SelectRecord::Swap(SelectRecord* other) {
1339 if (other !=
this) {
1340 record_value_.Swap(&other->record_value_);
1341 is_null_.Swap(&other->is_null_);
1342 std::swap(_has_bits_[0], other->_has_bits_[0]);
1343 _unknown_fields_.Swap(&other->_unknown_fields_);
1344 std::swap(_cached_size_, other->_cached_size_);
1348 ::google::protobuf::Metadata SelectRecord::GetMetadata()
const {
1349 protobuf_AssignDescriptorsOnce();
1350 ::google::protobuf::Metadata metadata;
1351 metadata.descriptor = SelectRecord_descriptor_;
1352 metadata.reflection = SelectRecord_reflection_;
1360 const int SelectHeader::kTableMetaFieldNumber;
1361 const int SelectHeader::kFieldMetaFieldNumber;
1364 SelectHeader::SelectHeader()
1365 : ::
google::protobuf::Message() {
1370 void SelectHeader::InitAsDefaultInstance() {
1373 SelectHeader::SelectHeader(
const SelectHeader& from)
1374 : ::
google::protobuf::Message() {
1380 void SelectHeader::SharedCtor() {
1382 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1385 SelectHeader::~SelectHeader() {
1390 void SelectHeader::SharedDtor() {
1391 if (
this != default_instance_) {
1395 void SelectHeader::SetCachedSize(
int size)
const {
1396 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1397 _cached_size_ = size;
1398 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1400 const ::google::protobuf::Descriptor* SelectHeader::descriptor() {
1401 protobuf_AssignDescriptorsOnce();
1402 return SelectHeader_descriptor_;
1405 const SelectHeader& SelectHeader::default_instance() {
1406 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto();
1407 return *default_instance_;
1410 SelectHeader* SelectHeader::default_instance_ = NULL;
1412 SelectHeader* SelectHeader::New()
const {
1413 return new SelectHeader;
1416 void SelectHeader::Clear() {
1417 table_meta_.Clear();
1418 field_meta_.Clear();
1419 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1420 mutable_unknown_fields()->Clear();
1423 bool SelectHeader::MergePartialFromCodedStream(
1424 ::google::protobuf::io::CodedInputStream* input) {
1425 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1426 ::google::protobuf::uint32 tag;
1429 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1431 if (!p.second)
goto handle_unusual;
1432 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1437 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1438 input, add_table_meta()));
1440 goto handle_unusual;
1442 if (input->ExpectTag(10))
goto parse_table_meta;
1443 if (input->ExpectTag(18))
goto parse_field_meta;
1451 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1452 input, add_field_meta()));
1454 goto handle_unusual;
1456 if (input->ExpectTag(18))
goto parse_field_meta;
1457 if (input->ExpectAtEnd())
goto success;
1464 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1465 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1468 DO_(::google::protobuf::internal::WireFormat::SkipField(
1469 input, tag, mutable_unknown_fields()));
1483 void SelectHeader::SerializeWithCachedSizes(
1484 ::google::protobuf::io::CodedOutputStream* output)
const {
1487 for (
int i = 0; i < this->table_meta_size(); i++) {
1488 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1489 1, this->table_meta(i), output);
1493 for (
int i = 0; i < this->field_meta_size(); i++) {
1494 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1495 2, this->field_meta(i), output);
1498 if (!unknown_fields().empty()) {
1499 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1500 unknown_fields(), output);
1505 ::google::protobuf::uint8* SelectHeader::SerializeWithCachedSizesToArray(
1506 ::google::protobuf::uint8* target)
const {
1509 for (
int i = 0; i < this->table_meta_size(); i++) {
1510 target = ::google::protobuf::internal::WireFormatLite::
1511 WriteMessageNoVirtualToArray(
1512 1, this->table_meta(i), target);
1516 for (
int i = 0; i < this->field_meta_size(); i++) {
1517 target = ::google::protobuf::internal::WireFormatLite::
1518 WriteMessageNoVirtualToArray(
1519 2, this->field_meta(i), target);
1522 if (!unknown_fields().empty()) {
1523 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1524 unknown_fields(), target);
1530 int SelectHeader::ByteSize()
const {
1534 total_size += 1 * this->table_meta_size();
1535 for (
int i = 0; i < this->table_meta_size(); i++) {
1537 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1538 this->table_meta(i));
1542 total_size += 1 * this->field_meta_size();
1543 for (
int i = 0; i < this->field_meta_size(); i++) {
1545 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1546 this->field_meta(i));
1549 if (!unknown_fields().empty()) {
1551 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1554 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1555 _cached_size_ = total_size;
1556 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1560 void SelectHeader::MergeFrom(const ::google::protobuf::Message& from) {
1561 GOOGLE_CHECK_NE(&from,
this);
1562 const SelectHeader* source =
1563 ::google::protobuf::internal::dynamic_cast_if_available<const SelectHeader*>(
1565 if (source == NULL) {
1566 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
1572 void SelectHeader::MergeFrom(
const SelectHeader& from) {
1573 GOOGLE_CHECK_NE(&from,
this);
1574 table_meta_.MergeFrom(from.table_meta_);
1575 field_meta_.MergeFrom(from.field_meta_);
1576 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1579 void SelectHeader::CopyFrom(const ::google::protobuf::Message& from) {
1580 if (&from ==
this)
return;
1585 void SelectHeader::CopyFrom(
const SelectHeader& from) {
1586 if (&from ==
this)
return;
1591 bool SelectHeader::IsInitialized()
const {
1593 if (!::google::protobuf::internal::AllAreInitialized(this->table_meta()))
return false;
1594 if (!::google::protobuf::internal::AllAreInitialized(this->field_meta()))
return false;
1598 void SelectHeader::Swap(SelectHeader* other) {
1599 if (other !=
this) {
1600 table_meta_.Swap(&other->table_meta_);
1601 field_meta_.Swap(&other->field_meta_);
1602 std::swap(_has_bits_[0], other->_has_bits_[0]);
1603 _unknown_fields_.Swap(&other->_unknown_fields_);
1604 std::swap(_cached_size_, other->_cached_size_);
1608 ::google::protobuf::Metadata SelectHeader::GetMetadata()
const {
1609 protobuf_AssignDescriptorsOnce();
1610 ::google::protobuf::Metadata metadata;
1611 metadata.descriptor = SelectHeader_descriptor_;
1612 metadata.reflection = SelectHeader_reflection_;
1620 const int SelectData::kSegmentIdFieldNumber;
1621 const int SelectData::kEndSegmentFieldNumber;
1622 const int SelectData::kRecordFieldNumber;
1625 SelectData::SelectData()
1626 : ::
google::protobuf::Message() {
1631 void SelectData::InitAsDefaultInstance() {
1634 SelectData::SelectData(
const SelectData& from)
1635 : ::
google::protobuf::Message() {
1641 void SelectData::SharedCtor() {
1644 end_segment_ =
false;
1645 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1648 SelectData::~SelectData() {
1653 void SelectData::SharedDtor() {
1654 if (
this != default_instance_) {
1658 void SelectData::SetCachedSize(
int size)
const {
1659 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1660 _cached_size_ = size;
1661 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1663 const ::google::protobuf::Descriptor* SelectData::descriptor() {
1664 protobuf_AssignDescriptorsOnce();
1665 return SelectData_descriptor_;
1668 const SelectData& SelectData::default_instance() {
1669 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto();
1670 return *default_instance_;
1673 SelectData* SelectData::default_instance_ = NULL;
1675 SelectData* SelectData::New()
const {
1676 return new SelectData;
1679 void SelectData::Clear() {
1680 #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
1681 &reinterpret_cast<SelectData*>(16)->f) - \
1682 reinterpret_cast<char*>(16))
1684 #define ZR_(first, last) do { \
1685 size_t f = OFFSET_OF_FIELD_(first); \
1686 size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
1687 ::memset(&first, 0, n); \
1690 ZR_(segment_id_, end_segment_);
1692 #undef OFFSET_OF_FIELD_
1696 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1697 mutable_unknown_fields()->Clear();
1700 bool SelectData::MergePartialFromCodedStream(
1701 ::google::protobuf::io::CodedInputStream* input) {
1702 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1703 ::google::protobuf::uint32 tag;
1706 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1708 if (!p.second)
goto handle_unusual;
1709 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1713 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1714 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1715 input, &segment_id_)));
1716 set_has_segment_id();
1718 goto handle_unusual;
1720 if (input->ExpectTag(16))
goto parse_end_segment;
1728 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1729 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1730 input, &end_segment_)));
1731 set_has_end_segment();
1733 goto handle_unusual;
1735 if (input->ExpectTag(26))
goto parse_record;
1743 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1744 input, add_record()));
1746 goto handle_unusual;
1748 if (input->ExpectTag(26))
goto parse_record;
1749 if (input->ExpectAtEnd())
goto success;
1756 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1757 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1760 DO_(::google::protobuf::internal::WireFormat::SkipField(
1761 input, tag, mutable_unknown_fields()));
1775 void SelectData::SerializeWithCachedSizes(
1776 ::google::protobuf::io::CodedOutputStream* output)
const {
1779 if (has_segment_id()) {
1780 ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->segment_id(), output);
1784 if (has_end_segment()) {
1785 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->end_segment(), output);
1789 for (
int i = 0; i < this->record_size(); i++) {
1790 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1791 3, this->record(i), output);
1794 if (!unknown_fields().empty()) {
1795 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1796 unknown_fields(), output);
1801 ::google::protobuf::uint8* SelectData::SerializeWithCachedSizesToArray(
1802 ::google::protobuf::uint8* target)
const {
1805 if (has_segment_id()) {
1806 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->segment_id(), target);
1810 if (has_end_segment()) {
1811 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->end_segment(), target);
1815 for (
int i = 0; i < this->record_size(); i++) {
1816 target = ::google::protobuf::internal::WireFormatLite::
1817 WriteMessageNoVirtualToArray(
1818 3, this->record(i), target);
1821 if (!unknown_fields().empty()) {
1822 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1823 unknown_fields(), target);
1829 int SelectData::ByteSize()
const {
1832 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1834 if (has_segment_id()) {
1836 ::google::protobuf::internal::WireFormatLite::UInt32Size(
1837 this->segment_id());
1841 if (has_end_segment()) {
1842 total_size += 1 + 1;
1847 total_size += 1 * this->record_size();
1848 for (
int i = 0; i < this->record_size(); i++) {
1850 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1854 if (!unknown_fields().empty()) {
1856 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1859 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1860 _cached_size_ = total_size;
1861 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1865 void SelectData::MergeFrom(const ::google::protobuf::Message& from) {
1866 GOOGLE_CHECK_NE(&from,
this);
1867 const SelectData* source =
1868 ::google::protobuf::internal::dynamic_cast_if_available<const SelectData*>(
1870 if (source == NULL) {
1871 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
1877 void SelectData::MergeFrom(
const SelectData& from) {
1878 GOOGLE_CHECK_NE(&from,
this);
1879 record_.MergeFrom(from.record_);
1880 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1881 if (from.has_segment_id()) {
1882 set_segment_id(from.segment_id());
1884 if (from.has_end_segment()) {
1885 set_end_segment(from.end_segment());
1888 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1891 void SelectData::CopyFrom(const ::google::protobuf::Message& from) {
1892 if (&from ==
this)
return;
1897 void SelectData::CopyFrom(
const SelectData& from) {
1898 if (&from ==
this)
return;
1903 bool SelectData::IsInitialized()
const {
1904 if ((_has_bits_[0] & 0x00000003) != 0x00000003)
return false;
1909 void SelectData::Swap(SelectData* other) {
1910 if (other !=
this) {
1911 std::swap(segment_id_, other->segment_id_);
1912 std::swap(end_segment_, other->end_segment_);
1913 record_.Swap(&other->record_);
1914 std::swap(_has_bits_[0], other->_has_bits_[0]);
1915 _unknown_fields_.Swap(&other->_unknown_fields_);
1916 std::swap(_cached_size_, other->_cached_size_);
1920 ::google::protobuf::Metadata SelectData::GetMetadata()
const {
1921 protobuf_AssignDescriptorsOnce();
1922 ::google::protobuf::Metadata metadata;
1923 metadata.descriptor = SelectData_descriptor_;
1924 metadata.reflection = SelectData_reflection_;
1932 const int Resultset::kKeyFieldNumber;
1933 const int Resultset::kSchemaFieldNumber;
1934 const int Resultset::kSqlFieldNumber;
1935 const int Resultset::kSelectHeaderFieldNumber;
1936 const int Resultset::kSelectDataFieldNumber;
1939 Resultset::Resultset()
1940 : ::
google::protobuf::Message() {
1945 void Resultset::InitAsDefaultInstance() {
1950 Resultset::Resultset(
const Resultset& from)
1951 : ::
google::protobuf::Message() {
1957 void Resultset::SharedCtor() {
1958 ::google::protobuf::internal::GetEmptyString();
1960 key_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1961 schema_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1962 sql_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1963 select_header_ = NULL;
1964 select_data_ = NULL;
1965 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
1968 Resultset::~Resultset() {
1973 void Resultset::SharedDtor() {
1974 if (key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1977 if (schema_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1980 if (sql_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1983 if (
this != default_instance_) {
1984 delete select_header_;
1985 delete select_data_;
1989 void Resultset::SetCachedSize(
int size)
const {
1990 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1991 _cached_size_ = size;
1992 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1994 const ::google::protobuf::Descriptor* Resultset::descriptor() {
1995 protobuf_AssignDescriptorsOnce();
1996 return Resultset_descriptor_;
1999 const Resultset& Resultset::default_instance() {
2000 if (default_instance_ == NULL) protobuf_AddDesc_resultset_2eproto();
2001 return *default_instance_;
2004 Resultset* Resultset::default_instance_ = NULL;
2006 Resultset* Resultset::New()
const {
2007 return new Resultset;
2010 void Resultset::Clear() {
2011 if (_has_bits_[0 / 32] & 31) {
2013 if (key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2018 if (schema_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2023 if (sql_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2027 if (has_select_header()) {
2028 if (select_header_ != NULL) select_header_->::drizzled::message::SelectHeader::Clear();
2030 if (has_select_data()) {
2031 if (select_data_ != NULL) select_data_->::drizzled::message::SelectData::Clear();
2034 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
2035 mutable_unknown_fields()->Clear();
2038 bool Resultset::MergePartialFromCodedStream(
2039 ::google::protobuf::io::CodedInputStream* input) {
2040 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
2041 ::google::protobuf::uint32 tag;
2044 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2046 if (!p.second)
goto handle_unusual;
2047 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2051 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2052 input, this->mutable_key()));
2053 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2054 this->key().data(), this->key().length(),
2055 ::google::protobuf::internal::WireFormat::PARSE,
2058 goto handle_unusual;
2060 if (input->ExpectTag(18))
goto parse_schema;
2068 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2069 input, this->mutable_schema()));
2070 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2071 this->schema().data(), this->schema().length(),
2072 ::google::protobuf::internal::WireFormat::PARSE,
2075 goto handle_unusual;
2077 if (input->ExpectTag(26))
goto parse_sql;
2085 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2086 input, this->mutable_sql()));
2087 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2088 this->sql().data(), this->sql().length(),
2089 ::google::protobuf::internal::WireFormat::PARSE,
2092 goto handle_unusual;
2094 if (input->ExpectTag(34))
goto parse_select_header;
2101 parse_select_header:
2102 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2103 input, mutable_select_header()));
2105 goto handle_unusual;
2107 if (input->ExpectTag(42))
goto parse_select_data;
2115 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2116 input, mutable_select_data()));
2118 goto handle_unusual;
2120 if (input->ExpectAtEnd())
goto success;
2127 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2128 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2131 DO_(::google::protobuf::internal::WireFormat::SkipField(
2132 input, tag, mutable_unknown_fields()));
2146 void Resultset::SerializeWithCachedSizes(
2147 ::google::protobuf::io::CodedOutputStream* output)
const {
2151 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2152 this->key().data(), this->key().length(),
2153 ::google::protobuf::internal::WireFormat::SERIALIZE,
2155 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2156 1, this->key(), output);
2161 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2162 this->schema().data(), this->schema().length(),
2163 ::google::protobuf::internal::WireFormat::SERIALIZE,
2165 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2166 2, this->schema(), output);
2171 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2172 this->sql().data(), this->sql().length(),
2173 ::google::protobuf::internal::WireFormat::SERIALIZE,
2175 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2176 3, this->sql(), output);
2180 if (has_select_header()) {
2181 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2182 4, this->select_header(), output);
2186 if (has_select_data()) {
2187 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2188 5, this->select_data(), output);
2191 if (!unknown_fields().empty()) {
2192 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2193 unknown_fields(), output);
2198 ::google::protobuf::uint8* Resultset::SerializeWithCachedSizesToArray(
2199 ::google::protobuf::uint8* target)
const {
2203 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2204 this->key().data(), this->key().length(),
2205 ::google::protobuf::internal::WireFormat::SERIALIZE,
2208 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2209 1, this->key(), target);
2214 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2215 this->schema().data(), this->schema().length(),
2216 ::google::protobuf::internal::WireFormat::SERIALIZE,
2219 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2220 2, this->schema(), target);
2225 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2226 this->sql().data(), this->sql().length(),
2227 ::google::protobuf::internal::WireFormat::SERIALIZE,
2230 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2231 3, this->sql(), target);
2235 if (has_select_header()) {
2236 target = ::google::protobuf::internal::WireFormatLite::
2237 WriteMessageNoVirtualToArray(
2238 4, this->select_header(), target);
2242 if (has_select_data()) {
2243 target = ::google::protobuf::internal::WireFormatLite::
2244 WriteMessageNoVirtualToArray(
2245 5, this->select_data(), target);
2248 if (!unknown_fields().empty()) {
2249 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2250 unknown_fields(), target);
2256 int Resultset::ByteSize()
const {
2259 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2263 ::google::protobuf::internal::WireFormatLite::StringSize(
2270 ::google::protobuf::internal::WireFormatLite::StringSize(
2277 ::google::protobuf::internal::WireFormatLite::StringSize(
2282 if (has_select_header()) {
2284 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2285 this->select_header());
2289 if (has_select_data()) {
2291 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2292 this->select_data());
2296 if (!unknown_fields().empty()) {
2298 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2301 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2302 _cached_size_ = total_size;
2303 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2307 void Resultset::MergeFrom(const ::google::protobuf::Message& from) {
2308 GOOGLE_CHECK_NE(&from,
this);
2309 const Resultset* source =
2310 ::google::protobuf::internal::dynamic_cast_if_available<const Resultset*>(
2312 if (source == NULL) {
2313 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
2319 void Resultset::MergeFrom(
const Resultset& from) {
2320 GOOGLE_CHECK_NE(&from,
this);
2321 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2322 if (from.has_key()) {
2323 set_key(from.key());
2325 if (from.has_schema()) {
2326 set_schema(from.schema());
2328 if (from.has_sql()) {
2329 set_sql(from.sql());
2331 if (from.has_select_header()) {
2332 mutable_select_header()->::drizzled::message::SelectHeader::MergeFrom(from.select_header());
2334 if (from.has_select_data()) {
2335 mutable_select_data()->::drizzled::message::SelectData::MergeFrom(from.select_data());
2338 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2341 void Resultset::CopyFrom(const ::google::protobuf::Message& from) {
2342 if (&from ==
this)
return;
2347 void Resultset::CopyFrom(
const Resultset& from) {
2348 if (&from ==
this)
return;
2353 bool Resultset::IsInitialized()
const {
2354 if ((_has_bits_[0] & 0x00000003) != 0x00000003)
return false;
2356 if (has_select_header()) {
2357 if (!this->select_header().IsInitialized())
return false;
2359 if (has_select_data()) {
2360 if (!this->select_data().IsInitialized())
return false;
2365 void Resultset::Swap(Resultset* other) {
2366 if (other !=
this) {
2367 std::swap(key_, other->key_);
2368 std::swap(schema_, other->schema_);
2369 std::swap(sql_, other->sql_);
2370 std::swap(select_header_, other->select_header_);
2371 std::swap(select_data_, other->select_data_);
2372 std::swap(_has_bits_[0], other->_has_bits_[0]);
2373 _unknown_fields_.Swap(&other->_unknown_fields_);
2374 std::swap(_cached_size_, other->_cached_size_);
2378 ::google::protobuf::Metadata Resultset::GetMetadata()
const {
2379 protobuf_AssignDescriptorsOnce();
2380 ::google::protobuf::Metadata metadata;
2381 metadata.descriptor = Resultset_descriptor_;
2382 metadata.reflection = Resultset_reflection_;
TODO: Rename this file - func.h is stupid.
static bool parse_sql(Session *session, Lex_input_stream *lip)