3 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
8 #include <google/protobuf/stubs/once.h>
9 #include <google/protobuf/io/coded_stream.h>
10 #include <google/protobuf/wire_format_lite_inl.h>
11 #include <google/protobuf/descriptor.h>
12 #include <google/protobuf/reflection_ops.h>
13 #include <google/protobuf/wire_format.h>
21 const ::google::protobuf::Descriptor* Event_descriptor_ = NULL;
22 const ::google::protobuf::internal::GeneratedMessageReflection*
23 Event_reflection_ = NULL;
24 const ::google::protobuf::EnumDescriptor* Event_Type_descriptor_ = NULL;
29 void protobuf_AssignDesc_event_2eproto() {
30 protobuf_AddDesc_event_2eproto();
31 const ::google::protobuf::FileDescriptor* file =
32 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
34 GOOGLE_CHECK(file != NULL);
35 Event_descriptor_ = file->message_type(0);
36 static const int Event_offsets_[1] = {
37 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Event, type_),
40 new ::google::protobuf::internal::GeneratedMessageReflection(
42 Event::default_instance_,
44 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Event, _has_bits_[0]),
45 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Event, _unknown_fields_),
47 ::google::protobuf::DescriptorPool::generated_pool(),
48 ::google::protobuf::MessageFactory::generated_factory(),
50 Event_Type_descriptor_ = Event_descriptor_->enum_type(0);
55 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
56 inline void protobuf_AssignDescriptorsOnce() {
57 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
58 &protobuf_AssignDesc_event_2eproto);
61 void protobuf_RegisterTypes(const ::std::string&) {
62 protobuf_AssignDescriptorsOnce();
63 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
64 Event_descriptor_, &Event::default_instance());
69 void protobuf_ShutdownFile_event_2eproto() {
70 delete Event::default_instance_;
71 delete Event_reflection_;
74 void protobuf_AddDesc_event_2eproto() {
75 static bool already_here =
false;
76 if (already_here)
return;
78 GOOGLE_PROTOBUF_VERIFY_VERSION;
80 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
81 "\n\013event.proto\022\020drizzled.message\"V\n\005Event"
82 "\022*\n\004type\030\001 \002(\0162\034.drizzled.message.Event."
83 "Type\"!\n\004Type\022\013\n\007STARTUP\020\000\022\014\n\010SHUTDOWN\020\001B"
84 "&\n\024org.drizzle.messagesB\014EventMessageH\001", 159);
85 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
86 "event.proto", &protobuf_RegisterTypes);
87 Event::default_instance_ =
new Event();
88 Event::default_instance_->InitAsDefaultInstance();
89 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_event_2eproto);
95 protobuf_AddDesc_event_2eproto();
97 } static_descriptor_initializer_event_2eproto_;
102 const ::google::protobuf::EnumDescriptor* Event_Type_descriptor() {
103 protobuf_AssignDescriptorsOnce();
104 return Event_Type_descriptor_;
106 bool Event_Type_IsValid(
int value) {
117 const Event_Type Event::STARTUP;
118 const Event_Type Event::SHUTDOWN;
119 const Event_Type Event::Type_MIN;
120 const Event_Type Event::Type_MAX;
121 const int Event::Type_ARRAYSIZE;
124 const int Event::kTypeFieldNumber;
128 : ::google::protobuf::Message() {
132 void Event::InitAsDefaultInstance() {
135 Event::Event(
const Event& from)
136 : ::google::protobuf::Message() {
141 void Event::SharedCtor() {
144 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
151 void Event::SharedDtor() {
152 if (
this != default_instance_) {
156 void Event::SetCachedSize(
int size)
const {
157 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
158 _cached_size_ = size;
159 GOOGLE_SAFE_CONCURRENT_WRITES_END();
161 const ::google::protobuf::Descriptor* Event::descriptor() {
162 protobuf_AssignDescriptorsOnce();
163 return Event_descriptor_;
166 const Event& Event::default_instance() {
167 if (default_instance_ == NULL) protobuf_AddDesc_event_2eproto();
return *default_instance_;
170 Event* Event::default_instance_ = NULL;
172 Event* Event::New()
const {
176 void Event::Clear() {
177 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
180 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
181 mutable_unknown_fields()->Clear();
184 bool Event::MergePartialFromCodedStream(
185 ::google::protobuf::io::CodedInputStream* input) {
186 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
187 ::google::protobuf::uint32 tag;
188 while ((tag = input->ReadTag()) != 0) {
189 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
192 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
193 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
195 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
196 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
198 if (::drizzled::message::Event_Type_IsValid(value)) {
199 set_type(static_cast< ::drizzled::message::Event_Type >(value));
201 mutable_unknown_fields()->AddVarint(1, value);
204 goto handle_uninterpreted;
206 if (input->ExpectAtEnd())
return true;
211 handle_uninterpreted:
212 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
213 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
216 DO_(::google::protobuf::internal::WireFormat::SkipField(
217 input, tag, mutable_unknown_fields()));
226 void Event::SerializeWithCachedSizes(
227 ::google::protobuf::io::CodedOutputStream* output)
const {
230 ::google::protobuf::internal::WireFormatLite::WriteEnum(
231 1, this->type(), output);
234 if (!unknown_fields().empty()) {
235 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
236 unknown_fields(), output);
240 ::google::protobuf::uint8* Event::SerializeWithCachedSizesToArray(
241 ::google::protobuf::uint8* target)
const {
244 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
245 1, this->type(), target);
248 if (!unknown_fields().empty()) {
249 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
250 unknown_fields(), target);
255 int Event::ByteSize()
const {
258 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
262 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
266 if (!unknown_fields().empty()) {
268 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
271 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
272 _cached_size_ = total_size;
273 GOOGLE_SAFE_CONCURRENT_WRITES_END();
277 void Event::MergeFrom(const ::google::protobuf::Message& from) {
278 GOOGLE_CHECK_NE(&from,
this);
279 const Event* source =
280 ::google::protobuf::internal::dynamic_cast_if_available<const Event*>(
282 if (source == NULL) {
283 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
289 void Event::MergeFrom(
const Event& from) {
290 GOOGLE_CHECK_NE(&from,
this);
291 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
292 if (from.has_type()) {
293 set_type(from.type());
296 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
299 void Event::CopyFrom(const ::google::protobuf::Message& from) {
300 if (&from ==
this)
return;
305 void Event::CopyFrom(
const Event& from) {
306 if (&from ==
this)
return;
311 bool Event::IsInitialized()
const {
312 if ((_has_bits_[0] & 0x00000001) != 0x00000001)
return false;
317 void Event::Swap(Event* other) {
319 std::swap(type_, other->type_);
320 std::swap(_has_bits_[0], other->_has_bits_[0]);
321 _unknown_fields_.Swap(&other->_unknown_fields_);
322 std::swap(_cached_size_, other->_cached_size_);
326 ::google::protobuf::Metadata Event::GetMetadata()
const {
327 protobuf_AssignDescriptorsOnce();
328 ::google::protobuf::Metadata metadata;
329 metadata.descriptor = Event_descriptor_;
330 metadata.reflection = Event_reflection_;