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 }
111 
112 void Access::InitAsDefaultInstance() {
113 }
114 
115 Access::Access(const Access& from)
116  : ::google::protobuf::Message() {
117  SharedCtor();
118  MergeFrom(from);
119 }
120 
121 void Access::SharedCtor() {
122  _cached_size_ = 0;
123  definer_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
124  invoker_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
125  ::memset(_has_bits_, 0, sizeof(_has_bits_));
126 }
127 
128 Access::~Access() {
129  SharedDtor();
130 }
131 
132 void Access::SharedDtor() {
133  if (definer_ != &::google::protobuf::internal::kEmptyString) {
134  delete definer_;
135  }
136  if (invoker_ != &::google::protobuf::internal::kEmptyString) {
137  delete invoker_;
138  }
139  if (this != default_instance_) {
140  }
141 }
142 
143 void Access::SetCachedSize(int size) const {
144  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
145  _cached_size_ = size;
146  GOOGLE_SAFE_CONCURRENT_WRITES_END();
147 }
148 const ::google::protobuf::Descriptor* Access::descriptor() {
149  protobuf_AssignDescriptorsOnce();
150  return Access_descriptor_;
151 }
152 
153 const Access& Access::default_instance() {
154  if (default_instance_ == NULL) protobuf_AddDesc_access_2eproto();
155  return *default_instance_;
156 }
157 
158 Access* Access::default_instance_ = NULL;
159 
160 Access* Access::New() const {
161  return new Access;
162 }
163 
164 void Access::Clear() {
165  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
166  if (has_definer()) {
167  if (definer_ != &::google::protobuf::internal::kEmptyString) {
168  definer_->clear();
169  }
170  }
171  if (has_invoker()) {
172  if (invoker_ != &::google::protobuf::internal::kEmptyString) {
173  invoker_->clear();
174  }
175  }
176  }
177  ::memset(_has_bits_, 0, sizeof(_has_bits_));
178  mutable_unknown_fields()->Clear();
179 }
180 
181 bool Access::MergePartialFromCodedStream(
182  ::google::protobuf::io::CodedInputStream* input) {
183 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
184  ::google::protobuf::uint32 tag;
185  while ((tag = input->ReadTag()) != 0) {
186  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
187  // optional string definer = 1;
188  case 1: {
189  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
190  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
191  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
192  input, this->mutable_definer()));
193  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
194  this->definer().data(), this->definer().length(),
195  ::google::protobuf::internal::WireFormat::PARSE);
196  } else {
197  goto handle_uninterpreted;
198  }
199  if (input->ExpectTag(18)) goto parse_invoker;
200  break;
201  }
202 
203  // optional string invoker = 2;
204  case 2: {
205  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
206  ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
207  parse_invoker:
208  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
209  input, this->mutable_invoker()));
210  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
211  this->invoker().data(), this->invoker().length(),
212  ::google::protobuf::internal::WireFormat::PARSE);
213  } else {
214  goto handle_uninterpreted;
215  }
216  if (input->ExpectAtEnd()) return true;
217  break;
218  }
219 
220  default: {
221  handle_uninterpreted:
222  if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
223  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
224  return true;
225  }
226  DO_(::google::protobuf::internal::WireFormat::SkipField(
227  input, tag, mutable_unknown_fields()));
228  break;
229  }
230  }
231  }
232  return true;
233 #undef DO_
234 }
235 
236 void Access::SerializeWithCachedSizes(
237  ::google::protobuf::io::CodedOutputStream* output) const {
238  // optional string definer = 1;
239  if (has_definer()) {
240  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
241  this->definer().data(), this->definer().length(),
242  ::google::protobuf::internal::WireFormat::SERIALIZE);
243  ::google::protobuf::internal::WireFormatLite::WriteString(
244  1, this->definer(), output);
245  }
246 
247  // optional string invoker = 2;
248  if (has_invoker()) {
249  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
250  this->invoker().data(), this->invoker().length(),
251  ::google::protobuf::internal::WireFormat::SERIALIZE);
252  ::google::protobuf::internal::WireFormatLite::WriteString(
253  2, this->invoker(), output);
254  }
255 
256  if (!unknown_fields().empty()) {
257  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
258  unknown_fields(), output);
259  }
260 }
261 
262 ::google::protobuf::uint8* Access::SerializeWithCachedSizesToArray(
263  ::google::protobuf::uint8* target) const {
264  // optional string definer = 1;
265  if (has_definer()) {
266  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
267  this->definer().data(), this->definer().length(),
268  ::google::protobuf::internal::WireFormat::SERIALIZE);
269  target =
270  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
271  1, this->definer(), target);
272  }
273 
274  // optional string invoker = 2;
275  if (has_invoker()) {
276  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
277  this->invoker().data(), this->invoker().length(),
278  ::google::protobuf::internal::WireFormat::SERIALIZE);
279  target =
280  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
281  2, this->invoker(), target);
282  }
283 
284  if (!unknown_fields().empty()) {
285  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
286  unknown_fields(), target);
287  }
288  return target;
289 }
290 
291 int Access::ByteSize() const {
292  int total_size = 0;
293 
294  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
295  // optional string definer = 1;
296  if (has_definer()) {
297  total_size += 1 +
298  ::google::protobuf::internal::WireFormatLite::StringSize(
299  this->definer());
300  }
301 
302  // optional string invoker = 2;
303  if (has_invoker()) {
304  total_size += 1 +
305  ::google::protobuf::internal::WireFormatLite::StringSize(
306  this->invoker());
307  }
308 
309  }
310  if (!unknown_fields().empty()) {
311  total_size +=
312  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
313  unknown_fields());
314  }
315  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
316  _cached_size_ = total_size;
317  GOOGLE_SAFE_CONCURRENT_WRITES_END();
318  return total_size;
319 }
320 
321 void Access::MergeFrom(const ::google::protobuf::Message& from) {
322  GOOGLE_CHECK_NE(&from, this);
323  const Access* source =
324  ::google::protobuf::internal::dynamic_cast_if_available<const Access*>(
325  &from);
326  if (source == NULL) {
327  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
328  } else {
329  MergeFrom(*source);
330  }
331 }
332 
333 void Access::MergeFrom(const Access& from) {
334  GOOGLE_CHECK_NE(&from, this);
335  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
336  if (from.has_definer()) {
337  set_definer(from.definer());
338  }
339  if (from.has_invoker()) {
340  set_invoker(from.invoker());
341  }
342  }
343  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
344 }
345 
346 void Access::CopyFrom(const ::google::protobuf::Message& from) {
347  if (&from == this) return;
348  Clear();
349  MergeFrom(from);
350 }
351 
352 void Access::CopyFrom(const Access& from) {
353  if (&from == this) return;
354  Clear();
355  MergeFrom(from);
356 }
357 
358 bool Access::IsInitialized() const {
359 
360  return true;
361 }
362 
363 void Access::Swap(Access* other) {
364  if (other != this) {
365  std::swap(definer_, other->definer_);
366  std::swap(invoker_, other->invoker_);
367  std::swap(_has_bits_[0], other->_has_bits_[0]);
368  _unknown_fields_.Swap(&other->_unknown_fields_);
369  std::swap(_cached_size_, other->_cached_size_);
370  }
371 }
372 
373 ::google::protobuf::Metadata Access::GetMetadata() const {
374  protobuf_AssignDescriptorsOnce();
375  ::google::protobuf::Metadata metadata;
376  metadata.descriptor = Access_descriptor_;
377  metadata.reflection = Access_reflection_;
378  return metadata;
379 }
380 
381 
382 // @@protoc_insertion_point(namespace_scope)
383 
384 } // namespace message
385 } // namespace drizzled
386 
387 // @@protoc_insertion_point(global_scope)