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 < 2005000
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 2005000 < 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 
109  ::google::protobuf::Metadata GetMetadata() const;
110 
111  // nested types ----------------------------------------------------
112 
113  typedef Event_Type Type;
114  static const Type STARTUP = Event_Type_STARTUP;
115  static const Type SHUTDOWN = Event_Type_SHUTDOWN;
116  static inline bool Type_IsValid(int value) {
117  return Event_Type_IsValid(value);
118  }
119  static const Type Type_MIN =
120  Event_Type_Type_MIN;
121  static const Type Type_MAX =
122  Event_Type_Type_MAX;
123  static const int Type_ARRAYSIZE =
124  Event_Type_Type_ARRAYSIZE;
125  static inline const ::google::protobuf::EnumDescriptor*
126  Type_descriptor() {
127  return Event_Type_descriptor();
128  }
129  static inline const ::std::string& Type_Name(Type value) {
130  return Event_Type_Name(value);
131  }
132  static inline bool Type_Parse(const ::std::string& name,
133  Type* value) {
134  return Event_Type_Parse(name, value);
135  }
136 
137  // accessors -------------------------------------------------------
138 
139  // required .drizzled.message.Event.Type type = 1;
140  inline bool has_type() const;
141  inline void clear_type();
142  static const int kTypeFieldNumber = 1;
143  inline ::drizzled::message::Event_Type type() const;
144  inline void set_type(::drizzled::message::Event_Type value);
145 
146  // @@protoc_insertion_point(class_scope:drizzled.message.Event)
147  private:
148  inline void set_has_type();
149  inline void clear_has_type();
150 
151  ::google::protobuf::UnknownFieldSet _unknown_fields_;
152 
153  int type_;
154 
155  mutable int _cached_size_;
156  ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
157 
158  friend void protobuf_AddDesc_event_2eproto();
159  friend void protobuf_AssignDesc_event_2eproto();
160  friend void protobuf_ShutdownFile_event_2eproto();
161 
162  void InitAsDefaultInstance();
163  static Event* default_instance_;
164 };
165 // ===================================================================
166 
167 
168 // ===================================================================
169 
170 // Event
171 
172 // required .drizzled.message.Event.Type type = 1;
173 inline bool Event::has_type() const {
174  return (_has_bits_[0] & 0x00000001u) != 0;
175 }
176 inline void Event::set_has_type() {
177  _has_bits_[0] |= 0x00000001u;
178 }
179 inline void Event::clear_has_type() {
180  _has_bits_[0] &= ~0x00000001u;
181 }
182 inline void Event::clear_type() {
183  type_ = 0;
184  clear_has_type();
185 }
186 inline ::drizzled::message::Event_Type Event::type() const {
187  return static_cast< ::drizzled::message::Event_Type >(type_);
188 }
189 inline void Event::set_type(::drizzled::message::Event_Type value) {
190  assert(::drizzled::message::Event_Type_IsValid(value));
191  set_has_type();
192  type_ = value;
193 }
194 
195 
196 // @@protoc_insertion_point(namespace_scope)
197 
198 } // namespace message
199 } // namespace drizzled
200 
201 #ifndef SWIG
202 namespace google {
203 namespace protobuf {
204 
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