4 #ifndef PROTOBUF_event_2eproto__INCLUDED
5 #define PROTOBUF_event_2eproto__INCLUDED
9 #include <google/protobuf/stubs/common.h>
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
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.
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>
34 void protobuf_AddDesc_event_2eproto();
35 void protobuf_AssignDesc_event_2eproto();
36 void protobuf_ShutdownFile_event_2eproto();
41 Event_Type_STARTUP = 0,
42 Event_Type_SHUTDOWN = 1
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;
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);
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);
61 class Event :
public ::google::protobuf::Message {
73 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
74 return _unknown_fields_;
77 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
78 return &_unknown_fields_;
81 static const ::google::protobuf::Descriptor* descriptor();
82 static const Event& default_instance();
84 void Swap(
Event* other);
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);
94 bool IsInitialized()
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_; }
106 void SetCachedSize(
int size)
const;
108 ::google::protobuf::Metadata GetMetadata()
const;
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);
118 static const Type Type_MIN =
120 static const Type Type_MAX =
122 static const int Type_ARRAYSIZE =
123 Event_Type_Type_ARRAYSIZE;
124 static inline const ::google::protobuf::EnumDescriptor*
126 return Event_Type_descriptor();
128 static inline const ::std::string& Type_Name(Type value) {
129 return Event_Type_Name(value);
131 static inline bool Type_Parse(const ::std::string& name,
133 return Event_Type_Parse(name, value);
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);
147 inline void set_has_type();
148 inline void clear_has_type();
150 ::google::protobuf::UnknownFieldSet _unknown_fields_;
152 ::google::protobuf::uint32 _has_bits_[1];
153 mutable int _cached_size_;
155 friend void protobuf_AddDesc_event_2eproto();
156 friend void protobuf_AssignDesc_event_2eproto();
157 friend void protobuf_ShutdownFile_event_2eproto();
159 void InitAsDefaultInstance();
160 static Event* default_instance_;
170 inline bool Event::has_type()
const {
171 return (_has_bits_[0] & 0x00000001u) != 0;
173 inline void Event::set_has_type() {
174 _has_bits_[0] |= 0x00000001u;
176 inline void Event::clear_has_type() {
177 _has_bits_[0] &= ~0x00000001u;
179 inline void Event::clear_type() {
183 inline ::drizzled::message::Event_Type Event::type()
const {
185 return static_cast< ::drizzled::message::Event_Type
>(type_);
187 inline void Event::set_type(::drizzled::message::Event_Type value) {
188 assert(::drizzled::message::Event_Type_IsValid(value));
204 template <>
struct is_proto_enum< ::drizzled::message::Event_Type> : ::google::protobuf::internal::true_type {};
206 inline const EnumDescriptor* GetEnumDescriptor< ::drizzled::message::Event_Type>() {
207 return ::drizzled::message::Event_Type_descriptor();
216 #endif // PROTOBUF_event_2eproto__INCLUDED
TODO: Rename this file - func.h is stupid.