4 #ifndef PROTOBUF_event_2eproto__INCLUDED
5 #define PROTOBUF_event_2eproto__INCLUDED
9 #include <google/protobuf/stubs/common.h>
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
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.
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>
32 void protobuf_AddDesc_event_2eproto();
33 void protobuf_AssignDesc_event_2eproto();
34 void protobuf_ShutdownFile_event_2eproto();
39 Event_Type_STARTUP = 0,
40 Event_Type_SHUTDOWN = 1
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;
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);
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);
59 class Event :
public ::google::protobuf::Message {
71 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
72 return _unknown_fields_;
75 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
76 return &_unknown_fields_;
79 static const ::google::protobuf::Descriptor* descriptor();
80 static const Event& default_instance();
82 void Swap(
Event* other);
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);
92 bool IsInitialized()
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_; }
104 void SetCachedSize(
int size)
const;
107 ::google::protobuf::Metadata GetMetadata()
const;
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);
117 static const Type Type_MIN =
119 static const Type Type_MAX =
121 static const int Type_ARRAYSIZE =
122 Event_Type_Type_ARRAYSIZE;
123 static inline const ::google::protobuf::EnumDescriptor*
125 return Event_Type_descriptor();
127 static inline const ::std::string& Type_Name(Type value) {
128 return Event_Type_Name(value);
130 static inline bool Type_Parse(const ::std::string& name,
132 return Event_Type_Parse(name, value);
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);
146 inline void set_has_type();
147 inline void clear_has_type();
149 ::google::protobuf::UnknownFieldSet _unknown_fields_;
153 mutable int _cached_size_;
154 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
156 friend void protobuf_AddDesc_event_2eproto();
157 friend void protobuf_AssignDesc_event_2eproto();
158 friend void protobuf_ShutdownFile_event_2eproto();
160 void InitAsDefaultInstance();
161 static Event* default_instance_;
171 inline bool Event::has_type()
const {
172 return (_has_bits_[0] & 0x00000001u) != 0;
174 inline void Event::set_has_type() {
175 _has_bits_[0] |= 0x00000001u;
177 inline void Event::clear_has_type() {
178 _has_bits_[0] &= ~0x00000001u;
180 inline void Event::clear_type() {
184 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 GOOGLE_DCHECK(::drizzled::message::Event_Type_IsValid(value));
204 inline const EnumDescriptor* GetEnumDescriptor< ::drizzled::message::Event_Type>() {
205 return ::drizzled::message::Event_Type_descriptor();
214 #endif // PROTOBUF_event_2eproto__INCLUDED