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* Engine_descriptor_ = NULL;
25 const ::google::protobuf::internal::GeneratedMessageReflection*
26 Engine_reflection_ = NULL;
27 const ::google::protobuf::Descriptor* Engine_Option_descriptor_ = NULL;
28 const ::google::protobuf::internal::GeneratedMessageReflection*
29 Engine_Option_reflection_ = NULL;
34 void protobuf_AssignDesc_engine_2eproto() {
35 protobuf_AddDesc_engine_2eproto();
36 const ::google::protobuf::FileDescriptor* file =
37 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
39 GOOGLE_CHECK(file != NULL);
40 Engine_descriptor_ = file->message_type(0);
41 static const int Engine_offsets_[2] = {
42 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Engine, name_),
43 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Engine, options_),
46 new ::google::protobuf::internal::GeneratedMessageReflection(
48 Engine::default_instance_,
50 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Engine, _has_bits_[0]),
51 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Engine, _unknown_fields_),
53 ::google::protobuf::DescriptorPool::generated_pool(),
54 ::google::protobuf::MessageFactory::generated_factory(),
56 Engine_Option_descriptor_ = Engine_descriptor_->nested_type(0);
57 static const int Engine_Option_offsets_[2] = {
58 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Engine_Option, name_),
59 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Engine_Option, state_),
61 Engine_Option_reflection_ =
62 new ::google::protobuf::internal::GeneratedMessageReflection(
63 Engine_Option_descriptor_,
64 Engine_Option::default_instance_,
65 Engine_Option_offsets_,
66 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Engine_Option, _has_bits_[0]),
67 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Engine_Option, _unknown_fields_),
69 ::google::protobuf::DescriptorPool::generated_pool(),
70 ::google::protobuf::MessageFactory::generated_factory(),
71 sizeof(Engine_Option));
76 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
77 inline void protobuf_AssignDescriptorsOnce() {
78 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
79 &protobuf_AssignDesc_engine_2eproto);
82 void protobuf_RegisterTypes(const ::std::string&) {
83 protobuf_AssignDescriptorsOnce();
84 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
85 Engine_descriptor_, &Engine::default_instance());
86 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
87 Engine_Option_descriptor_, &Engine_Option::default_instance());
92 void protobuf_ShutdownFile_engine_2eproto() {
93 delete Engine::default_instance_;
94 delete Engine_reflection_;
95 delete Engine_Option::default_instance_;
96 delete Engine_Option_reflection_;
99 void protobuf_AddDesc_engine_2eproto() {
100 static bool already_here =
false;
101 if (already_here)
return;
103 GOOGLE_PROTOBUF_VERIFY_VERSION;
105 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
106 "\n\014engine.proto\022\020drizzled.message\"o\n\006Engi"
107 "ne\022\014\n\004name\030\001 \002(\t\0220\n\007options\030\002 \003(\0132\037.driz"
108 "zled.message.Engine.Option\032%\n\006Option\022\014\n\004"
109 "name\030\001 \002(\t\022\r\n\005state\030\002 \001(\tB\'\n\024org.drizzle"
110 ".messagesB\rEngineMessageH\001", 186);
111 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
112 "engine.proto", &protobuf_RegisterTypes);
113 Engine::default_instance_ =
new Engine();
114 Engine_Option::default_instance_ =
new Engine_Option();
115 Engine::default_instance_->InitAsDefaultInstance();
116 Engine_Option::default_instance_->InitAsDefaultInstance();
117 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_engine_2eproto);
123 protobuf_AddDesc_engine_2eproto();
125 } static_descriptor_initializer_engine_2eproto_;
130 const int Engine_Option::kNameFieldNumber;
131 const int Engine_Option::kStateFieldNumber;
134 Engine_Option::Engine_Option()
135 : ::
google::protobuf::Message() {
140 void Engine_Option::InitAsDefaultInstance() {
143 Engine_Option::Engine_Option(
const Engine_Option& from)
144 : ::
google::protobuf::Message() {
150 void Engine_Option::SharedCtor() {
151 ::google::protobuf::internal::GetEmptyString();
153 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
154 state_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
155 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
158 Engine_Option::~Engine_Option() {
163 void Engine_Option::SharedDtor() {
164 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
167 if (state_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
170 if (
this != default_instance_) {
174 void Engine_Option::SetCachedSize(
int size)
const {
175 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
176 _cached_size_ = size;
177 GOOGLE_SAFE_CONCURRENT_WRITES_END();
179 const ::google::protobuf::Descriptor* Engine_Option::descriptor() {
180 protobuf_AssignDescriptorsOnce();
181 return Engine_Option_descriptor_;
184 const Engine_Option& Engine_Option::default_instance() {
185 if (default_instance_ == NULL) protobuf_AddDesc_engine_2eproto();
186 return *default_instance_;
189 Engine_Option* Engine_Option::default_instance_ = NULL;
191 Engine_Option* Engine_Option::New()
const {
192 return new Engine_Option;
195 void Engine_Option::Clear() {
196 if (_has_bits_[0 / 32] & 3) {
198 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
203 if (state_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
208 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
209 mutable_unknown_fields()->Clear();
212 bool Engine_Option::MergePartialFromCodedStream(
213 ::google::protobuf::io::CodedInputStream* input) {
214 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
215 ::google::protobuf::uint32 tag;
218 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
220 if (!p.second)
goto handle_unusual;
221 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
225 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
226 input, this->mutable_name()));
227 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
228 this->name().data(), this->name().length(),
229 ::google::protobuf::internal::WireFormat::PARSE,
234 if (input->ExpectTag(18))
goto parse_state;
242 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
243 input, this->mutable_state()));
244 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
245 this->state().data(), this->state().length(),
246 ::google::protobuf::internal::WireFormat::PARSE,
251 if (input->ExpectAtEnd())
goto success;
258 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
259 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
262 DO_(::google::protobuf::internal::WireFormat::SkipField(
263 input, tag, mutable_unknown_fields()));
277 void Engine_Option::SerializeWithCachedSizes(
278 ::google::protobuf::io::CodedOutputStream* output)
const {
282 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
283 this->name().data(), this->name().length(),
284 ::google::protobuf::internal::WireFormat::SERIALIZE,
286 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
287 1, this->name(), output);
292 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
293 this->state().data(), this->state().length(),
294 ::google::protobuf::internal::WireFormat::SERIALIZE,
296 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
297 2, this->state(), output);
300 if (!unknown_fields().empty()) {
301 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
302 unknown_fields(), output);
307 ::google::protobuf::uint8* Engine_Option::SerializeWithCachedSizesToArray(
308 ::google::protobuf::uint8* target)
const {
312 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
313 this->name().data(), this->name().length(),
314 ::google::protobuf::internal::WireFormat::SERIALIZE,
317 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
318 1, this->name(), target);
323 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
324 this->state().data(), this->state().length(),
325 ::google::protobuf::internal::WireFormat::SERIALIZE,
328 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
329 2, this->state(), target);
332 if (!unknown_fields().empty()) {
333 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
334 unknown_fields(), target);
340 int Engine_Option::ByteSize()
const {
343 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
347 ::google::protobuf::internal::WireFormatLite::StringSize(
354 ::google::protobuf::internal::WireFormatLite::StringSize(
359 if (!unknown_fields().empty()) {
361 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
364 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
365 _cached_size_ = total_size;
366 GOOGLE_SAFE_CONCURRENT_WRITES_END();
370 void Engine_Option::MergeFrom(const ::google::protobuf::Message& from) {
371 GOOGLE_CHECK_NE(&from,
this);
372 const Engine_Option* source =
373 ::google::protobuf::internal::dynamic_cast_if_available<const Engine_Option*>(
375 if (source == NULL) {
376 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
382 void Engine_Option::MergeFrom(
const Engine_Option& from) {
383 GOOGLE_CHECK_NE(&from,
this);
384 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
385 if (from.has_name()) {
386 set_name(from.name());
388 if (from.has_state()) {
389 set_state(from.state());
392 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
395 void Engine_Option::CopyFrom(const ::google::protobuf::Message& from) {
396 if (&from ==
this)
return;
401 void Engine_Option::CopyFrom(
const Engine_Option& from) {
402 if (&from ==
this)
return;
407 bool Engine_Option::IsInitialized()
const {
408 if ((_has_bits_[0] & 0x00000001) != 0x00000001)
return false;
413 void Engine_Option::Swap(Engine_Option* other) {
415 std::swap(name_, other->name_);
416 std::swap(state_, other->state_);
417 std::swap(_has_bits_[0], other->_has_bits_[0]);
418 _unknown_fields_.Swap(&other->_unknown_fields_);
419 std::swap(_cached_size_, other->_cached_size_);
423 ::google::protobuf::Metadata Engine_Option::GetMetadata()
const {
424 protobuf_AssignDescriptorsOnce();
425 ::google::protobuf::Metadata metadata;
426 metadata.descriptor = Engine_Option_descriptor_;
427 metadata.reflection = Engine_Option_reflection_;
435 const int Engine::kNameFieldNumber;
436 const int Engine::kOptionsFieldNumber;
440 : ::
google::protobuf::Message() {
445 void Engine::InitAsDefaultInstance() {
448 Engine::Engine(
const Engine& from)
449 : ::
google::protobuf::Message() {
455 void Engine::SharedCtor() {
456 ::google::protobuf::internal::GetEmptyString();
458 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
459 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
467 void Engine::SharedDtor() {
468 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
471 if (
this != default_instance_) {
475 void Engine::SetCachedSize(
int size)
const {
476 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
477 _cached_size_ = size;
478 GOOGLE_SAFE_CONCURRENT_WRITES_END();
480 const ::google::protobuf::Descriptor* Engine::descriptor() {
481 protobuf_AssignDescriptorsOnce();
482 return Engine_descriptor_;
485 const Engine& Engine::default_instance() {
486 if (default_instance_ == NULL) protobuf_AddDesc_engine_2eproto();
487 return *default_instance_;
490 Engine* Engine::default_instance_ = NULL;
492 Engine* Engine::New()
const {
496 void Engine::Clear() {
498 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
503 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
504 mutable_unknown_fields()->Clear();
507 bool Engine::MergePartialFromCodedStream(
508 ::google::protobuf::io::CodedInputStream* input) {
509 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
510 ::google::protobuf::uint32 tag;
513 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
515 if (!p.second)
goto handle_unusual;
516 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
520 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
521 input, this->mutable_name()));
522 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
523 this->name().data(), this->name().length(),
524 ::google::protobuf::internal::WireFormat::PARSE,
529 if (input->ExpectTag(18))
goto parse_options;
537 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
538 input, add_options()));
542 if (input->ExpectTag(18))
goto parse_options;
543 if (input->ExpectAtEnd())
goto success;
550 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
551 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
554 DO_(::google::protobuf::internal::WireFormat::SkipField(
555 input, tag, mutable_unknown_fields()));
569 void Engine::SerializeWithCachedSizes(
570 ::google::protobuf::io::CodedOutputStream* output)
const {
574 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
575 this->name().data(), this->name().length(),
576 ::google::protobuf::internal::WireFormat::SERIALIZE,
578 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
579 1, this->name(), output);
583 for (
int i = 0; i < this->options_size(); i++) {
584 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
585 2, this->options(i), output);
588 if (!unknown_fields().empty()) {
589 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
590 unknown_fields(), output);
595 ::google::protobuf::uint8* Engine::SerializeWithCachedSizesToArray(
596 ::google::protobuf::uint8* target)
const {
600 ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
601 this->name().data(), this->name().length(),
602 ::google::protobuf::internal::WireFormat::SERIALIZE,
605 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
606 1, this->name(), target);
610 for (
int i = 0; i < this->options_size(); i++) {
611 target = ::google::protobuf::internal::WireFormatLite::
612 WriteMessageNoVirtualToArray(
613 2, this->options(i), target);
616 if (!unknown_fields().empty()) {
617 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
618 unknown_fields(), target);
624 int Engine::ByteSize()
const {
627 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
631 ::google::protobuf::internal::WireFormatLite::StringSize(
637 total_size += 1 * this->options_size();
638 for (
int i = 0; i < this->options_size(); i++) {
640 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
644 if (!unknown_fields().empty()) {
646 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
649 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
650 _cached_size_ = total_size;
651 GOOGLE_SAFE_CONCURRENT_WRITES_END();
655 void Engine::MergeFrom(const ::google::protobuf::Message& from) {
656 GOOGLE_CHECK_NE(&from,
this);
657 const Engine* source =
658 ::google::protobuf::internal::dynamic_cast_if_available<const Engine*>(
660 if (source == NULL) {
661 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
667 void Engine::MergeFrom(
const Engine& from) {
668 GOOGLE_CHECK_NE(&from,
this);
669 options_.MergeFrom(from.options_);
670 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
671 if (from.has_name()) {
672 set_name(from.name());
675 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
678 void Engine::CopyFrom(const ::google::protobuf::Message& from) {
679 if (&from ==
this)
return;
684 void Engine::CopyFrom(
const Engine& from) {
685 if (&from ==
this)
return;
690 bool Engine::IsInitialized()
const {
691 if ((_has_bits_[0] & 0x00000001) != 0x00000001)
return false;
693 if (!::google::protobuf::internal::AllAreInitialized(this->options()))
return false;
697 void Engine::Swap(Engine* other) {
699 std::swap(name_, other->name_);
700 options_.Swap(&other->options_);
701 std::swap(_has_bits_[0], other->_has_bits_[0]);
702 _unknown_fields_.Swap(&other->_unknown_fields_);
703 std::swap(_cached_size_, other->_cached_size_);
707 ::google::protobuf::Metadata Engine::GetMetadata()
const {
708 protobuf_AssignDescriptorsOnce();
709 ::google::protobuf::Metadata metadata;
710 metadata.descriptor = Engine_descriptor_;
711 metadata.reflection = Engine_reflection_;
TODO: Rename this file - func.h is stupid.