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