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() {
156 void Schema_Options::InitAsDefaultInstance() {
159 Schema_Options::Schema_Options(
const Schema_Options& from)
160 : ::
google::protobuf::Message() {
166 void Schema_Options::SharedCtor() {
168 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
171 Schema_Options::~Schema_Options() {
176 void Schema_Options::SharedDtor() {
177 if (
this != default_instance_) {
181 void Schema_Options::SetCachedSize(
int size)
const {
182 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
183 _cached_size_ = size;
184 GOOGLE_SAFE_CONCURRENT_WRITES_END();
186 const ::google::protobuf::Descriptor* Schema_Options::descriptor() {
187 protobuf_AssignDescriptorsOnce();
188 return Schema_Options_descriptor_;
191 const Schema_Options& Schema_Options::default_instance() {
192 if (default_instance_ == NULL) protobuf_AddDesc_schema_2eproto();
193 return *default_instance_;
196 Schema_Options* Schema_Options::default_instance_ = NULL;
198 Schema_Options* Schema_Options::New()
const {
199 return new Schema_Options;
202 void Schema_Options::Clear() {
203 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
204 mutable_unknown_fields()->Clear();
207 bool Schema_Options::MergePartialFromCodedStream(
208 ::google::protobuf::io::CodedInputStream* input) {
209 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
210 ::google::protobuf::uint32 tag;
213 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
215 if (!p.second)
goto handle_unusual;
218 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
219 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
222 DO_(::google::protobuf::internal::WireFormat::SkipField(
223 input, tag, mutable_unknown_fields()));
234 void Schema_Options::SerializeWithCachedSizes(
235 ::google::protobuf::io::CodedOutputStream* output)
const {
237 if (!unknown_fields().empty()) {
238 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
239 unknown_fields(), output);
244 ::google::protobuf::uint8* Schema_Options::SerializeWithCachedSizesToArray(
245 ::google::protobuf::uint8* target)
const {
247 if (!unknown_fields().empty()) {
248 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
249 unknown_fields(), target);
255 int Schema_Options::ByteSize()
const {
258 if (!unknown_fields().empty()) {
260 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
263 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
264 _cached_size_ = total_size;
265 GOOGLE_SAFE_CONCURRENT_WRITES_END();
269 void Schema_Options::MergeFrom(const ::google::protobuf::Message& from) {
270 GOOGLE_CHECK_NE(&from,
this);
271 const Schema_Options* source =
272 ::google::protobuf::internal::dynamic_cast_if_available<const Schema_Options*>(
274 if (source == NULL) {
275 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
281 void Schema_Options::MergeFrom(
const Schema_Options& from) {
282 GOOGLE_CHECK_NE(&from,
this);
283 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
286 void Schema_Options::CopyFrom(const ::google::protobuf::Message& from) {
287 if (&from ==
this)
return;
292 void Schema_Options::CopyFrom(
const Schema_Options& from) {
293 if (&from ==
this)
return;
298 bool Schema_Options::IsInitialized()
const {
303 void Schema_Options::Swap(Schema_Options* other) {
305 _unknown_fields_.Swap(&other->_unknown_fields_);
306 std::swap(_cached_size_, other->_cached_size_);
310 ::google::protobuf::Metadata Schema_Options::GetMetadata()
const {
311 protobuf_AssignDescriptorsOnce();
312 ::google::protobuf::Metadata metadata;
313 metadata.descriptor = Schema_Options_descriptor_;
314 metadata.reflection = Schema_Options_reflection_;
322 const int Schema::kNameFieldNumber;
323 const int Schema::kCollationFieldNumber;
324 const int Schema::kEngineFieldNumber;
325 const int Schema::kCatalogFieldNumber;
326 const int Schema::kCreationTimestampFieldNumber;
327 const int Schema::kUpdateTimestampFieldNumber;
328 const int Schema::kUuidFieldNumber;
329 const int Schema::kVersionFieldNumber;
330 const int Schema::kOptionsFieldNumber;
331 const int Schema::kReplicationOptionsFieldNumber;
332 const int Schema::kAccessFieldNumber;
336 : ::
google::protobuf::Message() {
341 void Schema::InitAsDefaultInstance() {
348 Schema::Schema(
const Schema& from)
349 : ::
google::protobuf::Message() {
355 void Schema::SharedCtor() {
356 ::google::protobuf::internal::GetEmptyString();
358 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
359 collation_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
361 catalog_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
362 creation_timestamp_ = GOOGLE_ULONGLONG(0);
363 update_timestamp_ = GOOGLE_ULONGLONG(0);
364 uuid_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
365 version_ = GOOGLE_ULONGLONG(0);
367 replication_options_ = NULL;
369 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
377 void Schema::SharedDtor() {
378 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
381 if (collation_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
384 if (catalog_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
387 if (uuid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
390 if (
this != default_instance_) {
393 delete replication_options_;
398 void Schema::SetCachedSize(
int size)
const {
399 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
400 _cached_size_ = size;
401 GOOGLE_SAFE_CONCURRENT_WRITES_END();
403 const ::google::protobuf::Descriptor* Schema::descriptor() {
404 protobuf_AssignDescriptorsOnce();
405 return Schema_descriptor_;
408 const Schema& Schema::default_instance() {
409 if (default_instance_ == NULL) protobuf_AddDesc_schema_2eproto();
410 return *default_instance_;
413 Schema* Schema::default_instance_ = NULL;
415 Schema* Schema::New()
const {
419 void Schema::Clear() {
420 #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
421 &reinterpret_cast<Schema*>(16)->f) - \
422 reinterpret_cast<char*>(16))
424 #define ZR_(first, last) do { \
425 size_t f = OFFSET_OF_FIELD_(first); \
426 size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
427 ::memset(&first, 0, n); \
430 if (_has_bits_[0 / 32] & 255) {
431 ZR_(creation_timestamp_, update_timestamp_);
433 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
437 if (has_collation()) {
438 if (collation_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
443 if (engine_ != NULL) engine_->::drizzled::message::Engine::Clear();
446 if (catalog_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
451 if (uuid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
455 version_ = GOOGLE_ULONGLONG(0);
457 if (_has_bits_[8 / 32] & 1792) {
459 if (options_ != NULL) options_->::drizzled::message::Schema_Options::Clear();
461 if (has_replication_options()) {
462 if (replication_options_ != NULL) replication_options_->::drizzled::message::ReplicationOptions::Clear();
465 if (access_ != NULL) access_->::drizzled::message::Access::Clear();
469 #undef OFFSET_OF_FIELD_
472 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
473 mutable_unknown_fields()->Clear();
476 bool Schema::MergePartialFromCodedStream(
477 ::google::protobuf::io::CodedInputStream* input) {
478 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
479 ::google::protobuf::uint32 tag;
482 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
484 if (!p.second)
goto handle_unusual;
485 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
489 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
490 input, this->mutable_name()));
491 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
492 this->name().data(), this->name().length(),
493 ::google::protobuf::internal::WireFormat::PARSE,
498 if (input->ExpectTag(18))
goto parse_collation;
506 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
507 input, this->mutable_collation()));
508 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
509 this->collation().data(), this->collation().length(),
510 ::google::protobuf::internal::WireFormat::PARSE,
515 if (input->ExpectTag(26))
goto parse_engine;
523 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
524 input, mutable_engine()));
528 if (input->ExpectTag(34))
goto parse_catalog;
536 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
537 input, this->mutable_catalog()));
538 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
539 this->catalog().data(), this->catalog().length(),
540 ::google::protobuf::internal::WireFormat::PARSE,
545 if (input->ExpectTag(88))
goto parse_creation_timestamp;
552 parse_creation_timestamp:
553 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
554 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
555 input, &creation_timestamp_)));
556 set_has_creation_timestamp();
560 if (input->ExpectTag(96))
goto parse_update_timestamp;
567 parse_update_timestamp:
568 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
569 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
570 input, &update_timestamp_)));
571 set_has_update_timestamp();
575 if (input->ExpectTag(106))
goto parse_uuid;
583 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
584 input, this->mutable_uuid()));
585 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
586 this->uuid().data(), this->uuid().length(),
587 ::google::protobuf::internal::WireFormat::PARSE,
592 if (input->ExpectTag(112))
goto parse_version;
600 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
601 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
607 if (input->ExpectTag(122))
goto parse_options;
615 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
616 input, mutable_options()));
620 if (input->ExpectTag(130))
goto parse_replication_options;
627 parse_replication_options:
628 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
629 input, mutable_replication_options()));
633 if (input->ExpectTag(138))
goto parse_access;
641 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
642 input, mutable_access()));
646 if (input->ExpectAtEnd())
goto success;
653 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
654 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
657 DO_(::google::protobuf::internal::WireFormat::SkipField(
658 input, tag, mutable_unknown_fields()));
672 void Schema::SerializeWithCachedSizes(
673 ::google::protobuf::io::CodedOutputStream* output)
const {
677 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
678 this->name().data(), this->name().length(),
679 ::google::protobuf::internal::WireFormat::SERIALIZE,
681 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
682 1, this->name(), output);
686 if (has_collation()) {
687 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
688 this->collation().data(), this->collation().length(),
689 ::google::protobuf::internal::WireFormat::SERIALIZE,
691 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
692 2, this->collation(), output);
697 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
698 3, this->engine(), output);
703 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
704 this->catalog().data(), this->catalog().length(),
705 ::google::protobuf::internal::WireFormat::SERIALIZE,
707 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
708 4, this->catalog(), output);
712 if (has_creation_timestamp()) {
713 ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->creation_timestamp(), output);
717 if (has_update_timestamp()) {
718 ::google::protobuf::internal::WireFormatLite::WriteUInt64(12, this->update_timestamp(), output);
723 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
724 this->uuid().data(), this->uuid().length(),
725 ::google::protobuf::internal::WireFormat::SERIALIZE,
727 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
728 13, this->uuid(), output);
733 ::google::protobuf::internal::WireFormatLite::WriteUInt64(14, this->version(), output);
738 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
739 15, this->options(), output);
743 if (has_replication_options()) {
744 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
745 16, this->replication_options(), output);
750 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
751 17, this->access(), output);
754 if (!unknown_fields().empty()) {
755 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
756 unknown_fields(), output);
761 ::google::protobuf::uint8* Schema::SerializeWithCachedSizesToArray(
762 ::google::protobuf::uint8* target)
const {
766 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
767 this->name().data(), this->name().length(),
768 ::google::protobuf::internal::WireFormat::SERIALIZE,
771 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
772 1, this->name(), target);
776 if (has_collation()) {
777 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
778 this->collation().data(), this->collation().length(),
779 ::google::protobuf::internal::WireFormat::SERIALIZE,
782 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
783 2, this->collation(), target);
788 target = ::google::protobuf::internal::WireFormatLite::
789 WriteMessageNoVirtualToArray(
790 3, this->engine(), target);
795 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
796 this->catalog().data(), this->catalog().length(),
797 ::google::protobuf::internal::WireFormat::SERIALIZE,
800 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
801 4, this->catalog(), target);
805 if (has_creation_timestamp()) {
806 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->creation_timestamp(), target);
810 if (has_update_timestamp()) {
811 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(12, this->update_timestamp(), target);
816 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
817 this->uuid().data(), this->uuid().length(),
818 ::google::protobuf::internal::WireFormat::SERIALIZE,
821 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
822 13, this->uuid(), target);
827 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(14, this->version(), target);
832 target = ::google::protobuf::internal::WireFormatLite::
833 WriteMessageNoVirtualToArray(
834 15, this->options(), target);
838 if (has_replication_options()) {
839 target = ::google::protobuf::internal::WireFormatLite::
840 WriteMessageNoVirtualToArray(
841 16, this->replication_options(), target);
846 target = ::google::protobuf::internal::WireFormatLite::
847 WriteMessageNoVirtualToArray(
848 17, this->access(), target);
851 if (!unknown_fields().empty()) {
852 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
853 unknown_fields(), target);
859 int Schema::ByteSize()
const {
862 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
866 ::google::protobuf::internal::WireFormatLite::StringSize(
871 if (has_collation()) {
873 ::google::protobuf::internal::WireFormatLite::StringSize(
880 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
887 ::google::protobuf::internal::WireFormatLite::StringSize(
892 if (has_creation_timestamp()) {
894 ::google::protobuf::internal::WireFormatLite::UInt64Size(
895 this->creation_timestamp());
899 if (has_update_timestamp()) {
901 ::google::protobuf::internal::WireFormatLite::UInt64Size(
902 this->update_timestamp());
908 ::google::protobuf::internal::WireFormatLite::StringSize(
915 ::google::protobuf::internal::WireFormatLite::UInt64Size(
920 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
924 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
929 if (has_replication_options()) {
931 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
932 this->replication_options());
938 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
943 if (!unknown_fields().empty()) {
945 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
948 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
949 _cached_size_ = total_size;
950 GOOGLE_SAFE_CONCURRENT_WRITES_END();
954 void Schema::MergeFrom(const ::google::protobuf::Message& from) {
955 GOOGLE_CHECK_NE(&from,
this);
957 ::google::protobuf::internal::dynamic_cast_if_available<const Schema*>(
959 if (source == NULL) {
960 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
966 void Schema::MergeFrom(
const Schema& from) {
967 GOOGLE_CHECK_NE(&from,
this);
968 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
969 if (from.has_name()) {
970 set_name(from.name());
972 if (from.has_collation()) {
973 set_collation(from.collation());
975 if (from.has_engine()) {
976 mutable_engine()->::drizzled::message::Engine::MergeFrom(from.engine());
978 if (from.has_catalog()) {
979 set_catalog(from.catalog());
981 if (from.has_creation_timestamp()) {
982 set_creation_timestamp(from.creation_timestamp());
984 if (from.has_update_timestamp()) {
985 set_update_timestamp(from.update_timestamp());
987 if (from.has_uuid()) {
988 set_uuid(from.uuid());
990 if (from.has_version()) {
991 set_version(from.version());
994 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
995 if (from.has_options()) {
996 mutable_options()->::drizzled::message::Schema_Options::MergeFrom(from.options());
998 if (from.has_replication_options()) {
999 mutable_replication_options()->::drizzled::message::ReplicationOptions::MergeFrom(from.replication_options());
1001 if (from.has_access()) {
1002 mutable_access()->::drizzled::message::Access::MergeFrom(from.access());
1005 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1008 void Schema::CopyFrom(const ::google::protobuf::Message& from) {
1009 if (&from ==
this)
return;
1014 void Schema::CopyFrom(
const Schema& from) {
1015 if (&from ==
this)
return;
1020 bool Schema::IsInitialized()
const {
1021 if ((_has_bits_[0] & 0x00000035) != 0x00000035)
return false;
1024 if (!this->engine().IsInitialized())
return false;
1029 void Schema::Swap(
Schema* other) {
1030 if (other !=
this) {
1031 std::swap(name_, other->name_);
1032 std::swap(collation_, other->collation_);
1033 std::swap(engine_, other->engine_);
1034 std::swap(catalog_, other->catalog_);
1035 std::swap(creation_timestamp_, other->creation_timestamp_);
1036 std::swap(update_timestamp_, other->update_timestamp_);
1037 std::swap(uuid_, other->uuid_);
1038 std::swap(version_, other->version_);
1039 std::swap(options_, other->options_);
1040 std::swap(replication_options_, other->replication_options_);
1041 std::swap(access_, other->access_);
1042 std::swap(_has_bits_[0], other->_has_bits_[0]);
1043 _unknown_fields_.Swap(&other->_unknown_fields_);
1044 std::swap(_cached_size_, other->_cached_size_);
1048 ::google::protobuf::Metadata Schema::GetMetadata()
const {
1049 protobuf_AssignDescriptorsOnce();
1050 ::google::protobuf::Metadata metadata;
1051 metadata.descriptor = Schema_descriptor_;
1052 metadata.reflection = Schema_reflection_;
TODO: Rename this file - func.h is stupid.