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() {
135 void Event::InitAsDefaultInstance() {
138 Event::Event(
const Event& from)
139 : ::
google::protobuf::Message() {
145 void Event::SharedCtor() {
148 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
156 void Event::SharedDtor() {
157 if (
this != default_instance_) {
161 void Event::SetCachedSize(
int size)
const {
162 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
163 _cached_size_ = size;
164 GOOGLE_SAFE_CONCURRENT_WRITES_END();
166 const ::google::protobuf::Descriptor* Event::descriptor() {
167 protobuf_AssignDescriptorsOnce();
168 return Event_descriptor_;
171 const Event& Event::default_instance() {
172 if (default_instance_ == NULL) protobuf_AddDesc_event_2eproto();
173 return *default_instance_;
176 Event* Event::default_instance_ = NULL;
178 Event* Event::New()
const {
182 void Event::Clear() {
184 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
185 mutable_unknown_fields()->Clear();
188 bool Event::MergePartialFromCodedStream(
189 ::google::protobuf::io::CodedInputStream* input) {
190 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
191 ::google::protobuf::uint32 tag;
194 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
196 if (!p.second)
goto handle_unusual;
197 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
202 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
203 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
205 if (::drizzled::message::Event_Type_IsValid(value)) {
206 set_type(static_cast< ::drizzled::message::Event_Type >(value));
208 mutable_unknown_fields()->AddVarint(1, value);
213 if (input->ExpectAtEnd())
goto success;
220 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
221 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
224 DO_(::google::protobuf::internal::WireFormat::SkipField(
225 input, tag, mutable_unknown_fields()));
239 void Event::SerializeWithCachedSizes(
240 ::google::protobuf::io::CodedOutputStream* output)
const {
244 ::google::protobuf::internal::WireFormatLite::WriteEnum(
245 1, this->type(), output);
248 if (!unknown_fields().empty()) {
249 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
250 unknown_fields(), output);
255 ::google::protobuf::uint8* Event::SerializeWithCachedSizesToArray(
256 ::google::protobuf::uint8* target)
const {
260 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
261 1, this->type(), target);
264 if (!unknown_fields().empty()) {
265 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
266 unknown_fields(), target);
272 int Event::ByteSize()
const {
275 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
279 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
283 if (!unknown_fields().empty()) {
285 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
288 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
289 _cached_size_ = total_size;
290 GOOGLE_SAFE_CONCURRENT_WRITES_END();
294 void Event::MergeFrom(const ::google::protobuf::Message& from) {
295 GOOGLE_CHECK_NE(&from,
this);
296 const Event* source =
297 ::google::protobuf::internal::dynamic_cast_if_available<const Event*>(
299 if (source == NULL) {
300 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
306 void Event::MergeFrom(
const Event& from) {
307 GOOGLE_CHECK_NE(&from,
this);
308 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
309 if (from.has_type()) {
310 set_type(from.type());
313 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
316 void Event::CopyFrom(const ::google::protobuf::Message& from) {
317 if (&from ==
this)
return;
322 void Event::CopyFrom(
const Event& from) {
323 if (&from ==
this)
return;
328 bool Event::IsInitialized()
const {
329 if ((_has_bits_[0] & 0x00000001) != 0x00000001)
return false;
334 void Event::Swap(Event* other) {
336 std::swap(type_, other->type_);
337 std::swap(_has_bits_[0], other->_has_bits_[0]);
338 _unknown_fields_.Swap(&other->_unknown_fields_);
339 std::swap(_cached_size_, other->_cached_size_);
343 ::google::protobuf::Metadata Event::GetMetadata()
const {
344 protobuf_AssignDescriptorsOnce();
345 ::google::protobuf::Metadata metadata;
346 metadata.descriptor = Event_descriptor_;
347 metadata.reflection = Event_reflection_;
TODO: Rename this file - func.h is stupid.