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() {
139 void Engine_Option::InitAsDefaultInstance() {
142 Engine_Option::Engine_Option(
const Engine_Option& from)
143 : ::google::protobuf::Message() {
148 void Engine_Option::SharedCtor() {
150 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
151 state_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
152 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
155 Engine_Option::~Engine_Option() {
159 void Engine_Option::SharedDtor() {
160 if (name_ != &::google::protobuf::internal::kEmptyString) {
163 if (state_ != &::google::protobuf::internal::kEmptyString) {
166 if (
this != default_instance_) {
170 void Engine_Option::SetCachedSize(
int size)
const {
171 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
172 _cached_size_ = size;
173 GOOGLE_SAFE_CONCURRENT_WRITES_END();
175 const ::google::protobuf::Descriptor* Engine_Option::descriptor() {
176 protobuf_AssignDescriptorsOnce();
177 return Engine_Option_descriptor_;
180 const Engine_Option& Engine_Option::default_instance() {
181 if (default_instance_ == NULL) protobuf_AddDesc_engine_2eproto();
182 return *default_instance_;
185 Engine_Option* Engine_Option::default_instance_ = NULL;
187 Engine_Option* Engine_Option::New()
const {
188 return new Engine_Option;
191 void Engine_Option::Clear() {
192 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
194 if (name_ != &::google::protobuf::internal::kEmptyString) {
199 if (state_ != &::google::protobuf::internal::kEmptyString) {
204 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
205 mutable_unknown_fields()->Clear();
208 bool Engine_Option::MergePartialFromCodedStream(
209 ::google::protobuf::io::CodedInputStream* input) {
210 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
211 ::google::protobuf::uint32 tag;
212 while ((tag = input->ReadTag()) != 0) {
213 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
216 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
217 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
218 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
219 input, this->mutable_name()));
220 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
221 this->name().data(), this->name().length(),
222 ::google::protobuf::internal::WireFormat::PARSE);
224 goto handle_uninterpreted;
226 if (input->ExpectTag(18))
goto parse_state;
232 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
233 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
235 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
236 input, this->mutable_state()));
237 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
238 this->state().data(), this->state().length(),
239 ::google::protobuf::internal::WireFormat::PARSE);
241 goto handle_uninterpreted;
243 if (input->ExpectAtEnd())
return true;
248 handle_uninterpreted:
249 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
250 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
253 DO_(::google::protobuf::internal::WireFormat::SkipField(
254 input, tag, mutable_unknown_fields()));
263 void Engine_Option::SerializeWithCachedSizes(
264 ::google::protobuf::io::CodedOutputStream* output)
const {
267 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
268 this->name().data(), this->name().length(),
269 ::google::protobuf::internal::WireFormat::SERIALIZE);
270 ::google::protobuf::internal::WireFormatLite::WriteString(
271 1, this->name(), output);
276 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
277 this->state().data(), this->state().length(),
278 ::google::protobuf::internal::WireFormat::SERIALIZE);
279 ::google::protobuf::internal::WireFormatLite::WriteString(
280 2, this->state(), output);
283 if (!unknown_fields().empty()) {
284 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
285 unknown_fields(), output);
289 ::google::protobuf::uint8* Engine_Option::SerializeWithCachedSizesToArray(
290 ::google::protobuf::uint8* target)
const {
293 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
294 this->name().data(), this->name().length(),
295 ::google::protobuf::internal::WireFormat::SERIALIZE);
297 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
298 1, this->name(), target);
303 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
304 this->state().data(), this->state().length(),
305 ::google::protobuf::internal::WireFormat::SERIALIZE);
307 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
308 2, this->state(), target);
311 if (!unknown_fields().empty()) {
312 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
313 unknown_fields(), target);
318 int Engine_Option::ByteSize()
const {
321 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
325 ::google::protobuf::internal::WireFormatLite::StringSize(
332 ::google::protobuf::internal::WireFormatLite::StringSize(
337 if (!unknown_fields().empty()) {
339 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
342 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
343 _cached_size_ = total_size;
344 GOOGLE_SAFE_CONCURRENT_WRITES_END();
348 void Engine_Option::MergeFrom(const ::google::protobuf::Message& from) {
349 GOOGLE_CHECK_NE(&from,
this);
350 const Engine_Option* source =
351 ::google::protobuf::internal::dynamic_cast_if_available<const Engine_Option*>(
353 if (source == NULL) {
354 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
360 void Engine_Option::MergeFrom(
const Engine_Option& from) {
361 GOOGLE_CHECK_NE(&from,
this);
362 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
363 if (from.has_name()) {
364 set_name(from.name());
366 if (from.has_state()) {
367 set_state(from.state());
370 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
373 void Engine_Option::CopyFrom(const ::google::protobuf::Message& from) {
374 if (&from ==
this)
return;
379 void Engine_Option::CopyFrom(
const Engine_Option& from) {
380 if (&from ==
this)
return;
385 bool Engine_Option::IsInitialized()
const {
386 if ((_has_bits_[0] & 0x00000001) != 0x00000001)
return false;
391 void Engine_Option::Swap(Engine_Option* other) {
393 std::swap(name_, other->name_);
394 std::swap(state_, other->state_);
395 std::swap(_has_bits_[0], other->_has_bits_[0]);
396 _unknown_fields_.Swap(&other->_unknown_fields_);
397 std::swap(_cached_size_, other->_cached_size_);
401 ::google::protobuf::Metadata Engine_Option::GetMetadata()
const {
402 protobuf_AssignDescriptorsOnce();
403 ::google::protobuf::Metadata metadata;
404 metadata.descriptor = Engine_Option_descriptor_;
405 metadata.reflection = Engine_Option_reflection_;
413 const int Engine::kNameFieldNumber;
414 const int Engine::kOptionsFieldNumber;
418 : ::google::protobuf::Message() {
422 void Engine::InitAsDefaultInstance() {
425 Engine::Engine(
const Engine& from)
426 : ::google::protobuf::Message() {
431 void Engine::SharedCtor() {
433 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
434 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
441 void Engine::SharedDtor() {
442 if (name_ != &::google::protobuf::internal::kEmptyString) {
445 if (
this != default_instance_) {
449 void Engine::SetCachedSize(
int size)
const {
450 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
451 _cached_size_ = size;
452 GOOGLE_SAFE_CONCURRENT_WRITES_END();
454 const ::google::protobuf::Descriptor* Engine::descriptor() {
455 protobuf_AssignDescriptorsOnce();
456 return Engine_descriptor_;
459 const Engine& Engine::default_instance() {
460 if (default_instance_ == NULL) protobuf_AddDesc_engine_2eproto();
461 return *default_instance_;
464 Engine* Engine::default_instance_ = NULL;
466 Engine* Engine::New()
const {
470 void Engine::Clear() {
471 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
473 if (name_ != &::google::protobuf::internal::kEmptyString) {
479 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
480 mutable_unknown_fields()->Clear();
483 bool Engine::MergePartialFromCodedStream(
484 ::google::protobuf::io::CodedInputStream* input) {
485 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
486 ::google::protobuf::uint32 tag;
487 while ((tag = input->ReadTag()) != 0) {
488 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
491 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
492 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
493 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
494 input, this->mutable_name()));
495 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
496 this->name().data(), this->name().length(),
497 ::google::protobuf::internal::WireFormat::PARSE);
499 goto handle_uninterpreted;
501 if (input->ExpectTag(18))
goto parse_options;
507 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
508 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
510 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
511 input, add_options()));
513 goto handle_uninterpreted;
515 if (input->ExpectTag(18))
goto parse_options;
516 if (input->ExpectAtEnd())
return true;
521 handle_uninterpreted:
522 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
523 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
526 DO_(::google::protobuf::internal::WireFormat::SkipField(
527 input, tag, mutable_unknown_fields()));
536 void Engine::SerializeWithCachedSizes(
537 ::google::protobuf::io::CodedOutputStream* output)
const {
540 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
541 this->name().data(), this->name().length(),
542 ::google::protobuf::internal::WireFormat::SERIALIZE);
543 ::google::protobuf::internal::WireFormatLite::WriteString(
544 1, this->name(), output);
548 for (
int i = 0; i < this->options_size(); i++) {
549 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
550 2, this->options(i), output);
553 if (!unknown_fields().empty()) {
554 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
555 unknown_fields(), output);
559 ::google::protobuf::uint8* Engine::SerializeWithCachedSizesToArray(
560 ::google::protobuf::uint8* target)
const {
563 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
564 this->name().data(), this->name().length(),
565 ::google::protobuf::internal::WireFormat::SERIALIZE);
567 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
568 1, this->name(), target);
572 for (
int i = 0; i < this->options_size(); i++) {
573 target = ::google::protobuf::internal::WireFormatLite::
574 WriteMessageNoVirtualToArray(
575 2, this->options(i), target);
578 if (!unknown_fields().empty()) {
579 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
580 unknown_fields(), target);
585 int Engine::ByteSize()
const {
588 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
592 ::google::protobuf::internal::WireFormatLite::StringSize(
598 total_size += 1 * this->options_size();
599 for (
int i = 0; i < this->options_size(); i++) {
601 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
605 if (!unknown_fields().empty()) {
607 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
610 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
611 _cached_size_ = total_size;
612 GOOGLE_SAFE_CONCURRENT_WRITES_END();
616 void Engine::MergeFrom(const ::google::protobuf::Message& from) {
617 GOOGLE_CHECK_NE(&from,
this);
618 const Engine* source =
619 ::google::protobuf::internal::dynamic_cast_if_available<const Engine*>(
621 if (source == NULL) {
622 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
628 void Engine::MergeFrom(
const Engine& from) {
629 GOOGLE_CHECK_NE(&from,
this);
630 options_.MergeFrom(from.options_);
631 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
632 if (from.has_name()) {
633 set_name(from.name());
636 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
639 void Engine::CopyFrom(const ::google::protobuf::Message& from) {
640 if (&from ==
this)
return;
645 void Engine::CopyFrom(
const Engine& from) {
646 if (&from ==
this)
return;
651 bool Engine::IsInitialized()
const {
652 if ((_has_bits_[0] & 0x00000001) != 0x00000001)
return false;
654 for (
int i = 0; i < options_size(); i++) {
655 if (!this->options(i).IsInitialized())
return false;
660 void Engine::Swap(Engine* other) {
662 std::swap(name_, other->name_);
663 options_.Swap(&other->options_);
664 std::swap(_has_bits_[0], other->_has_bits_[0]);
665 _unknown_fields_.Swap(&other->_unknown_fields_);
666 std::swap(_cached_size_, other->_cached_size_);
670 ::google::protobuf::Metadata Engine::GetMetadata()
const {
671 protobuf_AssignDescriptorsOnce();
672 ::google::protobuf::Metadata metadata;
673 metadata.descriptor = Engine_descriptor_;
674 metadata.reflection = Engine_reflection_;