Drizzled Public API Documentation

access.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: access.proto
3 
4 #ifndef PROTOBUF_access_2eproto__INCLUDED
5 #define PROTOBUF_access_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 2006000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
22 #include <google/protobuf/generated_message_util.h>
23 #include <google/protobuf/message.h>
24 #include <google/protobuf/repeated_field.h>
25 #include <google/protobuf/extension_set.h>
26 #include <google/protobuf/unknown_field_set.h>
27 // @@protoc_insertion_point(includes)
28 
29 namespace drizzled {
30 namespace message {
31 
32 // Internal implementation detail -- do not call these.
33 void protobuf_AddDesc_access_2eproto();
34 void protobuf_AssignDesc_access_2eproto();
35 void protobuf_ShutdownFile_access_2eproto();
36 
37 class Access;
38 
39 // ===================================================================
40 
41 class Access : public ::google::protobuf::Message {
42  public:
43  Access();
44  virtual ~Access();
45 
46  Access(const Access& from);
47 
48  inline Access& operator=(const Access& from) {
49  CopyFrom(from);
50  return *this;
51  }
52 
53  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
54  return _unknown_fields_;
55  }
56 
57  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
58  return &_unknown_fields_;
59  }
60 
61  static const ::google::protobuf::Descriptor* descriptor();
62  static const Access& default_instance();
63 
64  void Swap(Access* other);
65 
66  // implements Message ----------------------------------------------
67 
68  Access* New() const;
69  void CopyFrom(const ::google::protobuf::Message& from);
70  void MergeFrom(const ::google::protobuf::Message& from);
71  void CopyFrom(const Access& from);
72  void MergeFrom(const Access& from);
73  void Clear();
74  bool IsInitialized() const;
75 
76  int ByteSize() const;
77  bool MergePartialFromCodedStream(
78  ::google::protobuf::io::CodedInputStream* input);
79  void SerializeWithCachedSizes(
80  ::google::protobuf::io::CodedOutputStream* output) const;
81  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
82  int GetCachedSize() const { return _cached_size_; }
83  private:
84  void SharedCtor();
85  void SharedDtor();
86  void SetCachedSize(int size) const;
87  public:
88  ::google::protobuf::Metadata GetMetadata() const;
89 
90  // nested types ----------------------------------------------------
91 
92  // accessors -------------------------------------------------------
93 
94  // optional string definer = 1;
95  inline bool has_definer() const;
96  inline void clear_definer();
97  static const int kDefinerFieldNumber = 1;
98  inline const ::std::string& definer() const;
99  inline void set_definer(const ::std::string& value);
100  inline void set_definer(const char* value);
101  inline void set_definer(const char* value, size_t size);
102  inline ::std::string* mutable_definer();
103  inline ::std::string* release_definer();
104  inline void set_allocated_definer(::std::string* definer);
105 
106  // optional string invoker = 2;
107  inline bool has_invoker() const;
108  inline void clear_invoker();
109  static const int kInvokerFieldNumber = 2;
110  inline const ::std::string& invoker() const;
111  inline void set_invoker(const ::std::string& value);
112  inline void set_invoker(const char* value);
113  inline void set_invoker(const char* value, size_t size);
114  inline ::std::string* mutable_invoker();
115  inline ::std::string* release_invoker();
116  inline void set_allocated_invoker(::std::string* invoker);
117 
118  // @@protoc_insertion_point(class_scope:drizzled.message.Access)
119  private:
120  inline void set_has_definer();
121  inline void clear_has_definer();
122  inline void set_has_invoker();
123  inline void clear_has_invoker();
124 
125  ::google::protobuf::UnknownFieldSet _unknown_fields_;
126 
127  ::google::protobuf::uint32 _has_bits_[1];
128  mutable int _cached_size_;
129  ::std::string* definer_;
130  ::std::string* invoker_;
131  friend void protobuf_AddDesc_access_2eproto();
132  friend void protobuf_AssignDesc_access_2eproto();
133  friend void protobuf_ShutdownFile_access_2eproto();
134 
135  void InitAsDefaultInstance();
136  static Access* default_instance_;
137 };
138 // ===================================================================
139 
140 
141 // ===================================================================
142 
143 // Access
144 
145 // optional string definer = 1;
146 inline bool Access::has_definer() const {
147  return (_has_bits_[0] & 0x00000001u) != 0;
148 }
149 inline void Access::set_has_definer() {
150  _has_bits_[0] |= 0x00000001u;
151 }
152 inline void Access::clear_has_definer() {
153  _has_bits_[0] &= ~0x00000001u;
154 }
155 inline void Access::clear_definer() {
156  if (definer_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
157  definer_->clear();
158  }
159  clear_has_definer();
160 }
161 inline const ::std::string& Access::definer() const {
162  // @@protoc_insertion_point(field_get:drizzled.message.Access.definer)
163  return *definer_;
164 }
165 inline void Access::set_definer(const ::std::string& value) {
166  set_has_definer();
167  if (definer_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
168  definer_ = new ::std::string;
169  }
170  definer_->assign(value);
171  // @@protoc_insertion_point(field_set:drizzled.message.Access.definer)
172 }
173 inline void Access::set_definer(const char* value) {
174  set_has_definer();
175  if (definer_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
176  definer_ = new ::std::string;
177  }
178  definer_->assign(value);
179  // @@protoc_insertion_point(field_set_char:drizzled.message.Access.definer)
180 }
181 inline void Access::set_definer(const char* value, size_t size) {
182  set_has_definer();
183  if (definer_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
184  definer_ = new ::std::string;
185  }
186  definer_->assign(reinterpret_cast<const char*>(value), size);
187  // @@protoc_insertion_point(field_set_pointer:drizzled.message.Access.definer)
188 }
189 inline ::std::string* Access::mutable_definer() {
190  set_has_definer();
191  if (definer_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
192  definer_ = new ::std::string;
193  }
194  // @@protoc_insertion_point(field_mutable:drizzled.message.Access.definer)
195  return definer_;
196 }
197 inline ::std::string* Access::release_definer() {
198  clear_has_definer();
199  if (definer_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
200  return NULL;
201  } else {
202  ::std::string* temp = definer_;
203  definer_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
204  return temp;
205  }
206 }
207 inline void Access::set_allocated_definer(::std::string* definer) {
208  if (definer_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
209  delete definer_;
210  }
211  if (definer) {
212  set_has_definer();
213  definer_ = definer;
214  } else {
215  clear_has_definer();
216  definer_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
217  }
218  // @@protoc_insertion_point(field_set_allocated:drizzled.message.Access.definer)
219 }
220 
221 // optional string invoker = 2;
222 inline bool Access::has_invoker() const {
223  return (_has_bits_[0] & 0x00000002u) != 0;
224 }
225 inline void Access::set_has_invoker() {
226  _has_bits_[0] |= 0x00000002u;
227 }
228 inline void Access::clear_has_invoker() {
229  _has_bits_[0] &= ~0x00000002u;
230 }
231 inline void Access::clear_invoker() {
232  if (invoker_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
233  invoker_->clear();
234  }
235  clear_has_invoker();
236 }
237 inline const ::std::string& Access::invoker() const {
238  // @@protoc_insertion_point(field_get:drizzled.message.Access.invoker)
239  return *invoker_;
240 }
241 inline void Access::set_invoker(const ::std::string& value) {
242  set_has_invoker();
243  if (invoker_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
244  invoker_ = new ::std::string;
245  }
246  invoker_->assign(value);
247  // @@protoc_insertion_point(field_set:drizzled.message.Access.invoker)
248 }
249 inline void Access::set_invoker(const char* value) {
250  set_has_invoker();
251  if (invoker_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
252  invoker_ = new ::std::string;
253  }
254  invoker_->assign(value);
255  // @@protoc_insertion_point(field_set_char:drizzled.message.Access.invoker)
256 }
257 inline void Access::set_invoker(const char* value, size_t size) {
258  set_has_invoker();
259  if (invoker_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
260  invoker_ = new ::std::string;
261  }
262  invoker_->assign(reinterpret_cast<const char*>(value), size);
263  // @@protoc_insertion_point(field_set_pointer:drizzled.message.Access.invoker)
264 }
265 inline ::std::string* Access::mutable_invoker() {
266  set_has_invoker();
267  if (invoker_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
268  invoker_ = new ::std::string;
269  }
270  // @@protoc_insertion_point(field_mutable:drizzled.message.Access.invoker)
271  return invoker_;
272 }
273 inline ::std::string* Access::release_invoker() {
274  clear_has_invoker();
275  if (invoker_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
276  return NULL;
277  } else {
278  ::std::string* temp = invoker_;
279  invoker_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
280  return temp;
281  }
282 }
283 inline void Access::set_allocated_invoker(::std::string* invoker) {
284  if (invoker_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
285  delete invoker_;
286  }
287  if (invoker) {
288  set_has_invoker();
289  invoker_ = invoker;
290  } else {
291  clear_has_invoker();
292  invoker_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
293  }
294  // @@protoc_insertion_point(field_set_allocated:drizzled.message.Access.invoker)
295 }
296 
297 
298 // @@protoc_insertion_point(namespace_scope)
299 
300 } // namespace message
301 } // namespace drizzled
302 
303 #ifndef SWIG
304 namespace google {
305 namespace protobuf {
306 
307 
308 } // namespace google
309 } // namespace protobuf
310 #endif // SWIG
311 
312 // @@protoc_insertion_point(global_scope)
313 
314 #endif // PROTOBUF_access_2eproto__INCLUDED
TODO: Rename this file - func.h is stupid.