Drizzled Public API Documentation

event.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: event.proto
3 
4 #ifndef PROTOBUF_event_2eproto__INCLUDED
5 #define PROTOBUF_event_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/generated_enum_reflection.h>
27 #include <google/protobuf/unknown_field_set.h>
28 // @@protoc_insertion_point(includes)
29 
30 namespace drizzled {
31 namespace message {
32 
33 // Internal implementation detail -- do not call these.
34 void protobuf_AddDesc_event_2eproto();
35 void protobuf_AssignDesc_event_2eproto();
36 void protobuf_ShutdownFile_event_2eproto();
37 
38 class Event;
39 
40 enum Event_Type {
41  Event_Type_STARTUP = 0,
42  Event_Type_SHUTDOWN = 1
43 };
44 bool Event_Type_IsValid(int value);
45 const Event_Type Event_Type_Type_MIN = Event_Type_STARTUP;
46 const Event_Type Event_Type_Type_MAX = Event_Type_SHUTDOWN;
47 const int Event_Type_Type_ARRAYSIZE = Event_Type_Type_MAX + 1;
48 
49 const ::google::protobuf::EnumDescriptor* Event_Type_descriptor();
50 inline const ::std::string& Event_Type_Name(Event_Type value) {
51  return ::google::protobuf::internal::NameOfEnum(
52  Event_Type_descriptor(), value);
53 }
54 inline bool Event_Type_Parse(
55  const ::std::string& name, Event_Type* value) {
56  return ::google::protobuf::internal::ParseNamedEnum<Event_Type>(
57  Event_Type_descriptor(), name, value);
58 }
59 // ===================================================================
60 
61 class Event : public ::google::protobuf::Message {
62  public:
63  Event();
64  virtual ~Event();
65 
66  Event(const Event& from);
67 
68  inline Event& operator=(const Event& from) {
69  CopyFrom(from);
70  return *this;
71  }
72 
73  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
74  return _unknown_fields_;
75  }
76 
77  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
78  return &_unknown_fields_;
79  }
80 
81  static const ::google::protobuf::Descriptor* descriptor();
82  static const Event& default_instance();
83 
84  void Swap(Event* other);
85 
86  // implements Message ----------------------------------------------
87 
88  Event* New() const;
89  void CopyFrom(const ::google::protobuf::Message& from);
90  void MergeFrom(const ::google::protobuf::Message& from);
91  void CopyFrom(const Event& from);
92  void MergeFrom(const Event& from);
93  void Clear();
94  bool IsInitialized() const;
95 
96  int ByteSize() const;
97  bool MergePartialFromCodedStream(
98  ::google::protobuf::io::CodedInputStream* input);
99  void SerializeWithCachedSizes(
100  ::google::protobuf::io::CodedOutputStream* output) const;
101  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
102  int GetCachedSize() const { return _cached_size_; }
103  private:
104  void SharedCtor();
105  void SharedDtor();
106  void SetCachedSize(int size) const;
107  public:
108  ::google::protobuf::Metadata GetMetadata() const;
109 
110  // nested types ----------------------------------------------------
111 
112  typedef Event_Type Type;
113  static const Type STARTUP = Event_Type_STARTUP;
114  static const Type SHUTDOWN = Event_Type_SHUTDOWN;
115  static inline bool Type_IsValid(int value) {
116  return Event_Type_IsValid(value);
117  }
118  static const Type Type_MIN =
119  Event_Type_Type_MIN;
120  static const Type Type_MAX =
121  Event_Type_Type_MAX;
122  static const int Type_ARRAYSIZE =
123  Event_Type_Type_ARRAYSIZE;
124  static inline const ::google::protobuf::EnumDescriptor*
125  Type_descriptor() {
126  return Event_Type_descriptor();
127  }
128  static inline const ::std::string& Type_Name(Type value) {
129  return Event_Type_Name(value);
130  }
131  static inline bool Type_Parse(const ::std::string& name,
132  Type* value) {
133  return Event_Type_Parse(name, value);
134  }
135 
136  // accessors -------------------------------------------------------
137 
138  // required .drizzled.message.Event.Type type = 1;
139  inline bool has_type() const;
140  inline void clear_type();
141  static const int kTypeFieldNumber = 1;
142  inline ::drizzled::message::Event_Type type() const;
143  inline void set_type(::drizzled::message::Event_Type value);
144 
145  // @@protoc_insertion_point(class_scope:drizzled.message.Event)
146  private:
147  inline void set_has_type();
148  inline void clear_has_type();
149 
150  ::google::protobuf::UnknownFieldSet _unknown_fields_;
151 
152  ::google::protobuf::uint32 _has_bits_[1];
153  mutable int _cached_size_;
154  int type_;
155  friend void protobuf_AddDesc_event_2eproto();
156  friend void protobuf_AssignDesc_event_2eproto();
157  friend void protobuf_ShutdownFile_event_2eproto();
158 
159  void InitAsDefaultInstance();
160  static Event* default_instance_;
161 };
162 // ===================================================================
163 
164 
165 // ===================================================================
166 
167 // Event
168 
169 // required .drizzled.message.Event.Type type = 1;
170 inline bool Event::has_type() const {
171  return (_has_bits_[0] & 0x00000001u) != 0;
172 }
173 inline void Event::set_has_type() {
174  _has_bits_[0] |= 0x00000001u;
175 }
176 inline void Event::clear_has_type() {
177  _has_bits_[0] &= ~0x00000001u;
178 }
179 inline void Event::clear_type() {
180  type_ = 0;
181  clear_has_type();
182 }
183 inline ::drizzled::message::Event_Type Event::type() const {
184  // @@protoc_insertion_point(field_get:drizzled.message.Event.type)
185  return static_cast< ::drizzled::message::Event_Type >(type_);
186 }
187 inline void Event::set_type(::drizzled::message::Event_Type value) {
188  assert(::drizzled::message::Event_Type_IsValid(value));
189  set_has_type();
190  type_ = value;
191  // @@protoc_insertion_point(field_set:drizzled.message.Event.type)
192 }
193 
194 
195 // @@protoc_insertion_point(namespace_scope)
196 
197 } // namespace message
198 } // namespace drizzled
199 
200 #ifndef SWIG
201 namespace google {
202 namespace protobuf {
203 
204 template <> struct is_proto_enum< ::drizzled::message::Event_Type> : ::google::protobuf::internal::true_type {};
205 template <>
206 inline const EnumDescriptor* GetEnumDescriptor< ::drizzled::message::Event_Type>() {
207  return ::drizzled::message::Event_Type_descriptor();
208 }
209 
210 } // namespace google
211 } // namespace protobuf
212 #endif // SWIG
213 
214 // @@protoc_insertion_point(global_scope)
215 
216 #endif // PROTOBUF_event_2eproto__INCLUDED
TODO: Rename this file - func.h is stupid.