Drizzled Public API Documentation

catalog.pb.cc
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 
3 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
4 #include "catalog.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* Catalog_descriptor_ = NULL;
22 const ::google::protobuf::internal::GeneratedMessageReflection*
23  Catalog_reflection_ = NULL;
24 
25 } // namespace
26 
27 
28 void protobuf_AssignDesc_catalog_2eproto() {
29  protobuf_AddDesc_catalog_2eproto();
30  const ::google::protobuf::FileDescriptor* file =
31  ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
32  "catalog.proto");
33  GOOGLE_CHECK(file != NULL);
34  Catalog_descriptor_ = file->message_type(0);
35  static const int Catalog_offsets_[6] = {
36  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Catalog, name_),
37  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Catalog, engine_),
38  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Catalog, creation_timestamp_),
39  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Catalog, update_timestamp_),
40  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Catalog, uuid_),
41  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Catalog, version_),
42  };
43  Catalog_reflection_ =
44  new ::google::protobuf::internal::GeneratedMessageReflection(
45  Catalog_descriptor_,
46  Catalog::default_instance_,
47  Catalog_offsets_,
48  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Catalog, _has_bits_[0]),
49  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Catalog, _unknown_fields_),
50  -1,
51  ::google::protobuf::DescriptorPool::generated_pool(),
52  ::google::protobuf::MessageFactory::generated_factory(),
53  sizeof(Catalog));
54 }
55 
56 namespace {
57 
58 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
59 inline void protobuf_AssignDescriptorsOnce() {
60  ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
61  &protobuf_AssignDesc_catalog_2eproto);
62 }
63 
64 void protobuf_RegisterTypes(const ::std::string&) {
65  protobuf_AssignDescriptorsOnce();
66  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
67  Catalog_descriptor_, &Catalog::default_instance());
68 }
69 
70 } // namespace
71 
72 void protobuf_ShutdownFile_catalog_2eproto() {
73  delete Catalog::default_instance_;
74  delete Catalog_reflection_;
75 }
76 
77 void protobuf_AddDesc_catalog_2eproto() {
78  static bool already_here = false;
79  if (already_here) return;
80  already_here = true;
81  GOOGLE_PROTOBUF_VERIFY_VERSION;
82 
83  ::drizzled::message::protobuf_AddDesc_engine_2eproto();
84  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
85  "\n\rcatalog.proto\022\020drizzled.message\032\014engin"
86  "e.proto\"\234\001\n\007Catalog\022\014\n\004name\030\001 \002(\t\022(\n\006eng"
87  "ine\030\003 \002(\0132\030.drizzled.message.Engine\022\035\n\022c"
88  "reation_timestamp\030\013 \002(\004:\0010\022\033\n\020update_tim"
89  "estamp\030\014 \002(\004:\0010\022\014\n\004uuid\030\r \001(\t\022\017\n\007version"
90  "\030\016 \001(\004B(\n\024org.drizzle.messagesB\016CatalogM"
91  "essageH\001", 248);
92  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
93  "catalog.proto", &protobuf_RegisterTypes);
94  Catalog::default_instance_ = new Catalog();
95  Catalog::default_instance_->InitAsDefaultInstance();
96  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_catalog_2eproto);
97 }
98 
99 // Force AddDescriptors() to be called at static initialization time.
102  protobuf_AddDesc_catalog_2eproto();
103  }
104 } static_descriptor_initializer_catalog_2eproto_;
105 
106 
107 // ===================================================================
108 
109 #ifndef _MSC_VER
110 const int Catalog::kNameFieldNumber;
111 const int Catalog::kEngineFieldNumber;
112 const int Catalog::kCreationTimestampFieldNumber;
113 const int Catalog::kUpdateTimestampFieldNumber;
114 const int Catalog::kUuidFieldNumber;
115 const int Catalog::kVersionFieldNumber;
116 #endif // !_MSC_VER
117 
118 Catalog::Catalog()
119  : ::google::protobuf::Message() {
120  SharedCtor();
121 }
122 
123 void Catalog::InitAsDefaultInstance() {
124  engine_ = const_cast< ::drizzled::message::Engine*>(&::drizzled::message::Engine::default_instance());
125 }
126 
127 Catalog::Catalog(const Catalog& from)
128  : ::google::protobuf::Message() {
129  SharedCtor();
130  MergeFrom(from);
131 }
132 
133 void Catalog::SharedCtor() {
134  _cached_size_ = 0;
135  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
136  engine_ = NULL;
137  creation_timestamp_ = GOOGLE_ULONGLONG(0);
138  update_timestamp_ = GOOGLE_ULONGLONG(0);
139  uuid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
140  version_ = GOOGLE_ULONGLONG(0);
141  ::memset(_has_bits_, 0, sizeof(_has_bits_));
142 }
143 
144 Catalog::~Catalog() {
145  SharedDtor();
146 }
147 
148 void Catalog::SharedDtor() {
149  if (name_ != &::google::protobuf::internal::kEmptyString) {
150  delete name_;
151  }
152  if (uuid_ != &::google::protobuf::internal::kEmptyString) {
153  delete uuid_;
154  }
155  if (this != default_instance_) {
156  delete engine_;
157  }
158 }
159 
160 void Catalog::SetCachedSize(int size) const {
161  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
162  _cached_size_ = size;
163  GOOGLE_SAFE_CONCURRENT_WRITES_END();
164 }
165 const ::google::protobuf::Descriptor* Catalog::descriptor() {
166  protobuf_AssignDescriptorsOnce();
167  return Catalog_descriptor_;
168 }
169 
170 const Catalog& Catalog::default_instance() {
171  if (default_instance_ == NULL) protobuf_AddDesc_catalog_2eproto(); return *default_instance_;
172 }
173 
174 Catalog* Catalog::default_instance_ = NULL;
175 
176 Catalog* Catalog::New() const {
177  return new Catalog;
178 }
179 
180 void Catalog::Clear() {
181  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
182  if (has_name()) {
183  if (name_ != &::google::protobuf::internal::kEmptyString) {
184  name_->clear();
185  }
186  }
187  if (has_engine()) {
188  if (engine_ != NULL) engine_->::drizzled::message::Engine::Clear();
189  }
190  creation_timestamp_ = GOOGLE_ULONGLONG(0);
191  update_timestamp_ = GOOGLE_ULONGLONG(0);
192  if (has_uuid()) {
193  if (uuid_ != &::google::protobuf::internal::kEmptyString) {
194  uuid_->clear();
195  }
196  }
197  version_ = GOOGLE_ULONGLONG(0);
198  }
199  ::memset(_has_bits_, 0, sizeof(_has_bits_));
200  mutable_unknown_fields()->Clear();
201 }
202 
203 bool Catalog::MergePartialFromCodedStream(
204  ::google::protobuf::io::CodedInputStream* input) {
205 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
206  ::google::protobuf::uint32 tag;
207  while ((tag = input->ReadTag()) != 0) {
208  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
209  // required string name = 1;
210  case 1: {
211  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
212  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
213  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
214  input, this->mutable_name()));
215  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
216  this->name().data(), this->name().length(),
217  ::google::protobuf::internal::WireFormat::PARSE);
218  } else {
219  goto handle_uninterpreted;
220  }
221  if (input->ExpectTag(26)) goto parse_engine;
222  break;
223  }
224 
225  // required .drizzled.message.Engine engine = 3;
226  case 3: {
227  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
228  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
229  parse_engine:
230  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
231  input, mutable_engine()));
232  } else {
233  goto handle_uninterpreted;
234  }
235  if (input->ExpectTag(88)) goto parse_creation_timestamp;
236  break;
237  }
238 
239  // required uint64 creation_timestamp = 11 [default = 0];
240  case 11: {
241  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
242  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
243  parse_creation_timestamp:
244  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
245  ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
246  input, &creation_timestamp_)));
247  set_has_creation_timestamp();
248  } else {
249  goto handle_uninterpreted;
250  }
251  if (input->ExpectTag(96)) goto parse_update_timestamp;
252  break;
253  }
254 
255  // required uint64 update_timestamp = 12 [default = 0];
256  case 12: {
257  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
258  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
259  parse_update_timestamp:
260  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
261  ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
262  input, &update_timestamp_)));
263  set_has_update_timestamp();
264  } else {
265  goto handle_uninterpreted;
266  }
267  if (input->ExpectTag(106)) goto parse_uuid;
268  break;
269  }
270 
271  // optional string uuid = 13;
272  case 13: {
273  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
274  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
275  parse_uuid:
276  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
277  input, this->mutable_uuid()));
278  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
279  this->uuid().data(), this->uuid().length(),
280  ::google::protobuf::internal::WireFormat::PARSE);
281  } else {
282  goto handle_uninterpreted;
283  }
284  if (input->ExpectTag(112)) goto parse_version;
285  break;
286  }
287 
288  // optional uint64 version = 14;
289  case 14: {
290  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
291  ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
292  parse_version:
293  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
294  ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
295  input, &version_)));
296  set_has_version();
297  } else {
298  goto handle_uninterpreted;
299  }
300  if (input->ExpectAtEnd()) return true;
301  break;
302  }
303 
304  default: {
305  handle_uninterpreted:
306  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
307  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
308  return true;
309  }
310  DO_(::google::protobuf::internal::WireFormat::SkipField(
311  input, tag, mutable_unknown_fields()));
312  break;
313  }
314  }
315  }
316  return true;
317 #undef DO_
318 }
319 
320 void Catalog::SerializeWithCachedSizes(
321  ::google::protobuf::io::CodedOutputStream* output) const {
322  // required string name = 1;
323  if (has_name()) {
324  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
325  this->name().data(), this->name().length(),
326  ::google::protobuf::internal::WireFormat::SERIALIZE);
327  ::google::protobuf::internal::WireFormatLite::WriteString(
328  1, this->name(), output);
329  }
330 
331  // required .drizzled.message.Engine engine = 3;
332  if (has_engine()) {
333  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
334  3, this->engine(), output);
335  }
336 
337  // required uint64 creation_timestamp = 11 [default = 0];
338  if (has_creation_timestamp()) {
339  ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->creation_timestamp(), output);
340  }
341 
342  // required uint64 update_timestamp = 12 [default = 0];
343  if (has_update_timestamp()) {
344  ::google::protobuf::internal::WireFormatLite::WriteUInt64(12, this->update_timestamp(), output);
345  }
346 
347  // optional string uuid = 13;
348  if (has_uuid()) {
349  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
350  this->uuid().data(), this->uuid().length(),
351  ::google::protobuf::internal::WireFormat::SERIALIZE);
352  ::google::protobuf::internal::WireFormatLite::WriteString(
353  13, this->uuid(), output);
354  }
355 
356  // optional uint64 version = 14;
357  if (has_version()) {
358  ::google::protobuf::internal::WireFormatLite::WriteUInt64(14, this->version(), output);
359  }
360 
361  if (!unknown_fields().empty()) {
362  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
363  unknown_fields(), output);
364  }
365 }
366 
367 ::google::protobuf::uint8* Catalog::SerializeWithCachedSizesToArray(
368  ::google::protobuf::uint8* target) const {
369  // required string name = 1;
370  if (has_name()) {
371  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
372  this->name().data(), this->name().length(),
373  ::google::protobuf::internal::WireFormat::SERIALIZE);
374  target =
375  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
376  1, this->name(), target);
377  }
378 
379  // required .drizzled.message.Engine engine = 3;
380  if (has_engine()) {
381  target = ::google::protobuf::internal::WireFormatLite::
382  WriteMessageNoVirtualToArray(
383  3, this->engine(), target);
384  }
385 
386  // required uint64 creation_timestamp = 11 [default = 0];
387  if (has_creation_timestamp()) {
388  target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->creation_timestamp(), target);
389  }
390 
391  // required uint64 update_timestamp = 12 [default = 0];
392  if (has_update_timestamp()) {
393  target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(12, this->update_timestamp(), target);
394  }
395 
396  // optional string uuid = 13;
397  if (has_uuid()) {
398  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
399  this->uuid().data(), this->uuid().length(),
400  ::google::protobuf::internal::WireFormat::SERIALIZE);
401  target =
402  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
403  13, this->uuid(), target);
404  }
405 
406  // optional uint64 version = 14;
407  if (has_version()) {
408  target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(14, this->version(), target);
409  }
410 
411  if (!unknown_fields().empty()) {
412  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
413  unknown_fields(), target);
414  }
415  return target;
416 }
417 
418 int Catalog::ByteSize() const {
419  int total_size = 0;
420 
421  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
422  // required string name = 1;
423  if (has_name()) {
424  total_size += 1 +
425  ::google::protobuf::internal::WireFormatLite::StringSize(
426  this->name());
427  }
428 
429  // required .drizzled.message.Engine engine = 3;
430  if (has_engine()) {
431  total_size += 1 +
432  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
433  this->engine());
434  }
435 
436  // required uint64 creation_timestamp = 11 [default = 0];
437  if (has_creation_timestamp()) {
438  total_size += 1 +
439  ::google::protobuf::internal::WireFormatLite::UInt64Size(
440  this->creation_timestamp());
441  }
442 
443  // required uint64 update_timestamp = 12 [default = 0];
444  if (has_update_timestamp()) {
445  total_size += 1 +
446  ::google::protobuf::internal::WireFormatLite::UInt64Size(
447  this->update_timestamp());
448  }
449 
450  // optional string uuid = 13;
451  if (has_uuid()) {
452  total_size += 1 +
453  ::google::protobuf::internal::WireFormatLite::StringSize(
454  this->uuid());
455  }
456 
457  // optional uint64 version = 14;
458  if (has_version()) {
459  total_size += 1 +
460  ::google::protobuf::internal::WireFormatLite::UInt64Size(
461  this->version());
462  }
463 
464  }
465  if (!unknown_fields().empty()) {
466  total_size +=
467  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
468  unknown_fields());
469  }
470  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
471  _cached_size_ = total_size;
472  GOOGLE_SAFE_CONCURRENT_WRITES_END();
473  return total_size;
474 }
475 
476 void Catalog::MergeFrom(const ::google::protobuf::Message& from) {
477  GOOGLE_CHECK_NE(&from, this);
478  const Catalog* source =
479  ::google::protobuf::internal::dynamic_cast_if_available<const Catalog*>(
480  &from);
481  if (source == NULL) {
482  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
483  } else {
484  MergeFrom(*source);
485  }
486 }
487 
488 void Catalog::MergeFrom(const Catalog& from) {
489  GOOGLE_CHECK_NE(&from, this);
490  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
491  if (from.has_name()) {
492  set_name(from.name());
493  }
494  if (from.has_engine()) {
495  mutable_engine()->::drizzled::message::Engine::MergeFrom(from.engine());
496  }
497  if (from.has_creation_timestamp()) {
498  set_creation_timestamp(from.creation_timestamp());
499  }
500  if (from.has_update_timestamp()) {
501  set_update_timestamp(from.update_timestamp());
502  }
503  if (from.has_uuid()) {
504  set_uuid(from.uuid());
505  }
506  if (from.has_version()) {
507  set_version(from.version());
508  }
509  }
510  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
511 }
512 
513 void Catalog::CopyFrom(const ::google::protobuf::Message& from) {
514  if (&from == this) return;
515  Clear();
516  MergeFrom(from);
517 }
518 
519 void Catalog::CopyFrom(const Catalog& from) {
520  if (&from == this) return;
521  Clear();
522  MergeFrom(from);
523 }
524 
525 bool Catalog::IsInitialized() const {
526  if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
527 
528  if (has_engine()) {
529  if (!this->engine().IsInitialized()) return false;
530  }
531  return true;
532 }
533 
534 void Catalog::Swap(Catalog* other) {
535  if (other != this) {
536  std::swap(name_, other->name_);
537  std::swap(engine_, other->engine_);
538  std::swap(creation_timestamp_, other->creation_timestamp_);
539  std::swap(update_timestamp_, other->update_timestamp_);
540  std::swap(uuid_, other->uuid_);
541  std::swap(version_, other->version_);
542  std::swap(_has_bits_[0], other->_has_bits_[0]);
543  _unknown_fields_.Swap(&other->_unknown_fields_);
544  std::swap(_cached_size_, other->_cached_size_);
545  }
546 }
547 
548 ::google::protobuf::Metadata Catalog::GetMetadata() const {
549  protobuf_AssignDescriptorsOnce();
550  ::google::protobuf::Metadata metadata;
551  metadata.descriptor = Catalog_descriptor_;
552  metadata.reflection = Catalog_reflection_;
553  return metadata;
554 }
555 
556 
557 // @@protoc_insertion_point(namespace_scope)
558 
559 } // namespace message
560 } // namespace drizzled
561 
562 // @@protoc_insertion_point(global_scope)