4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
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* Schema_descriptor_ = NULL;
25 const ::google::protobuf::internal::GeneratedMessageReflection*
26 Schema_reflection_ = NULL;
27 const ::google::protobuf::Descriptor* Schema_Options_descriptor_ = NULL;
28 const ::google::protobuf::internal::GeneratedMessageReflection*
29 Schema_Options_reflection_ = NULL;
34 void protobuf_AssignDesc_schema_2eproto() {
35 protobuf_AddDesc_schema_2eproto();
36 const ::google::protobuf::FileDescriptor* file =
37 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
39 GOOGLE_CHECK(file != NULL);
40 Schema_descriptor_ = file->message_type(0);
41 static const int Schema_offsets_[11] = {
42 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, name_),
43 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, collation_),
44 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, engine_),
45 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, catalog_),
46 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, creation_timestamp_),
47 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, update_timestamp_),
48 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, uuid_),
49 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, version_),
50 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, options_),
51 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, replication_options_),
52 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, access_),
55 new ::google::protobuf::internal::GeneratedMessageReflection(
57 Schema::default_instance_,
59 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, _has_bits_[0]),
60 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, _unknown_fields_),
62 ::google::protobuf::DescriptorPool::generated_pool(),
63 ::google::protobuf::MessageFactory::generated_factory(),
65 Schema_Options_descriptor_ = Schema_descriptor_->nested_type(0);
66 static const int Schema_Options_offsets_[1] = {
68 Schema_Options_reflection_ =
69 new ::google::protobuf::internal::GeneratedMessageReflection(
70 Schema_Options_descriptor_,
71 Schema_Options::default_instance_,
72 Schema_Options_offsets_,
73 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema_Options, _has_bits_[0]),
74 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema_Options, _unknown_fields_),
76 ::google::protobuf::DescriptorPool::generated_pool(),
77 ::google::protobuf::MessageFactory::generated_factory(),
78 sizeof(Schema_Options));
83 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
84 inline void protobuf_AssignDescriptorsOnce() {
85 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
86 &protobuf_AssignDesc_schema_2eproto);
89 void protobuf_RegisterTypes(const ::std::string&) {
90 protobuf_AssignDescriptorsOnce();
91 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
92 Schema_descriptor_, &Schema::default_instance());
93 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
94 Schema_Options_descriptor_, &Schema_Options::default_instance());
99 void protobuf_ShutdownFile_schema_2eproto() {
100 delete Schema::default_instance_;
101 delete Schema_reflection_;
102 delete Schema_Options::default_instance_;
103 delete Schema_Options_reflection_;
106 void protobuf_AddDesc_schema_2eproto() {
107 static bool already_here =
false;
108 if (already_here)
return;
110 GOOGLE_PROTOBUF_VERIFY_VERSION;
112 ::drizzled::message::protobuf_AddDesc_engine_2eproto();
113 ::drizzled::message::protobuf_AddDesc_access_2eproto();
114 ::drizzled::message::protobuf_AddDesc_replication_5foptions_2eproto();
115 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
116 "\n\014schema.proto\022\020drizzled.message\032\014engine"
117 ".proto\032\014access.proto\032\031replication_option"
118 "s.proto\"\352\002\n\006Schema\022\014\n\004name\030\001 \002(\t\022\021\n\tcoll"
119 "ation\030\002 \001(\t\022(\n\006engine\030\003 \002(\0132\030.drizzled.m"
120 "essage.Engine\022\017\n\007catalog\030\004 \001(\t\022\035\n\022creati"
121 "on_timestamp\030\013 \002(\004:\0010\022\033\n\020update_timestam"
122 "p\030\014 \002(\004:\0010\022\014\n\004uuid\030\r \001(\t\022\017\n\007version\030\016 \001("
123 "\004\0221\n\007options\030\017 \001(\0132 .drizzled.message.Sc"
124 "hema.Options\022A\n\023replication_options\030\020 \001("
125 "\0132$.drizzled.message.ReplicationOptions\022"
126 "(\n\006access\030\021 \001(\0132\030.drizzled.message.Acces"
127 "s\032\t\n\007OptionsB\'\n\024org.drizzle.messagesB\rSc"
128 "hemaMessageH\001", 493);
129 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
130 "schema.proto", &protobuf_RegisterTypes);
131 Schema::default_instance_ =
new Schema();
132 Schema_Options::default_instance_ =
new Schema_Options();
133 Schema::default_instance_->InitAsDefaultInstance();
134 Schema_Options::default_instance_->InitAsDefaultInstance();
135 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_schema_2eproto);
141 protobuf_AddDesc_schema_2eproto();
143 } static_descriptor_initializer_schema_2eproto_;
150 Schema_Options::Schema_Options()
151 : ::google::protobuf::Message() {
155 void Schema_Options::InitAsDefaultInstance() {
158 Schema_Options::Schema_Options(
const Schema_Options& from)
159 : ::google::protobuf::Message() {
164 void Schema_Options::SharedCtor() {
166 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
169 Schema_Options::~Schema_Options() {
173 void Schema_Options::SharedDtor() {
174 if (
this != default_instance_) {
178 void Schema_Options::SetCachedSize(
int size)
const {
179 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
180 _cached_size_ = size;
181 GOOGLE_SAFE_CONCURRENT_WRITES_END();
183 const ::google::protobuf::Descriptor* Schema_Options::descriptor() {
184 protobuf_AssignDescriptorsOnce();
185 return Schema_Options_descriptor_;
188 const Schema_Options& Schema_Options::default_instance() {
189 if (default_instance_ == NULL) protobuf_AddDesc_schema_2eproto();
190 return *default_instance_;
193 Schema_Options* Schema_Options::default_instance_ = NULL;
195 Schema_Options* Schema_Options::New()
const {
196 return new Schema_Options;
199 void Schema_Options::Clear() {
200 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
201 mutable_unknown_fields()->Clear();
204 bool Schema_Options::MergePartialFromCodedStream(
205 ::google::protobuf::io::CodedInputStream* input) {
206 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
207 ::google::protobuf::uint32 tag;
208 while ((tag = input->ReadTag()) != 0) {
209 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
210 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
213 DO_(::google::protobuf::internal::WireFormat::SkipField(
214 input, tag, mutable_unknown_fields()));
220 void Schema_Options::SerializeWithCachedSizes(
221 ::google::protobuf::io::CodedOutputStream* output)
const {
222 if (!unknown_fields().empty()) {
223 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
224 unknown_fields(), output);
228 ::google::protobuf::uint8* Schema_Options::SerializeWithCachedSizesToArray(
229 ::google::protobuf::uint8* target)
const {
230 if (!unknown_fields().empty()) {
231 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
232 unknown_fields(), target);
237 int Schema_Options::ByteSize()
const {
240 if (!unknown_fields().empty()) {
242 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
245 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
246 _cached_size_ = total_size;
247 GOOGLE_SAFE_CONCURRENT_WRITES_END();
251 void Schema_Options::MergeFrom(const ::google::protobuf::Message& from) {
252 GOOGLE_CHECK_NE(&from,
this);
253 const Schema_Options* source =
254 ::google::protobuf::internal::dynamic_cast_if_available<const Schema_Options*>(
256 if (source == NULL) {
257 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
263 void Schema_Options::MergeFrom(
const Schema_Options& from) {
264 GOOGLE_CHECK_NE(&from,
this);
265 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
268 void Schema_Options::CopyFrom(const ::google::protobuf::Message& from) {
269 if (&from ==
this)
return;
274 void Schema_Options::CopyFrom(
const Schema_Options& from) {
275 if (&from ==
this)
return;
280 bool Schema_Options::IsInitialized()
const {
285 void Schema_Options::Swap(Schema_Options* other) {
287 _unknown_fields_.Swap(&other->_unknown_fields_);
288 std::swap(_cached_size_, other->_cached_size_);
292 ::google::protobuf::Metadata Schema_Options::GetMetadata()
const {
293 protobuf_AssignDescriptorsOnce();
294 ::google::protobuf::Metadata metadata;
295 metadata.descriptor = Schema_Options_descriptor_;
296 metadata.reflection = Schema_Options_reflection_;
304 const int Schema::kNameFieldNumber;
305 const int Schema::kCollationFieldNumber;
306 const int Schema::kEngineFieldNumber;
307 const int Schema::kCatalogFieldNumber;
308 const int Schema::kCreationTimestampFieldNumber;
309 const int Schema::kUpdateTimestampFieldNumber;
310 const int Schema::kUuidFieldNumber;
311 const int Schema::kVersionFieldNumber;
312 const int Schema::kOptionsFieldNumber;
313 const int Schema::kReplicationOptionsFieldNumber;
314 const int Schema::kAccessFieldNumber;
318 : ::google::protobuf::Message() {
322 void Schema::InitAsDefaultInstance() {
329 Schema::Schema(
const Schema& from)
330 : ::google::protobuf::Message() {
335 void Schema::SharedCtor() {
337 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
338 collation_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
340 catalog_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
341 creation_timestamp_ = GOOGLE_ULONGLONG(0);
342 update_timestamp_ = GOOGLE_ULONGLONG(0);
343 uuid_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
344 version_ = GOOGLE_ULONGLONG(0);
346 replication_options_ = NULL;
348 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
355 void Schema::SharedDtor() {
356 if (name_ != &::google::protobuf::internal::kEmptyString) {
359 if (collation_ != &::google::protobuf::internal::kEmptyString) {
362 if (catalog_ != &::google::protobuf::internal::kEmptyString) {
365 if (uuid_ != &::google::protobuf::internal::kEmptyString) {
368 if (
this != default_instance_) {
371 delete replication_options_;
376 void Schema::SetCachedSize(
int size)
const {
377 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
378 _cached_size_ = size;
379 GOOGLE_SAFE_CONCURRENT_WRITES_END();
381 const ::google::protobuf::Descriptor* Schema::descriptor() {
382 protobuf_AssignDescriptorsOnce();
383 return Schema_descriptor_;
386 const Schema& Schema::default_instance() {
387 if (default_instance_ == NULL) protobuf_AddDesc_schema_2eproto();
388 return *default_instance_;
391 Schema* Schema::default_instance_ = NULL;
393 Schema* Schema::New()
const {
397 void Schema::Clear() {
398 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
400 if (name_ != &::google::protobuf::internal::kEmptyString) {
404 if (has_collation()) {
405 if (collation_ != &::google::protobuf::internal::kEmptyString) {
410 if (engine_ != NULL) engine_->::drizzled::message::Engine::Clear();
413 if (catalog_ != &::google::protobuf::internal::kEmptyString) {
417 creation_timestamp_ = GOOGLE_ULONGLONG(0);
418 update_timestamp_ = GOOGLE_ULONGLONG(0);
420 if (uuid_ != &::google::protobuf::internal::kEmptyString) {
424 version_ = GOOGLE_ULONGLONG(0);
426 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
428 if (options_ != NULL) options_->::drizzled::message::Schema_Options::Clear();
430 if (has_replication_options()) {
431 if (replication_options_ != NULL) replication_options_->::drizzled::message::ReplicationOptions::Clear();
434 if (access_ != NULL) access_->::drizzled::message::Access::Clear();
437 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
438 mutable_unknown_fields()->Clear();
441 bool Schema::MergePartialFromCodedStream(
442 ::google::protobuf::io::CodedInputStream* input) {
443 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
444 ::google::protobuf::uint32 tag;
445 while ((tag = input->ReadTag()) != 0) {
446 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
449 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
450 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
451 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
452 input, this->mutable_name()));
453 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
454 this->name().data(), this->name().length(),
455 ::google::protobuf::internal::WireFormat::PARSE);
457 goto handle_uninterpreted;
459 if (input->ExpectTag(18))
goto parse_collation;
465 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
466 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
468 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
469 input, this->mutable_collation()));
470 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
471 this->collation().data(), this->collation().length(),
472 ::google::protobuf::internal::WireFormat::PARSE);
474 goto handle_uninterpreted;
476 if (input->ExpectTag(26))
goto parse_engine;
482 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
483 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
485 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
486 input, mutable_engine()));
488 goto handle_uninterpreted;
490 if (input->ExpectTag(34))
goto parse_catalog;
496 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
497 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
499 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
500 input, this->mutable_catalog()));
501 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
502 this->catalog().data(), this->catalog().length(),
503 ::google::protobuf::internal::WireFormat::PARSE);
505 goto handle_uninterpreted;
507 if (input->ExpectTag(88))
goto parse_creation_timestamp;
513 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
514 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
515 parse_creation_timestamp:
516 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
517 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
518 input, &creation_timestamp_)));
519 set_has_creation_timestamp();
521 goto handle_uninterpreted;
523 if (input->ExpectTag(96))
goto parse_update_timestamp;
529 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
530 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
531 parse_update_timestamp:
532 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
533 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
534 input, &update_timestamp_)));
535 set_has_update_timestamp();
537 goto handle_uninterpreted;
539 if (input->ExpectTag(106))
goto parse_uuid;
545 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
546 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
548 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
549 input, this->mutable_uuid()));
550 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
551 this->uuid().data(), this->uuid().length(),
552 ::google::protobuf::internal::WireFormat::PARSE);
554 goto handle_uninterpreted;
556 if (input->ExpectTag(112))
goto parse_version;
562 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
563 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
565 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
566 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
570 goto handle_uninterpreted;
572 if (input->ExpectTag(122))
goto parse_options;
578 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
579 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
581 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
582 input, mutable_options()));
584 goto handle_uninterpreted;
586 if (input->ExpectTag(130))
goto parse_replication_options;
592 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
593 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
594 parse_replication_options:
595 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
596 input, mutable_replication_options()));
598 goto handle_uninterpreted;
600 if (input->ExpectTag(138))
goto parse_access;
606 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
607 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
609 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
610 input, mutable_access()));
612 goto handle_uninterpreted;
614 if (input->ExpectAtEnd())
return true;
619 handle_uninterpreted:
620 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
621 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
624 DO_(::google::protobuf::internal::WireFormat::SkipField(
625 input, tag, mutable_unknown_fields()));
634 void Schema::SerializeWithCachedSizes(
635 ::google::protobuf::io::CodedOutputStream* output)
const {
638 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
639 this->name().data(), this->name().length(),
640 ::google::protobuf::internal::WireFormat::SERIALIZE);
641 ::google::protobuf::internal::WireFormatLite::WriteString(
642 1, this->name(), output);
646 if (has_collation()) {
647 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
648 this->collation().data(), this->collation().length(),
649 ::google::protobuf::internal::WireFormat::SERIALIZE);
650 ::google::protobuf::internal::WireFormatLite::WriteString(
651 2, this->collation(), output);
656 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
657 3, this->engine(), output);
662 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
663 this->catalog().data(), this->catalog().length(),
664 ::google::protobuf::internal::WireFormat::SERIALIZE);
665 ::google::protobuf::internal::WireFormatLite::WriteString(
666 4, this->catalog(), output);
670 if (has_creation_timestamp()) {
671 ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->creation_timestamp(), output);
675 if (has_update_timestamp()) {
676 ::google::protobuf::internal::WireFormatLite::WriteUInt64(12, this->update_timestamp(), output);
681 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
682 this->uuid().data(), this->uuid().length(),
683 ::google::protobuf::internal::WireFormat::SERIALIZE);
684 ::google::protobuf::internal::WireFormatLite::WriteString(
685 13, this->uuid(), output);
690 ::google::protobuf::internal::WireFormatLite::WriteUInt64(14, this->version(), output);
695 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
696 15, this->options(), output);
700 if (has_replication_options()) {
701 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
702 16, this->replication_options(), output);
707 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
708 17, this->access(), output);
711 if (!unknown_fields().empty()) {
712 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
713 unknown_fields(), output);
717 ::google::protobuf::uint8* Schema::SerializeWithCachedSizesToArray(
718 ::google::protobuf::uint8* target)
const {
721 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
722 this->name().data(), this->name().length(),
723 ::google::protobuf::internal::WireFormat::SERIALIZE);
725 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
726 1, this->name(), target);
730 if (has_collation()) {
731 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
732 this->collation().data(), this->collation().length(),
733 ::google::protobuf::internal::WireFormat::SERIALIZE);
735 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
736 2, this->collation(), target);
741 target = ::google::protobuf::internal::WireFormatLite::
742 WriteMessageNoVirtualToArray(
743 3, this->engine(), target);
748 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
749 this->catalog().data(), this->catalog().length(),
750 ::google::protobuf::internal::WireFormat::SERIALIZE);
752 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
753 4, this->catalog(), target);
757 if (has_creation_timestamp()) {
758 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->creation_timestamp(), target);
762 if (has_update_timestamp()) {
763 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(12, this->update_timestamp(), target);
768 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
769 this->uuid().data(), this->uuid().length(),
770 ::google::protobuf::internal::WireFormat::SERIALIZE);
772 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
773 13, this->uuid(), target);
778 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(14, this->version(), target);
783 target = ::google::protobuf::internal::WireFormatLite::
784 WriteMessageNoVirtualToArray(
785 15, this->options(), target);
789 if (has_replication_options()) {
790 target = ::google::protobuf::internal::WireFormatLite::
791 WriteMessageNoVirtualToArray(
792 16, this->replication_options(), target);
797 target = ::google::protobuf::internal::WireFormatLite::
798 WriteMessageNoVirtualToArray(
799 17, this->access(), target);
802 if (!unknown_fields().empty()) {
803 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
804 unknown_fields(), target);
809 int Schema::ByteSize()
const {
812 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
816 ::google::protobuf::internal::WireFormatLite::StringSize(
821 if (has_collation()) {
823 ::google::protobuf::internal::WireFormatLite::StringSize(
830 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
837 ::google::protobuf::internal::WireFormatLite::StringSize(
842 if (has_creation_timestamp()) {
844 ::google::protobuf::internal::WireFormatLite::UInt64Size(
845 this->creation_timestamp());
849 if (has_update_timestamp()) {
851 ::google::protobuf::internal::WireFormatLite::UInt64Size(
852 this->update_timestamp());
858 ::google::protobuf::internal::WireFormatLite::StringSize(
865 ::google::protobuf::internal::WireFormatLite::UInt64Size(
870 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
874 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
879 if (has_replication_options()) {
881 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
882 this->replication_options());
888 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
893 if (!unknown_fields().empty()) {
895 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
898 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
899 _cached_size_ = total_size;
900 GOOGLE_SAFE_CONCURRENT_WRITES_END();
904 void Schema::MergeFrom(const ::google::protobuf::Message& from) {
905 GOOGLE_CHECK_NE(&from,
this);
907 ::google::protobuf::internal::dynamic_cast_if_available<const Schema*>(
909 if (source == NULL) {
910 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
916 void Schema::MergeFrom(
const Schema& from) {
917 GOOGLE_CHECK_NE(&from,
this);
918 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
919 if (from.has_name()) {
920 set_name(from.name());
922 if (from.has_collation()) {
923 set_collation(from.collation());
925 if (from.has_engine()) {
926 mutable_engine()->::drizzled::message::Engine::MergeFrom(from.engine());
928 if (from.has_catalog()) {
929 set_catalog(from.catalog());
931 if (from.has_creation_timestamp()) {
932 set_creation_timestamp(from.creation_timestamp());
934 if (from.has_update_timestamp()) {
935 set_update_timestamp(from.update_timestamp());
937 if (from.has_uuid()) {
938 set_uuid(from.uuid());
940 if (from.has_version()) {
941 set_version(from.version());
944 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
945 if (from.has_options()) {
946 mutable_options()->::drizzled::message::Schema_Options::MergeFrom(from.options());
948 if (from.has_replication_options()) {
949 mutable_replication_options()->::drizzled::message::ReplicationOptions::MergeFrom(from.replication_options());
951 if (from.has_access()) {
952 mutable_access()->::drizzled::message::Access::MergeFrom(from.access());
955 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
958 void Schema::CopyFrom(const ::google::protobuf::Message& from) {
959 if (&from ==
this)
return;
964 void Schema::CopyFrom(
const Schema& from) {
965 if (&from ==
this)
return;
970 bool Schema::IsInitialized()
const {
971 if ((_has_bits_[0] & 0x00000035) != 0x00000035)
return false;
974 if (!this->engine().IsInitialized())
return false;
979 void Schema::Swap(
Schema* other) {
981 std::swap(name_, other->name_);
982 std::swap(collation_, other->collation_);
983 std::swap(engine_, other->engine_);
984 std::swap(catalog_, other->catalog_);
985 std::swap(creation_timestamp_, other->creation_timestamp_);
986 std::swap(update_timestamp_, other->update_timestamp_);
987 std::swap(uuid_, other->uuid_);
988 std::swap(version_, other->version_);
989 std::swap(options_, other->options_);
990 std::swap(replication_options_, other->replication_options_);
991 std::swap(access_, other->access_);
992 std::swap(_has_bits_[0], other->_has_bits_[0]);
993 _unknown_fields_.Swap(&other->_unknown_fields_);
994 std::swap(_cached_size_, other->_cached_size_);
998 ::google::protobuf::Metadata Schema::GetMetadata()
const {
999 protobuf_AssignDescriptorsOnce();
1000 ::google::protobuf::Metadata metadata;
1001 metadata.descriptor = Schema_descriptor_;
1002 metadata.reflection = Schema_reflection_;