4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
9 #include <google/protobuf/stubs/common.h>
10 #include <google/protobuf/stubs/once.h>
11 #include <google/protobuf/io/coded_stream.h>
12 #include <google/protobuf/wire_format_lite_inl.h>
13 #include <google/protobuf/descriptor.h>
14 #include <google/protobuf/generated_message_reflection.h>
15 #include <google/protobuf/reflection_ops.h>
16 #include <google/protobuf/wire_format.h>
24 const ::google::protobuf::Descriptor* Event_descriptor_ = NULL;
25 const ::google::protobuf::internal::GeneratedMessageReflection*
26 Event_reflection_ = NULL;
27 const ::google::protobuf::EnumDescriptor* Event_Type_descriptor_ = NULL;
32 void protobuf_AssignDesc_event_2eproto() {
33 protobuf_AddDesc_event_2eproto();
34 const ::google::protobuf::FileDescriptor* file =
35 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
37 GOOGLE_CHECK(file != NULL);
38 Event_descriptor_ = file->message_type(0);
39 static const int Event_offsets_[1] = {
40 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Event, type_),
43 new ::google::protobuf::internal::GeneratedMessageReflection(
45 Event::default_instance_,
47 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Event, _has_bits_[0]),
48 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Event, _unknown_fields_),
50 ::google::protobuf::DescriptorPool::generated_pool(),
51 ::google::protobuf::MessageFactory::generated_factory(),
53 Event_Type_descriptor_ = Event_descriptor_->enum_type(0);
58 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
59 inline void protobuf_AssignDescriptorsOnce() {
60 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
61 &protobuf_AssignDesc_event_2eproto);
64 void protobuf_RegisterTypes(const ::std::string&) {
65 protobuf_AssignDescriptorsOnce();
66 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
67 Event_descriptor_, &Event::default_instance());
72 void protobuf_ShutdownFile_event_2eproto() {
73 delete Event::default_instance_;
74 delete Event_reflection_;
77 void protobuf_AddDesc_event_2eproto() {
78 static bool already_here =
false;
79 if (already_here)
return;
81 GOOGLE_PROTOBUF_VERIFY_VERSION;
83 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
84 "\n\013event.proto\022\020drizzled.message\"V\n\005Event"
85 "\022*\n\004type\030\001 \002(\0162\034.drizzled.message.Event."
86 "Type\"!\n\004Type\022\013\n\007STARTUP\020\000\022\014\n\010SHUTDOWN\020\001B"
87 "&\n\024org.drizzle.messagesB\014EventMessageH\001", 159);
88 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
89 "event.proto", &protobuf_RegisterTypes);
90 Event::default_instance_ =
new Event();
91 Event::default_instance_->InitAsDefaultInstance();
92 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_event_2eproto);
98 protobuf_AddDesc_event_2eproto();
100 } static_descriptor_initializer_event_2eproto_;
104 const ::google::protobuf::EnumDescriptor* Event_Type_descriptor() {
105 protobuf_AssignDescriptorsOnce();
106 return Event_Type_descriptor_;
108 bool Event_Type_IsValid(
int value) {
119 const Event_Type Event::STARTUP;
120 const Event_Type Event::SHUTDOWN;
121 const Event_Type Event::Type_MIN;
122 const Event_Type Event::Type_MAX;
123 const int Event::Type_ARRAYSIZE;
126 const int Event::kTypeFieldNumber;
130 : ::google::protobuf::Message() {
134 void Event::InitAsDefaultInstance() {
137 Event::Event(
const Event& from)
138 : ::google::protobuf::Message() {
143 void Event::SharedCtor() {
146 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
153 void Event::SharedDtor() {
154 if (
this != default_instance_) {
158 void Event::SetCachedSize(
int size)
const {
159 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
160 _cached_size_ = size;
161 GOOGLE_SAFE_CONCURRENT_WRITES_END();
163 const ::google::protobuf::Descriptor* Event::descriptor() {
164 protobuf_AssignDescriptorsOnce();
165 return Event_descriptor_;
168 const Event& Event::default_instance() {
169 if (default_instance_ == NULL) protobuf_AddDesc_event_2eproto();
170 return *default_instance_;
173 Event* Event::default_instance_ = NULL;
175 Event* Event::New()
const {
179 void Event::Clear() {
180 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
183 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
184 mutable_unknown_fields()->Clear();
187 bool Event::MergePartialFromCodedStream(
188 ::google::protobuf::io::CodedInputStream* input) {
189 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
190 ::google::protobuf::uint32 tag;
191 while ((tag = input->ReadTag()) != 0) {
192 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
195 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
196 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
198 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
199 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
201 if (::drizzled::message::Event_Type_IsValid(value)) {
202 set_type(static_cast< ::drizzled::message::Event_Type >(value));
204 mutable_unknown_fields()->AddVarint(1, value);
207 goto handle_uninterpreted;
209 if (input->ExpectAtEnd())
return true;
214 handle_uninterpreted:
215 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
216 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
219 DO_(::google::protobuf::internal::WireFormat::SkipField(
220 input, tag, mutable_unknown_fields()));
229 void Event::SerializeWithCachedSizes(
230 ::google::protobuf::io::CodedOutputStream* output)
const {
233 ::google::protobuf::internal::WireFormatLite::WriteEnum(
234 1, this->type(), output);
237 if (!unknown_fields().empty()) {
238 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
239 unknown_fields(), output);
243 ::google::protobuf::uint8* Event::SerializeWithCachedSizesToArray(
244 ::google::protobuf::uint8* target)
const {
247 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
248 1, this->type(), target);
251 if (!unknown_fields().empty()) {
252 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
253 unknown_fields(), target);
258 int Event::ByteSize()
const {
261 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
265 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
269 if (!unknown_fields().empty()) {
271 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
274 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
275 _cached_size_ = total_size;
276 GOOGLE_SAFE_CONCURRENT_WRITES_END();
280 void Event::MergeFrom(const ::google::protobuf::Message& from) {
281 GOOGLE_CHECK_NE(&from,
this);
282 const Event* source =
283 ::google::protobuf::internal::dynamic_cast_if_available<const Event*>(
285 if (source == NULL) {
286 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
292 void Event::MergeFrom(
const Event& from) {
293 GOOGLE_CHECK_NE(&from,
this);
294 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
295 if (from.has_type()) {
296 set_type(from.type());
299 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
302 void Event::CopyFrom(const ::google::protobuf::Message& from) {
303 if (&from ==
this)
return;
308 void Event::CopyFrom(
const Event& from) {
309 if (&from ==
this)
return;
314 bool Event::IsInitialized()
const {
315 if ((_has_bits_[0] & 0x00000001) != 0x00000001)
return false;
320 void Event::Swap(Event* other) {
322 std::swap(type_, other->type_);
323 std::swap(_has_bits_[0], other->_has_bits_[0]);
324 _unknown_fields_.Swap(&other->_unknown_fields_);
325 std::swap(_cached_size_, other->_cached_size_);
329 ::google::protobuf::Metadata Event::GetMetadata()
const {
330 protobuf_AssignDescriptorsOnce();
331 ::google::protobuf::Metadata metadata;
332 metadata.descriptor = Event_descriptor_;
333 metadata.reflection = Event_reflection_;