Drizzled Public API Documentation

access.pb.cc
00001 // Generated by the protocol buffer compiler.  DO NOT EDIT!
00002 
00003 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
00004 #include "access.pb.h"
00005 
00006 #include <algorithm>
00007 
00008 #include <google/protobuf/stubs/once.h>
00009 #include <google/protobuf/io/coded_stream.h>
00010 #include <google/protobuf/wire_format_lite_inl.h>
00011 #include <google/protobuf/descriptor.h>
00012 #include <google/protobuf/reflection_ops.h>
00013 #include <google/protobuf/wire_format.h>
00014 // @@protoc_insertion_point(includes)
00015 
00016 namespace drizzled {
00017 namespace message {
00018 
00019 namespace {
00020 
00021 const ::google::protobuf::Descriptor* Access_descriptor_ = NULL;
00022 const ::google::protobuf::internal::GeneratedMessageReflection*
00023   Access_reflection_ = NULL;
00024 
00025 }  // namespace
00026 
00027 
00028 void protobuf_AssignDesc_access_2eproto() {
00029   protobuf_AddDesc_access_2eproto();
00030   const ::google::protobuf::FileDescriptor* file =
00031     ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
00032       "access.proto");
00033   GOOGLE_CHECK(file != NULL);
00034   Access_descriptor_ = file->message_type(0);
00035   static const int Access_offsets_[2] = {
00036     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Access, definer_),
00037     GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Access, invoker_),
00038   };
00039   Access_reflection_ =
00040     new ::google::protobuf::internal::GeneratedMessageReflection(
00041       Access_descriptor_,
00042       Access::default_instance_,
00043       Access_offsets_,
00044       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Access, _has_bits_[0]),
00045       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Access, _unknown_fields_),
00046       -1,
00047       ::google::protobuf::DescriptorPool::generated_pool(),
00048       ::google::protobuf::MessageFactory::generated_factory(),
00049       sizeof(Access));
00050 }
00051 
00052 namespace {
00053 
00054 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
00055 inline void protobuf_AssignDescriptorsOnce() {
00056   ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
00057                  &protobuf_AssignDesc_access_2eproto);
00058 }
00059 
00060 void protobuf_RegisterTypes(const ::std::string&) {
00061   protobuf_AssignDescriptorsOnce();
00062   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
00063     Access_descriptor_, &Access::default_instance());
00064 }
00065 
00066 }  // namespace
00067 
00068 void protobuf_ShutdownFile_access_2eproto() {
00069   delete Access::default_instance_;
00070   delete Access_reflection_;
00071 }
00072 
00073 void protobuf_AddDesc_access_2eproto() {
00074   static bool already_here = false;
00075   if (already_here) return;
00076   already_here = true;
00077   GOOGLE_PROTOBUF_VERIFY_VERSION;
00078 
00079   ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
00080     "\n\014access.proto\022\020drizzled.message\"*\n\006Acce"
00081     "ss\022\017\n\007definer\030\001 \001(\t\022\017\n\007invoker\030\002 \001(\tB \n\024"
00082     "org.drizzle.messagesB\006AccessH\001", 110);
00083   ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
00084     "access.proto", &protobuf_RegisterTypes);
00085   Access::default_instance_ = new Access();
00086   Access::default_instance_->InitAsDefaultInstance();
00087   ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_access_2eproto);
00088 }
00089 
00090 // Force AddDescriptors() to be called at static initialization time.
00091 struct StaticDescriptorInitializer_access_2eproto {
00092   StaticDescriptorInitializer_access_2eproto() {
00093     protobuf_AddDesc_access_2eproto();
00094   }
00095 } static_descriptor_initializer_access_2eproto_;
00096 
00097 
00098 // ===================================================================
00099 
00100 #ifndef _MSC_VER
00101 const int Access::kDefinerFieldNumber;
00102 const int Access::kInvokerFieldNumber;
00103 #endif  // !_MSC_VER
00104 
00105 Access::Access()
00106   : ::google::protobuf::Message() {
00107   SharedCtor();
00108 }
00109 
00110 void Access::InitAsDefaultInstance() {
00111 }
00112 
00113 Access::Access(const Access& from)
00114   : ::google::protobuf::Message() {
00115   SharedCtor();
00116   MergeFrom(from);
00117 }
00118 
00119 void Access::SharedCtor() {
00120   _cached_size_ = 0;
00121   definer_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00122   invoker_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
00123   ::memset(_has_bits_, 0, sizeof(_has_bits_));
00124 }
00125 
00126 Access::~Access() {
00127   SharedDtor();
00128 }
00129 
00130 void Access::SharedDtor() {
00131   if (definer_ != &::google::protobuf::internal::kEmptyString) {
00132     delete definer_;
00133   }
00134   if (invoker_ != &::google::protobuf::internal::kEmptyString) {
00135     delete invoker_;
00136   }
00137   if (this != default_instance_) {
00138   }
00139 }
00140 
00141 void Access::SetCachedSize(int size) const {
00142   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
00143   _cached_size_ = size;
00144   GOOGLE_SAFE_CONCURRENT_WRITES_END();
00145 }
00146 const ::google::protobuf::Descriptor* Access::descriptor() {
00147   protobuf_AssignDescriptorsOnce();
00148   return Access_descriptor_;
00149 }
00150 
00151 const Access& Access::default_instance() {
00152   if (default_instance_ == NULL) protobuf_AddDesc_access_2eproto();  return *default_instance_;
00153 }
00154 
00155 Access* Access::default_instance_ = NULL;
00156 
00157 Access* Access::New() const {
00158   return new Access;
00159 }
00160 
00161 void Access::Clear() {
00162   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00163     if (has_definer()) {
00164       if (definer_ != &::google::protobuf::internal::kEmptyString) {
00165         definer_->clear();
00166       }
00167     }
00168     if (has_invoker()) {
00169       if (invoker_ != &::google::protobuf::internal::kEmptyString) {
00170         invoker_->clear();
00171       }
00172     }
00173   }
00174   ::memset(_has_bits_, 0, sizeof(_has_bits_));
00175   mutable_unknown_fields()->Clear();
00176 }
00177 
00178 bool Access::MergePartialFromCodedStream(
00179     ::google::protobuf::io::CodedInputStream* input) {
00180 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
00181   ::google::protobuf::uint32 tag;
00182   while ((tag = input->ReadTag()) != 0) {
00183     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
00184       // optional string definer = 1;
00185       case 1: {
00186         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00187             ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00188           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
00189                 input, this->mutable_definer()));
00190           ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00191             this->definer().data(), this->definer().length(),
00192             ::google::protobuf::internal::WireFormat::PARSE);
00193         } else {
00194           goto handle_uninterpreted;
00195         }
00196         if (input->ExpectTag(18)) goto parse_invoker;
00197         break;
00198       }
00199       
00200       // optional string invoker = 2;
00201       case 2: {
00202         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00203             ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
00204          parse_invoker:
00205           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
00206                 input, this->mutable_invoker()));
00207           ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00208             this->invoker().data(), this->invoker().length(),
00209             ::google::protobuf::internal::WireFormat::PARSE);
00210         } else {
00211           goto handle_uninterpreted;
00212         }
00213         if (input->ExpectAtEnd()) return true;
00214         break;
00215       }
00216       
00217       default: {
00218       handle_uninterpreted:
00219         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
00220             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
00221           return true;
00222         }
00223         DO_(::google::protobuf::internal::WireFormat::SkipField(
00224               input, tag, mutable_unknown_fields()));
00225         break;
00226       }
00227     }
00228   }
00229   return true;
00230 #undef DO_
00231 }
00232 
00233 void Access::SerializeWithCachedSizes(
00234     ::google::protobuf::io::CodedOutputStream* output) const {
00235   // optional string definer = 1;
00236   if (has_definer()) {
00237     ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00238       this->definer().data(), this->definer().length(),
00239       ::google::protobuf::internal::WireFormat::SERIALIZE);
00240     ::google::protobuf::internal::WireFormatLite::WriteString(
00241       1, this->definer(), output);
00242   }
00243   
00244   // optional string invoker = 2;
00245   if (has_invoker()) {
00246     ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00247       this->invoker().data(), this->invoker().length(),
00248       ::google::protobuf::internal::WireFormat::SERIALIZE);
00249     ::google::protobuf::internal::WireFormatLite::WriteString(
00250       2, this->invoker(), output);
00251   }
00252   
00253   if (!unknown_fields().empty()) {
00254     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
00255         unknown_fields(), output);
00256   }
00257 }
00258 
00259 ::google::protobuf::uint8* Access::SerializeWithCachedSizesToArray(
00260     ::google::protobuf::uint8* target) const {
00261   // optional string definer = 1;
00262   if (has_definer()) {
00263     ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00264       this->definer().data(), this->definer().length(),
00265       ::google::protobuf::internal::WireFormat::SERIALIZE);
00266     target =
00267       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
00268         1, this->definer(), target);
00269   }
00270   
00271   // optional string invoker = 2;
00272   if (has_invoker()) {
00273     ::google::protobuf::internal::WireFormat::VerifyUTF8String(
00274       this->invoker().data(), this->invoker().length(),
00275       ::google::protobuf::internal::WireFormat::SERIALIZE);
00276     target =
00277       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
00278         2, this->invoker(), target);
00279   }
00280   
00281   if (!unknown_fields().empty()) {
00282     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
00283         unknown_fields(), target);
00284   }
00285   return target;
00286 }
00287 
00288 int Access::ByteSize() const {
00289   int total_size = 0;
00290   
00291   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00292     // optional string definer = 1;
00293     if (has_definer()) {
00294       total_size += 1 +
00295         ::google::protobuf::internal::WireFormatLite::StringSize(
00296           this->definer());
00297     }
00298     
00299     // optional string invoker = 2;
00300     if (has_invoker()) {
00301       total_size += 1 +
00302         ::google::protobuf::internal::WireFormatLite::StringSize(
00303           this->invoker());
00304     }
00305     
00306   }
00307   if (!unknown_fields().empty()) {
00308     total_size +=
00309       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
00310         unknown_fields());
00311   }
00312   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
00313   _cached_size_ = total_size;
00314   GOOGLE_SAFE_CONCURRENT_WRITES_END();
00315   return total_size;
00316 }
00317 
00318 void Access::MergeFrom(const ::google::protobuf::Message& from) {
00319   GOOGLE_CHECK_NE(&from, this);
00320   const Access* source =
00321     ::google::protobuf::internal::dynamic_cast_if_available<const Access*>(
00322       &from);
00323   if (source == NULL) {
00324     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
00325   } else {
00326     MergeFrom(*source);
00327   }
00328 }
00329 
00330 void Access::MergeFrom(const Access& from) {
00331   GOOGLE_CHECK_NE(&from, this);
00332   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
00333     if (from.has_definer()) {
00334       set_definer(from.definer());
00335     }
00336     if (from.has_invoker()) {
00337       set_invoker(from.invoker());
00338     }
00339   }
00340   mutable_unknown_fields()->MergeFrom(from.unknown_fields());
00341 }
00342 
00343 void Access::CopyFrom(const ::google::protobuf::Message& from) {
00344   if (&from == this) return;
00345   Clear();
00346   MergeFrom(from);
00347 }
00348 
00349 void Access::CopyFrom(const Access& from) {
00350   if (&from == this) return;
00351   Clear();
00352   MergeFrom(from);
00353 }
00354 
00355 bool Access::IsInitialized() const {
00356   
00357   return true;
00358 }
00359 
00360 void Access::Swap(Access* other) {
00361   if (other != this) {
00362     std::swap(definer_, other->definer_);
00363     std::swap(invoker_, other->invoker_);
00364     std::swap(_has_bits_[0], other->_has_bits_[0]);
00365     _unknown_fields_.Swap(&other->_unknown_fields_);
00366     std::swap(_cached_size_, other->_cached_size_);
00367   }
00368 }
00369 
00370 ::google::protobuf::Metadata Access::GetMetadata() const {
00371   protobuf_AssignDescriptorsOnce();
00372   ::google::protobuf::Metadata metadata;
00373   metadata.descriptor = Access_descriptor_;
00374   metadata.reflection = Access_reflection_;
00375   return metadata;
00376 }
00377 
00378 
00379 // @@protoc_insertion_point(namespace_scope)
00380 
00381 }  // namespace message
00382 }  // namespace drizzled
00383 
00384 // @@protoc_insertion_point(global_scope)