Drizzled Public API Documentation

access.pb.cc
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 
3 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
4 #include "access.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* Access_descriptor_ = NULL;
22 const ::google::protobuf::internal::GeneratedMessageReflection*
23  Access_reflection_ = NULL;
24 
25 } // namespace
26 
27 
28 void protobuf_AssignDesc_access_2eproto() {
29  protobuf_AddDesc_access_2eproto();
30  const ::google::protobuf::FileDescriptor* file =
31  ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
32  "access.proto");
33  GOOGLE_CHECK(file != NULL);
34  Access_descriptor_ = file->message_type(0);
35  static const int Access_offsets_[2] = {
36  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Access, definer_),
37  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Access, invoker_),
38  };
39  Access_reflection_ =
40  new ::google::protobuf::internal::GeneratedMessageReflection(
41  Access_descriptor_,
42  Access::default_instance_,
43  Access_offsets_,
44  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Access, _has_bits_[0]),
45  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Access, _unknown_fields_),
46  -1,
47  ::google::protobuf::DescriptorPool::generated_pool(),
48  ::google::protobuf::MessageFactory::generated_factory(),
49  sizeof(Access));
50 }
51 
52 namespace {
53 
54 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
55 inline void protobuf_AssignDescriptorsOnce() {
56  ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
57  &protobuf_AssignDesc_access_2eproto);
58 }
59 
60 void protobuf_RegisterTypes(const ::std::string&) {
61  protobuf_AssignDescriptorsOnce();
62  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
63  Access_descriptor_, &Access::default_instance());
64 }
65 
66 } // namespace
67 
68 void protobuf_ShutdownFile_access_2eproto() {
69  delete Access::default_instance_;
70  delete Access_reflection_;
71 }
72 
73 void protobuf_AddDesc_access_2eproto() {
74  static bool already_here = false;
75  if (already_here) return;
76  already_here = true;
77  GOOGLE_PROTOBUF_VERIFY_VERSION;
78 
79  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
80  "\n\014access.proto\022\020drizzled.message\"*\n\006Acce"
81  "ss\022\017\n\007definer\030\001 \001(\t\022\017\n\007invoker\030\002 \001(\tB \n\024"
82  "org.drizzle.messagesB\006AccessH\001", 110);
83  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
84  "access.proto", &protobuf_RegisterTypes);
85  Access::default_instance_ = new Access();
86  Access::default_instance_->InitAsDefaultInstance();
87  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_access_2eproto);
88 }
89 
90 // Force AddDescriptors() to be called at static initialization time.
93  protobuf_AddDesc_access_2eproto();
94  }
95 } static_descriptor_initializer_access_2eproto_;
96 
97 
98 // ===================================================================
99 
100 #ifndef _MSC_VER
101 const int Access::kDefinerFieldNumber;
102 const int Access::kInvokerFieldNumber;
103 #endif // !_MSC_VER
104 
105 Access::Access()
106  : ::google::protobuf::Message() {
107  SharedCtor();
108 }
109 
110 void Access::InitAsDefaultInstance() {
111 }
112 
113 Access::Access(const Access& from)
114  : ::google::protobuf::Message() {
115  SharedCtor();
116  MergeFrom(from);
117 }
118 
119 void Access::SharedCtor() {
120  _cached_size_ = 0;
121  definer_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
122  invoker_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
123  ::memset(_has_bits_, 0, sizeof(_has_bits_));
124 }
125 
126 Access::~Access() {
127  SharedDtor();
128 }
129 
130 void Access::SharedDtor() {
131  if (definer_ != &::google::protobuf::internal::kEmptyString) {
132  delete definer_;
133  }
134  if (invoker_ != &::google::protobuf::internal::kEmptyString) {
135  delete invoker_;
136  }
137  if (this != default_instance_) {
138  }
139 }
140 
141 void Access::SetCachedSize(int size) const {
142  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
143  _cached_size_ = size;
144  GOOGLE_SAFE_CONCURRENT_WRITES_END();
145 }
146 const ::google::protobuf::Descriptor* Access::descriptor() {
147  protobuf_AssignDescriptorsOnce();
148  return Access_descriptor_;
149 }
150 
151 const Access& Access::default_instance() {
152  if (default_instance_ == NULL) protobuf_AddDesc_access_2eproto(); return *default_instance_;
153 }
154 
155 Access* Access::default_instance_ = NULL;
156 
157 Access* Access::New() const {
158  return new Access;
159 }
160 
161 void Access::Clear() {
162  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
163  if (has_definer()) {
164  if (definer_ != &::google::protobuf::internal::kEmptyString) {
165  definer_->clear();
166  }
167  }
168  if (has_invoker()) {
169  if (invoker_ != &::google::protobuf::internal::kEmptyString) {
170  invoker_->clear();
171  }
172  }
173  }
174  ::memset(_has_bits_, 0, sizeof(_has_bits_));
175  mutable_unknown_fields()->Clear();
176 }
177 
178 bool Access::MergePartialFromCodedStream(
179  ::google::protobuf::io::CodedInputStream* input) {
180 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
181  ::google::protobuf::uint32 tag;
182  while ((tag = input->ReadTag()) != 0) {
183  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
184  // optional string definer = 1;
185  case 1: {
186  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
187  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
188  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
189  input, this->mutable_definer()));
190  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
191  this->definer().data(), this->definer().length(),
192  ::google::protobuf::internal::WireFormat::PARSE);
193  } else {
194  goto handle_uninterpreted;
195  }
196  if (input->ExpectTag(18)) goto parse_invoker;
197  break;
198  }
199 
200  // optional string invoker = 2;
201  case 2: {
202  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
203  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
204  parse_invoker:
205  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
206  input, this->mutable_invoker()));
207  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
208  this->invoker().data(), this->invoker().length(),
209  ::google::protobuf::internal::WireFormat::PARSE);
210  } else {
211  goto handle_uninterpreted;
212  }
213  if (input->ExpectAtEnd()) return true;
214  break;
215  }
216 
217  default: {
218  handle_uninterpreted:
219  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
220  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
221  return true;
222  }
223  DO_(::google::protobuf::internal::WireFormat::SkipField(
224  input, tag, mutable_unknown_fields()));
225  break;
226  }
227  }
228  }
229  return true;
230 #undef DO_
231 }
232 
233 void Access::SerializeWithCachedSizes(
234  ::google::protobuf::io::CodedOutputStream* output) const {
235  // optional string definer = 1;
236  if (has_definer()) {
237  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
238  this->definer().data(), this->definer().length(),
239  ::google::protobuf::internal::WireFormat::SERIALIZE);
240  ::google::protobuf::internal::WireFormatLite::WriteString(
241  1, this->definer(), output);
242  }
243 
244  // optional string invoker = 2;
245  if (has_invoker()) {
246  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
247  this->invoker().data(), this->invoker().length(),
248  ::google::protobuf::internal::WireFormat::SERIALIZE);
249  ::google::protobuf::internal::WireFormatLite::WriteString(
250  2, this->invoker(), output);
251  }
252 
253  if (!unknown_fields().empty()) {
254  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
255  unknown_fields(), output);
256  }
257 }
258 
259 ::google::protobuf::uint8* Access::SerializeWithCachedSizesToArray(
260  ::google::protobuf::uint8* target) const {
261  // optional string definer = 1;
262  if (has_definer()) {
263  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
264  this->definer().data(), this->definer().length(),
265  ::google::protobuf::internal::WireFormat::SERIALIZE);
266  target =
267  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
268  1, this->definer(), target);
269  }
270 
271  // optional string invoker = 2;
272  if (has_invoker()) {
273  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
274  this->invoker().data(), this->invoker().length(),
275  ::google::protobuf::internal::WireFormat::SERIALIZE);
276  target =
277  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
278  2, this->invoker(), target);
279  }
280 
281  if (!unknown_fields().empty()) {
282  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
283  unknown_fields(), target);
284  }
285  return target;
286 }
287 
288 int Access::ByteSize() const {
289  int total_size = 0;
290 
291  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
292  // optional string definer = 1;
293  if (has_definer()) {
294  total_size += 1 +
295  ::google::protobuf::internal::WireFormatLite::StringSize(
296  this->definer());
297  }
298 
299  // optional string invoker = 2;
300  if (has_invoker()) {
301  total_size += 1 +
302  ::google::protobuf::internal::WireFormatLite::StringSize(
303  this->invoker());
304  }
305 
306  }
307  if (!unknown_fields().empty()) {
308  total_size +=
309  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
310  unknown_fields());
311  }
312  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
313  _cached_size_ = total_size;
314  GOOGLE_SAFE_CONCURRENT_WRITES_END();
315  return total_size;
316 }
317 
318 void Access::MergeFrom(const ::google::protobuf::Message& from) {
319  GOOGLE_CHECK_NE(&from, this);
320  const Access* source =
321  ::google::protobuf::internal::dynamic_cast_if_available<const Access*>(
322  &from);
323  if (source == NULL) {
324  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
325  } else {
326  MergeFrom(*source);
327  }
328 }
329 
330 void Access::MergeFrom(const Access& from) {
331  GOOGLE_CHECK_NE(&from, this);
332  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
333  if (from.has_definer()) {
334  set_definer(from.definer());
335  }
336  if (from.has_invoker()) {
337  set_invoker(from.invoker());
338  }
339  }
340  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
341 }
342 
343 void Access::CopyFrom(const ::google::protobuf::Message& from) {
344  if (&from == this) return;
345  Clear();
346  MergeFrom(from);
347 }
348 
349 void Access::CopyFrom(const Access& from) {
350  if (&from == this) return;
351  Clear();
352  MergeFrom(from);
353 }
354 
355 bool Access::IsInitialized() const {
356 
357  return true;
358 }
359 
360 void Access::Swap(Access* other) {
361  if (other != this) {
362  std::swap(definer_, other->definer_);
363  std::swap(invoker_, other->invoker_);
364  std::swap(_has_bits_[0], other->_has_bits_[0]);
365  _unknown_fields_.Swap(&other->_unknown_fields_);
366  std::swap(_cached_size_, other->_cached_size_);
367  }
368 }
369 
370 ::google::protobuf::Metadata Access::GetMetadata() const {
371  protobuf_AssignDescriptorsOnce();
372  ::google::protobuf::Metadata metadata;
373  metadata.descriptor = Access_descriptor_;
374  metadata.reflection = Access_reflection_;
375  return metadata;
376 }
377 
378 
379 // @@protoc_insertion_point(namespace_scope)
380 
381 } // namespace message
382 } // namespace drizzled
383 
384 // @@protoc_insertion_point(global_scope)