1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: mysqlx_notice.proto
3 
4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 #include "mysqlx_notice.pb.h"
6 
7 #include <algorithm>
8 
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/io/zero_copy_stream_impl_lite.h>
14 // @@protoc_insertion_point(includes)
15 
16 namespace Mysqlx {
17 namespace Notice {
18 
protobuf_ShutdownFile_mysqlx_5fnotice_2eproto()19 void protobuf_ShutdownFile_mysqlx_5fnotice_2eproto() {
20   delete Frame::default_instance_;
21   delete Warning::default_instance_;
22   delete SessionVariableChanged::default_instance_;
23   delete SessionStateChanged::default_instance_;
24 }
25 
26 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
protobuf_AddDesc_mysqlx_5fnotice_2eproto_impl()27 void protobuf_AddDesc_mysqlx_5fnotice_2eproto_impl() {
28   GOOGLE_PROTOBUF_VERIFY_VERSION;
29 
30 #else
31 void protobuf_AddDesc_mysqlx_5fnotice_2eproto() {
32   static bool already_here = false;
33   if (already_here) return;
34   already_here = true;
35   GOOGLE_PROTOBUF_VERIFY_VERSION;
36 
37 #endif
38   ::Mysqlx::Datatypes::protobuf_AddDesc_mysqlx_5fdatatypes_2eproto();
39   Frame::default_instance_ = new Frame();
40   Warning::default_instance_ = new Warning();
41   SessionVariableChanged::default_instance_ = new SessionVariableChanged();
42   SessionStateChanged::default_instance_ = new SessionStateChanged();
43   Frame::default_instance_->InitAsDefaultInstance();
44   Warning::default_instance_->InitAsDefaultInstance();
45   SessionVariableChanged::default_instance_->InitAsDefaultInstance();
46   SessionStateChanged::default_instance_->InitAsDefaultInstance();
47   ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_mysqlx_5fnotice_2eproto);
48 }
49 
50 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
51 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_mysqlx_5fnotice_2eproto_once_);
52 void protobuf_AddDesc_mysqlx_5fnotice_2eproto() {
53   ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_mysqlx_5fnotice_2eproto_once_,
54                  &protobuf_AddDesc_mysqlx_5fnotice_2eproto_impl);
55 }
56 #else
57 // Force AddDescriptors() to be called at static initialization time.
58 struct StaticDescriptorInitializer_mysqlx_5fnotice_2eproto {
59   StaticDescriptorInitializer_mysqlx_5fnotice_2eproto() {
60     protobuf_AddDesc_mysqlx_5fnotice_2eproto();
61   }
62 } static_descriptor_initializer_mysqlx_5fnotice_2eproto_;
63 #endif
64 
65 // ===================================================================
66 
67 bool Frame_Scope_IsValid(int value) {
68   switch(value) {
69     case 1:
70     case 2:
71       return true;
72     default:
73       return false;
74   }
75 }
76 
77 #ifndef _MSC_VER
78 const Frame_Scope Frame::GLOBAL;
79 const Frame_Scope Frame::LOCAL;
80 const Frame_Scope Frame::Scope_MIN;
81 const Frame_Scope Frame::Scope_MAX;
82 const int Frame::Scope_ARRAYSIZE;
83 #endif  // _MSC_VER
84 #ifndef _MSC_VER
85 const int Frame::kTypeFieldNumber;
86 const int Frame::kScopeFieldNumber;
87 const int Frame::kPayloadFieldNumber;
88 #endif  // !_MSC_VER
89 
90 Frame::Frame()
91   : ::google::protobuf::MessageLite() {
92   SharedCtor();
93   // @@protoc_insertion_point(constructor:Mysqlx.Notice.Frame)
94 }
95 
96 void Frame::InitAsDefaultInstance() {
97 }
98 
99 Frame::Frame(const Frame& from)
100   : ::google::protobuf::MessageLite() {
101   SharedCtor();
102   MergeFrom(from);
103   // @@protoc_insertion_point(copy_constructor:Mysqlx.Notice.Frame)
104 }
105 
106 void Frame::SharedCtor() {
107   ::google::protobuf::internal::GetEmptyString();
108   _cached_size_ = 0;
109   type_ = 0u;
110   scope_ = 1;
111   payload_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
112   ::memset(_has_bits_, 0, sizeof(_has_bits_));
113 }
114 
115 Frame::~Frame() {
116   // @@protoc_insertion_point(destructor:Mysqlx.Notice.Frame)
117   SharedDtor();
118 }
119 
120 void Frame::SharedDtor() {
121   if (payload_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
122     delete payload_;
123   }
124   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
125   if (this != &default_instance()) {
126   #else
127   if (this != default_instance_) {
128   #endif
129   }
130 }
131 
132 void Frame::SetCachedSize(int size) const {
133   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
134   _cached_size_ = size;
135   GOOGLE_SAFE_CONCURRENT_WRITES_END();
136 }
137 const Frame& Frame::default_instance() {
138 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
139   protobuf_AddDesc_mysqlx_5fnotice_2eproto();
140 #else
141   if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fnotice_2eproto();
142 #endif
143   return *default_instance_;
144 }
145 
146 Frame* Frame::default_instance_ = NULL;
147 
148 Frame* Frame::New() const {
149   return new Frame;
150 }
151 
152 void Frame::Clear() {
153   if (_has_bits_[0 / 32] & 7) {
154     type_ = 0u;
155     scope_ = 1;
156     if (has_payload()) {
157       if (payload_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
158         payload_->clear();
159       }
160     }
161   }
162   ::memset(_has_bits_, 0, sizeof(_has_bits_));
163   mutable_unknown_fields()->clear();
164 }
165 
166 bool Frame::MergePartialFromCodedStream(
167     ::google::protobuf::io::CodedInputStream* input) {
168 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
169   ::google::protobuf::uint32 tag;
170   ::google::protobuf::io::StringOutputStream unknown_fields_string(
171       mutable_unknown_fields());
172   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
173       &unknown_fields_string);
174   // @@protoc_insertion_point(parse_start:Mysqlx.Notice.Frame)
175   for (;;) {
176     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
177     tag = p.first;
178     if (!p.second) goto handle_unusual;
179     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
180       // required uint32 type = 1;
181       case 1: {
182         if (tag == 8) {
183           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
184                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
185                  input, &type_)));
186           set_has_type();
187         } else {
188           goto handle_unusual;
189         }
190         if (input->ExpectTag(16)) goto parse_scope;
191         break;
192       }
193 
194       // optional .Mysqlx.Notice.Frame.Scope scope = 2 [default = GLOBAL];
195       case 2: {
196         if (tag == 16) {
197          parse_scope:
198           int value;
199           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
200                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
201                  input, &value)));
202           if (::Mysqlx::Notice::Frame_Scope_IsValid(value)) {
203             set_scope(static_cast< ::Mysqlx::Notice::Frame_Scope >(value));
204           } else {
205             unknown_fields_stream.WriteVarint32(tag);
206             unknown_fields_stream.WriteVarint32(value);
207           }
208         } else {
209           goto handle_unusual;
210         }
211         if (input->ExpectTag(26)) goto parse_payload;
212         break;
213       }
214 
215       // optional bytes payload = 3;
216       case 3: {
217         if (tag == 26) {
218          parse_payload:
219           DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
220                 input, this->mutable_payload()));
221         } else {
222           goto handle_unusual;
223         }
224         if (input->ExpectAtEnd()) goto success;
225         break;
226       }
227 
228       default: {
229       handle_unusual:
230         if (tag == 0 ||
231             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
232             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
233           goto success;
234         }
235         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
236             input, tag, &unknown_fields_stream));
237         break;
238       }
239     }
240   }
241 success:
242   // @@protoc_insertion_point(parse_success:Mysqlx.Notice.Frame)
243   return true;
244 failure:
245   // @@protoc_insertion_point(parse_failure:Mysqlx.Notice.Frame)
246   return false;
247 #undef DO_
248 }
249 
250 void Frame::SerializeWithCachedSizes(
251     ::google::protobuf::io::CodedOutputStream* output) const {
252   // @@protoc_insertion_point(serialize_start:Mysqlx.Notice.Frame)
253   // required uint32 type = 1;
254   if (has_type()) {
255     ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->type(), output);
256   }
257 
258   // optional .Mysqlx.Notice.Frame.Scope scope = 2 [default = GLOBAL];
259   if (has_scope()) {
260     ::google::protobuf::internal::WireFormatLite::WriteEnum(
261       2, this->scope(), output);
262   }
263 
264   // optional bytes payload = 3;
265   if (has_payload()) {
266     ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
267       3, this->payload(), output);
268   }
269 
270   output->WriteRaw(unknown_fields().data(),
271                    unknown_fields().size());
272   // @@protoc_insertion_point(serialize_end:Mysqlx.Notice.Frame)
273 }
274 
275 int Frame::ByteSize() const {
276   int total_size = 0;
277 
278   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
279     // required uint32 type = 1;
280     if (has_type()) {
281       total_size += 1 +
282         ::google::protobuf::internal::WireFormatLite::UInt32Size(
283           this->type());
284     }
285 
286     // optional .Mysqlx.Notice.Frame.Scope scope = 2 [default = GLOBAL];
287     if (has_scope()) {
288       total_size += 1 +
289         ::google::protobuf::internal::WireFormatLite::EnumSize(this->scope());
290     }
291 
292     // optional bytes payload = 3;
293     if (has_payload()) {
294       total_size += 1 +
295         ::google::protobuf::internal::WireFormatLite::BytesSize(
296           this->payload());
297     }
298 
299   }
300   total_size += unknown_fields().size();
301 
302   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
303   _cached_size_ = total_size;
304   GOOGLE_SAFE_CONCURRENT_WRITES_END();
305   return total_size;
306 }
307 
308 void Frame::CheckTypeAndMergeFrom(
309     const ::google::protobuf::MessageLite& from) {
310   MergeFrom(*::google::protobuf::down_cast<const Frame*>(&from));
311 }
312 
313 void Frame::MergeFrom(const Frame& from) {
314   GOOGLE_CHECK_NE(&from, this);
315   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
316     if (from.has_type()) {
317       set_type(from.type());
318     }
319     if (from.has_scope()) {
320       set_scope(from.scope());
321     }
322     if (from.has_payload()) {
323       set_payload(from.payload());
324     }
325   }
326   mutable_unknown_fields()->append(from.unknown_fields());
327 }
328 
329 void Frame::CopyFrom(const Frame& from) {
330   if (&from == this) return;
331   Clear();
332   MergeFrom(from);
333 }
334 
335 bool Frame::IsInitialized() const {
336   if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
337 
338   return true;
339 }
340 
341 void Frame::Swap(Frame* other) {
342   if (other != this) {
343     std::swap(type_, other->type_);
344     std::swap(scope_, other->scope_);
345     std::swap(payload_, other->payload_);
346     std::swap(_has_bits_[0], other->_has_bits_[0]);
347     _unknown_fields_.swap(other->_unknown_fields_);
348     std::swap(_cached_size_, other->_cached_size_);
349   }
350 }
351 
352 ::std::string Frame::GetTypeName() const {
353   return "Mysqlx.Notice.Frame";
354 }
355 
356 
357 // ===================================================================
358 
359 bool Warning_Level_IsValid(int value) {
360   switch(value) {
361     case 1:
362     case 2:
363     case 3:
364       return true;
365     default:
366       return false;
367   }
368 }
369 
370 #ifndef _MSC_VER
371 const Warning_Level Warning::NOTE;
372 const Warning_Level Warning::WARNING;
373 const Warning_Level Warning::ERROR;
374 const Warning_Level Warning::Level_MIN;
375 const Warning_Level Warning::Level_MAX;
376 const int Warning::Level_ARRAYSIZE;
377 #endif  // _MSC_VER
378 #ifndef _MSC_VER
379 const int Warning::kLevelFieldNumber;
380 const int Warning::kCodeFieldNumber;
381 const int Warning::kMsgFieldNumber;
382 #endif  // !_MSC_VER
383 
384 Warning::Warning()
385   : ::google::protobuf::MessageLite() {
386   SharedCtor();
387   // @@protoc_insertion_point(constructor:Mysqlx.Notice.Warning)
388 }
389 
390 void Warning::InitAsDefaultInstance() {
391 }
392 
393 Warning::Warning(const Warning& from)
394   : ::google::protobuf::MessageLite() {
395   SharedCtor();
396   MergeFrom(from);
397   // @@protoc_insertion_point(copy_constructor:Mysqlx.Notice.Warning)
398 }
399 
400 void Warning::SharedCtor() {
401   ::google::protobuf::internal::GetEmptyString();
402   _cached_size_ = 0;
403   level_ = 2;
404   code_ = 0u;
405   msg_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
406   ::memset(_has_bits_, 0, sizeof(_has_bits_));
407 }
408 
409 Warning::~Warning() {
410   // @@protoc_insertion_point(destructor:Mysqlx.Notice.Warning)
411   SharedDtor();
412 }
413 
414 void Warning::SharedDtor() {
415   if (msg_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
416     delete msg_;
417   }
418   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
419   if (this != &default_instance()) {
420   #else
421   if (this != default_instance_) {
422   #endif
423   }
424 }
425 
426 void Warning::SetCachedSize(int size) const {
427   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
428   _cached_size_ = size;
429   GOOGLE_SAFE_CONCURRENT_WRITES_END();
430 }
431 const Warning& Warning::default_instance() {
432 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
433   protobuf_AddDesc_mysqlx_5fnotice_2eproto();
434 #else
435   if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fnotice_2eproto();
436 #endif
437   return *default_instance_;
438 }
439 
440 Warning* Warning::default_instance_ = NULL;
441 
442 Warning* Warning::New() const {
443   return new Warning;
444 }
445 
446 void Warning::Clear() {
447   if (_has_bits_[0 / 32] & 7) {
448     level_ = 2;
449     code_ = 0u;
450     if (has_msg()) {
451       if (msg_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
452         msg_->clear();
453       }
454     }
455   }
456   ::memset(_has_bits_, 0, sizeof(_has_bits_));
457   mutable_unknown_fields()->clear();
458 }
459 
460 bool Warning::MergePartialFromCodedStream(
461     ::google::protobuf::io::CodedInputStream* input) {
462 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
463   ::google::protobuf::uint32 tag;
464   ::google::protobuf::io::StringOutputStream unknown_fields_string(
465       mutable_unknown_fields());
466   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
467       &unknown_fields_string);
468   // @@protoc_insertion_point(parse_start:Mysqlx.Notice.Warning)
469   for (;;) {
470     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
471     tag = p.first;
472     if (!p.second) goto handle_unusual;
473     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
474       // optional .Mysqlx.Notice.Warning.Level level = 1 [default = WARNING];
475       case 1: {
476         if (tag == 8) {
477           int value;
478           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
479                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
480                  input, &value)));
481           if (::Mysqlx::Notice::Warning_Level_IsValid(value)) {
482             set_level(static_cast< ::Mysqlx::Notice::Warning_Level >(value));
483           } else {
484             unknown_fields_stream.WriteVarint32(tag);
485             unknown_fields_stream.WriteVarint32(value);
486           }
487         } else {
488           goto handle_unusual;
489         }
490         if (input->ExpectTag(16)) goto parse_code;
491         break;
492       }
493 
494       // required uint32 code = 2;
495       case 2: {
496         if (tag == 16) {
497          parse_code:
498           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
499                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
500                  input, &code_)));
501           set_has_code();
502         } else {
503           goto handle_unusual;
504         }
505         if (input->ExpectTag(26)) goto parse_msg;
506         break;
507       }
508 
509       // required string msg = 3;
510       case 3: {
511         if (tag == 26) {
512          parse_msg:
513           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
514                 input, this->mutable_msg()));
515         } else {
516           goto handle_unusual;
517         }
518         if (input->ExpectAtEnd()) goto success;
519         break;
520       }
521 
522       default: {
523       handle_unusual:
524         if (tag == 0 ||
525             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
526             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
527           goto success;
528         }
529         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
530             input, tag, &unknown_fields_stream));
531         break;
532       }
533     }
534   }
535 success:
536   // @@protoc_insertion_point(parse_success:Mysqlx.Notice.Warning)
537   return true;
538 failure:
539   // @@protoc_insertion_point(parse_failure:Mysqlx.Notice.Warning)
540   return false;
541 #undef DO_
542 }
543 
544 void Warning::SerializeWithCachedSizes(
545     ::google::protobuf::io::CodedOutputStream* output) const {
546   // @@protoc_insertion_point(serialize_start:Mysqlx.Notice.Warning)
547   // optional .Mysqlx.Notice.Warning.Level level = 1 [default = WARNING];
548   if (has_level()) {
549     ::google::protobuf::internal::WireFormatLite::WriteEnum(
550       1, this->level(), output);
551   }
552 
553   // required uint32 code = 2;
554   if (has_code()) {
555     ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->code(), output);
556   }
557 
558   // required string msg = 3;
559   if (has_msg()) {
560     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
561       3, this->msg(), output);
562   }
563 
564   output->WriteRaw(unknown_fields().data(),
565                    unknown_fields().size());
566   // @@protoc_insertion_point(serialize_end:Mysqlx.Notice.Warning)
567 }
568 
569 int Warning::ByteSize() const {
570   int total_size = 0;
571 
572   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
573     // optional .Mysqlx.Notice.Warning.Level level = 1 [default = WARNING];
574     if (has_level()) {
575       total_size += 1 +
576         ::google::protobuf::internal::WireFormatLite::EnumSize(this->level());
577     }
578 
579     // required uint32 code = 2;
580     if (has_code()) {
581       total_size += 1 +
582         ::google::protobuf::internal::WireFormatLite::UInt32Size(
583           this->code());
584     }
585 
586     // required string msg = 3;
587     if (has_msg()) {
588       total_size += 1 +
589         ::google::protobuf::internal::WireFormatLite::StringSize(
590           this->msg());
591     }
592 
593   }
594   total_size += unknown_fields().size();
595 
596   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
597   _cached_size_ = total_size;
598   GOOGLE_SAFE_CONCURRENT_WRITES_END();
599   return total_size;
600 }
601 
602 void Warning::CheckTypeAndMergeFrom(
603     const ::google::protobuf::MessageLite& from) {
604   MergeFrom(*::google::protobuf::down_cast<const Warning*>(&from));
605 }
606 
607 void Warning::MergeFrom(const Warning& from) {
608   GOOGLE_CHECK_NE(&from, this);
609   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
610     if (from.has_level()) {
611       set_level(from.level());
612     }
613     if (from.has_code()) {
614       set_code(from.code());
615     }
616     if (from.has_msg()) {
617       set_msg(from.msg());
618     }
619   }
620   mutable_unknown_fields()->append(from.unknown_fields());
621 }
622 
623 void Warning::CopyFrom(const Warning& from) {
624   if (&from == this) return;
625   Clear();
626   MergeFrom(from);
627 }
628 
629 bool Warning::IsInitialized() const {
630   if ((_has_bits_[0] & 0x00000006) != 0x00000006) return false;
631 
632   return true;
633 }
634 
635 void Warning::Swap(Warning* other) {
636   if (other != this) {
637     std::swap(level_, other->level_);
638     std::swap(code_, other->code_);
639     std::swap(msg_, other->msg_);
640     std::swap(_has_bits_[0], other->_has_bits_[0]);
641     _unknown_fields_.swap(other->_unknown_fields_);
642     std::swap(_cached_size_, other->_cached_size_);
643   }
644 }
645 
646 ::std::string Warning::GetTypeName() const {
647   return "Mysqlx.Notice.Warning";
648 }
649 
650 
651 // ===================================================================
652 
653 #ifndef _MSC_VER
654 const int SessionVariableChanged::kParamFieldNumber;
655 const int SessionVariableChanged::kValueFieldNumber;
656 #endif  // !_MSC_VER
657 
658 SessionVariableChanged::SessionVariableChanged()
659   : ::google::protobuf::MessageLite() {
660   SharedCtor();
661   // @@protoc_insertion_point(constructor:Mysqlx.Notice.SessionVariableChanged)
662 }
663 
664 void SessionVariableChanged::InitAsDefaultInstance() {
665 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
666   value_ = const_cast< ::Mysqlx::Datatypes::Scalar*>(
667       ::Mysqlx::Datatypes::Scalar::internal_default_instance());
668 #else
669   value_ = const_cast< ::Mysqlx::Datatypes::Scalar*>(&::Mysqlx::Datatypes::Scalar::default_instance());
670 #endif
671 }
672 
673 SessionVariableChanged::SessionVariableChanged(const SessionVariableChanged& from)
674   : ::google::protobuf::MessageLite() {
675   SharedCtor();
676   MergeFrom(from);
677   // @@protoc_insertion_point(copy_constructor:Mysqlx.Notice.SessionVariableChanged)
678 }
679 
680 void SessionVariableChanged::SharedCtor() {
681   ::google::protobuf::internal::GetEmptyString();
682   _cached_size_ = 0;
683   param_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
684   value_ = NULL;
685   ::memset(_has_bits_, 0, sizeof(_has_bits_));
686 }
687 
688 SessionVariableChanged::~SessionVariableChanged() {
689   // @@protoc_insertion_point(destructor:Mysqlx.Notice.SessionVariableChanged)
690   SharedDtor();
691 }
692 
693 void SessionVariableChanged::SharedDtor() {
694   if (param_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
695     delete param_;
696   }
697   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
698   if (this != &default_instance()) {
699   #else
700   if (this != default_instance_) {
701   #endif
702     delete value_;
703   }
704 }
705 
706 void SessionVariableChanged::SetCachedSize(int size) const {
707   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
708   _cached_size_ = size;
709   GOOGLE_SAFE_CONCURRENT_WRITES_END();
710 }
711 const SessionVariableChanged& SessionVariableChanged::default_instance() {
712 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
713   protobuf_AddDesc_mysqlx_5fnotice_2eproto();
714 #else
715   if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fnotice_2eproto();
716 #endif
717   return *default_instance_;
718 }
719 
720 SessionVariableChanged* SessionVariableChanged::default_instance_ = NULL;
721 
722 SessionVariableChanged* SessionVariableChanged::New() const {
723   return new SessionVariableChanged;
724 }
725 
726 void SessionVariableChanged::Clear() {
727   if (_has_bits_[0 / 32] & 3) {
728     if (has_param()) {
729       if (param_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
730         param_->clear();
731       }
732     }
733     if (has_value()) {
734       if (value_ != NULL) value_->::Mysqlx::Datatypes::Scalar::Clear();
735     }
736   }
737   ::memset(_has_bits_, 0, sizeof(_has_bits_));
738   mutable_unknown_fields()->clear();
739 }
740 
741 bool SessionVariableChanged::MergePartialFromCodedStream(
742     ::google::protobuf::io::CodedInputStream* input) {
743 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
744   ::google::protobuf::uint32 tag;
745   ::google::protobuf::io::StringOutputStream unknown_fields_string(
746       mutable_unknown_fields());
747   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
748       &unknown_fields_string);
749   // @@protoc_insertion_point(parse_start:Mysqlx.Notice.SessionVariableChanged)
750   for (;;) {
751     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
752     tag = p.first;
753     if (!p.second) goto handle_unusual;
754     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
755       // required string param = 1;
756       case 1: {
757         if (tag == 10) {
758           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
759                 input, this->mutable_param()));
760         } else {
761           goto handle_unusual;
762         }
763         if (input->ExpectTag(18)) goto parse_value;
764         break;
765       }
766 
767       // optional .Mysqlx.Datatypes.Scalar value = 2;
768       case 2: {
769         if (tag == 18) {
770          parse_value:
771           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
772                input, mutable_value()));
773         } else {
774           goto handle_unusual;
775         }
776         if (input->ExpectAtEnd()) goto success;
777         break;
778       }
779 
780       default: {
781       handle_unusual:
782         if (tag == 0 ||
783             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
784             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
785           goto success;
786         }
787         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
788             input, tag, &unknown_fields_stream));
789         break;
790       }
791     }
792   }
793 success:
794   // @@protoc_insertion_point(parse_success:Mysqlx.Notice.SessionVariableChanged)
795   return true;
796 failure:
797   // @@protoc_insertion_point(parse_failure:Mysqlx.Notice.SessionVariableChanged)
798   return false;
799 #undef DO_
800 }
801 
802 void SessionVariableChanged::SerializeWithCachedSizes(
803     ::google::protobuf::io::CodedOutputStream* output) const {
804   // @@protoc_insertion_point(serialize_start:Mysqlx.Notice.SessionVariableChanged)
805   // required string param = 1;
806   if (has_param()) {
807     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
808       1, this->param(), output);
809   }
810 
811   // optional .Mysqlx.Datatypes.Scalar value = 2;
812   if (has_value()) {
813     ::google::protobuf::internal::WireFormatLite::WriteMessage(
814       2, this->value(), output);
815   }
816 
817   output->WriteRaw(unknown_fields().data(),
818                    unknown_fields().size());
819   // @@protoc_insertion_point(serialize_end:Mysqlx.Notice.SessionVariableChanged)
820 }
821 
822 int SessionVariableChanged::ByteSize() const {
823   int total_size = 0;
824 
825   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
826     // required string param = 1;
827     if (has_param()) {
828       total_size += 1 +
829         ::google::protobuf::internal::WireFormatLite::StringSize(
830           this->param());
831     }
832 
833     // optional .Mysqlx.Datatypes.Scalar value = 2;
834     if (has_value()) {
835       total_size += 1 +
836         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
837           this->value());
838     }
839 
840   }
841   total_size += unknown_fields().size();
842 
843   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
844   _cached_size_ = total_size;
845   GOOGLE_SAFE_CONCURRENT_WRITES_END();
846   return total_size;
847 }
848 
849 void SessionVariableChanged::CheckTypeAndMergeFrom(
850     const ::google::protobuf::MessageLite& from) {
851   MergeFrom(*::google::protobuf::down_cast<const SessionVariableChanged*>(&from));
852 }
853 
854 void SessionVariableChanged::MergeFrom(const SessionVariableChanged& from) {
855   GOOGLE_CHECK_NE(&from, this);
856   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
857     if (from.has_param()) {
858       set_param(from.param());
859     }
860     if (from.has_value()) {
861       mutable_value()->::Mysqlx::Datatypes::Scalar::MergeFrom(from.value());
862     }
863   }
864   mutable_unknown_fields()->append(from.unknown_fields());
865 }
866 
867 void SessionVariableChanged::CopyFrom(const SessionVariableChanged& from) {
868   if (&from == this) return;
869   Clear();
870   MergeFrom(from);
871 }
872 
873 bool SessionVariableChanged::IsInitialized() const {
874   if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
875 
876   if (has_value()) {
877     if (!this->value().IsInitialized()) return false;
878   }
879   return true;
880 }
881 
882 void SessionVariableChanged::Swap(SessionVariableChanged* other) {
883   if (other != this) {
884     std::swap(param_, other->param_);
885     std::swap(value_, other->value_);
886     std::swap(_has_bits_[0], other->_has_bits_[0]);
887     _unknown_fields_.swap(other->_unknown_fields_);
888     std::swap(_cached_size_, other->_cached_size_);
889   }
890 }
891 
892 ::std::string SessionVariableChanged::GetTypeName() const {
893   return "Mysqlx.Notice.SessionVariableChanged";
894 }
895 
896 
897 // ===================================================================
898 
899 bool SessionStateChanged_Parameter_IsValid(int value) {
900   switch(value) {
901     case 1:
902     case 2:
903     case 3:
904     case 4:
905     case 5:
906     case 6:
907     case 7:
908     case 9:
909     case 10:
910     case 11:
911       return true;
912     default:
913       return false;
914   }
915 }
916 
917 #ifndef _MSC_VER
918 const SessionStateChanged_Parameter SessionStateChanged::CURRENT_SCHEMA;
919 const SessionStateChanged_Parameter SessionStateChanged::ACCOUNT_EXPIRED;
920 const SessionStateChanged_Parameter SessionStateChanged::GENERATED_INSERT_ID;
921 const SessionStateChanged_Parameter SessionStateChanged::ROWS_AFFECTED;
922 const SessionStateChanged_Parameter SessionStateChanged::ROWS_FOUND;
923 const SessionStateChanged_Parameter SessionStateChanged::ROWS_MATCHED;
924 const SessionStateChanged_Parameter SessionStateChanged::TRX_COMMITTED;
925 const SessionStateChanged_Parameter SessionStateChanged::TRX_ROLLEDBACK;
926 const SessionStateChanged_Parameter SessionStateChanged::PRODUCED_MESSAGE;
927 const SessionStateChanged_Parameter SessionStateChanged::CLIENT_ID_ASSIGNED;
928 const SessionStateChanged_Parameter SessionStateChanged::Parameter_MIN;
929 const SessionStateChanged_Parameter SessionStateChanged::Parameter_MAX;
930 const int SessionStateChanged::Parameter_ARRAYSIZE;
931 #endif  // _MSC_VER
932 #ifndef _MSC_VER
933 const int SessionStateChanged::kParamFieldNumber;
934 const int SessionStateChanged::kValueFieldNumber;
935 #endif  // !_MSC_VER
936 
937 SessionStateChanged::SessionStateChanged()
938   : ::google::protobuf::MessageLite() {
939   SharedCtor();
940   // @@protoc_insertion_point(constructor:Mysqlx.Notice.SessionStateChanged)
941 }
942 
943 void SessionStateChanged::InitAsDefaultInstance() {
944 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
945   value_ = const_cast< ::Mysqlx::Datatypes::Scalar*>(
946       ::Mysqlx::Datatypes::Scalar::internal_default_instance());
947 #else
948   value_ = const_cast< ::Mysqlx::Datatypes::Scalar*>(&::Mysqlx::Datatypes::Scalar::default_instance());
949 #endif
950 }
951 
952 SessionStateChanged::SessionStateChanged(const SessionStateChanged& from)
953   : ::google::protobuf::MessageLite() {
954   SharedCtor();
955   MergeFrom(from);
956   // @@protoc_insertion_point(copy_constructor:Mysqlx.Notice.SessionStateChanged)
957 }
958 
959 void SessionStateChanged::SharedCtor() {
960   _cached_size_ = 0;
961   param_ = 1;
962   value_ = NULL;
963   ::memset(_has_bits_, 0, sizeof(_has_bits_));
964 }
965 
966 SessionStateChanged::~SessionStateChanged() {
967   // @@protoc_insertion_point(destructor:Mysqlx.Notice.SessionStateChanged)
968   SharedDtor();
969 }
970 
971 void SessionStateChanged::SharedDtor() {
972   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
973   if (this != &default_instance()) {
974   #else
975   if (this != default_instance_) {
976   #endif
977     delete value_;
978   }
979 }
980 
981 void SessionStateChanged::SetCachedSize(int size) const {
982   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
983   _cached_size_ = size;
984   GOOGLE_SAFE_CONCURRENT_WRITES_END();
985 }
986 const SessionStateChanged& SessionStateChanged::default_instance() {
987 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
988   protobuf_AddDesc_mysqlx_5fnotice_2eproto();
989 #else
990   if (default_instance_ == NULL) protobuf_AddDesc_mysqlx_5fnotice_2eproto();
991 #endif
992   return *default_instance_;
993 }
994 
995 SessionStateChanged* SessionStateChanged::default_instance_ = NULL;
996 
997 SessionStateChanged* SessionStateChanged::New() const {
998   return new SessionStateChanged;
999 }
1000 
1001 void SessionStateChanged::Clear() {
1002   if (_has_bits_[0 / 32] & 3) {
1003     param_ = 1;
1004     if (has_value()) {
1005       if (value_ != NULL) value_->::Mysqlx::Datatypes::Scalar::Clear();
1006     }
1007   }
1008   ::memset(_has_bits_, 0, sizeof(_has_bits_));
1009   mutable_unknown_fields()->clear();
1010 }
1011 
1012 bool SessionStateChanged::MergePartialFromCodedStream(
1013     ::google::protobuf::io::CodedInputStream* input) {
1014 #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1015   ::google::protobuf::uint32 tag;
1016   ::google::protobuf::io::StringOutputStream unknown_fields_string(
1017       mutable_unknown_fields());
1018   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
1019       &unknown_fields_string);
1020   // @@protoc_insertion_point(parse_start:Mysqlx.Notice.SessionStateChanged)
1021   for (;;) {
1022     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1023     tag = p.first;
1024     if (!p.second) goto handle_unusual;
1025     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1026       // required .Mysqlx.Notice.SessionStateChanged.Parameter param = 1;
1027       case 1: {
1028         if (tag == 8) {
1029           int value;
1030           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1031                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1032                  input, &value)));
1033           if (::Mysqlx::Notice::SessionStateChanged_Parameter_IsValid(value)) {
1034             set_param(static_cast< ::Mysqlx::Notice::SessionStateChanged_Parameter >(value));
1035           } else {
1036             unknown_fields_stream.WriteVarint32(tag);
1037             unknown_fields_stream.WriteVarint32(value);
1038           }
1039         } else {
1040           goto handle_unusual;
1041         }
1042         if (input->ExpectTag(18)) goto parse_value;
1043         break;
1044       }
1045 
1046       // optional .Mysqlx.Datatypes.Scalar value = 2;
1047       case 2: {
1048         if (tag == 18) {
1049          parse_value:
1050           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1051                input, mutable_value()));
1052         } else {
1053           goto handle_unusual;
1054         }
1055         if (input->ExpectAtEnd()) goto success;
1056         break;
1057       }
1058 
1059       default: {
1060       handle_unusual:
1061         if (tag == 0 ||
1062             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1063             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1064           goto success;
1065         }
1066         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
1067             input, tag, &unknown_fields_stream));
1068         break;
1069       }
1070     }
1071   }
1072 success:
1073   // @@protoc_insertion_point(parse_success:Mysqlx.Notice.SessionStateChanged)
1074   return true;
1075 failure:
1076   // @@protoc_insertion_point(parse_failure:Mysqlx.Notice.SessionStateChanged)
1077   return false;
1078 #undef DO_
1079 }
1080 
1081 void SessionStateChanged::SerializeWithCachedSizes(
1082     ::google::protobuf::io::CodedOutputStream* output) const {
1083   // @@protoc_insertion_point(serialize_start:Mysqlx.Notice.SessionStateChanged)
1084   // required .Mysqlx.Notice.SessionStateChanged.Parameter param = 1;
1085   if (has_param()) {
1086     ::google::protobuf::internal::WireFormatLite::WriteEnum(
1087       1, this->param(), output);
1088   }
1089 
1090   // optional .Mysqlx.Datatypes.Scalar value = 2;
1091   if (has_value()) {
1092     ::google::protobuf::internal::WireFormatLite::WriteMessage(
1093       2, this->value(), output);
1094   }
1095 
1096   output->WriteRaw(unknown_fields().data(),
1097                    unknown_fields().size());
1098   // @@protoc_insertion_point(serialize_end:Mysqlx.Notice.SessionStateChanged)
1099 }
1100 
1101 int SessionStateChanged::ByteSize() const {
1102   int total_size = 0;
1103 
1104   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1105     // required .Mysqlx.Notice.SessionStateChanged.Parameter param = 1;
1106     if (has_param()) {
1107       total_size += 1 +
1108         ::google::protobuf::internal::WireFormatLite::EnumSize(this->param());
1109     }
1110 
1111     // optional .Mysqlx.Datatypes.Scalar value = 2;
1112     if (has_value()) {
1113       total_size += 1 +
1114         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1115           this->value());
1116     }
1117 
1118   }
1119   total_size += unknown_fields().size();
1120 
1121   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1122   _cached_size_ = total_size;
1123   GOOGLE_SAFE_CONCURRENT_WRITES_END();
1124   return total_size;
1125 }
1126 
1127 void SessionStateChanged::CheckTypeAndMergeFrom(
1128     const ::google::protobuf::MessageLite& from) {
1129   MergeFrom(*::google::protobuf::down_cast<const SessionStateChanged*>(&from));
1130 }
1131 
1132 void SessionStateChanged::MergeFrom(const SessionStateChanged& from) {
1133   GOOGLE_CHECK_NE(&from, this);
1134   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1135     if (from.has_param()) {
1136       set_param(from.param());
1137     }
1138     if (from.has_value()) {
1139       mutable_value()->::Mysqlx::Datatypes::Scalar::MergeFrom(from.value());
1140     }
1141   }
1142   mutable_unknown_fields()->append(from.unknown_fields());
1143 }
1144 
1145 void SessionStateChanged::CopyFrom(const SessionStateChanged& from) {
1146   if (&from == this) return;
1147   Clear();
1148   MergeFrom(from);
1149 }
1150 
1151 bool SessionStateChanged::IsInitialized() const {
1152   if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
1153 
1154   if (has_value()) {
1155     if (!this->value().IsInitialized()) return false;
1156   }
1157   return true;
1158 }
1159 
1160 void SessionStateChanged::Swap(SessionStateChanged* other) {
1161   if (other != this) {
1162     std::swap(param_, other->param_);
1163     std::swap(value_, other->value_);
1164     std::swap(_has_bits_[0], other->_has_bits_[0]);
1165     _unknown_fields_.swap(other->_unknown_fields_);
1166     std::swap(_cached_size_, other->_cached_size_);
1167   }
1168 }
1169 
1170 ::std::string SessionStateChanged::GetTypeName() const {
1171   return "Mysqlx.Notice.SessionStateChanged";
1172 }
1173 
1174 
1175 // @@protoc_insertion_point(namespace_scope)
1176 
1177 }  // namespace Notice
1178 }  // namespace Mysqlx
1179 
1180 // @@protoc_insertion_point(global_scope)
1181