Drizzled Public API Documentation

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