Drizzled Public API Documentation

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