3 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
8 #include <google/protobuf/stubs/once.h>
9 #include <google/protobuf/io/coded_stream.h>
10 #include <google/protobuf/wire_format_lite_inl.h>
11 #include <google/protobuf/descriptor.h>
12 #include <google/protobuf/reflection_ops.h>
13 #include <google/protobuf/wire_format.h>
21 const ::google::protobuf::Descriptor* Schema_descriptor_ = NULL;
22 const ::google::protobuf::internal::GeneratedMessageReflection*
23 Schema_reflection_ = NULL;
24 const ::google::protobuf::Descriptor* Schema_Options_descriptor_ = NULL;
25 const ::google::protobuf::internal::GeneratedMessageReflection*
26 Schema_Options_reflection_ = NULL;
31 void protobuf_AssignDesc_schema_2eproto() {
32 protobuf_AddDesc_schema_2eproto();
33 const ::google::protobuf::FileDescriptor* file =
34 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
36 GOOGLE_CHECK(file != NULL);
37 Schema_descriptor_ = file->message_type(0);
38 static const int Schema_offsets_[11] = {
39 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, name_),
40 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, collation_),
41 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, engine_),
42 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, catalog_),
43 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, creation_timestamp_),
44 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, update_timestamp_),
45 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, uuid_),
46 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, version_),
47 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, options_),
48 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, replication_options_),
49 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, access_),
52 new ::google::protobuf::internal::GeneratedMessageReflection(
54 Schema::default_instance_,
56 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, _has_bits_[0]),
57 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(
Schema, _unknown_fields_),
59 ::google::protobuf::DescriptorPool::generated_pool(),
60 ::google::protobuf::MessageFactory::generated_factory(),
62 Schema_Options_descriptor_ = Schema_descriptor_->nested_type(0);
63 static const int Schema_Options_offsets_[1] = {
65 Schema_Options_reflection_ =
66 new ::google::protobuf::internal::GeneratedMessageReflection(
67 Schema_Options_descriptor_,
68 Schema_Options::default_instance_,
69 Schema_Options_offsets_,
70 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema_Options, _has_bits_[0]),
71 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema_Options, _unknown_fields_),
73 ::google::protobuf::DescriptorPool::generated_pool(),
74 ::google::protobuf::MessageFactory::generated_factory(),
75 sizeof(Schema_Options));
80 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
81 inline void protobuf_AssignDescriptorsOnce() {
82 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
83 &protobuf_AssignDesc_schema_2eproto);
86 void protobuf_RegisterTypes(const ::std::string&) {
87 protobuf_AssignDescriptorsOnce();
88 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
89 Schema_descriptor_, &Schema::default_instance());
90 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
91 Schema_Options_descriptor_, &Schema_Options::default_instance());
96 void protobuf_ShutdownFile_schema_2eproto() {
97 delete Schema::default_instance_;
98 delete Schema_reflection_;
99 delete Schema_Options::default_instance_;
100 delete Schema_Options_reflection_;
103 void protobuf_AddDesc_schema_2eproto() {
104 static bool already_here =
false;
105 if (already_here)
return;
107 GOOGLE_PROTOBUF_VERIFY_VERSION;
109 ::drizzled::message::protobuf_AddDesc_engine_2eproto();
110 ::drizzled::message::protobuf_AddDesc_access_2eproto();
111 ::drizzled::message::protobuf_AddDesc_replication_5foptions_2eproto();
112 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
113 "\n\014schema.proto\022\020drizzled.message\032\014engine"
114 ".proto\032\014access.proto\032\031replication_option"
115 "s.proto\"\352\002\n\006Schema\022\014\n\004name\030\001 \002(\t\022\021\n\tcoll"
116 "ation\030\002 \001(\t\022(\n\006engine\030\003 \002(\0132\030.drizzled.m"
117 "essage.Engine\022\017\n\007catalog\030\004 \001(\t\022\035\n\022creati"
118 "on_timestamp\030\013 \002(\004:\0010\022\033\n\020update_timestam"
119 "p\030\014 \002(\004:\0010\022\014\n\004uuid\030\r \001(\t\022\017\n\007version\030\016 \001("
120 "\004\0221\n\007options\030\017 \001(\0132 .drizzled.message.Sc"
121 "hema.Options\022A\n\023replication_options\030\020 \001("
122 "\0132$.drizzled.message.ReplicationOptions\022"
123 "(\n\006access\030\021 \001(\0132\030.drizzled.message.Acces"
124 "s\032\t\n\007OptionsB\'\n\024org.drizzle.messagesB\rSc"
125 "hemaMessageH\001", 493);
126 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
127 "schema.proto", &protobuf_RegisterTypes);
128 Schema::default_instance_ =
new Schema();
129 Schema_Options::default_instance_ =
new Schema_Options();
130 Schema::default_instance_->InitAsDefaultInstance();
131 Schema_Options::default_instance_->InitAsDefaultInstance();
132 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_schema_2eproto);
138 protobuf_AddDesc_schema_2eproto();
140 } static_descriptor_initializer_schema_2eproto_;
148 Schema_Options::Schema_Options()
149 : ::google::protobuf::Message() {
153 void Schema_Options::InitAsDefaultInstance() {
156 Schema_Options::Schema_Options(
const Schema_Options& from)
157 : ::google::protobuf::Message() {
162 void Schema_Options::SharedCtor() {
164 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
167 Schema_Options::~Schema_Options() {
171 void Schema_Options::SharedDtor() {
172 if (
this != default_instance_) {
176 void Schema_Options::SetCachedSize(
int size)
const {
177 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
178 _cached_size_ = size;
179 GOOGLE_SAFE_CONCURRENT_WRITES_END();
181 const ::google::protobuf::Descriptor* Schema_Options::descriptor() {
182 protobuf_AssignDescriptorsOnce();
183 return Schema_Options_descriptor_;
186 const Schema_Options& Schema_Options::default_instance() {
187 if (default_instance_ == NULL) protobuf_AddDesc_schema_2eproto();
return *default_instance_;
190 Schema_Options* Schema_Options::default_instance_ = NULL;
192 Schema_Options* Schema_Options::New()
const {
193 return new Schema_Options;
196 void Schema_Options::Clear() {
197 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
198 mutable_unknown_fields()->Clear();
201 bool Schema_Options::MergePartialFromCodedStream(
202 ::google::protobuf::io::CodedInputStream* input) {
203 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
204 ::google::protobuf::uint32 tag;
205 while ((tag = input->ReadTag()) != 0) {
206 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
207 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
210 DO_(::google::protobuf::internal::WireFormat::SkipField(
211 input, tag, mutable_unknown_fields()));
217 void Schema_Options::SerializeWithCachedSizes(
218 ::google::protobuf::io::CodedOutputStream* output)
const {
219 if (!unknown_fields().empty()) {
220 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
221 unknown_fields(), output);
225 ::google::protobuf::uint8* Schema_Options::SerializeWithCachedSizesToArray(
226 ::google::protobuf::uint8* target)
const {
227 if (!unknown_fields().empty()) {
228 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
229 unknown_fields(), target);
234 int Schema_Options::ByteSize()
const {
237 if (!unknown_fields().empty()) {
239 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
242 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
243 _cached_size_ = total_size;
244 GOOGLE_SAFE_CONCURRENT_WRITES_END();
248 void Schema_Options::MergeFrom(const ::google::protobuf::Message& from) {
249 GOOGLE_CHECK_NE(&from,
this);
250 const Schema_Options* source =
251 ::google::protobuf::internal::dynamic_cast_if_available<const Schema_Options*>(
253 if (source == NULL) {
254 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
260 void Schema_Options::MergeFrom(
const Schema_Options& from) {
261 GOOGLE_CHECK_NE(&from,
this);
262 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
265 void Schema_Options::CopyFrom(const ::google::protobuf::Message& from) {
266 if (&from ==
this)
return;
271 void Schema_Options::CopyFrom(
const Schema_Options& from) {
272 if (&from ==
this)
return;
277 bool Schema_Options::IsInitialized()
const {
282 void Schema_Options::Swap(Schema_Options* other) {
284 _unknown_fields_.Swap(&other->_unknown_fields_);
285 std::swap(_cached_size_, other->_cached_size_);
289 ::google::protobuf::Metadata Schema_Options::GetMetadata()
const {
290 protobuf_AssignDescriptorsOnce();
291 ::google::protobuf::Metadata metadata;
292 metadata.descriptor = Schema_Options_descriptor_;
293 metadata.reflection = Schema_Options_reflection_;
301 const int Schema::kNameFieldNumber;
302 const int Schema::kCollationFieldNumber;
303 const int Schema::kEngineFieldNumber;
304 const int Schema::kCatalogFieldNumber;
305 const int Schema::kCreationTimestampFieldNumber;
306 const int Schema::kUpdateTimestampFieldNumber;
307 const int Schema::kUuidFieldNumber;
308 const int Schema::kVersionFieldNumber;
309 const int Schema::kOptionsFieldNumber;
310 const int Schema::kReplicationOptionsFieldNumber;
311 const int Schema::kAccessFieldNumber;
315 : ::google::protobuf::Message() {
319 void Schema::InitAsDefaultInstance() {
326 Schema::Schema(
const Schema& from)
327 : ::google::protobuf::Message() {
332 void Schema::SharedCtor() {
334 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
335 collation_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
337 catalog_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
338 creation_timestamp_ = GOOGLE_ULONGLONG(0);
339 update_timestamp_ = GOOGLE_ULONGLONG(0);
340 uuid_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
341 version_ = GOOGLE_ULONGLONG(0);
343 replication_options_ = NULL;
345 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
352 void Schema::SharedDtor() {
353 if (name_ != &::google::protobuf::internal::kEmptyString) {
356 if (collation_ != &::google::protobuf::internal::kEmptyString) {
359 if (catalog_ != &::google::protobuf::internal::kEmptyString) {
362 if (uuid_ != &::google::protobuf::internal::kEmptyString) {
365 if (
this != default_instance_) {
368 delete replication_options_;
373 void Schema::SetCachedSize(
int size)
const {
374 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
375 _cached_size_ = size;
376 GOOGLE_SAFE_CONCURRENT_WRITES_END();
378 const ::google::protobuf::Descriptor* Schema::descriptor() {
379 protobuf_AssignDescriptorsOnce();
380 return Schema_descriptor_;
383 const Schema& Schema::default_instance() {
384 if (default_instance_ == NULL) protobuf_AddDesc_schema_2eproto();
return *default_instance_;
387 Schema* Schema::default_instance_ = NULL;
389 Schema* Schema::New()
const {
393 void Schema::Clear() {
394 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
396 if (name_ != &::google::protobuf::internal::kEmptyString) {
400 if (has_collation()) {
401 if (collation_ != &::google::protobuf::internal::kEmptyString) {
406 if (engine_ != NULL) engine_->::drizzled::message::Engine::Clear();
409 if (catalog_ != &::google::protobuf::internal::kEmptyString) {
413 creation_timestamp_ = GOOGLE_ULONGLONG(0);
414 update_timestamp_ = GOOGLE_ULONGLONG(0);
416 if (uuid_ != &::google::protobuf::internal::kEmptyString) {
420 version_ = GOOGLE_ULONGLONG(0);
422 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
424 if (options_ != NULL) options_->::drizzled::message::Schema_Options::Clear();
426 if (has_replication_options()) {
427 if (replication_options_ != NULL) replication_options_->::drizzled::message::ReplicationOptions::Clear();
430 if (access_ != NULL) access_->::drizzled::message::Access::Clear();
433 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
434 mutable_unknown_fields()->Clear();
437 bool Schema::MergePartialFromCodedStream(
438 ::google::protobuf::io::CodedInputStream* input) {
439 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
440 ::google::protobuf::uint32 tag;
441 while ((tag = input->ReadTag()) != 0) {
442 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
445 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
446 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
447 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
448 input, this->mutable_name()));
449 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
450 this->name().data(), this->name().length(),
451 ::google::protobuf::internal::WireFormat::PARSE);
453 goto handle_uninterpreted;
455 if (input->ExpectTag(18))
goto parse_collation;
461 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
462 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
464 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
465 input, this->mutable_collation()));
466 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
467 this->collation().data(), this->collation().length(),
468 ::google::protobuf::internal::WireFormat::PARSE);
470 goto handle_uninterpreted;
472 if (input->ExpectTag(26))
goto parse_engine;
478 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
479 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
481 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
482 input, mutable_engine()));
484 goto handle_uninterpreted;
486 if (input->ExpectTag(34))
goto parse_catalog;
492 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
493 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
495 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
496 input, this->mutable_catalog()));
497 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
498 this->catalog().data(), this->catalog().length(),
499 ::google::protobuf::internal::WireFormat::PARSE);
501 goto handle_uninterpreted;
503 if (input->ExpectTag(88))
goto parse_creation_timestamp;
509 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
510 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
511 parse_creation_timestamp:
512 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
513 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
514 input, &creation_timestamp_)));
515 set_has_creation_timestamp();
517 goto handle_uninterpreted;
519 if (input->ExpectTag(96))
goto parse_update_timestamp;
525 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
526 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
527 parse_update_timestamp:
528 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
529 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
530 input, &update_timestamp_)));
531 set_has_update_timestamp();
533 goto handle_uninterpreted;
535 if (input->ExpectTag(106))
goto parse_uuid;
541 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
542 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
544 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
545 input, this->mutable_uuid()));
546 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
547 this->uuid().data(), this->uuid().length(),
548 ::google::protobuf::internal::WireFormat::PARSE);
550 goto handle_uninterpreted;
552 if (input->ExpectTag(112))
goto parse_version;
558 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
559 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
561 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
562 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
566 goto handle_uninterpreted;
568 if (input->ExpectTag(122))
goto parse_options;
574 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
575 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
577 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
578 input, mutable_options()));
580 goto handle_uninterpreted;
582 if (input->ExpectTag(130))
goto parse_replication_options;
588 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
589 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
590 parse_replication_options:
591 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
592 input, mutable_replication_options()));
594 goto handle_uninterpreted;
596 if (input->ExpectTag(138))
goto parse_access;
602 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
603 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
605 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
606 input, mutable_access()));
608 goto handle_uninterpreted;
610 if (input->ExpectAtEnd())
return true;
615 handle_uninterpreted:
616 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
617 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
620 DO_(::google::protobuf::internal::WireFormat::SkipField(
621 input, tag, mutable_unknown_fields()));
630 void Schema::SerializeWithCachedSizes(
631 ::google::protobuf::io::CodedOutputStream* output)
const {
634 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
635 this->name().data(), this->name().length(),
636 ::google::protobuf::internal::WireFormat::SERIALIZE);
637 ::google::protobuf::internal::WireFormatLite::WriteString(
638 1, this->name(), output);
642 if (has_collation()) {
643 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
644 this->collation().data(), this->collation().length(),
645 ::google::protobuf::internal::WireFormat::SERIALIZE);
646 ::google::protobuf::internal::WireFormatLite::WriteString(
647 2, this->collation(), output);
652 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
653 3, this->engine(), output);
658 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
659 this->catalog().data(), this->catalog().length(),
660 ::google::protobuf::internal::WireFormat::SERIALIZE);
661 ::google::protobuf::internal::WireFormatLite::WriteString(
662 4, this->catalog(), output);
666 if (has_creation_timestamp()) {
667 ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->creation_timestamp(), output);
671 if (has_update_timestamp()) {
672 ::google::protobuf::internal::WireFormatLite::WriteUInt64(12, this->update_timestamp(), output);
677 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
678 this->uuid().data(), this->uuid().length(),
679 ::google::protobuf::internal::WireFormat::SERIALIZE);
680 ::google::protobuf::internal::WireFormatLite::WriteString(
681 13, this->uuid(), output);
686 ::google::protobuf::internal::WireFormatLite::WriteUInt64(14, this->version(), output);
691 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
692 15, this->options(), output);
696 if (has_replication_options()) {
697 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
698 16, this->replication_options(), output);
703 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
704 17, this->access(), output);
707 if (!unknown_fields().empty()) {
708 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
709 unknown_fields(), output);
713 ::google::protobuf::uint8* Schema::SerializeWithCachedSizesToArray(
714 ::google::protobuf::uint8* target)
const {
717 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
718 this->name().data(), this->name().length(),
719 ::google::protobuf::internal::WireFormat::SERIALIZE);
721 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
722 1, this->name(), target);
726 if (has_collation()) {
727 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
728 this->collation().data(), this->collation().length(),
729 ::google::protobuf::internal::WireFormat::SERIALIZE);
731 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
732 2, this->collation(), target);
737 target = ::google::protobuf::internal::WireFormatLite::
738 WriteMessageNoVirtualToArray(
739 3, this->engine(), target);
744 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
745 this->catalog().data(), this->catalog().length(),
746 ::google::protobuf::internal::WireFormat::SERIALIZE);
748 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
749 4, this->catalog(), target);
753 if (has_creation_timestamp()) {
754 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->creation_timestamp(), target);
758 if (has_update_timestamp()) {
759 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(12, this->update_timestamp(), target);
764 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
765 this->uuid().data(), this->uuid().length(),
766 ::google::protobuf::internal::WireFormat::SERIALIZE);
768 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
769 13, this->uuid(), target);
774 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(14, this->version(), target);
779 target = ::google::protobuf::internal::WireFormatLite::
780 WriteMessageNoVirtualToArray(
781 15, this->options(), target);
785 if (has_replication_options()) {
786 target = ::google::protobuf::internal::WireFormatLite::
787 WriteMessageNoVirtualToArray(
788 16, this->replication_options(), target);
793 target = ::google::protobuf::internal::WireFormatLite::
794 WriteMessageNoVirtualToArray(
795 17, this->access(), target);
798 if (!unknown_fields().empty()) {
799 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
800 unknown_fields(), target);
805 int Schema::ByteSize()
const {
808 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
812 ::google::protobuf::internal::WireFormatLite::StringSize(
817 if (has_collation()) {
819 ::google::protobuf::internal::WireFormatLite::StringSize(
826 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
833 ::google::protobuf::internal::WireFormatLite::StringSize(
838 if (has_creation_timestamp()) {
840 ::google::protobuf::internal::WireFormatLite::UInt64Size(
841 this->creation_timestamp());
845 if (has_update_timestamp()) {
847 ::google::protobuf::internal::WireFormatLite::UInt64Size(
848 this->update_timestamp());
854 ::google::protobuf::internal::WireFormatLite::StringSize(
861 ::google::protobuf::internal::WireFormatLite::UInt64Size(
866 if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
870 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
875 if (has_replication_options()) {
877 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
878 this->replication_options());
884 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
889 if (!unknown_fields().empty()) {
891 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
894 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
895 _cached_size_ = total_size;
896 GOOGLE_SAFE_CONCURRENT_WRITES_END();
900 void Schema::MergeFrom(const ::google::protobuf::Message& from) {
901 GOOGLE_CHECK_NE(&from,
this);
903 ::google::protobuf::internal::dynamic_cast_if_available<const Schema*>(
905 if (source == NULL) {
906 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
912 void Schema::MergeFrom(
const Schema& from) {
913 GOOGLE_CHECK_NE(&from,
this);
914 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
915 if (from.has_name()) {
916 set_name(from.name());
918 if (from.has_collation()) {
919 set_collation(from.collation());
921 if (from.has_engine()) {
922 mutable_engine()->::drizzled::message::Engine::MergeFrom(from.engine());
924 if (from.has_catalog()) {
925 set_catalog(from.catalog());
927 if (from.has_creation_timestamp()) {
928 set_creation_timestamp(from.creation_timestamp());
930 if (from.has_update_timestamp()) {
931 set_update_timestamp(from.update_timestamp());
933 if (from.has_uuid()) {
934 set_uuid(from.uuid());
936 if (from.has_version()) {
937 set_version(from.version());
940 if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
941 if (from.has_options()) {
942 mutable_options()->::drizzled::message::Schema_Options::MergeFrom(from.options());
944 if (from.has_replication_options()) {
945 mutable_replication_options()->::drizzled::message::ReplicationOptions::MergeFrom(from.replication_options());
947 if (from.has_access()) {
948 mutable_access()->::drizzled::message::Access::MergeFrom(from.access());
951 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
954 void Schema::CopyFrom(const ::google::protobuf::Message& from) {
955 if (&from ==
this)
return;
960 void Schema::CopyFrom(
const Schema& from) {
961 if (&from ==
this)
return;
966 bool Schema::IsInitialized()
const {
967 if ((_has_bits_[0] & 0x00000035) != 0x00000035)
return false;
970 if (!this->engine().IsInitialized())
return false;
975 void Schema::Swap(
Schema* other) {
977 std::swap(name_, other->name_);
978 std::swap(collation_, other->collation_);
979 std::swap(engine_, other->engine_);
980 std::swap(catalog_, other->catalog_);
981 std::swap(creation_timestamp_, other->creation_timestamp_);
982 std::swap(update_timestamp_, other->update_timestamp_);
983 std::swap(uuid_, other->uuid_);
984 std::swap(version_, other->version_);
985 std::swap(options_, other->options_);
986 std::swap(replication_options_, other->replication_options_);
987 std::swap(access_, other->access_);
988 std::swap(_has_bits_[0], other->_has_bits_[0]);
989 _unknown_fields_.Swap(&other->_unknown_fields_);
990 std::swap(_cached_size_, other->_cached_size_);
994 ::google::protobuf::Metadata Schema::GetMetadata()
const {
995 protobuf_AssignDescriptorsOnce();
996 ::google::protobuf::Metadata metadata;
997 metadata.descriptor = Schema_descriptor_;
998 metadata.reflection = Schema_reflection_;