Drizzled Public API Documentation

schema.pb.cc
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 
3 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
4 #include "schema.pb.h"
5 
6 #include <algorithm>
7 
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>
14 // @@protoc_insertion_point(includes)
15 
16 namespace drizzled {
17 namespace message {
18 
19 namespace {
20 
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;
27 
28 } // namespace
29 
30 
31 void protobuf_AssignDesc_schema_2eproto() {
32  protobuf_AddDesc_schema_2eproto();
33  const ::google::protobuf::FileDescriptor* file =
34  ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
35  "schema.proto");
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_),
50  };
51  Schema_reflection_ =
52  new ::google::protobuf::internal::GeneratedMessageReflection(
53  Schema_descriptor_,
54  Schema::default_instance_,
55  Schema_offsets_,
56  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema, _has_bits_[0]),
57  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Schema, _unknown_fields_),
58  -1,
59  ::google::protobuf::DescriptorPool::generated_pool(),
60  ::google::protobuf::MessageFactory::generated_factory(),
61  sizeof(Schema));
62  Schema_Options_descriptor_ = Schema_descriptor_->nested_type(0);
63  static const int Schema_Options_offsets_[1] = {
64  };
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_),
72  -1,
73  ::google::protobuf::DescriptorPool::generated_pool(),
74  ::google::protobuf::MessageFactory::generated_factory(),
75  sizeof(Schema_Options));
76 }
77 
78 namespace {
79 
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);
84 }
85 
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());
92 }
93 
94 } // namespace
95 
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_;
101 }
102 
103 void protobuf_AddDesc_schema_2eproto() {
104  static bool already_here = false;
105  if (already_here) return;
106  already_here = true;
107  GOOGLE_PROTOBUF_VERIFY_VERSION;
108 
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);
133 }
134 
135 // Force AddDescriptors() to be called at static initialization time.
138  protobuf_AddDesc_schema_2eproto();
139  }
140 } static_descriptor_initializer_schema_2eproto_;
141 
142 
143 // ===================================================================
144 
145 #ifndef _MSC_VER
146 #endif // !_MSC_VER
147 
148 Schema_Options::Schema_Options()
149  : ::google::protobuf::Message() {
150  SharedCtor();
151 }
152 
153 void Schema_Options::InitAsDefaultInstance() {
154 }
155 
156 Schema_Options::Schema_Options(const Schema_Options& from)
157  : ::google::protobuf::Message() {
158  SharedCtor();
159  MergeFrom(from);
160 }
161 
162 void Schema_Options::SharedCtor() {
163  _cached_size_ = 0;
164  ::memset(_has_bits_, 0, sizeof(_has_bits_));
165 }
166 
167 Schema_Options::~Schema_Options() {
168  SharedDtor();
169 }
170 
171 void Schema_Options::SharedDtor() {
172  if (this != default_instance_) {
173  }
174 }
175 
176 void Schema_Options::SetCachedSize(int size) const {
177  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
178  _cached_size_ = size;
179  GOOGLE_SAFE_CONCURRENT_WRITES_END();
180 }
181 const ::google::protobuf::Descriptor* Schema_Options::descriptor() {
182  protobuf_AssignDescriptorsOnce();
183  return Schema_Options_descriptor_;
184 }
185 
186 const Schema_Options& Schema_Options::default_instance() {
187  if (default_instance_ == NULL) protobuf_AddDesc_schema_2eproto(); return *default_instance_;
188 }
189 
190 Schema_Options* Schema_Options::default_instance_ = NULL;
191 
192 Schema_Options* Schema_Options::New() const {
193  return new Schema_Options;
194 }
195 
196 void Schema_Options::Clear() {
197  ::memset(_has_bits_, 0, sizeof(_has_bits_));
198  mutable_unknown_fields()->Clear();
199 }
200 
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) {
208  return true;
209  }
210  DO_(::google::protobuf::internal::WireFormat::SkipField(
211  input, tag, mutable_unknown_fields()));
212  }
213  return true;
214 #undef DO_
215 }
216 
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);
222  }
223 }
224 
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);
230  }
231  return target;
232 }
233 
234 int Schema_Options::ByteSize() const {
235  int total_size = 0;
236 
237  if (!unknown_fields().empty()) {
238  total_size +=
239  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
240  unknown_fields());
241  }
242  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
243  _cached_size_ = total_size;
244  GOOGLE_SAFE_CONCURRENT_WRITES_END();
245  return total_size;
246 }
247 
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*>(
252  &from);
253  if (source == NULL) {
254  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
255  } else {
256  MergeFrom(*source);
257  }
258 }
259 
260 void Schema_Options::MergeFrom(const Schema_Options& from) {
261  GOOGLE_CHECK_NE(&from, this);
262  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
263 }
264 
265 void Schema_Options::CopyFrom(const ::google::protobuf::Message& from) {
266  if (&from == this) return;
267  Clear();
268  MergeFrom(from);
269 }
270 
271 void Schema_Options::CopyFrom(const Schema_Options& from) {
272  if (&from == this) return;
273  Clear();
274  MergeFrom(from);
275 }
276 
277 bool Schema_Options::IsInitialized() const {
278 
279  return true;
280 }
281 
282 void Schema_Options::Swap(Schema_Options* other) {
283  if (other != this) {
284  _unknown_fields_.Swap(&other->_unknown_fields_);
285  std::swap(_cached_size_, other->_cached_size_);
286  }
287 }
288 
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_;
294  return metadata;
295 }
296 
297 
298 // -------------------------------------------------------------------
299 
300 #ifndef _MSC_VER
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;
312 #endif // !_MSC_VER
313 
314 Schema::Schema()
315  : ::google::protobuf::Message() {
316  SharedCtor();
317 }
318 
319 void Schema::InitAsDefaultInstance() {
320  engine_ = const_cast< ::drizzled::message::Engine*>(&::drizzled::message::Engine::default_instance());
321  options_ = const_cast< ::drizzled::message::Schema_Options*>(&::drizzled::message::Schema_Options::default_instance());
322  replication_options_ = const_cast< ::drizzled::message::ReplicationOptions*>(&::drizzled::message::ReplicationOptions::default_instance());
323  access_ = const_cast< ::drizzled::message::Access*>(&::drizzled::message::Access::default_instance());
324 }
325 
326 Schema::Schema(const Schema& from)
327  : ::google::protobuf::Message() {
328  SharedCtor();
329  MergeFrom(from);
330 }
331 
332 void Schema::SharedCtor() {
333  _cached_size_ = 0;
334  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
335  collation_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
336  engine_ = NULL;
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);
342  options_ = NULL;
343  replication_options_ = NULL;
344  access_ = NULL;
345  ::memset(_has_bits_, 0, sizeof(_has_bits_));
346 }
347 
348 Schema::~Schema() {
349  SharedDtor();
350 }
351 
352 void Schema::SharedDtor() {
353  if (name_ != &::google::protobuf::internal::kEmptyString) {
354  delete name_;
355  }
356  if (collation_ != &::google::protobuf::internal::kEmptyString) {
357  delete collation_;
358  }
359  if (catalog_ != &::google::protobuf::internal::kEmptyString) {
360  delete catalog_;
361  }
362  if (uuid_ != &::google::protobuf::internal::kEmptyString) {
363  delete uuid_;
364  }
365  if (this != default_instance_) {
366  delete engine_;
367  delete options_;
368  delete replication_options_;
369  delete access_;
370  }
371 }
372 
373 void Schema::SetCachedSize(int size) const {
374  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
375  _cached_size_ = size;
376  GOOGLE_SAFE_CONCURRENT_WRITES_END();
377 }
378 const ::google::protobuf::Descriptor* Schema::descriptor() {
379  protobuf_AssignDescriptorsOnce();
380  return Schema_descriptor_;
381 }
382 
383 const Schema& Schema::default_instance() {
384  if (default_instance_ == NULL) protobuf_AddDesc_schema_2eproto(); return *default_instance_;
385 }
386 
387 Schema* Schema::default_instance_ = NULL;
388 
389 Schema* Schema::New() const {
390  return new Schema;
391 }
392 
393 void Schema::Clear() {
394  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
395  if (has_name()) {
396  if (name_ != &::google::protobuf::internal::kEmptyString) {
397  name_->clear();
398  }
399  }
400  if (has_collation()) {
401  if (collation_ != &::google::protobuf::internal::kEmptyString) {
402  collation_->clear();
403  }
404  }
405  if (has_engine()) {
406  if (engine_ != NULL) engine_->::drizzled::message::Engine::Clear();
407  }
408  if (has_catalog()) {
409  if (catalog_ != &::google::protobuf::internal::kEmptyString) {
410  catalog_->clear();
411  }
412  }
413  creation_timestamp_ = GOOGLE_ULONGLONG(0);
414  update_timestamp_ = GOOGLE_ULONGLONG(0);
415  if (has_uuid()) {
416  if (uuid_ != &::google::protobuf::internal::kEmptyString) {
417  uuid_->clear();
418  }
419  }
420  version_ = GOOGLE_ULONGLONG(0);
421  }
422  if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
423  if (has_options()) {
424  if (options_ != NULL) options_->::drizzled::message::Schema_Options::Clear();
425  }
426  if (has_replication_options()) {
427  if (replication_options_ != NULL) replication_options_->::drizzled::message::ReplicationOptions::Clear();
428  }
429  if (has_access()) {
430  if (access_ != NULL) access_->::drizzled::message::Access::Clear();
431  }
432  }
433  ::memset(_has_bits_, 0, sizeof(_has_bits_));
434  mutable_unknown_fields()->Clear();
435 }
436 
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)) {
443  // required string name = 1;
444  case 1: {
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);
452  } else {
453  goto handle_uninterpreted;
454  }
455  if (input->ExpectTag(18)) goto parse_collation;
456  break;
457  }
458 
459  // optional string collation = 2;
460  case 2: {
461  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
462  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
463  parse_collation:
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);
469  } else {
470  goto handle_uninterpreted;
471  }
472  if (input->ExpectTag(26)) goto parse_engine;
473  break;
474  }
475 
476  // required .drizzled.message.Engine engine = 3;
477  case 3: {
478  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
479  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
480  parse_engine:
481  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
482  input, mutable_engine()));
483  } else {
484  goto handle_uninterpreted;
485  }
486  if (input->ExpectTag(34)) goto parse_catalog;
487  break;
488  }
489 
490  // optional string catalog = 4;
491  case 4: {
492  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
493  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
494  parse_catalog:
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);
500  } else {
501  goto handle_uninterpreted;
502  }
503  if (input->ExpectTag(88)) goto parse_creation_timestamp;
504  break;
505  }
506 
507  // required uint64 creation_timestamp = 11 [default = 0];
508  case 11: {
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();
516  } else {
517  goto handle_uninterpreted;
518  }
519  if (input->ExpectTag(96)) goto parse_update_timestamp;
520  break;
521  }
522 
523  // required uint64 update_timestamp = 12 [default = 0];
524  case 12: {
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();
532  } else {
533  goto handle_uninterpreted;
534  }
535  if (input->ExpectTag(106)) goto parse_uuid;
536  break;
537  }
538 
539  // optional string uuid = 13;
540  case 13: {
541  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
542  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
543  parse_uuid:
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);
549  } else {
550  goto handle_uninterpreted;
551  }
552  if (input->ExpectTag(112)) goto parse_version;
553  break;
554  }
555 
556  // optional uint64 version = 14;
557  case 14: {
558  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
559  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
560  parse_version:
561  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
562  ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
563  input, &version_)));
564  set_has_version();
565  } else {
566  goto handle_uninterpreted;
567  }
568  if (input->ExpectTag(122)) goto parse_options;
569  break;
570  }
571 
572  // optional .drizzled.message.Schema.Options options = 15;
573  case 15: {
574  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
575  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
576  parse_options:
577  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
578  input, mutable_options()));
579  } else {
580  goto handle_uninterpreted;
581  }
582  if (input->ExpectTag(130)) goto parse_replication_options;
583  break;
584  }
585 
586  // optional .drizzled.message.ReplicationOptions replication_options = 16;
587  case 16: {
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()));
593  } else {
594  goto handle_uninterpreted;
595  }
596  if (input->ExpectTag(138)) goto parse_access;
597  break;
598  }
599 
600  // optional .drizzled.message.Access access = 17;
601  case 17: {
602  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
603  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
604  parse_access:
605  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
606  input, mutable_access()));
607  } else {
608  goto handle_uninterpreted;
609  }
610  if (input->ExpectAtEnd()) return true;
611  break;
612  }
613 
614  default: {
615  handle_uninterpreted:
616  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
617  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
618  return true;
619  }
620  DO_(::google::protobuf::internal::WireFormat::SkipField(
621  input, tag, mutable_unknown_fields()));
622  break;
623  }
624  }
625  }
626  return true;
627 #undef DO_
628 }
629 
630 void Schema::SerializeWithCachedSizes(
631  ::google::protobuf::io::CodedOutputStream* output) const {
632  // required string name = 1;
633  if (has_name()) {
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);
639  }
640 
641  // optional string collation = 2;
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);
648  }
649 
650  // required .drizzled.message.Engine engine = 3;
651  if (has_engine()) {
652  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
653  3, this->engine(), output);
654  }
655 
656  // optional string catalog = 4;
657  if (has_catalog()) {
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);
663  }
664 
665  // required uint64 creation_timestamp = 11 [default = 0];
666  if (has_creation_timestamp()) {
667  ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->creation_timestamp(), output);
668  }
669 
670  // required uint64 update_timestamp = 12 [default = 0];
671  if (has_update_timestamp()) {
672  ::google::protobuf::internal::WireFormatLite::WriteUInt64(12, this->update_timestamp(), output);
673  }
674 
675  // optional string uuid = 13;
676  if (has_uuid()) {
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);
682  }
683 
684  // optional uint64 version = 14;
685  if (has_version()) {
686  ::google::protobuf::internal::WireFormatLite::WriteUInt64(14, this->version(), output);
687  }
688 
689  // optional .drizzled.message.Schema.Options options = 15;
690  if (has_options()) {
691  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
692  15, this->options(), output);
693  }
694 
695  // optional .drizzled.message.ReplicationOptions replication_options = 16;
696  if (has_replication_options()) {
697  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
698  16, this->replication_options(), output);
699  }
700 
701  // optional .drizzled.message.Access access = 17;
702  if (has_access()) {
703  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
704  17, this->access(), output);
705  }
706 
707  if (!unknown_fields().empty()) {
708  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
709  unknown_fields(), output);
710  }
711 }
712 
713 ::google::protobuf::uint8* Schema::SerializeWithCachedSizesToArray(
714  ::google::protobuf::uint8* target) const {
715  // required string name = 1;
716  if (has_name()) {
717  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
718  this->name().data(), this->name().length(),
719  ::google::protobuf::internal::WireFormat::SERIALIZE);
720  target =
721  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
722  1, this->name(), target);
723  }
724 
725  // optional string collation = 2;
726  if (has_collation()) {
727  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
728  this->collation().data(), this->collation().length(),
729  ::google::protobuf::internal::WireFormat::SERIALIZE);
730  target =
731  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
732  2, this->collation(), target);
733  }
734 
735  // required .drizzled.message.Engine engine = 3;
736  if (has_engine()) {
737  target = ::google::protobuf::internal::WireFormatLite::
738  WriteMessageNoVirtualToArray(
739  3, this->engine(), target);
740  }
741 
742  // optional string catalog = 4;
743  if (has_catalog()) {
744  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
745  this->catalog().data(), this->catalog().length(),
746  ::google::protobuf::internal::WireFormat::SERIALIZE);
747  target =
748  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
749  4, this->catalog(), target);
750  }
751 
752  // required uint64 creation_timestamp = 11 [default = 0];
753  if (has_creation_timestamp()) {
754  target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->creation_timestamp(), target);
755  }
756 
757  // required uint64 update_timestamp = 12 [default = 0];
758  if (has_update_timestamp()) {
759  target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(12, this->update_timestamp(), target);
760  }
761 
762  // optional string uuid = 13;
763  if (has_uuid()) {
764  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
765  this->uuid().data(), this->uuid().length(),
766  ::google::protobuf::internal::WireFormat::SERIALIZE);
767  target =
768  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
769  13, this->uuid(), target);
770  }
771 
772  // optional uint64 version = 14;
773  if (has_version()) {
774  target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(14, this->version(), target);
775  }
776 
777  // optional .drizzled.message.Schema.Options options = 15;
778  if (has_options()) {
779  target = ::google::protobuf::internal::WireFormatLite::
780  WriteMessageNoVirtualToArray(
781  15, this->options(), target);
782  }
783 
784  // optional .drizzled.message.ReplicationOptions replication_options = 16;
785  if (has_replication_options()) {
786  target = ::google::protobuf::internal::WireFormatLite::
787  WriteMessageNoVirtualToArray(
788  16, this->replication_options(), target);
789  }
790 
791  // optional .drizzled.message.Access access = 17;
792  if (has_access()) {
793  target = ::google::protobuf::internal::WireFormatLite::
794  WriteMessageNoVirtualToArray(
795  17, this->access(), target);
796  }
797 
798  if (!unknown_fields().empty()) {
799  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
800  unknown_fields(), target);
801  }
802  return target;
803 }
804 
805 int Schema::ByteSize() const {
806  int total_size = 0;
807 
808  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
809  // required string name = 1;
810  if (has_name()) {
811  total_size += 1 +
812  ::google::protobuf::internal::WireFormatLite::StringSize(
813  this->name());
814  }
815 
816  // optional string collation = 2;
817  if (has_collation()) {
818  total_size += 1 +
819  ::google::protobuf::internal::WireFormatLite::StringSize(
820  this->collation());
821  }
822 
823  // required .drizzled.message.Engine engine = 3;
824  if (has_engine()) {
825  total_size += 1 +
826  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
827  this->engine());
828  }
829 
830  // optional string catalog = 4;
831  if (has_catalog()) {
832  total_size += 1 +
833  ::google::protobuf::internal::WireFormatLite::StringSize(
834  this->catalog());
835  }
836 
837  // required uint64 creation_timestamp = 11 [default = 0];
838  if (has_creation_timestamp()) {
839  total_size += 1 +
840  ::google::protobuf::internal::WireFormatLite::UInt64Size(
841  this->creation_timestamp());
842  }
843 
844  // required uint64 update_timestamp = 12 [default = 0];
845  if (has_update_timestamp()) {
846  total_size += 1 +
847  ::google::protobuf::internal::WireFormatLite::UInt64Size(
848  this->update_timestamp());
849  }
850 
851  // optional string uuid = 13;
852  if (has_uuid()) {
853  total_size += 1 +
854  ::google::protobuf::internal::WireFormatLite::StringSize(
855  this->uuid());
856  }
857 
858  // optional uint64 version = 14;
859  if (has_version()) {
860  total_size += 1 +
861  ::google::protobuf::internal::WireFormatLite::UInt64Size(
862  this->version());
863  }
864 
865  }
866  if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
867  // optional .drizzled.message.Schema.Options options = 15;
868  if (has_options()) {
869  total_size += 1 +
870  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
871  this->options());
872  }
873 
874  // optional .drizzled.message.ReplicationOptions replication_options = 16;
875  if (has_replication_options()) {
876  total_size += 2 +
877  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
878  this->replication_options());
879  }
880 
881  // optional .drizzled.message.Access access = 17;
882  if (has_access()) {
883  total_size += 2 +
884  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
885  this->access());
886  }
887 
888  }
889  if (!unknown_fields().empty()) {
890  total_size +=
891  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
892  unknown_fields());
893  }
894  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
895  _cached_size_ = total_size;
896  GOOGLE_SAFE_CONCURRENT_WRITES_END();
897  return total_size;
898 }
899 
900 void Schema::MergeFrom(const ::google::protobuf::Message& from) {
901  GOOGLE_CHECK_NE(&from, this);
902  const Schema* source =
903  ::google::protobuf::internal::dynamic_cast_if_available<const Schema*>(
904  &from);
905  if (source == NULL) {
906  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
907  } else {
908  MergeFrom(*source);
909  }
910 }
911 
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());
917  }
918  if (from.has_collation()) {
919  set_collation(from.collation());
920  }
921  if (from.has_engine()) {
922  mutable_engine()->::drizzled::message::Engine::MergeFrom(from.engine());
923  }
924  if (from.has_catalog()) {
925  set_catalog(from.catalog());
926  }
927  if (from.has_creation_timestamp()) {
928  set_creation_timestamp(from.creation_timestamp());
929  }
930  if (from.has_update_timestamp()) {
931  set_update_timestamp(from.update_timestamp());
932  }
933  if (from.has_uuid()) {
934  set_uuid(from.uuid());
935  }
936  if (from.has_version()) {
937  set_version(from.version());
938  }
939  }
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());
943  }
944  if (from.has_replication_options()) {
945  mutable_replication_options()->::drizzled::message::ReplicationOptions::MergeFrom(from.replication_options());
946  }
947  if (from.has_access()) {
948  mutable_access()->::drizzled::message::Access::MergeFrom(from.access());
949  }
950  }
951  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
952 }
953 
954 void Schema::CopyFrom(const ::google::protobuf::Message& from) {
955  if (&from == this) return;
956  Clear();
957  MergeFrom(from);
958 }
959 
960 void Schema::CopyFrom(const Schema& from) {
961  if (&from == this) return;
962  Clear();
963  MergeFrom(from);
964 }
965 
966 bool Schema::IsInitialized() const {
967  if ((_has_bits_[0] & 0x00000035) != 0x00000035) return false;
968 
969  if (has_engine()) {
970  if (!this->engine().IsInitialized()) return false;
971  }
972  return true;
973 }
974 
975 void Schema::Swap(Schema* other) {
976  if (other != this) {
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_);
991  }
992 }
993 
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_;
999  return metadata;
1000 }
1001 
1002 
1003 // @@protoc_insertion_point(namespace_scope)
1004 
1005 } // namespace message
1006 } // namespace drizzled
1007 
1008 // @@protoc_insertion_point(global_scope)