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* Engine_descriptor_ = NULL;
22 const ::google::protobuf::internal::GeneratedMessageReflection*
23 Engine_reflection_ = NULL;
24 const ::google::protobuf::Descriptor* Engine_Option_descriptor_ = NULL;
25 const ::google::protobuf::internal::GeneratedMessageReflection*
26 Engine_Option_reflection_ = NULL;
31 void protobuf_AssignDesc_engine_2eproto() {
32 protobuf_AddDesc_engine_2eproto();
33 const ::google::protobuf::FileDescriptor* file =
34 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
36 GOOGLE_CHECK(file != NULL);
37 Engine_descriptor_ = file->message_type(0);
38 static const int Engine_offsets_[2] = {
39 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Engine, name_),
40 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Engine, options_),
43 new ::google::protobuf::internal::GeneratedMessageReflection(
45 Engine::default_instance_,
47 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Engine, _has_bits_[0]),
48 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Engine, _unknown_fields_),
50 ::google::protobuf::DescriptorPool::generated_pool(),
51 ::google::protobuf::MessageFactory::generated_factory(),
53 Engine_Option_descriptor_ = Engine_descriptor_->nested_type(0);
54 static const int Engine_Option_offsets_[2] = {
55 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Engine_Option, name_),
56 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Engine_Option, state_),
58 Engine_Option_reflection_ =
59 new ::google::protobuf::internal::GeneratedMessageReflection(
60 Engine_Option_descriptor_,
61 Engine_Option::default_instance_,
62 Engine_Option_offsets_,
63 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Engine_Option, _has_bits_[0]),
64 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Engine_Option, _unknown_fields_),
66 ::google::protobuf::DescriptorPool::generated_pool(),
67 ::google::protobuf::MessageFactory::generated_factory(),
68 sizeof(Engine_Option));
73 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
74 inline void protobuf_AssignDescriptorsOnce() {
75 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
76 &protobuf_AssignDesc_engine_2eproto);
79 void protobuf_RegisterTypes(const ::std::string&) {
80 protobuf_AssignDescriptorsOnce();
81 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
82 Engine_descriptor_, &Engine::default_instance());
83 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
84 Engine_Option_descriptor_, &Engine_Option::default_instance());
89 void protobuf_ShutdownFile_engine_2eproto() {
90 delete Engine::default_instance_;
91 delete Engine_reflection_;
92 delete Engine_Option::default_instance_;
93 delete Engine_Option_reflection_;
96 void protobuf_AddDesc_engine_2eproto() {
97 static bool already_here =
false;
98 if (already_here)
return;
100 GOOGLE_PROTOBUF_VERIFY_VERSION;
102 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
103 "\n\014engine.proto\022\020drizzled.message\"o\n\006Engi"
104 "ne\022\014\n\004name\030\001 \002(\t\0220\n\007options\030\002 \003(\0132\037.driz"
105 "zled.message.Engine.Option\032%\n\006Option\022\014\n\004"
106 "name\030\001 \002(\t\022\r\n\005state\030\002 \001(\tB\'\n\024org.drizzle"
107 ".messagesB\rEngineMessageH\001", 186);
108 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
109 "engine.proto", &protobuf_RegisterTypes);
110 Engine::default_instance_ =
new Engine();
111 Engine_Option::default_instance_ =
new Engine_Option();
112 Engine::default_instance_->InitAsDefaultInstance();
113 Engine_Option::default_instance_->InitAsDefaultInstance();
114 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_engine_2eproto);
120 protobuf_AddDesc_engine_2eproto();
122 } static_descriptor_initializer_engine_2eproto_;
128 const int Engine_Option::kNameFieldNumber;
129 const int Engine_Option::kStateFieldNumber;
132 Engine_Option::Engine_Option()
133 : ::google::protobuf::Message() {
137 void Engine_Option::InitAsDefaultInstance() {
140 Engine_Option::Engine_Option(
const Engine_Option& from)
141 : ::google::protobuf::Message() {
146 void Engine_Option::SharedCtor() {
148 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
149 state_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
150 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
153 Engine_Option::~Engine_Option() {
157 void Engine_Option::SharedDtor() {
158 if (name_ != &::google::protobuf::internal::kEmptyString) {
161 if (state_ != &::google::protobuf::internal::kEmptyString) {
164 if (
this != default_instance_) {
168 void Engine_Option::SetCachedSize(
int size)
const {
169 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
170 _cached_size_ = size;
171 GOOGLE_SAFE_CONCURRENT_WRITES_END();
173 const ::google::protobuf::Descriptor* Engine_Option::descriptor() {
174 protobuf_AssignDescriptorsOnce();
175 return Engine_Option_descriptor_;
178 const Engine_Option& Engine_Option::default_instance() {
179 if (default_instance_ == NULL) protobuf_AddDesc_engine_2eproto();
return *default_instance_;
182 Engine_Option* Engine_Option::default_instance_ = NULL;
184 Engine_Option* Engine_Option::New()
const {
185 return new Engine_Option;
188 void Engine_Option::Clear() {
189 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
191 if (name_ != &::google::protobuf::internal::kEmptyString) {
196 if (state_ != &::google::protobuf::internal::kEmptyString) {
201 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
202 mutable_unknown_fields()->Clear();
205 bool Engine_Option::MergePartialFromCodedStream(
206 ::google::protobuf::io::CodedInputStream* input) {
207 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
208 ::google::protobuf::uint32 tag;
209 while ((tag = input->ReadTag()) != 0) {
210 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
213 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
214 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
215 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
216 input, this->mutable_name()));
217 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
218 this->name().data(), this->name().length(),
219 ::google::protobuf::internal::WireFormat::PARSE);
221 goto handle_uninterpreted;
223 if (input->ExpectTag(18))
goto parse_state;
229 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
230 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
232 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
233 input, this->mutable_state()));
234 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
235 this->state().data(), this->state().length(),
236 ::google::protobuf::internal::WireFormat::PARSE);
238 goto handle_uninterpreted;
240 if (input->ExpectAtEnd())
return true;
245 handle_uninterpreted:
246 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
247 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
250 DO_(::google::protobuf::internal::WireFormat::SkipField(
251 input, tag, mutable_unknown_fields()));
260 void Engine_Option::SerializeWithCachedSizes(
261 ::google::protobuf::io::CodedOutputStream* output)
const {
264 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
265 this->name().data(), this->name().length(),
266 ::google::protobuf::internal::WireFormat::SERIALIZE);
267 ::google::protobuf::internal::WireFormatLite::WriteString(
268 1, this->name(), output);
273 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
274 this->state().data(), this->state().length(),
275 ::google::protobuf::internal::WireFormat::SERIALIZE);
276 ::google::protobuf::internal::WireFormatLite::WriteString(
277 2, this->state(), output);
280 if (!unknown_fields().empty()) {
281 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
282 unknown_fields(), output);
286 ::google::protobuf::uint8* Engine_Option::SerializeWithCachedSizesToArray(
287 ::google::protobuf::uint8* target)
const {
290 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
291 this->name().data(), this->name().length(),
292 ::google::protobuf::internal::WireFormat::SERIALIZE);
294 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
295 1, this->name(), target);
300 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
301 this->state().data(), this->state().length(),
302 ::google::protobuf::internal::WireFormat::SERIALIZE);
304 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
305 2, this->state(), target);
308 if (!unknown_fields().empty()) {
309 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
310 unknown_fields(), target);
315 int Engine_Option::ByteSize()
const {
318 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
322 ::google::protobuf::internal::WireFormatLite::StringSize(
329 ::google::protobuf::internal::WireFormatLite::StringSize(
334 if (!unknown_fields().empty()) {
336 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
339 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
340 _cached_size_ = total_size;
341 GOOGLE_SAFE_CONCURRENT_WRITES_END();
345 void Engine_Option::MergeFrom(const ::google::protobuf::Message& from) {
346 GOOGLE_CHECK_NE(&from,
this);
347 const Engine_Option* source =
348 ::google::protobuf::internal::dynamic_cast_if_available<const Engine_Option*>(
350 if (source == NULL) {
351 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
357 void Engine_Option::MergeFrom(
const Engine_Option& from) {
358 GOOGLE_CHECK_NE(&from,
this);
359 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
360 if (from.has_name()) {
361 set_name(from.name());
363 if (from.has_state()) {
364 set_state(from.state());
367 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
370 void Engine_Option::CopyFrom(const ::google::protobuf::Message& from) {
371 if (&from ==
this)
return;
376 void Engine_Option::CopyFrom(
const Engine_Option& from) {
377 if (&from ==
this)
return;
382 bool Engine_Option::IsInitialized()
const {
383 if ((_has_bits_[0] & 0x00000001) != 0x00000001)
return false;
388 void Engine_Option::Swap(Engine_Option* other) {
390 std::swap(name_, other->name_);
391 std::swap(state_, other->state_);
392 std::swap(_has_bits_[0], other->_has_bits_[0]);
393 _unknown_fields_.Swap(&other->_unknown_fields_);
394 std::swap(_cached_size_, other->_cached_size_);
398 ::google::protobuf::Metadata Engine_Option::GetMetadata()
const {
399 protobuf_AssignDescriptorsOnce();
400 ::google::protobuf::Metadata metadata;
401 metadata.descriptor = Engine_Option_descriptor_;
402 metadata.reflection = Engine_Option_reflection_;
410 const int Engine::kNameFieldNumber;
411 const int Engine::kOptionsFieldNumber;
415 : ::google::protobuf::Message() {
419 void Engine::InitAsDefaultInstance() {
422 Engine::Engine(
const Engine& from)
423 : ::google::protobuf::Message() {
428 void Engine::SharedCtor() {
430 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
431 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
438 void Engine::SharedDtor() {
439 if (name_ != &::google::protobuf::internal::kEmptyString) {
442 if (
this != default_instance_) {
446 void Engine::SetCachedSize(
int size)
const {
447 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
448 _cached_size_ = size;
449 GOOGLE_SAFE_CONCURRENT_WRITES_END();
451 const ::google::protobuf::Descriptor* Engine::descriptor() {
452 protobuf_AssignDescriptorsOnce();
453 return Engine_descriptor_;
456 const Engine& Engine::default_instance() {
457 if (default_instance_ == NULL) protobuf_AddDesc_engine_2eproto();
return *default_instance_;
460 Engine* Engine::default_instance_ = NULL;
462 Engine* Engine::New()
const {
466 void Engine::Clear() {
467 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
469 if (name_ != &::google::protobuf::internal::kEmptyString) {
475 ::memset(_has_bits_, 0,
sizeof(_has_bits_));
476 mutable_unknown_fields()->Clear();
479 bool Engine::MergePartialFromCodedStream(
480 ::google::protobuf::io::CodedInputStream* input) {
481 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
482 ::google::protobuf::uint32 tag;
483 while ((tag = input->ReadTag()) != 0) {
484 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
487 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
488 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
489 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
490 input, this->mutable_name()));
491 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
492 this->name().data(), this->name().length(),
493 ::google::protobuf::internal::WireFormat::PARSE);
495 goto handle_uninterpreted;
497 if (input->ExpectTag(18))
goto parse_options;
503 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
504 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
506 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
507 input, add_options()));
509 goto handle_uninterpreted;
511 if (input->ExpectTag(18))
goto parse_options;
512 if (input->ExpectAtEnd())
return true;
517 handle_uninterpreted:
518 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
519 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
522 DO_(::google::protobuf::internal::WireFormat::SkipField(
523 input, tag, mutable_unknown_fields()));
532 void Engine::SerializeWithCachedSizes(
533 ::google::protobuf::io::CodedOutputStream* output)
const {
536 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
537 this->name().data(), this->name().length(),
538 ::google::protobuf::internal::WireFormat::SERIALIZE);
539 ::google::protobuf::internal::WireFormatLite::WriteString(
540 1, this->name(), output);
544 for (
int i = 0; i < this->options_size(); i++) {
545 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
546 2, this->options(i), output);
549 if (!unknown_fields().empty()) {
550 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
551 unknown_fields(), output);
555 ::google::protobuf::uint8* Engine::SerializeWithCachedSizesToArray(
556 ::google::protobuf::uint8* target)
const {
559 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
560 this->name().data(), this->name().length(),
561 ::google::protobuf::internal::WireFormat::SERIALIZE);
563 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
564 1, this->name(), target);
568 for (
int i = 0; i < this->options_size(); i++) {
569 target = ::google::protobuf::internal::WireFormatLite::
570 WriteMessageNoVirtualToArray(
571 2, this->options(i), target);
574 if (!unknown_fields().empty()) {
575 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
576 unknown_fields(), target);
581 int Engine::ByteSize()
const {
584 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
588 ::google::protobuf::internal::WireFormatLite::StringSize(
594 total_size += 1 * this->options_size();
595 for (
int i = 0; i < this->options_size(); i++) {
597 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
601 if (!unknown_fields().empty()) {
603 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
606 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
607 _cached_size_ = total_size;
608 GOOGLE_SAFE_CONCURRENT_WRITES_END();
612 void Engine::MergeFrom(const ::google::protobuf::Message& from) {
613 GOOGLE_CHECK_NE(&from,
this);
614 const Engine* source =
615 ::google::protobuf::internal::dynamic_cast_if_available<const Engine*>(
617 if (source == NULL) {
618 ::google::protobuf::internal::ReflectionOps::Merge(from,
this);
624 void Engine::MergeFrom(
const Engine& from) {
625 GOOGLE_CHECK_NE(&from,
this);
626 options_.MergeFrom(from.options_);
627 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
628 if (from.has_name()) {
629 set_name(from.name());
632 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
635 void Engine::CopyFrom(const ::google::protobuf::Message& from) {
636 if (&from ==
this)
return;
641 void Engine::CopyFrom(
const Engine& from) {
642 if (&from ==
this)
return;
647 bool Engine::IsInitialized()
const {
648 if ((_has_bits_[0] & 0x00000001) != 0x00000001)
return false;
650 for (
int i = 0; i < options_size(); i++) {
651 if (!this->options(i).IsInitialized())
return false;
656 void Engine::Swap(Engine* other) {
658 std::swap(name_, other->name_);
659 options_.Swap(&other->options_);
660 std::swap(_has_bits_[0], other->_has_bits_[0]);
661 _unknown_fields_.Swap(&other->_unknown_fields_);
662 std::swap(_cached_size_, other->_cached_size_);
666 ::google::protobuf::Metadata Engine::GetMetadata()
const {
667 protobuf_AssignDescriptorsOnce();
668 ::google::protobuf::Metadata metadata;
669 metadata.descriptor = Engine_descriptor_;
670 metadata.reflection = Engine_reflection_;