00001
00002
00003
00004 #ifndef PROTOBUF_event_2eproto__INCLUDED
00005 #define PROTOBUF_event_2eproto__INCLUDED
00006
00007 #include <string>
00008
00009 #include <google/protobuf/stubs/common.h>
00010
00011 #if GOOGLE_PROTOBUF_VERSION < 2003000
00012 #error This file was generated by a newer version of protoc which is
00013 #error incompatible with your Protocol Buffer headers. Please update
00014 #error your headers.
00015 #endif
00016 #if 2003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
00017 #error This file was generated by an older version of protoc which is
00018 #error incompatible with your Protocol Buffer headers. Please
00019 #error regenerate this file with a newer version of protoc.
00020 #endif
00021
00022 #include <google/protobuf/generated_message_util.h>
00023 #include <google/protobuf/repeated_field.h>
00024 #include <google/protobuf/extension_set.h>
00025 #include <google/protobuf/generated_message_reflection.h>
00026
00027
00028 namespace drizzled {
00029 namespace message {
00030
00031
00032 void protobuf_AddDesc_event_2eproto();
00033 void protobuf_AssignDesc_event_2eproto();
00034 void protobuf_ShutdownFile_event_2eproto();
00035
00036 class Event;
00037
00038 enum Event_Type {
00039 Event_Type_STARTUP = 0,
00040 Event_Type_SHUTDOWN = 1
00041 };
00042 bool Event_Type_IsValid(int value);
00043 const Event_Type Event_Type_Type_MIN = Event_Type_STARTUP;
00044 const Event_Type Event_Type_Type_MAX = Event_Type_SHUTDOWN;
00045 const int Event_Type_Type_ARRAYSIZE = Event_Type_Type_MAX + 1;
00046
00047 const ::google::protobuf::EnumDescriptor* Event_Type_descriptor();
00048 inline const ::std::string& Event_Type_Name(Event_Type value) {
00049 return ::google::protobuf::internal::NameOfEnum(
00050 Event_Type_descriptor(), value);
00051 }
00052 inline bool Event_Type_Parse(
00053 const ::std::string& name, Event_Type* value) {
00054 return ::google::protobuf::internal::ParseNamedEnum<Event_Type>(
00055 Event_Type_descriptor(), name, value);
00056 }
00057
00058
00059 class Event : public ::google::protobuf::Message {
00060 public:
00061 Event();
00062 virtual ~Event();
00063
00064 Event(const Event& from);
00065
00066 inline Event& operator=(const Event& from) {
00067 CopyFrom(from);
00068 return *this;
00069 }
00070
00071 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
00072 return _unknown_fields_;
00073 }
00074
00075 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
00076 return &_unknown_fields_;
00077 }
00078
00079 static const ::google::protobuf::Descriptor* descriptor();
00080 static const Event& default_instance();
00081
00082 void Swap(Event* other);
00083
00084
00085
00086 Event* New() const;
00087 void CopyFrom(const ::google::protobuf::Message& from);
00088 void MergeFrom(const ::google::protobuf::Message& from);
00089 void CopyFrom(const Event& from);
00090 void MergeFrom(const Event& from);
00091 void Clear();
00092 bool IsInitialized() const;
00093
00094 int ByteSize() const;
00095 bool MergePartialFromCodedStream(
00096 ::google::protobuf::io::CodedInputStream* input);
00097 void SerializeWithCachedSizes(
00098 ::google::protobuf::io::CodedOutputStream* output) const;
00099 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
00100 int GetCachedSize() const { return _cached_size_; }
00101 private:
00102 void SharedCtor();
00103 void SharedDtor();
00104 void SetCachedSize(int size) const;
00105 public:
00106
00107 ::google::protobuf::Metadata GetMetadata() const;
00108
00109
00110
00111 typedef Event_Type Type;
00112 static const Type STARTUP = Event_Type_STARTUP;
00113 static const Type SHUTDOWN = Event_Type_SHUTDOWN;
00114 static inline bool Type_IsValid(int value) {
00115 return Event_Type_IsValid(value);
00116 }
00117 static const Type Type_MIN =
00118 Event_Type_Type_MIN;
00119 static const Type Type_MAX =
00120 Event_Type_Type_MAX;
00121 static const int Type_ARRAYSIZE =
00122 Event_Type_Type_ARRAYSIZE;
00123 static inline const ::google::protobuf::EnumDescriptor*
00124 Type_descriptor() {
00125 return Event_Type_descriptor();
00126 }
00127 static inline const ::std::string& Type_Name(Type value) {
00128 return Event_Type_Name(value);
00129 }
00130 static inline bool Type_Parse(const ::std::string& name,
00131 Type* value) {
00132 return Event_Type_Parse(name, value);
00133 }
00134
00135
00136
00137
00138 inline bool has_type() const;
00139 inline void clear_type();
00140 static const int kTypeFieldNumber = 1;
00141 inline ::drizzled::message::Event_Type type() const;
00142 inline void set_type(::drizzled::message::Event_Type value);
00143
00144
00145 private:
00146 ::google::protobuf::UnknownFieldSet _unknown_fields_;
00147 mutable int _cached_size_;
00148
00149 int type_;
00150 friend void protobuf_AddDesc_event_2eproto();
00151 friend void protobuf_AssignDesc_event_2eproto();
00152 friend void protobuf_ShutdownFile_event_2eproto();
00153
00154 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
00155
00156
00157 inline bool _has_bit(int index) const {
00158 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
00159 }
00160 inline void _set_bit(int index) {
00161 _has_bits_[index / 32] |= (1u << (index % 32));
00162 }
00163 inline void _clear_bit(int index) {
00164 _has_bits_[index / 32] &= ~(1u << (index % 32));
00165 }
00166
00167 void InitAsDefaultInstance();
00168 static Event* default_instance_;
00169 };
00170
00171
00172
00173
00174
00175
00176
00177
00178 inline bool Event::has_type() const {
00179 return _has_bit(0);
00180 }
00181 inline void Event::clear_type() {
00182 type_ = 0;
00183 _clear_bit(0);
00184 }
00185 inline ::drizzled::message::Event_Type Event::type() const {
00186 return static_cast< ::drizzled::message::Event_Type >(type_);
00187 }
00188 inline void Event::set_type(::drizzled::message::Event_Type value) {
00189 GOOGLE_DCHECK(::drizzled::message::Event_Type_IsValid(value));
00190 _set_bit(0);
00191 type_ = value;
00192 }
00193
00194
00195
00196
00197 }
00198 }
00199
00200 #ifndef SWIG
00201 namespace google {
00202 namespace protobuf {
00203
00204 template <>
00205 inline const EnumDescriptor* GetEnumDescriptor< ::drizzled::message::Event_Type>() {
00206 return ::drizzled::message::Event_Type_descriptor();
00207 }
00208
00209 }
00210 }
00211 #endif // SWIG
00212
00213
00214
00215 #endif // PROTOBUF_event_2eproto__INCLUDED